|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataSourceManager
Provides an API for managing DataSources and the data associated with them.
| Nested Class Summary | |
|---|---|
static class |
DataSourceManager.EntityType
Types of entities that are associated with a DataSource |
| Method Summary | |
|---|---|
java.lang.String |
beginSnapshotSession()
Notifies the persistence layer that a snapshot session is beginning for tracking purposes. |
void |
beginSnapshotSession(java.lang.String sessionId)
Notifies the persistence layer that a snapshot session is beginning for tracking purposes. |
DataSource |
create(java.lang.String batchUid,
java.lang.String description)
Create a new DataSource. |
void |
delete(java.lang.String batchUid)
Delete a DataSource. |
void |
disableAll(java.lang.String batchUid,
java.util.Calendar cutoffDate)
Disable all of the data associated to a DataSource. |
void |
disableEntity(java.lang.String batchUid,
DataSourceManager.EntityType entityType,
java.util.Calendar cutoffDate)
Disable a specific type of data associated to a DataSource. |
void |
endSnapshotSession(java.lang.String sessionId)
Notifies the persistence layer that a snapshot session is ending for tracking purposes. |
java.util.List<DataSource> |
loadAll()
Load all DataSource objects in the system. |
DataSource |
loadByBatchUid(java.lang.String batchUid)
Load a DataSource. |
java.util.Map<DataSourceManager.EntityType,java.lang.Long> |
loadObjectCounts(java.lang.String batchUid,
IAdminObject.RowStatus status)
Load the count of all objects associated with a DataSource. |
void |
modify(DataSource ds)
Modify a DataSource. |
void |
purgeAll(java.lang.String batchUid,
java.util.Calendar cutoffDate)
Delete all of the disabled data associated to a DataSource. |
void |
purgeEntity(java.lang.String batchUid,
DataSourceManager.EntityType entityType,
java.util.Calendar cutoffDate)
Delete the disabled records for a specific type of data associated to a DataSource. |
void |
purgeSnapshotSessions()
Clears all temporary persistent storage used by snapshot processes ( includes cloning ). |
| Method Detail |
|---|
java.util.List<DataSource> loadAll()
throws PersistenceException
DataSource objects in the system.
DataSource objects in the system
PersistenceException - if a database error occurs.
DataSource loadByBatchUid(java.lang.String batchUid)
throws PersistenceException,
KeyNotFoundException
DataSource.
batchUid - Unique identifier of the data source.
DataSource that has the specified Batch UID.
PersistenceException - if a database error occurs.
KeyNotFoundException - if no DataSource exists that has the specified Batch UID.
DataSource create(java.lang.String batchUid,
java.lang.String description)
throws PersistenceException,
ValidationException
DataSource.
batchUid - unique identifier for the data source.description - an optional description of the data source.
DataSource.
PersistenceException - if a database error occurs.
ValidationException - if the parameters specified are not valid for a DataSource.
void modify(DataSource ds)
throws PersistenceException,
KeyNotFoundException,
ValidationException
DataSource.
ds - the modified DataSource.
PersistenceException - if a database error occurs.
KeyNotFoundException - if the specified data source does not exist.
ValidationException - if the data in the data source object is not valid.
void delete(java.lang.String batchUid)
throws PersistenceException,
KeyNotFoundException
DataSource.
The data source must not have any data associated with it in order to delete the data source.
batchUid - unique identifier of the data source.
PersistenceException - if a database error occurs (e.g. if the data source has data associated with it)
KeyNotFoundException - if the specified data source does not exist.
void disableAll(java.lang.String batchUid,
java.util.Calendar cutoffDate)
throws PersistenceException
DataSource. Optionally, a cutoff date can be specified which limits
the operation to data that was last modified before the cutoff date.
batchUid - Unique identifier of the data source.cutoffDate - Date at which to limit the operation.
PersistenceException - if a database error occurs.
void disableEntity(java.lang.String batchUid,
DataSourceManager.EntityType entityType,
java.util.Calendar cutoffDate)
throws PersistenceException
DataSource. Optionally, a cutoff date can be specified
which limits the operation to data that was last modified before the cutoff date.
batchUid - Unique identifier of the data source.entityType - Type of entity to disable.cutoffDate - Date at which to limit the operation.
PersistenceException - if a database error occurs.
void purgeAll(java.lang.String batchUid,
java.util.Calendar cutoffDate)
throws PersistenceException
DataSource. Optionally, a cutoff date can be specified
which limits the operation to data that was last modified before the cutoff date.
batchUid - Unique identifier of the data source.cutoffDate - Date at which to limit the operation.
PersistenceException - if a database error occurs.
void purgeEntity(java.lang.String batchUid,
DataSourceManager.EntityType entityType,
java.util.Calendar cutoffDate)
throws PersistenceException
DataSource. Optionally, a cutoff
date can be specified which limits the operation to data that was last modified before the cutoff date.
batchUid - Unique identifier of the data source.entityType - Type of entity to disable.cutoffDate - Date at which to limit the operation.
PersistenceException - if a database error occurs.
void purgeSnapshotSessions()
throws PersistenceException
PersistenceException - if a database error occurs.
java.lang.String beginSnapshotSession()
throws PersistenceException
PersistenceException - Thrown if failure occurs during logging start of snapshot based session.
void beginSnapshotSession(java.lang.String sessionId)
throws PersistenceException
sessionId - - the id of the session to create
PersistenceException - Thrown if failure occurs during logging start of snapshot based session.
void endSnapshotSession(java.lang.String sessionId)
throws PersistenceException
sessionId - - the id of the session to delete
PersistenceException - Thrown if failure occurs during logging end of snapshot based session.
java.util.Map<DataSourceManager.EntityType,java.lang.Long> loadObjectCounts(java.lang.String batchUid,
IAdminObject.RowStatus status)
throws PersistenceException
DataSource.
batchUid - Unique identifier of the data source.status - status to be used in specifying criteria in count selection.
DataSourceManager.EntityType to count of that entity.
PersistenceException - if a database error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||