public class BT extends BTBase
ATT_AusgeloestDurchAlarmausloesung, ATT_BPCount, ATT_BPs, ATT_ChangedOnlyBOs, ATT_CreatedBOs, ATT_CustomProperties, ATT_CustomPropertiesAsRelation, ATT_DeletedBOs, ATT_Description, ATT_Node, ATT_NodeBTId, ATT_Remarks, ATT_Time, ATT_User, ATT_VerboseDescription, ATT_VerboseDescriptionHTML, ENT_BT
BLOB_KEY, CANCEL_RECALC_CALLED, D_0, D_1, D_10, D_100, D_1000, D_10000, D_5, D_MINUS_1, D_MINUS_ONE, D_ONE, D_ZERO, doExWriteLRMFunction, EMPTY_ARRAY, F_0, F_1, L_0, L10N_KEY_BO_INSTANTIATION, L10N_KEY_BO_WITH_PROTECTED_CONSTRUCTOR, NULL_AGGREGATE, NULL_ITERATOR
ATT_Badge, ATT_Badge2, ATT_Badge3, ATT_Badge4, ATT_BLOBCreatedBy, ATT_BLOBCreatedOn, ATT_BLOBDeletedBy, ATT_BLOBDeletedOn, ATT_BLOBLastModifiedBy, ATT_BLOBLastModifiedOn, ATT_Bot, ATT_Crea, ATT_CreatedBy, ATT_CreatedModifiedText, ATT_Id, ATT_InvolvedInProcs, ATT_LastModifiedBy, ATT_Ldel, ATT_Lmod, ATT_Procs, ENT_BO
Constructor and Description |
---|
BT() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
dump(boolean html) |
java.lang.String |
dump(boolean html,
int maximumBPsToShow) |
java.lang.Boolean |
getBooleanProperty(EntityI namespaceEntity,
java.lang.String name) |
java.lang.Integer |
getBPCount() |
java.util.Map<java.lang.Long,BO> |
getChangedOnlyBOs() |
java.util.Map<java.lang.Long,BO> |
getCreatedBOs() |
java.util.Map<java.lang.Long,CustomBTProperty> |
getCustomPropertiesAsRelation() |
java.math.BigDecimal |
getDecimalProperty(EntityI namespaceEntity,
java.lang.String name) |
java.util.Map<java.lang.Long,BO> |
getDeletedBOs() |
java.lang.Long |
getHighestBPId() |
java.lang.Long |
getLongProperty(EntityI namespaceEntity,
java.lang.String name) |
java.lang.String |
getStringProperty(EntityI namespaceEntity,
java.lang.String name) |
java.lang.String |
getVerboseDescription() |
java.lang.String |
getVerboseDescriptionHTML() |
boolean |
hasProperty(EntityI namespaceEntity,
java.lang.String name) |
java.lang.Boolean |
isFromUs()
Returns if this
BT resulted on the current or on a different node. |
boolean |
isSync()
Returns true if this
BT resulted from a MyTISM node sync run (as
opposed to an "original" change done e.g. via the GUI or by some other
client). |
BO |
revertBOState(BO bo)
Unplay the changes made in this BT for the given BO.
|
void |
undo(TransactionProviderI tpi,
BOLoaderI bol)
The purpose of this method is to roll back this transaction,
while - if requested - analyzing the BPs that happened after
it and integrating them into the BP list of the "anti-transaction",
so that no changes get "broken" (inspired by method backToTheFuture
in de.ipcon.db.SyncService).
|
void |
undo(TransactionProviderI tpi,
BOLoaderI bol,
boolean applyTimeTravel) |
addBP, copyFrom, copyFrom, equalPayload, getAusgeloestDurchAlarmausloesung, getBPCountNN, getBPCountNN, getBPs, getBPsIterator, getChangedOnlyBOsIterator, getCreatedBOsIterator, getCustomProperties, getCustomPropertiesAsRelationIterator, getCustomPropertiesNE, getCustomPropertiesNN, getCustomPropertiesNN, getDeletedBOsIterator, getDescription, getDescriptionNE, getDescriptionNN, getDescriptionNN, getNode, getNodeBTId, getNodeBTIdNN, getNodeBTIdNN, getNodeNN, getNodeNN, getRemarks, getRemarksNE, getRemarksNN, getRemarksNN, getTime, getUser, getVerboseDescriptionHTMLNE, getVerboseDescriptionHTMLNN, getVerboseDescriptionHTMLNN, getVerboseDescriptionNE, getVerboseDescriptionNN, getVerboseDescriptionNN, needAusgeloestDurchAlarmausloesung, needBPCount, needCustomProperties, needDescription, needNode, needNodeBTId, needPopulatedBPs, needPopulatedChangedOnlyBOs, needPopulatedCreatedBOs, needPopulatedCustomPropertiesAsRelation, needPopulatedDeletedBOs, needRemarks, needTime, needUser, needVerboseDescription, needVerboseDescriptionHTML, pgetBPsLazy, readExternal, removeBP, setAusgeloestDurchAlarmausloesung, setBOLoader, setBPs, setCustomProperties, setDescription, setNode, setNodeBTId, setRemarks, setTime, setUser, slim, slim, writeExternal
_set, $, $, $, $$, $$bo, $$o, $$r, $$ri, $$ri, acquireTxWriteLock, add, afterSaveOnClient, afterSaveOnServer, afterVerifyOnClient, afterVerifyOnServer, aggregate, aggregate, aggregate, badge, badge, beforeVerifyOnClient, beforeVerifyOnServer, bumpVersion, cacheLocally, cacheLocally, cacheLocallyAndThrowUnwrappedCause, cacheLocallyAndThrowUnwrappedCause, cacheLocallyAndThrowUnwrappedUncheckedCause, cacheLocallyAndThrowUnwrappedUncheckedCause, cancelCheckConstraints, cancelRecalc, cancelRecalcViaLoadingTransaction, clone, commitTransaction, computeTransientPropertyIfAbsent, conciseDesc, conciseDesc, conciseDesc, conciseDesc, conciseDesc, conciseDesc, conciseDesc, conciseDesc, consumeAndAssureTransientPropertyExists, copyBLOBFrom, createCopy, createCopy, deepClone, deepClone, delete, describe, describe, describe, describe, describe, describe, describe, describe, describe, describe, describeId, describeId, describeId, describeId, describeId, describeId, describeId, describeId, describeNE, describeNE, describeNE, describeNE, describeNE, destub, equalPayload, equalPayload, equalPayload, equalPayload, equals, equalsBO, equalsBO, equalsRegardingAttrs, exportBLOB, exReadString, exWriteString, filterDeleted, filterDeleted, filterDeleted, forgetTransientBLOBHandle, frap, getAsBOInIssueReports, getAsBOInIssueReportsIterator, getAsString, getBackendBOLoaderWithPersistenceHandler, getBadge, getBadge, getBadge2, getBadge3, getBadge4, getBLOB, getBLOB, getBLOB, getBLOB, getBLOB, getBLOBAsDataInput, getBLOBAsInputStream, getBLOBCreatedBy, getBLOBCreatedOn, getBLOBDeletedBy, getBLOBDeletedOn, getBLOBInfo, getBLOBLastModifiedBy, getBLOBLastModifiedOn, getBOLoader, getBot, getBOVersion, getBytes, getCache, getCache, getCacheNT, getCacheNT, getCacheProvider, getCacheProvider, getClazz, getCreatedBy, getCreatedModifiedText, getDefaultScriptImportsList, getDefaultScriptImportsList, getDefaultScriptImportsList, getDescribingBOWrapper, getDescribingBOWrapper, getEventProvider, getEventProvider, getId, getInvolvedInProcs, getInvolvedInProcsIterator, getLastModifiedBy, getLazyData, getLoadingTransaction, getNullIterator, getOrCreate, getOrCreate, getOrCreate, getOrCreate, getOrCreate, getOrCreate, getOrCreate, getPermissionHandler, getProcs, getProcsIterator, getRootLoaderSchema, getSchema, getSizeFast, getTransaction, getTransientProperty, getTransientProperty, getWrappedTransientProperty, hasActiveTransaction, hasBLOB, hasBLOBOnServerSide, hasBOAssignedTempId, hashCode, hasRelationObjects, hasRelationObjects, hasSessionAssignedTempId, hasTempId, hasTempIdForNewBOs, hasTransientProperty, hasTransientPropertyUnfiltered, includeAllowed, includeInTransaction, invalidateBLOBCache, isBOAssignedTempId, isCompoundChangeInProgress, isCurrentTransactionUnderAdminControl, isIgnoreModificationConstraints, isMandatory, isNew, isReadOnly, isServerSideAndLoadedReadOnly, isSessionAssignedTempId, isStub, isTempId, isTempIdForNewInstance, isTemporary, isVisible, isWriteable, markCompoundChangeInProgress, markDelete, markUndelete, needLoadingTransaction, needsReload, needTransactionInclusion, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, nextTempId, notifyMessageBus, notifyMessageBus, notifyMessageBus, notifyMessageBus, notifyMessageBus, notifyMessageBus, notifyMessageBusOfAdd, notifyMessageBusOfRemove, nullSafeCompareTo, nullSafeCompareTo, nullSafeContainsBO, nullSafeContainsBO, nullSafeEquals, nullSafeEqualsBO, nullSafeEqualsBO, ofStub, propertyMissing, propertyMissing, releaseCompoundChangeInProgress, releaseTxWriteLock, remove, removeBLOB, requireNonEmptyRelation, requireNonNullAttribute, requireNonNullAttributes, requireNonNullAttributes, requireNonNullAttributes, requireNonNullAttributes, requireNonNullAttributes, requireNonNullAttributes, requireNonNullAttributes, setAsString, setBadge, setBadge, setBadge2, setBadge3, setBadge4, setBOLoaderNoCascade, setBOLoaderNoCascade, setBot, setId, setId, setIgnoreModificationConstraints, setLazyData, setTempId, setTransientProperty, setTransientProperty, setTransientProperty, setTransientProperty, setTransientProperty, setTransientProperty, slim, slim, storeBLOB, storeBLOB, storeBLOB, storeBLOB, stub, toMap, toMap, toMap, toMap, toMap, toMap, toMap, toMap, toMap, toMap, toMap, toMap, toRelationMapRO, toRelationMapRO, toRelationMapRO, toRelationMapRO, toRelationMapRO, toRelationMapRO, toRelationMapRO, toRelationMapRO, toString, undelete, verifyOnClient, verifyOnServer, wrapIfGroovy
getCrea, getLdel, getLmod, isDeleted, isLdel, setCrea, setLdel, setLdel, setLmod
getInstanceSpecificLocale, getInstanceSpecificPaths, l10n, l10n, l10n, l10n, l10n, l10n, l10n
contains, getAttribute, getAttribute, getCrea, getEntity, getEntity, isDeleted, isSubEntityOf, isSubEntityOf
collectIds, collectIds, getCommaSeparatedIdList, toMap, toMap
collectDescribe, collectDescribe, conciseDesc, conciseDesc, conciseDesc, conciseDesc, describe, describe, describeAndConciseDesc, describeAndConciseDesc, describeAndConciseDesc, describeAndConciseDesc, describeAndConciseDesc, describeNE, describeNE, join, join, join, notEmptyDescription
public void undo(TransactionProviderI tpi, BOLoaderI bol)
tpi
- the TransactionProviderI to use for building a new
Transaction and saving it.bol
- the BOLoaderI to set in the new TransactionapplyTimeTravel
- a boolean specifying if the BPs that happened
after us shall be analyzed and integrated, keeping the final
state "consistent" with future changes (after us).public void undo(TransactionProviderI tpi, BOLoaderI bol, boolean applyTimeTravel)
public java.lang.Long getHighestBPId()
public java.lang.String dump(boolean html)
public java.lang.String dump(boolean html, int maximumBPsToShow)
public java.lang.String getVerboseDescription()
getVerboseDescription
in class BTBase
public java.lang.String getVerboseDescriptionHTML()
getVerboseDescriptionHTML
in class BTBase
public java.lang.Integer getBPCount()
getBPCount
in class BTBase
public BO revertBOState(BO bo)
bo
- the BO
whose state should be reverted; no error is thrown if the BT
does not actually
has any changes for the BO
, the call is simply a no-op thenBT
re-set to the values
they had before the BT
. Attribute values not modified by this BT
will simply remain at their
valuesjava.lang.NullPointerException
- if bo
is nullpublic java.util.Map<java.lang.Long,BO> getCreatedBOs()
getCreatedBOs
in class BTBase
public java.util.Map<java.lang.Long,BO> getDeletedBOs()
getDeletedBOs
in class BTBase
public java.util.Map<java.lang.Long,BO> getChangedOnlyBOs()
getChangedOnlyBOs
in class BTBase
public java.lang.Boolean isFromUs()
BT
resulted on the current or on a different node.
Note: This method returns Boolean
instead of a primitive
boolean
to be consistent with DBManBOChangeEvent#isFromUs()
which theoretically can return null in very special situations.Boolean.TRUE
if this BT
originated on the current
node; Boolean.FALSE
if it originated on a different node; never
nullpublic boolean isSync()
BT
resulted from a MyTISM node sync run (as
opposed to an "original" change done e.g. via the GUI or by some other
client).BT
was synced from another node; false if it
originated on the current nodepublic boolean hasProperty(EntityI namespaceEntity, java.lang.String name)
public java.lang.String getStringProperty(EntityI namespaceEntity, java.lang.String name)
public java.lang.Long getLongProperty(EntityI namespaceEntity, java.lang.String name)
public java.math.BigDecimal getDecimalProperty(EntityI namespaceEntity, java.lang.String name)
public java.lang.Boolean getBooleanProperty(EntityI namespaceEntity, java.lang.String name)
public java.util.Map<java.lang.Long,CustomBTProperty> getCustomPropertiesAsRelation()
getCustomPropertiesAsRelation
in class BTBase
Copyright © 2000-2024 OAshi S.à r.l. All Rights Reserved.