|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StaffAssignmentPersister
This interface describes the set of methods that all persisters for
StaffAssignment 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. Persisting methods
are named according to the type of persistence that is performed.
StaffAssignmentLoader,
StaffAssignment| Nested Class Summary | |
|---|---|
static class |
StaffAssignmentPersister.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 | |
|---|---|
void |
insert(StaffAssignment objToSave)
Inserts the supplied StaffAssignment. |
void |
remove(StaffAssignment obj)
Removes the supplied StaffAssignment. |
void |
save(StaffAssignment objToSave)
Inserts or updates the supplied StaffAssignment. |
void |
save(StaffAssignment objToSave,
java.lang.String strSessionId)
Inserts or updates the supplied StaffAssignment. |
void |
update(StaffAssignment objToSave)
Updates the supplied StaffAssignment. |
| Methods inherited from interface blackboard.persist.Persister |
|---|
getAppVersion, init |
| Methods inherited from interface blackboard.admin.snapshot.persist.SnapshotPersister |
|---|
closeSession, createSession, createSession, remove, save, save |
| Field Detail |
|---|
static final java.lang.String TYPE
| Method Detail |
|---|
void save(StaffAssignment objToSave)
throws PersistenceException,
blackboard.db.ConstraintViolationException,
ValidationException
StaffAssignment.
objToSave - StaffAssignment object to be persisted.
PersistenceException - Thrown if a failure occurs while saving object.
blackboard.db.ConstraintViolationException - Thrown if a StaffAssignment object exists with provided course name.
ValidationException - Thrown if target does not contain required indentifying information.
void save(StaffAssignment objToSave,
java.lang.String strSessionId)
throws PersistenceException,
ValidationException
StaffAssignment.
SnapshotPersister.createSession(String) for initialization of the Snapshot
process and SnapshotPersister.closeSession(String) for finalization. Failure to do this
appropriately will result in a PersistenceException
objToSave - StaffAssignment object to be persisted.strSessionId - Unique id associated with the Session targeted for the operation.
PersistenceException - Thrown if a failure occurs while saving object.
ValidationException - Thrown if target does not contain required indentifying information.
void insert(StaffAssignment objToSave)
throws PersistenceException,
blackboard.db.ConstraintViolationException,
ValidationException
StaffAssignment.
objToSave - StaffAssignment object to be inserted.
PersistenceException - Thrown if a failure occurs while inserting object.
blackboard.db.ConstraintViolationException - Thrown if a StaffAssignment object exists with provided batch uid,
or course name.
ValidationException - Thrown if target StaffAssignment does not contain required indentifying information.
void update(StaffAssignment objToSave)
throws PersistenceException,
blackboard.db.ConstraintViolationException,
KeyNotFoundException,
ValidationException
StaffAssignment.
objToSave - StaffAssignment object to be updated.
KeyNotFoundException - Thrown if StaffAssignment object could not be found with provided
batch uid.
PersistenceException - Thrown if a failure occurs while updating object.
blackboard.db.ConstraintViolationException - Thrown if a StaffAssignment object exists with provided course name.
ValidationException - Thrown if target StaffAssignment does not contain required indentifying information.
void remove(StaffAssignment obj)
throws ValidationException,
KeyNotFoundException,
PersistenceException
StaffAssignment.
obj - StaffAssignment object to be removed.
KeyNotFoundException - Thrown if StaffAssignment object could not be found with provided
batch uid.
ValidationException - Not thrown - validation not required for removal operation.
PersistenceException - Thrown if a failure occurs while removing object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||