com.googlecode.objectify.util
Class DAOBase

java.lang.Object
  extended by com.googlecode.objectify.util.DAOBase

public class DAOBase
extends java.lang.Object

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.

Author:
Jeff Schnitzer

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

DAOBase

public DAOBase()
Creates a DAO without a transaction


DAOBase

@Deprecated
public DAOBase(boolean transactional)
Deprecated. 

Creates a DAO possibly with a transaction.


DAOBase

public DAOBase(ObjectifyOpts opts)
Creates a DAO with a certain set of options

Method Detail

fact

public ObjectifyFactory fact()
Easy access to the factory object. This is convenient shorthand for ObjectifyService.factory().


ofy

public Objectify ofy()
Easy access to the objectify object (which is lazily created).



Copyright © 2011 Jeff Schnitzer and a gang of pirates. All Rights Reserved. Build version: 3.1