public class TestTransactionV2 extends TestTransaction
Transaction.Additional, Transaction.Canonification, Transaction.FillBOResult, Transaction.Savepoint
BOQueryLoaderI.InternalHelper
bos, 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, refs, remarks, savePhase, SKIP_CLIENT_VERIFIES_FOR_ADMINS, 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 certain BO Constraints Checks, such as 'readOnly':
Or, to put it the other way around: If de-activated, e.g. the readOnly() method will be skipped, causing the
tests' behaviour to deviate from the 'real-life' logic.
|
void |
deactivateBOConstraintChecks()
Deactivates certain BO Constraints Checks, such as 'readOnly':
Or, to put it the other way around: If de-activated, e.g. the readOnly() method will be skipped, causing the
tests' behaviour to deviate from the 'real-life' logic.
|
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, simulateSave
acquireReadLock, acquireWriteLock, addFixingProc, addProc, addRemark, allLocalsToString, allProcsToString, allProcsToString, allProcsToString, allProcsToString, allProcsToString, appendDescription, applyOtherTransactionsSaveSuccess, assertWriteLock, assureBotClass, canonize, checkIntegrity, checkpoint, close, closeAndClearLazyData, commit, commitBLOBs, continueWithTempIdsFrom, copyLocalsFrom, copyLocalsFrom, copyLocalsFrom, createNewObjects, createOrTouchAdditional, currentSavepointToString, deepClone, deepClone, deepClone, deepClone, deepCloneDeserialize, deepCloneDeserialize, deepCloneDeserialize, deepCloneDeserialize, deepCloneSerialize, deserialize, 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, 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, getRelationBOs, getRemarks, getRootLoader, getRootPaneToLockOnConnectionInterrupt, getSavepoints, getSavesCount, getSavesCountNN, getSchema, getSummary, getTemporaryIdSupplier, hasBLOB, hasBLOB, hasBLOBProcs, hasNewBOs, hasPersistentProperty, hasProcs, hasProperty, 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, isCaching, isClosed, isClosing, isCreated, isDeletedOrNotInvolved, isDiffingMode, isExplicitActive, isForORMScript, isIgnoreBotCoherency, isIncluded, isInhibitDefaults, isInitEnvironmentMode, isInOTRMode, isInstance, isInvolved, isKnown, isKnown, isLocked, isLoggedIn, isLoggedInNN, isMassChange, isNotPersistentParm, isOneOfAttributesChanged, isOneOfAttributesChanged, isOneOfAttributesChanged, isPropertyFinal, isRecording, isRecordNonPersistent, isRepairMode, isScopeCommit, isScopePersistent, isScopeSavepoint, isScopeServer, isScopeTransaction, isScopeValid, 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, query, query, query, queryBO, queryBO, queryBO, queryBO, queryBO, queryRelation, readBOInstance, readInstance, readInstance, readInstance, readProcInstance, recalcOfBOsShouldBeCanceled, recordAdd, recordAdd, 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, writeProcInstance
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
frapBOArrayFromCache, frapBOIArrayFromCache, frapBOsFromCache, frapFromCache, isRootLoader, isServerSide, prepareQuery
haveBLOB, haveBLOB
getOneBOByAttr, getUniqueBOByAttr
public 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()
BOLoaderI
getNextId
in interface BOLoaderI
getNextId
in class TestTransaction
public long simulateSave()
TestTransaction
simulateSave
in class TestTransaction
public long simulateSave(long sid)
simulateSave
in class TestTransaction
public long simulateSave(long sid, SimulateSaveVerificationMode verificationMode)
simulateSave
in class TestTransaction
public void activateBOConstraintChecks()
Activates certain BO Constraints Checks, such as 'readOnly': Or, to put it the other way around: If de-activated, e.g. the readOnly() method will be skipped, causing the tests' behaviour to deviate from the 'real-life' logic.
This method is just a wrapper that sets the initEnvironmentMode-flag on the passed transaction to false.
FIXME ib 2023-12-21 The initEnvironmentMode-flag is already used for other things, too - e.g. using a L10nResourceBundle cache during initialization - Its use can also be extended at any time, so beware of any unwanted side-effects. However, the "old" TestBOLoader version 1 sets "InitEnvironmentMode" to true permanently for its only Transaction.
public void deactivateBOConstraintChecks()
Deactivates certain BO Constraints Checks, such as 'readOnly': Or, to put it the other way around: If de-activated, e.g. the readOnly() method will be skipped, causing the tests' behaviour to deviate from the 'real-life' logic. However, temporarily de-activating the constraint checks can be helpful during test data setup (e.g. allows setting read-only attributes within tx.includeNew etc.).
This method is just a wrapper that sets the initEnvironmentMode-flag on the passed transaction.
FIXME ib 2023-12-21 The initEnvironmentMode-flag is already used for other things, too - e.g. using a L10nResourceBundle cache during initialization - Its use can also be extended at any time, so beware of any unwanted side-effects. However, the "old" TestBOLoader version 1 sets "InitEnvironmentMode" to true permanently for its only Transaction.
Copyright © 2000-2024 OAshi S.à r.l. All Rights Reserved.