public class TestTransaction extends Transaction
Transaction.Additional, Transaction.FillBOResult, Transaction.SavepointBOQueryLoaderI.InternalHelperbos, clientSaveLock, description, GET_ORIGNODE_DEFAULT_VALUE, LOG_LEVEL_DEBUG, LOG_LEVEL_DISABLE, LOG_LEVEL_ERROR, LOG_LEVEL_INFO, LOG_LEVEL_WARN, newbos, procs, PROPERTY_SCOPE_COMMIT, PROPERTY_SCOPE_PERSISTENT, PROPERTY_SCOPE_SAVEPOINT, PROPERTY_SCOPE_SERVER, PROPERTY_SCOPE_TRANSACTION, purges, refs, remarks, savePhase, SKIP_CLIENT_VERIFIES_FOR_ADMINS, SKIP_RECALCS_FOR_DATA_REPAIR, SKIP_SERVER_VERIFIES_FOR_ADMINS| Constructor and Description |
|---|
TestTransaction(BOLoaderI _loader) |
TestTransaction(BOLoaderI _loader,
java.lang.String _desc) |
| Modifier and Type | Method and Description |
|---|---|
void |
enterSavePhase() |
BO |
frapFromCache(BO bo)
This method assures that the given BO instance gets this Transaction set as
its BOLoader and also only references other BO instances that are in the
cache of this Transaction (are "known to it", see isKnown()) and have this
Transaction set as their BOLoader too.
|
BOT |
getBOT(java.lang.Class<? extends BOI> clazz) |
BN |
getCurrentBN() |
static TestTransaction |
getInstance(BOLoaderI _loader) |
static TestTransaction |
getInstance(BOLoaderI _loader,
SchemaI _schema) |
static TestTransaction |
getInstance(BOLoaderI _loader,
SchemaI _schema,
java.lang.String _desc) |
static TestTransaction |
getInstance(BOLoaderI _loader,
java.lang.String _desc) |
java.lang.Long |
getNextId()
get a unique Long id from the backend.
|
boolean |
isTesting()
Returns true if this BOLoaderI is for testing only, i.e. used in JUnit testing environments only.
|
void |
setCurrentBN(BN $34) |
long |
simulateSave()
Call this method to simulate saving the included BOs, adding them to the caches and
sets their ID to a nonnegative number larger than sid.
|
long |
simulateSave(boolean doVerify)
Simulates the saving of the included BOs in this transaction, setting their IDs to a nonnegative
number.
|
long |
simulateSave(long sid) |
long |
simulateSave(long sid,
boolean doVerify)
Simulates the saving of the included BOs in this transaction, setting their IDs to a nonnegative
number.
|
long |
simulateSave(long sid,
SimulateSaveVerificationMode verificationMode) |
long |
simulateSave(SimulateSaveVerificationMode verificationMode)
Simulates the saving of the included BOs in this transaction, setting their IDs to a nonnegative
number.
|
acquireReadLock, acquireWriteLock, addFixingProc, addProc, addRemark, allLocalsToString, allProcsToString, allProcsToString, allProcsToString, allProcsToString, allProcsToString, allProcsToString, appendDescription, applyOtherTransactionFromEvent, applyOtherTransactionsSaveSuccess, assertWriteLock, assureBotClass, canonize, canonize, canonize, checkIntegrity, checkpoint, close, closeAndClearLazyData, commit, commitBLOBs, continueWithTempIdsFrom, copyLocalsFrom, copyLocalsFrom, copyLocalsFrom, createOrTouchAdditional, currentSavepointToString, deepClone, deepClone, deepClone, deepClone, deserialize, disableBORecalc, disableClientVerification, disableServerVerification, disconnectBOs, disconnectBOs, drain, dumpCache, dumpProcs, dumpProcs, dumpProcs, dumpProcs, dumpProcs, dumpProcs, dumpProcs, dumpProcs, dumpProcs, dumpProcs, dumpProcs, evaluateVerifyOnServer, evaluateVerifyOnServer, execute, exists, exists, fillBO, fillBO, fillBO, fillBO, fillBO, fillBO, fillBO, filterAdditionals, finalizeSaveProcedure, finishBLOBs, fireAfterSave, flagAsMassChange, flagAsUserChoseToOverrideSaveVetoExceptions, flush, flushLocals, frapBO, frapBOAndHandleNonPersistentAttributes, getAddedValues, getBLOB, getBLOB, getBLOB, getBLOB, getBLOB, getBLOB, getBLOB, getBLOB, getBLOBInfo, getBLOBInfo, getBLOBProcs, getBLOBProcs, getBLOBProcsBOIds, getBLOBProcsBOIds, getBO, getBO, getBO, getBO, getBOByAttr, getBOByAttr, getBOByAttr, getBOByAttr, getBOByAttrs, getBOByAttrs, getBOByAttrs, getBOByAttrs, getBOByStringAttr, getBOByStringAttr, getBOByStringAttr, getBOByStringAttr, getBOByStringAttrs, getBOByStringAttrs, getBOByStringAttrs, getBOByStringAttrs, getBOLoader, getBOs, getBOs, getBOs, getBOs, getBOs, getBOs, getBOsByAttrs, getBOsByAttrs, getBOsByAttrs, getBOsByAttrs, getBOsByAttrs, getBOsByAttrs, getBOsByAttrs, getBOsByAttrs, getBOUncached, getBOUncached, getBOUncached, getBT, getBTId, getCanonizedProcs, getCanonizedProcs, getCanonizedProcs, getCanonizedProcs, getClientSideId, getCryptoHandler, getCurrentUser, getDeletedBOCount, getDeletedBOCount, getDeletedBOIds, getDeletedBOIds, getDeletedBOIds, getDepMaps, getDescription, getDumper, getEventProvider, getFeatureManager, getFileVault, getFinalScope, getHumanReadablePropertyScope, getIncludedBOCount, getIncludedBOIds, getIncludedBOIds, getIncludedBOIds, getIncludedBOs, getIncludedBOsFiltered, getIncludedBOsFiltered, getIncludedBOsFiltered, getInstance, getInstance, getKnown, getKnown, getKnownBOs, getKnownBOs, getKnownBOs, getLatestSavepoint, getLocalLastModifiedBOs, getLogLevel, getLogPrefixForProgress, getMessageBus, getMiniDesc, getNewBOCount, getNewBOs, getNewValue, getOldValue, getOrigBTId, getOrigin, getOrigNode, getOrigNodeNN, getOrigTime, getOrigUser, getParentLoader, getPersistenceHandlerInSavePhase, getPersistentBooleanProperty, getPersistentDecimalProperty, getPersistentLongProperty, getPersistentPropertyKey, getPersistentStringProperty, getProcCount, getProcs, getProcs, getProcs, getProperty, getProvider, getPurgedBOCount, getPurgedBOCount, getRelationBOs, getRemarks, getRemovedValues, getRootLoader, getRootPaneToLockOnConnectionInterrupt, getSavepoints, getSavesCount, getSavesCountNN, getSchema, getSummary, getTemporaryIdSupplier, hasBLOB, hasBLOB, hasBLOBProcs, hasNewBOs, hasPersistentProperty, hasProcs, hasProperty, hasPurges, hasSavepoint, hasSavepoints, haveBLOB, include, include, includeCopy, includeCopy, includeCopy, includeCopy, includeCopy, includeCopy, includeCopy, includeCopy, includeCopy, includeCopy, includeCopy, incorporateDiffOfConflictingBO, increaseSavesCount, initProcCache, initRemarks, isActive, isAlwaysReloadOnFrap, isAnyAttributeChangedExcept, isAnyAttributeChangedExcept, isAnyAttributeChangedExcept, isAnyAttributeChangedExcept, isAnyAttributeChangedExcept, isAnyAttributeChangedExcept, isAttributeChanged, isAttributeChanged, isAttributeChanged, isAttributeInitialized, isAttributeNulled, isBOOrAnyToOneReachableBOInvolved, isBORecalcsDisabled, isCaching, isClientVerificationDisabled, isClosed, isClosing, isCreated, isDeletedOrNotInvolved, isDiffingMode, isExplicitActive, isForORMScript, isIgnoreBotCoherency, isIncluded, isInhibitDefaults, isInitEnvironmentMode, isInOTRMode, isInstance, isInvolved, isKnown, isKnown, isLocked, isLoggedIn, isLoggedInNN, isMassChange, isNotPersistentParm, isOnAuthoritativeSyncServer, isOneOfAttributesChanged, isOneOfAttributesChanged, isOneOfAttributesChanged, isPropertyFinal, isPurged, isRecording, isRecordNonPersistent, isRepairMode, isScopeCommit, isScopePersistent, isScopeSavepoint, isScopeServer, isScopeTransaction, isScopeValid, isServerVerificationDisabled, isSkipClientVerifiesForAdmins, isSkipServerVerifiesForAdmins, isSyncMode, isUnderAdminControl, isUnderBackendControl, isUnderServiceControl, isUnderSystemUserControl, isUndo, isUndoWithoutTimeTravel, isUndoWithTimeTravel, isUserChoseToOverrideSaveVetoExceptions, killNewProcsRunner, logDebug, logError, logInfo, logWarn, markForORMScript, markForSkipClientVerifiesForAdmins, markForSkipServerVerifiesForAdmins, mergeIn, mergeIn, mergeIn, newBOsToString, newBOsToString, newBOsToString, playReverse, precommitBLOBs, prepareFillBO, prepareFillBO, prepareFillBO, prepareFillBO, prepareFillBO, prepareFillBO, prepareFillBO, prepareQuery, prepareQuery, prependBTs, procsToString, procsToString, procsToString, procsToString, procsToString, procsToString, procsToString, procsToString, procsToString, procsToString, procsToString, procsToString, procsToString, procsToString, procsToString, procsToString, procsToString, procsToString, query, query, query, queryBO, queryBO, queryBO, queryBO, queryBO, queryRelation, readBOInstance, readInstance, readInstance, readInstance, readProcInstance, recalcOfBOsShouldBeCanceled, recordAdd, recordAdd, recordPurge, recordRemove, recordSet, refBO, refBO, refBO, refBO, refBO, refParm, refParm, refParm, refParm, refParm, reFrapAfterSave, rehashCache, releaseReadLock, releaseWriteLock, removeBLOB, replay, replay, replayInStoreFinish, replayInStoreLog, replayInStorePrepare, replayInStoreWithoutLog, resetReversedMode, restoreBLOBHandlesFrom, rollback, rollbackBLOBs, rollbackLatestSavepoint, savepoint, savepoint, savepointBelongsHere, serialize, serverLocalTransactionStoreFinish, serverLocalTransactionStorePrepare, setAlwaysReloadOnFrap, setBOLoader, setBTId, setCurrentUser, setDescription, setDiffingMode, setExplicitActive, setIgnoreBotCoherency, setInhibitDefaults, setInitEnvironmentMode, setLocalLastModifiedBOs, setLogLevel, setOrigBTId, setOrigin, setOrigNode, setOrigTime, setOrigUser, setPersistentBooleanProperty, setPersistentDecimalProperty, setPersistentLongProperty, setPersistentStringProperty, setProperty, setProperty, setProvider, setRecordNonPersistent, setRepairMode, setRootPaneToLockOnConnectionInterrupt, setSavesCount, setSyncMode, setTemporaryIdSupplier, storeBLOB, stubClone, stubClone, testAuth, testAuth, toString, toString, tryAcquireReadLock, upgradeLocks, wasBLOBChanged, wasBLOBCreated, wasBLOBDeleted, wasDeleted, weHaveReadLock, writeBOInstance, writeInstanceToServer, writeInstanceWithoutBLOBTransfer, writeProcInstanceequals, getClass, hashCode, notify, notifyAll, wait, wait, waitfrapBOArrayFromCache, frapBOIArrayFromCache, frapBOsFromCache, frapFromCache, isAncestorOf, isRootLoader, isServerSide, prepareQueryhaveBLOB, haveBLOBgetOneBOByAttr, getUniqueBOByAttrprocsToStringpublic TestTransaction(BOLoaderI _loader)
public TestTransaction(BOLoaderI _loader, java.lang.String _desc)
public static TestTransaction getInstance(BOLoaderI _loader)
public static TestTransaction getInstance(BOLoaderI _loader, java.lang.String _desc)
public static TestTransaction getInstance(BOLoaderI _loader, SchemaI _schema)
public static TestTransaction getInstance(BOLoaderI _loader, SchemaI _schema, java.lang.String _desc)
public boolean isTesting()
BOLoaderIpublic BO frapFromCache(BO bo)
TransactionfrapFromCache in interface BOLoaderIfrapFromCache in class Transactionbo - the BO that should be frapped.public BOT getBOT(java.lang.Class<? extends BOI> clazz)
getBOT in interface BOLoaderIgetBOT in class Transactionpublic java.lang.Long getNextId()
BOLoaderIgetNextId in interface BOLoaderIgetNextId in class Transactionpublic void enterSavePhase()
enterSavePhase in class Transactionpublic long simulateSave(boolean doVerify)
simulateSave in class TransactiondoVerify - if true, calls the different verify-methods when saving.public long simulateSave(long sid,
boolean doVerify)
simulateSave in class Transactionsid - the simulated Id that was used the latestdoVerify - if true, calls the different verify-methods when saving.public long simulateSave(SimulateSaveVerificationMode verificationMode)
verificationMode - enum constant that specifies which verification methods should be executedpublic long simulateSave()
simulateSave in class Transactionsid - replaces the id of newbos with a consecutive number larger than this value (minimum 0)doVerify - if true, calls the different verify-methodspublic long simulateSave(long sid)
simulateSave in class Transactionpublic long simulateSave(long sid,
SimulateSaveVerificationMode verificationMode)
public BN getCurrentBN()
public void setCurrentBN(BN $34)
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.