|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gvsig.tools.persistence.AbstractMultiPersistenceFactory
public abstract class AbstractMultiPersistenceFactory
Field Summary | |
---|---|
protected List |
classes
|
protected List |
definitions
|
protected Map |
nameToClass
|
protected Map |
nameToDefinition
|
Constructor Summary | |
---|---|
protected |
AbstractMultiPersistenceFactory()
|
Method Summary | |
---|---|
protected DynStruct |
addDefinition(Class managedClass,
String name,
String description)
|
DynStruct |
getDefinition(String className)
Returns the associated definition to the java class name |
List |
getDefinitions()
Return a List of the definition managed by this factory where the key is className and value is definition |
String |
getDomainName()
Returns the domain name of the objects persisted by this factory. |
String |
getDomainURL()
Returns the domain URL to use for the schema. |
Class |
getManagedClass(Object object)
Return the class or interface the factory asociate to the object. |
Class |
getManagedClass(PersistentState state)
Return the class or interface the factory asociate to the object. |
Class |
getManagedClass(String name)
Return the class or interface the factory asociate to the java class name. |
List |
getManagedClasses()
Return the list of classes or interfaces managed by this factory. |
String |
getManagedClassName(Object object)
Return the name class or interface the factory asociate to the object. |
void |
loadFromState(PersistentState state,
Object object)
Load a instance of classToUse from state data. |
protected abstract void |
makeDefinitions()
Create DynStruct definition and call to #addDefinition(Class, DynStruct)
to add to the factory. |
boolean |
manages(Class theClass)
Informs if theClass is managed by this factory. |
boolean |
manages(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 . |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.gvsig.tools.persistence.PersistenceFactory |
---|
createFromState, saveToState |
Field Detail |
---|
protected List classes
protected List definitions
protected Map nameToDefinition
protected Map nameToClass
Constructor Detail |
---|
protected AbstractMultiPersistenceFactory()
Method Detail |
---|
protected DynStruct addDefinition(Class managedClass, String name, String description)
public String toString()
toString
in class Object
public void loadFromState(PersistentState state, Object object) throws PersistenceException
PersistenceFactory
classToUse
from state
data.
loadFromState
in interface PersistenceFactory
PersistenceException
public String getDomainName()
PersistenceFactory
getDomainName
in interface PersistenceFactory
public String getDomainURL()
PersistenceFactory
getDomainURL
in interface PersistenceFactory
public List getDefinitions()
PersistenceFactory
className
and value is definition
getDefinitions
in interface PersistenceFactory
public List getManagedClasses()
PersistenceFactory
getManagedClasses
in interface PersistenceFactory
public DynStruct getDefinition(String className)
PersistenceFactory
getDefinition
in interface PersistenceFactory
className
- of a java Class
public boolean manages(Object object)
PersistenceFactory
object
is managed by this factory.
manages
in interface PersistenceFactory
public boolean manages(Class theClass)
PersistenceFactory
theClass
is managed by this factory.
manages
in interface PersistenceFactory
public boolean manages(PersistentState state)
PersistenceFactory
state
.
manages
in interface PersistenceFactory
public Class getManagedClass(PersistentState state)
PersistenceFactory
getManagedClass
in interface PersistenceFactory
public Class getManagedClass(String name)
PersistenceFactory
getManagedClass
in interface PersistenceFactory
public Class getManagedClass(Object object)
PersistenceFactory
getManagedClass
in interface PersistenceFactory
public String getManagedClassName(Object object)
PersistenceFactory
getManagedClassName
in interface PersistenceFactory
protected abstract void makeDefinitions()
#addDefinition(Class, DynStruct)
to add to the factory.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |