|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataSourcePersister
This interface describes the set of methods that all persisters for
DataSource objects must implement.
A persister allows an object to be stored (either inserted or updated)
within the CMS system or to be deleted from the CMS system. The data source persister also
allows operations to be performed against the multiple entities that can be encompassed
within the scope of a single DataSource.
DataSourceLoader,
DataSource| Nested Class Summary | |
|---|---|
static class |
DataSourcePersister.Default
A utility class that provides quick access to the Persister instance associated with the default instance of the database BbPersistenceManager. |
| Field Summary | |
|---|---|
static java.lang.String |
TYPE
Type used to obtain an instance of the class configured to provide the implementation for this interface. |
| 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. |
void |
create(DataSource dataSource)
Creates DataSource |
void |
disableAdminObjectsByDataType(java.lang.String dataSrcBatchUid,
DataType dataType,
java.util.Calendar cal)
Disables AdminObjects By DataType for which their last modification stamp appears before the date/time specified by the Calendar object provided. |
void |
disableAllAdminObjects(java.lang.String dataSrcBatchUid,
java.util.Calendar cal)
Disables All AdminObjects for which their last modification stamp appears before the date/time specified by the Calendar object provided. |
void |
endSnapshotSession(java.lang.String sessionId)
Notifies the persistence layer that a snapshot session is ending for tracking purposes. |
void |
modify(DataSource dataSource)
Modifies DataSource |
void |
purgeAdminObjectsByDataType(java.lang.String dataSrcBatchUid,
DataType dataType,
java.util.Calendar cal)
Purges AdminObject By DataType for which their last modification stamp appears before the date/time specified by the Calendar object provided. |
void |
purgeAllAdminObjects(java.lang.String dataSrcBatchUid,
java.util.Calendar cal)
Purges All AdminObjects based on DataSource for which their last modification stamp appears before the date/time
specified by the Calendar object provided. |
void |
purgeSnapshotSessions()
Clears all temporary persistent storage used by snapshot processes ( includes cloning ). |
void |
removeByBatchUid(java.lang.String dataSrcBatchUid)
Removes DataSource> based on BatchUid |
| Methods inherited from interface blackboard.persist.Persister |
|---|
getAppVersion, init |
| Field Detail |
|---|
static final java.lang.String TYPE
| Method Detail |
|---|
void create(DataSource dataSource)
throws PersistenceException,
ValidationException
DataSource
dataSource - DataSource object to be created.
PersistenceException - Thrown if failure occurs during removal of Admin Objects.
ValidationException - Thrown if target does not contain required indentifying information.
void modify(DataSource dataSource)
throws PersistenceException,
ValidationException,
KeyNotFoundException
DataSource
dataSource - DataSource object to be created.
PersistenceException - Thrown if failure occurs during modification of DataSource
ValidationException - Thrown if target does not contain required indentifying information.
KeyNotFoundException - Thrown if DataSource object could not be found with provided
batch uid.
void removeByBatchUid(java.lang.String dataSrcBatchUid)
throws PersistenceException,
KeyNotFoundException
DataSource> based on BatchUid
- Parameters:
dataSrcBatchUid - Batch Uid with which to identify DataSource object.
- Throws:
PersistenceException - Thrown if failure occurs during removal of Admin Objects.
KeyNotFoundException - Thrown if DataSource object could not be found with provided
batch uid.
void disableAllAdminObjects(java.lang.String dataSrcBatchUid,
java.util.Calendar cal)
throws PersistenceException,
KeyNotFoundException
Calendar object provided.
dataSrcBatchUid - Batch Uid with which to identify DataSource object.cal - Calendar reference which refers to modified date cut-off point.
PersistenceException - Thrown if failure occurs during disabling of Admin Objects.
KeyNotFoundException - Thrown if DataSource object could not be found with provided
batch uid.
void disableAdminObjectsByDataType(java.lang.String dataSrcBatchUid,
DataType dataType,
java.util.Calendar cal)
throws PersistenceException,
KeyNotFoundException
Calendar object provided.
dataSrcBatchUid - Batch Uid with which to identify DataSource object.dataType - DataType refers to identifying type for Admin Object to be
referred to.cal - Calendar reference which refers to modified date cut-off point.
PersistenceException - Thrown if failure occurs during diabling of Admin Objects.
KeyNotFoundException - Thrown if DataSource object could not be found with provided
batch uid.
void purgeAllAdminObjects(java.lang.String dataSrcBatchUid,
java.util.Calendar cal)
throws PersistenceException,
KeyNotFoundException
DataSource for which their last modification stamp appears before the date/time
specified by the Calendar object provided.
dataSrcBatchUid - Batch Uid with which to identify DataSource object.cal - Calendar reference which refers to modified date cut-off point.
PersistenceException - Thrown if failure occurs during puge of Admin Objects.
KeyNotFoundException - Thrown if DataSource object could not be found with provided
batch uid.
void purgeAdminObjectsByDataType(java.lang.String dataSrcBatchUid,
DataType dataType,
java.util.Calendar cal)
throws PersistenceException,
KeyNotFoundException
Calendar object provided.
dataSrcBatchUid - Batch Uid with which to identify DataSource object.dataType - DataType refers to identifying type for Admin Object to be
referred to.cal - Calendar reference which refers to modified date cut-off point.
PersistenceException - Thrown if failure occurs during purge of specified Admin Objects.
KeyNotFoundException - Thrown if DataSource object could not be found with provided
batch uid.
void purgeSnapshotSessions()
throws PersistenceException
PersistenceException - Thrown if failure occurs during purge of snapshot based sessions.
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||