bill.util.persist
Class EntityDataFactory

java.lang.Object
  |
  +--bill.util.persist.EntityDataFactory
Direct Known Subclasses:
EntityDataFactoryConfig, EntityDataFactoryRDBMS

public abstract class EntityDataFactory
extends Object

Generic Factory for entities. It defines a couple methods that specific subclass factories must use.


Field Summary
protected static Object _connection
          This variable holds an instance of a class that will allow us access to our persistent store, such as a java.sql.Connection.
 
Constructor Summary
EntityDataFactory()
           
 
Method Summary
static Object getConnection()
          Retrieves the connection object's value.
static void setConnection(Object connection)
          Set the connection object's value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_connection

protected static Object _connection
This variable holds an instance of a class that will allow us access to our persistent store, such as a java.sql.Connection.
Constructor Detail

EntityDataFactory

public EntityDataFactory()
Method Detail

setConnection

public static void setConnection(Object connection)
Set the connection object's value.
Parameters:
connection - The connection object to use.

getConnection

public static Object getConnection()
Retrieves the connection object's value.
Returns:
The connection object.