public abstract class AbstractSinglePersistenceFactory extends java.lang.Object implements PersistenceFactory
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSinglePersistenceFactory(java.lang.Class theClass,
java.lang.String name,
java.lang.String description,
java.lang.String domainName,
java.lang.String domainUrl) |
| Modifier and Type | Method and Description |
|---|---|
protected DynStruct |
getDefinition() |
DynStruct |
getDefinition(java.lang.String name)
Returns the associated definition to the java class name
|
java.util.List |
getDefinitions()
Return a List of the definition managed by this factory where the key is
className and value is definition |
java.lang.String |
getDomainName()
Returns the domain name of the objects persisted by this factory.
|
java.lang.String |
getDomainURL()
Returns the domain URL to use for the schema.
|
java.lang.Class |
getManagedClass(java.lang.Object object)
Return the class or interface the factory asociate to
the object.
|
java.lang.Class |
getManagedClass(PersistentState state)
Return the class or interface the factory asociate to
the object.
|
java.lang.Class |
getManagedClass(java.lang.String name)
Return the class or interface the factory asociate to
the java class name.
|
java.util.List |
getManagedClasses()
Return the list of classes or interfaces managed by this
factory.
|
java.lang.String |
getManagedClassName(java.lang.Object object)
Return the name class or interface the factory asociate to
the object.
|
void |
loadFromState(PersistentState state,
java.lang.Object object)
Load a instance of
classToUse from state data. |
boolean |
manages(java.lang.Class theClass)
Informs if
theClass is managed by this factory. |
boolean |
manages(java.lang.Object object)
Informs if
object is managed by this factory. |
boolean |
manages(PersistentState state)
Informs if this factory can recreate the object represented by
state. |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateFromState, saveToStateprotected AbstractSinglePersistenceFactory(java.lang.Class theClass,
java.lang.String name,
java.lang.String description,
java.lang.String domainName,
java.lang.String domainUrl)
protected DynStruct getDefinition()
public DynStruct getDefinition(java.lang.String name)
PersistenceFactorygetDefinition in interface PersistenceFactoryname - of a java Classpublic java.util.List getDefinitions()
PersistenceFactoryclassName and value is definitiongetDefinitions in interface PersistenceFactorypublic java.lang.String getDomainName()
PersistenceFactorygetDomainName in interface PersistenceFactorypublic java.lang.String getDomainURL()
PersistenceFactorygetDomainURL in interface PersistenceFactorypublic java.lang.Class getManagedClass(java.lang.Object object)
PersistenceFactorygetManagedClass in interface PersistenceFactorypublic java.lang.String getManagedClassName(java.lang.Object object)
PersistenceFactorygetManagedClassName in interface PersistenceFactorypublic java.lang.Class getManagedClass(PersistentState state)
PersistenceFactorygetManagedClass in interface PersistenceFactorypublic java.lang.Class getManagedClass(java.lang.String name)
PersistenceFactorygetManagedClass in interface PersistenceFactorypublic java.util.List getManagedClasses()
PersistenceFactorygetManagedClasses in interface PersistenceFactorypublic void loadFromState(PersistentState state, java.lang.Object object) throws PersistenceException
PersistenceFactoryclassToUse from state data.loadFromState in interface PersistenceFactoryPersistenceExceptionpublic boolean manages(java.lang.Object object)
PersistenceFactoryobject is managed by this factory.manages in interface PersistenceFactorypublic boolean manages(java.lang.Class theClass)
PersistenceFactorytheClass is managed by this factory.manages in interface PersistenceFactorypublic boolean manages(PersistentState state)
PersistenceFactorystate.manages in interface PersistenceFactorypublic java.lang.String toString()
toString in class java.lang.Object