public static interface Repository.UnitOfWork
repository
transaction.Modifier and Type | Interface and Description |
---|---|
static class |
Repository.UnitOfWork.State
The transaction states.
|
Modifier and Type | Method and Description |
---|---|
void |
commit()
Saves all changes made during the transaction.
|
Repository.UnitOfWorkListener |
getCallback() |
UnitOfWorkDelegate |
getDelegate() |
KException |
getError() |
String |
getName() |
String |
getRepositoryUser()
repository user.
|
Repository.UnitOfWork.State |
getState() |
String |
getUserName() |
boolean |
hasChanges() |
boolean |
isRollbackOnly() |
void |
rollback()
Discards all current changes made during this transaction.
|
void commit()
rollback()
is called.Repository.UnitOfWorkListener getCallback()
null
)UnitOfWorkDelegate getDelegate()
KException getError()
null
)Repository.UnitOfWork.State.ERROR
String getUserName()
null
)String getName()
null
)Repository.UnitOfWork.State getState()
null
)boolean hasChanges() throws KException
true
if the transaction contains operations that change the state of the repositoryKException
- if there is an error determining if there are unsaved changedsboolean isRollbackOnly()
true
if only rollback is allowedvoid rollback()
String getRepositoryUser()
Copyright © 2013–2019. All rights reserved.