Interface PersistenceStore
-
- All Known Implementing Classes:
SQLStoreManager
public interface PersistenceStore
This interface represents a Persistence store that knows how to create, find, modify and delete persistence capable objects from a backing store such as a database.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
execute(PersistenceManager pm, Collection actions)
void
executeBatch(PersistenceManager pm, UpdateObjectDesc request, boolean forceFlush)
Class
getClassByOidClass(Class oidType)
ConfigCache
getConfigCache()
Returns ConfigCache associated with this store.PersistenceConfig
getPersistenceConfig(Class classType)
RetrieveDesc
getRetrieveDesc(Class classType)
Returns a new retrieve descriptor for an external (user) query.RetrieveDesc
getRetrieveDesc(String fieldName, Class classType)
Returns a new retrieve descriptor for an external (user) query.StateManager
getStateManager(Class classType)
UpdateObjectDesc
getUpdateObjectDesc(Class classType)
Object
retrieve(PersistenceManager pm, RetrieveDesc action, ValueFetcher parameters)
-
-
-
Method Detail
-
execute
void execute(PersistenceManager pm, Collection actions)
-
executeBatch
void executeBatch(PersistenceManager pm, UpdateObjectDesc request, boolean forceFlush)
-
retrieve
Object retrieve(PersistenceManager pm, RetrieveDesc action, ValueFetcher parameters)
-
getStateManager
StateManager getStateManager(Class classType)
-
getRetrieveDesc
RetrieveDesc getRetrieveDesc(Class classType)
Returns a new retrieve descriptor for an external (user) query.- Parameters:
classType
- Type of the persistence capable class to be queried.- Returns:
- A new retrieve descriptor for an external (user) query.
-
getRetrieveDesc
RetrieveDesc getRetrieveDesc(String fieldName, Class classType)
Returns a new retrieve descriptor for an external (user) query. This retrieve descriptor can be used to query for the foreign fieldname
.- Parameters:
fieldName
- Name of the foreign field to be queried.classType
- Persistence capable class includingfieldName
.- Returns:
- A new retrieve descriptor for an external (user) query.
-
getUpdateObjectDesc
UpdateObjectDesc getUpdateObjectDesc(Class classType)
-
getPersistenceConfig
PersistenceConfig getPersistenceConfig(Class classType)
-
getConfigCache
ConfigCache getConfigCache()
Returns ConfigCache associated with this store.- Returns:
- ConfigCache associated with this store.
-
-