public class ObjectifyService extends Object
ofy()
at any point to get the current Objectify with the correct transaction context.Constructor and Description |
---|
ObjectifyService() |
Modifier and Type | Method and Description |
---|---|
static ObjectifyFactory |
factory() |
static Objectify |
ofy()
The method to call at any time to get the current Objectify, which may change depending on txn context
|
static void |
pop()
Pops context off of stack after a transaction completes
|
static void |
push(Objectify ofy)
Pushes new context onto stack when a transaction starts
|
static void |
register(Class<?> clazz)
A shortcut for
ObjectifyFactory.register() |
static void |
reset()
Clear the stack of any leftover Objectify instances
|
static void |
setFactory(ObjectifyFactory fact) |
public static void setFactory(ObjectifyFactory fact)
public static Objectify ofy()
public static ObjectifyFactory factory()
public static void register(Class<?> clazz)
ObjectifyFactory.register()
ObjectifyFactory.register(Class)
public static void push(Objectify ofy)
public static void pop()
public static void reset()
Copyright © 2013. All Rights Reserved.