public class TestTransactionV2 extends TestTransaction
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 |
|---|
TestTransactionV2(TestBOLoaderV2 loader) |
TestTransactionV2(TestBOLoaderV2 loader,
java.lang.String desc) |
| Modifier and Type | Method and Description |
|---|---|
void |
activateBOConstraintChecks()
Activates Business Object (BO) constraint checks within this test transaction.
|
void |
deactivateBOConstraintChecks()
Deactivates Business Object (BO) constraint checks within this test transaction.
|
static TestTransactionV2 |
getInstance(TestBOLoaderV2 loader) |
static TestTransactionV2 |
getInstance(TestBOLoaderV2 loader,
SchemaI schema) |
static TestTransactionV2 |
getInstance(TestBOLoaderV2 loader,
SchemaI schema,
java.lang.String desc) |
static TestTransactionV2 |
getInstance(TestBOLoaderV2 loader,
java.lang.String desc) |
java.lang.Long |
getNextId()
get a unique Long id from the backend.
|
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(long sid) |
long |
simulateSave(long sid,
SimulateSaveVerificationMode verificationMode) |
enterSavePhase, frapFromCache, getBOT, getCurrentBN, getInstance, getInstance, getInstance, getInstance, isTesting, setCurrentBN, simulateSave, simulateSave, simulateSaveacquireReadLock, 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 TestTransactionV2(TestBOLoaderV2 loader)
public TestTransactionV2(TestBOLoaderV2 loader, java.lang.String desc)
public static TestTransactionV2 getInstance(TestBOLoaderV2 loader)
public static TestTransactionV2 getInstance(TestBOLoaderV2 loader, java.lang.String desc)
public static TestTransactionV2 getInstance(TestBOLoaderV2 loader, SchemaI schema)
public static TestTransactionV2 getInstance(TestBOLoaderV2 loader, SchemaI schema, java.lang.String desc)
public java.lang.Long getNextId()
BOLoaderIgetNextId in interface BOLoaderIgetNextId in class TestTransactionpublic long simulateSave()
TestTransactionsimulateSave in class TestTransactionpublic long simulateSave(long sid)
simulateSave in class TestTransactionpublic long simulateSave(long sid,
SimulateSaveVerificationMode verificationMode)
simulateSave in class TestTransactionpublic void activateBOConstraintChecks()
By default, certain BO constraint checks, such as "readOnly", are deactivated in test environments. This method activates these checks, ensuring that the behavior during tests aligns with the actual logic in a production environment.
Internally, this method sets the "initEnvironmentMode" flag to false for this test transaction.
Note: The "initEnvironmentMode" flag is also used for other purposes, such as caching L10n resource bundles during initialization. Be aware of potential side effects when modifying this flag.
public void deactivateBOConstraintChecks()
This method deactivates certain BO constraint checks, such as "readOnly", which can be useful during test data setup (e.g., to allow setting read-only attributes). However, it's important to be aware that this can cause the test behavior to deviate from the actual logic in a production environment.
Internally, this method sets the "initEnvironmentMode" flag to true for this test transaction.
Note: The "initEnvironmentMode" flag is also used for other purposes, such as caching L10n resource bundles during initialization. Be aware of potential side effects when modifying this flag.
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.