|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Session
Repository session.
Method Summary | |
---|---|
void |
addListener(RepositoryListener listener)
|
void |
commit()
Commits the transaction. |
void |
enqueueEvent(RepositoryEvent event)
|
java.lang.String |
getId()
|
Identity |
getIdentity()
|
RepositoryItem |
getRepositoryItem(RepositoryItemFactory factory,
java.lang.String key)
|
boolean |
isListenerRegistered(RepositoryListener listener)
Checks if a listener is registered. |
boolean |
isModifiable()
|
void |
rollback()
Rolls the transaction back. |
void |
setIdentity(Identity identity)
|
Methods inherited from interface org.apache.lenya.transaction.UnitOfWork |
---|
createLock, isDirty, registerDirty, registerNew, registerRemoved, removeLock |
Method Detail |
---|
Identity getIdentity()
void commit() throws RepositoryException, ConcurrentModificationException
commit
in interface UnitOfWork
RepositoryException
- if an error occurs.
ConcurrentModificationException
- if a transactionable has been
modified by another session.void rollback() throws RepositoryException
rollback
in interface UnitOfWork
RepositoryException
- if an error occurs.RepositoryItem getRepositoryItem(RepositoryItemFactory factory, java.lang.String key) throws RepositoryException
factory
- The factory.key
- The key.
RepositoryException
- if an error occurs.void addListener(RepositoryListener listener) throws RepositoryException
listener
- The listener to add.
RepositoryException
- if the listener is already registered.boolean isListenerRegistered(RepositoryListener listener)
listener
- The listener.
void enqueueEvent(RepositoryEvent event)
event
- The event to add to the queue.void setIdentity(Identity identity)
identity
- The identity.boolean isModifiable()
java.lang.String getId()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |