com.googlecode.objectify
Class ObjectifyService
java.lang.Object
com.googlecode.objectify.ObjectifyService
public class ObjectifyService
- extends java.lang.Object
This is a simple container for a single static instance of ObjectifyFactory.
You can choose to use this class or build your own equivalent. You may prefer
to use a dependency injection system like Weld or Guice directly with an
ObjectifyFactory and eschew this class entirely.
For further advice, see the
BestPractices.
- Author:
- Jeff Schnitzer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
factory
protected static ObjectifyFactory factory
- Singleton instance
ObjectifyService
public ObjectifyService()
factory
public static ObjectifyFactory factory()
- Call this to get the instance
begin
public static Objectify begin()
- See Also:
ObjectifyFactory.begin()
beginTransaction
public static Objectify beginTransaction()
- See Also:
ObjectifyFactory.beginTransaction()
begin
public static Objectify begin(ObjectifyOpts opts)
- See Also:
ObjectifyFactory.begin(ObjectifyOpts)
register
public static void register(java.lang.Class<?> clazz)
- See Also:
ObjectifyFactory.register(Class)
Copyright © 2011 Jeff Schnitzer and a gang of pirates. All Rights Reserved. Build version: 3.1