| org.apache.jetspeed.components.persistence.store.PersistenceStore
PersistenceStore | public interface PersistenceStore (Code) | |
PersistenceStore
The persistence store allows access to the persistent
storage mechanism within the application.
PersistenceStore instances ARE NOT
thread safe. The best practices approach for using
the persistence store is to use
PersistenceStoreContainer.getStoreForThread()
any time the store is to be accessed.
version: $ $ |
Field Summary | |
int | LOCK_NO_LOCK No lock at all aka the object is read only changes WILL NOT be persisted
at checkPoints or commits. | int | LOCK_PESSIMISTIC changes to the object will be written to the database. | int | LOCK_READ |
LOCK_NO_LOCK | int LOCK_NO_LOCK(Code) | | No lock at all aka the object is read only changes WILL NOT be persisted
at checkPoints or commits.
|
LOCK_PESSIMISTIC | int LOCK_PESSIMISTIC(Code) | | changes to the object will be written to the database.
|
LOCK_READ | int LOCK_READ(Code) | | changes to the object will be written to the database, in this case the lock
will be automatically upgraded to the write lock on transaction
|
getTransaction | Transaction getTransaction()(Code) | |
getTransaction
Returns the current Transaction for thsis
PersistenceStore instance. The transaction
will always be the same for the lifetime of the
PersistenceStore instance.
Transaction for this PersistenceStore |
isClosed | boolean isClosed()(Code) | |
isClosed
indicates whether or not this PersistenceStore
instance has been closed. A closed store will generally
throw exceptions when any operation is performed upon it.
|
|
|