Package com.storedobject.core
Class TransactionControl
java.lang.Object
com.storedobject.common.HTMLText
com.storedobject.common.ErrorText
com.storedobject.core.TransactionControl
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.storedobject.common.StyledBuilder
StyledBuilder.Style -
Field Summary
Fields inherited from class com.storedobject.common.HTMLText
ALLOW_TOP_LEVEL, valueFields inherited from interface com.storedobject.common.StyledBuilder
EMPTY_STRINGS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddLink(StoredObject parent, Id linkId) booleanaddLink(StoredObject parent, Id linkId, int linkType) booleanaddLink(StoredObject parent, StoredObject link) booleanaddLink(StoredObject parent, StoredObject link, int linkType) voidaddListener(TransactionControl.CommitListener listener) clear()Clear the content.booleancommit()booleandelete(StoredObject object) User the currently active transaction or a new transaction if none exists.booleanisActive()See if this Transaction Control is active or not.booleanisError()final booleanisPseudo()booleanremoveAllLinks(StoredObject parent, Class<? extends StoredObject> linkClass) booleanremoveAllLinks(StoredObject parent, Class<? extends StoredObject> linkClass, int linkType) booleanremoveLink(StoredObject parent, Id linkId) booleanremoveLink(StoredObject parent, Id linkId, int linkType) booleanremoveLink(StoredObject parent, StoredObject link) booleanremoveLink(StoredObject parent, StoredObject link, int linkType) voidvoidrollback()voidvoidbooleansave(StoredObject object) voidvoidsetTransaction(Transaction transaction) User the currently active transaction.Methods inherited from class com.storedobject.common.ErrorText
generateError, getError, getErrorObject, setErrorObject, throwErrorMethods inherited from class com.storedobject.common.HTMLText
append, append, append, append, appendHTML, clearContent, drawLine, encode, getText, isAllowTopLevelHTML, isEmpty, isNewLine, newLine, newLine, setAllowTopLevelHTML, setText, space, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.storedobject.common.StyledBuilder
setValue, setValue, setValue, update
-
Constructor Details
-
TransactionControl
-
TransactionControl
-
-
Method Details
-
isPseudo
public final boolean isPseudo() -
addListener
-
removeListener
-
getManager
-
useTransaction
User the currently active transaction. No new transaction will be created if none exists.- Returns:
- Currently active transaction or null.
-
setTransaction
-
getTransaction
User the currently active transaction or a new transaction if none exists.- Returns:
- Currently active transaction or a newly created one.
-
isError
-
setError
-
rollback
-
rollback
-
rollback
public void rollback() -
commit
public boolean commit() -
isActive
public boolean isActive()See if this Transaction Control is active or not.- Returns:
- True if active. False if already committed, rolled back or no transaction in progress.
-
clear
Description copied from class:HTMLTextClear the content. -
save
-
addLink
-
addLink
-
addLink
-
addLink
-
removeLink
-
removeLink
-
removeLink
-
removeAllLinks
-
removeAllLinks
public boolean removeAllLinks(StoredObject parent, Class<? extends StoredObject> linkClass, int linkType) -
removeLink
-
delete
-