|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The persistent object manager interface for managing persistent objects.
Supported API: false
Extendable: false
Method Summary | |
void |
addTransactionListener(TransactionListener listener)
Add a listener to the current transaction |
void |
commitTransaction(int transactionHandle)
Commit a transaction flushing changes to the datastore. |
InputStream |
getLob(LobLocator aLobLocator)
Retrieve a LOB from the datastore as an input stream |
String |
getNextSequence(String sequenceName)
Get the next Sequence number - sequence must already exist |
void |
insert(Persistable persistentObj)
Insert a persistent object in a datastore. |
void |
insert(Persistable persistentObj,
Timestamp createDate,
Timestamp modifyDate)
Insert a persistent object in a datastore. |
void |
lock(Persistable persistentObj)
Lock a persistent object in the datastore. |
void |
lock(Persistable persistentObj,
boolean wait)
Lock a persistent object in the datastore. |
QueryResult |
query(StatementSpec aStatementSpec,
AccessControllerProcessor anAccessControllerProcessor)
Execute a query |
void |
remove(Persistable persistentObj)
Remove a persistent object from the datastore. |
void |
removeTransactionListener(TransactionListener listener)
Remove a listener from the current transaction |
void |
rollbackTransaction()
Rollback the current transaction |
void |
rollbackTransaction(int transactionHandle)
Rollback a transaction |
void |
update(Persistable persistentObj,
boolean changeModifyDate)
Update a persistent object in the datastore. |
void |
update(Persistable aPersistentObj,
String attrName,
ObjectMappable objAttr)
Update a persistent object in the datastore. |
long |
updateLob(Persistable anObj,
LobLocator aLobLocator,
InputStream aStream,
boolean updateChangeStamp)
Store a LOB in the datastore from an input stream of unknown length |
void |
updateLob(Persistable anObj,
LobLocator aLobLocator,
InputStream aStream,
long length,
boolean updateChangeStamp)
Store a LOB in the datastore from an input stream |
Method Detail |
public void commitTransaction(int transactionHandle) throws PersistenceException
transactionHandle
- The transaction identifier provided by
the startTransaction method.
PersistenceException
- Occurs if the persistent object manager cannot
end the transaction.public void rollbackTransaction(int transactionHandle) throws PersistenceException
transactionHandle
- The transaction identifier provided by
the startTransaction method.
PersistenceException
- Occurs if the persistent object manager cannot
drop the transaction.public void rollbackTransaction() throws PersistenceException
PersistenceException
- Occurs if the persistent object manager cannot
drop the transaction.public void addTransactionListener(TransactionListener listener) throws PersistenceException
PersistenceException
- Occurs if the persistent object manager cannot
find an active transaction.public void removeTransactionListener(TransactionListener listener) throws PersistenceException
PersistenceException
- Occurs if the persistent object manager cannot
find an active transaction.public void insert(Persistable persistentObj) throws PersistenceException
persistentObj
- The object to be made persistent.
PersistenceException
- Occurs if the persistent object manager cannot
insert the persistent object.public void insert(Persistable persistentObj, Timestamp createDate, Timestamp modifyDate) throws PersistenceException
persistentObj
- The object to be made persistent.createDate
- explicit create Timestamp to set (if null, current time is used)modifyDate
- explicit modify Timestamp to set (if null, current time is used)
PersistenceException
- Occurs if the persistent object manager cannot
insert the persistent object.public void update(Persistable persistentObj, boolean changeModifyDate) throws PersistenceException
persistentObj
- The persistent object to be modified.
PersistenceException
- Occurs if the persistent object manager cannot
update the persistent object.public void update(Persistable aPersistentObj, String attrName, ObjectMappable objAttr) throws PersistenceException
attrName
- The name of the attribute to be modified.objAttr
- The attribute to be modified.
PersistenceException
- Occurs if the persistent object manager cannot
update the persistent object.public void remove(Persistable persistentObj) throws PersistenceException
persistentObj
- The persistent object to be removed.
PersistenceException
- Occurs if the persistent object manager cannot
remove the persistent object.public void lock(Persistable persistentObj) throws PersistenceException
persistentObj
- The persistent objects to be locked.
PersistenceException
- Occurs if the persistent object manager cannot
lock the persistent object.public void lock(Persistable persistentObj, boolean wait) throws PersistenceException
persistentObj
- The persistent objects to be locked.wait
- boolean whether to wait for lock or not
PersistenceException
- Occurs if the persistent object manager cannot
lock the persistent object.public QueryResult query(StatementSpec aStatementSpec, AccessControllerProcessor anAccessControllerProcessor) throws PersistenceException
aStatementSpec
- - selection criteria
PersistenceException
- Occurs if the persistent object manager cannot
execute the query.public InputStream getLob(LobLocator aLobLocator) throws PersistenceException
aLobLocator
- the locator for the LOB
PersistenceException
- Occurs if the persistent object manager cannot
retrieve the large objectpublic void updateLob(Persistable anObj, LobLocator aLobLocator, InputStream aStream, long length, boolean updateChangeStamp) throws PersistenceException
anObj
- the object holding the LOBaLobLocator
- the locator for the LOBaStream
- the stream to store
PersistenceException
- Occurs if the persistent object manager cannot
store the large objectpublic long updateLob(Persistable anObj, LobLocator aLobLocator, InputStream aStream, boolean updateChangeStamp) throws PersistenceException
anObj
- the object holding the LOBaLobLocator
- the locator for the LOBaStream
- the stream to store
PersistenceException
- Occurs if the persistent object manager cannot
store the large objectpublic String getNextSequence(String sequenceName) throws PersistenceException
PersistenceException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |