|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--edu.iu.iv.common.persistence.BasicPersistenceRegistry
| Constructor Summary | |
BasicPersistenceRegistry()
|
|
| Method Summary | |
Persister |
findPersister(java.lang.Object model,
ResourceDescriptor resource)
Finds a persister that can persist a specified data model to a specified data resource or one that can restore from a particular resource. |
java.util.List |
getPersisters()
Gets the list of all persisters currently registered with the registry. |
java.util.List |
getSupportingPersisters(java.lang.Object model)
Returns the list of persisters that can persist the specified data model. |
java.util.List |
getSupportingPersisters(ResourceDescriptor resource)
Returns the list of persisters that can restore from the specified data resource. |
java.lang.Object |
load(ResourceDescriptor source)
Attempts to load the specified data model with data from the specified source. |
void |
register(Persister persister)
Registers the persister with the registry. |
void |
save(java.lang.Object model,
ResourceDescriptor destination)
Attempts to save the specified data model's data to the specified resource. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BasicPersistenceRegistry()
| Method Detail |
public void register(Persister persister)
PersistenceRegistry
register in interface PersistenceRegistrypersister - The persister to add to the registry.PersistenceRegistry.register(edu.iu.iv.core.persistence.Persister)public java.util.List getSupportingPersisters(java.lang.Object model)
PersistenceRegistry
getSupportingPersisters in interface PersistenceRegistrymodel - The data model for which persistence is desired.
PersistenceRegistry.getSupportingPersisters(java.lang.Object)public java.util.List getSupportingPersisters(ResourceDescriptor resource)
PersistenceRegistry
getSupportingPersisters in interface PersistenceRegistryresource - The data source from which the data model needs to be restored.
PersistenceRegistry.getSupportingPersisters(edu.iu.iv.core.persistence.ResourceDescriptor)public java.util.List getPersisters()
PersistenceRegistry
getPersisters in interface PersistenceRegistryPersistenceRegistry.getPersisters()
public Persister findPersister(java.lang.Object model,
ResourceDescriptor resource)
PersistenceRegistry
findPersister in interface PersistenceRegistrymodel - The data model that needs to be persisted or restored.resource - The resource to which this data needs to be persisted to or restored
from.
public void save(java.lang.Object model,
ResourceDescriptor destination)
throws java.io.IOException,
PersistenceException
save in interface PersistenceRegistrymodel - The model to be saved.destination - The object describing the properties of the data resource
where this model should be saved.
java.io.IOException
PersistenceExceptionPersistenceRegistry.save(Object, ResourceDescriptor)
public java.lang.Object load(ResourceDescriptor source)
throws java.io.IOException,
java.lang.OutOfMemoryError,
PersistenceException
load in interface PersistenceRegistrysource - The resource from where the data model is to be loaded.
java.io.IOException
java.lang.OutOfMemoryError
PersistenceExceptionPersistenceRegistry.load(ResourceDescriptor)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||