|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--goodsjpi.PersistenceFactory
Class which defines the interface to a persistent store
| Field Summary | |
protected static java.util.Properties |
persistenceMap
Mapping from class and interface types to persistent implementations of them this contains lines like persistence.root=my.root.object.type persistence.java.util.Set=goodsjpi.PersistentHashSet persistence.java.util.List=goodsjpi.PersistentArrayList |
protected java.lang.Object |
root
Root object of the object store |
| Constructor Summary | |
protected |
PersistenceFactory()
Create the new persistence factory |
| Method Summary | |
static goodsjpi.PersistenceFactory |
get()
Get the instance of the persistence factory |
static java.lang.Object |
get(java.lang.Class required)
Get an object instance which is compatible with the required class and is also persistent |
static java.lang.Object |
get(java.lang.Class required,
java.lang.Class[] types,
java.lang.Object[] params)
Get an object instance which is compatible with the required class and is also persistent |
protected static java.lang.Class |
getImplClass(java.lang.Class required)
Get the implementation type for the requested type |
protected abstract java.lang.Object |
getImplementation(java.lang.Class required)
Handle on the datastore specific getImplementation method |
protected abstract java.lang.Object |
getImplementation(java.lang.Class required,
java.lang.Class[] types,
java.lang.Object[] params)
Handle on the datastore specific getImplementation method |
static java.lang.Object |
getRoot()
Get the root object of the data store |
protected abstract java.lang.Object |
getRootImpl()
Handle on the datastore specific implementation of the getRoot method |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.Object root
protected static java.util.Properties persistenceMap
| Constructor Detail |
protected PersistenceFactory()
| Method Detail |
public static final goodsjpi.PersistenceFactory get()
public static final java.lang.Object get(java.lang.Class required)
public static final java.lang.Object get(java.lang.Class required,
java.lang.Class[] types,
java.lang.Object[] params)
types - array of types for the constructorparams - array of parameters for the constructorprotected static java.lang.Class getImplClass(java.lang.Class required)
required - a class or interface type for which
a persistent implementation is required
protected abstract java.lang.Object getImplementation(java.lang.Class required)
protected abstract java.lang.Object getImplementation(java.lang.Class required,
java.lang.Class[] types,
java.lang.Object[] params)
types - array of types for the constuctor argumentsparams - array of parameters for the constructor
public static java.lang.Object getRoot()
throws java.io.IOException
java.io.IOException
protected abstract java.lang.Object getRootImpl()
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||