|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.googlecode.objectify.util.DAOBase
public class DAOBase
Useful class for creating a basic DAO. Typically you would extend this class and register your entites in a static initializer, then provide higher-level data manipulation methods as desired.
As you can see from the implementation, there isn't much to it. You can easily make your own DAO class without DAOBase if you so choose.
See BestPractices. for more guidance.
Constructor Summary | |
---|---|
DAOBase()
Creates a DAO without a transaction |
|
DAOBase(boolean transactional)
Deprecated. |
|
DAOBase(ObjectifyOpts opts)
Creates a DAO with a certain set of options |
Method Summary | |
---|---|
ObjectifyFactory |
fact()
Easy access to the factory object. |
Objectify |
ofy()
Easy access to the objectify object (which is lazily created). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DAOBase()
@Deprecated public DAOBase(boolean transactional)
public DAOBase(ObjectifyOpts opts)
Method Detail |
---|
public ObjectifyFactory fact()
ObjectifyService.factory()
.
public Objectify ofy()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |