Class StoredBundleKeyPersistenceImpl
java.lang.Object
org.tentackle.dbms.AbstractDbObject<StoredBundleKeyPersistenceImpl>
org.tentackle.persist.AbstractPersistentObject<StoredBundleKey, StoredBundleKeyPersistenceImpl>
org.tentackle.i18n.pdo.StoredBundleKeyPersistenceImpl
- All Implemented Interfaces:
Serializable, Cloneable, Comparable<StoredBundleKeyPersistenceImpl>, ModificationLoggable, StoredBundleKeyPersistence, Identifiable, Immutable, Modifiable, SerialNumbered, Snapshotable<StoredBundleKey>, DomainContextDependable, DomainContextProvider, PdoMethodCacheProvider<StoredBundleKey>, PdoProvider<StoredBundleKey>, PersistenceDelegate<StoredBundleKey>, PersistentObject<StoredBundleKey>, ProxyDelegate<StoredBundleKey>, EffectiveClassProvider<StoredBundleKey>, Interceptable, SessionDependable, SessionProvider, ScopeConfigurator, Validateable
@PersistentObjectService(StoredBundleKey.class)
public class StoredBundleKeyPersistenceImpl
extends AbstractPersistentObject<StoredBundleKey, StoredBundleKeyPersistenceImpl>
implements StoredBundleKeyPersistence
Number Space persistence implementation.
- Author:
- harald
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionVariables common to all instances of StoredBundleKeyPersistenceImpl.static final Stringdatabase column name for 'bundleId'.static final Stringdatabase column name for 'key'.static final Stringdatabase column name for 'value'.Fields inherited from class AbstractPersistentObject
AN_EDITEDBY, AN_EDITEDEXPIRY, AN_EDITEDSINCE, AN_NORMTEXT, AN_ROOTCLASSID, AN_ROOTID, CN_EDITEDBY, CN_EDITEDEXPIRY, CN_EDITEDSINCE, CN_NORMTEXT, CN_ROOTCLASSID, CN_ROOTID, TX_DELETE_ALL_IN_CONTEXT, TX_SAVE_COPY_IN_CONTEXT, TX_SELECT_TOKENLOCKED, TX_TRANSFER_TOKENLOCK, TX_UPDATE_TOKENLOCK, TX_UPDATE_TOKENLOCK_ONLYFields inherited from class AbstractDbObject
AN_CLASSID, AN_ID, AN_SERIAL, AN_TABLESERIAL, CN_CLASSID, CN_ID, CN_SERIAL, CN_TABLESERIAL, TX_DELETE_LIST, TX_DELETE_MISSING_IN_LIST, TX_DELETE_OBJECT, TX_DUMMY_UPDATE, TX_INSERT_OBJECT, TX_INSERT_PLAIN, TX_SAVE, TX_SAVE_LIST, TX_SYNC, TX_UPDATE_OBJECT, TX_UPDATE_PLAIN, TX_UPDATE_SERIAL, TX_UPDATE_SERIAL_AND_TABLESERIAL, TX_UPDATE_TABLESERIALFields inherited from interface StoredBundleKeyPersistence
AN_BUNDLEID, AN_KEY, AN_VALUE, RN_BUNDLE -
Constructor Summary
ConstructorsConstructorDescriptionCreates a number space without domain context or session.Creates a number space without domain context or session.StoredBundleKeyPersistenceImpl(StoredBundleKey pdo, DomainContext context) Creates a number space.StoredBundleKeyPersistenceImpl(StoredBundleKey pdo, Session session) Creates a number space with a session only. -
Method Summary
Modifier and TypeMethodDescriptioncreateInsertSql(Backend backend) Creates the SQL code for the insert statement.createUpdateSql(Backend backend) Creates the SQL code for the update statement.Gets the StoredBundle bundle via bundleId.Gets the relation bundle without performing a database query if not loaded.longGets the attribute 'bundleId'.Gets the application-oriented class variables for this object.
Class variables for classes derived from AbstractPersistentObject are kept in an instance ofPersistentObjectClassVariables.voidRetrieves the values of all fields.getKey()Gets the attribute 'key'.Gets the delegate for remote connections.
Each class has its own delegate.intGets the class ID of the root entity this component belongs to.longGets the ID of the root entity this component belongs to.getValue()Gets the attribute 'value'.booleanChecks if the modifications of this object are tracked.
By default,AbstractDbObjectsare not> tracked!protected voidCopies all attributes from a snapshot back to this object.selectByBundleId(long bundleId) Selects the component list of StoredBundleKey keys via StoredBundleKey#bundleId.voidsetBundle(StoredBundle bundle) Sets the StoredBundle bundle via bundleId.voidsetBundleBlunt(StoredBundle bundle) Sets the relation bundle without updating any further attributes.voidsetDomainContext(DomainContext context) Sets this object's database application context.intSets the values of all fields (all columns of the database table) in the givenPreparedStatementWrapperfrom the object's attributes.voidSets the attribute 'key'.voidsetSession(Session session) Sets the session for this object.voidSets the attribute 'value'.Methods inherited from class AbstractPersistentObject
addComponents, addComponents, addReferencingClass, addReferencingClass, addSnapshot, applyTokenLockInfo, assertDomainContextMutable, assertEmbedded, assertMutable, assertNormTextProvided, assertNotAbstract, assertNotCached, assertPersistable, assertReadPermission, assertRootContext, assertRootContextIsAccepted, assertRootEntity, assertTokenLockProvided, assertValidSnapshot, assertWritePermission, clearTokenLock, clone, configureEmbeddedColumns, configureRemoteObject, configureRemoteObjects, containsPattern, copy, countModification, createAttributesNormText, createComponentsInSnapshot, createDummyUpdateSql, createPropertySupport, createQuery, createQuery, createRelationsNormText, createSelectAllByIdInnerSql, createSelectAllIdSerialInnerSql, createSelectAllInnerSql, createSelectAllSql, createSelectAllWithExpiredTableSerialsSql, createSelectAllWithExpiredTableSerialsSql2, createSelectAnySql, createSelectByNormTextSql, createSelectExpiredTableSerials1Sql, createSelectExpiredTableSerials2Sql, createSelectIdInnerSql, createSelectIdInnerSql, createSelectIdInnerSql, createSelectMaxIdSql, createSelectMaxTableSerialSql, createSelectSerialSql, createSelectTokenLockSql, createSnapshot, createStatementKey, createTransferTokenLockSql, createUpdateSerialAndTableSerialSql, createUpdateSerialSql, createUpdateTokenLockOnlySql, createUpdateTokenLockSql, createValidContext, delete, delete, delete, deleteImpl, deleteImpl, deleteMissingInCollection, deleteObject, deletePlainWithComponents, deletePlainWithComponents, derivePdoFromPo, determineContextId, discardSnapshot, discardSnapshots, executeFirstPdoQuery, executeFirstPdoQuery, executeListQuery, executeListQuery, executeQuery, executeQuery, executeQueryToList, executeQueryToList, executeScrollableQuery, executeScrollableQuery, executeTrackedListQuery, executeTrackedListQuery, expireCache, findDuplicate, finishModification, finishNotUpdated, getBaseContext, getBatchablePreparedStatement, getCache, getCacheAccessCount, getCacheAccessTime, getColumnName, getColumnNames, getColumnNames, getColumnPrefix, getContextId, getContextUserId, getDefaultScopes, getDomainContext, getDomainDelegate, getEagerJoinedSelect, getEagerJoins, getEditedBy, getEditedExpiry, getEditedSince, getEffectiveClass, getEffectiveSuperClasses, getEmbeddingParent, getNormText, getPdo, getPdoClass, getPdoMethodCache, getPersistenceClass, getSecurityResult, getSnapshots, getSqlClassIdCondition, getSqlContextCondition, getTableAlias, getTableName, getTokenLockTimeout, getTopSuperTableAlias, getTopSuperTableName, getTransientData, getValidClassIds, initModification, insertImpl, insertObject, insertPlainWithComponents, insertPlainWithComponents, isAbstract, isCacheable, isCached, isComposite, isCopy, isDomainContextImmutable, isEditAllowed, isEmbedded, isExpired, isExplicitIdAliasRequiredInJoins, isModified, isNormTextProvided, isPermissionAccepted, isPersistable, isReadAllowed, isReferenced, isRenewTokenLockRequested, isRootClassIdProvided, isRootEntity, isRootEntityOf, isRootIdProvided, isSnapshot, isTokenLockableByMe, isTokenLocked, isTokenLockedBy, isTokenLockedByMe, isTokenLockProvided, isUpdateNecessary, isUpdatingSerialEvenIfNotModified, isValidated, isViewAllowed, isWriteAllowed, loadComponents, markCacheAccess, markDeleted, markDeleted, me, newId, orderBy, persist, persistImpl, persistTokenLocked, presetVirgin, readFromResultSetWrapper, readJoinedRow, releaseTokenLock, reload, reload, reloadForUpdate, reloadTokenLocked, removeReferencingClass, removeReferencingClass, requestTokenLock, resultAll, resultAllCursor, resultAllWithExpiredTableSerials, resultAllWithExpiredTableSerials, resultAny, resultByNormText, resultByNormTextCursor, revertAttributesToSnapshot, revertComponentsToSnapshot, revertToSnapshot, save, save, save, saveImpl, select, select, selectAll, selectAllAsCursor, selectAllCached, selectAllForCache, selectAllWithExpiredTableSerials, selectAllWithExpiredTableSerials, selectAny, selectAnyCached, selectAnyForCache, selectByNormText, selectByNormTextAsCursor, selectByTemplate, selectCached, selectCachedOnly, selectForCache, selectForUpdate, selectLatest, selectTokenLocked, setCopy, setDomainContextImmutable, setEditedBy, setEditedExpiry, setEditedSince, setEmbeddedFields, setEmbeddingPersistentObject, setExpired, setModified, setNormText, setPdo, setPersistable, setRenewTokenLockRequested, setRootClassId, setRootId, setTransientData, toGenericString, transferTokenLock, updateImpl, updateNormText, updateObject, updateRootContext, updateTokenLock, updateTokenLock, updateTokenLockOnly, validate, validateMethods inherited from class AbstractDbObject
acceptPersistenceVisitor, addPropertyListener, addPropertyListener, alignComponents, applyDbObjectResult, assertNew, assertNotNew, assertNotOverloaded, assertNotRemote, assertNumberOfRowsAffected, assertRemote, assertThisRowAffected, attributesModified, clearFromThisJVM, clearOnRemoteSave, compareTo, createDeleteAllSql, createDeleteSql, createPreparedStatement, createPreparedStatement, createSelectObjectsWithExpiredTableSerialsSql, createSelectSql, createSqlUpdate, createUpdateAndSetSerialSql, deletePlain, deleteReferencedRelations, deleteReferencingRelations, differsPersisted, dummyUpdate, equals, firePropertyChange, getBackend, getClassBaseName, getClassId, getColumnCount, getExpiredTableSerials, getId, getIdSource, getImmutableLoggingLevel, getModificationCount, getPreparedStatement, getPreparedStatement, getPropertySupport, getSerial, getSession, getSessionHolder, getTableSerial, hashCode, insertPlain, isCountingModification, isDeleted, isEntity, isFinallyImmutable, isForcedModified, isFromThisJVM, isIdValid, isImmutable, isLoggingModification, isModified, isNew, isOverloadable, isRemovable, isReplayedLeniently, isSessionImmutable, isStatementAlwaysPrepared, isTableSerialProvided, isVirgin, loadLazyReferences, logModification, markDeleted, newInstance, newInstance, newInstance, persistObject, prepareDelete, prepareSave, prepareSetFields, reloadObject, reloadObjectForUpdate, removeAllPropertyListeners, removePropertyListener, removePropertyListener, reserveId, reserveId, resultAllIdSerial, resultAllObjects, resultObjectsWithExpiredTableSerials, revertAttributesToSnapshot, saveObject, saveReferencedRelations, saveReferencingRelations, selectAllIdSerial, selectAllObjects, selectExpiredTableSerials, selectExpiredTableSerials, selectMaxId, selectMaxTableSerial, selectNextObject, selectObject, selectObjectForUpdate, selectObjectsWithExpiredTableSerials, selectSerial, setClassId, setFinallyImmutable, setId, setImmutable, setImmutableLoggingLevel, setOverloadable, setSerial, setSessionHolder, setSessionImmutable, setStatementAlwaysPrepared, setTableSerial, toIdString, toString, unmarkDeleted, updatePlain, updateSerial, updateSerial, updateSerialAndTableSerialMethods inherited from interface DomainContextDependable
createValidContext, determineContextId, getBaseContext, getContextId, isDomainContextImmutable, setDomainContextImmutableMethods inherited from interface DomainContextProvider
getDomainContext, isWithinContext, isWithinContext, on, on, op, opMethods inherited from interface Identifiable
toGenericStringMethods inherited from interface Immutable
getImmutableLoggingLevel, isFinallyImmutable, isImmutable, setFinallyImmutable, setImmutable, setImmutableLoggingLevelMethods inherited from interface Modifiable
isModifiedMethods inherited from interface ModificationLoggable
createModificationLogMethods inherited from interface PdoProvider
getPdo, on, onMethods inherited from interface PersistenceDelegate
getDomainDelegateMethods inherited from interface PersistentObject
attributesModified, containsPattern, delete, differsPersisted, findDuplicate, getCache, getCacheAccessCount, getCacheAccessTime, getClassBaseName, getClassId, getEditedBy, getEditedExpiry, getEditedSince, getEmbeddingParent, getExpiredTableSerials, getId, getModificationCount, getNormText, getSecurityResult, getSerial, getTableName, getTableSerial, getTokenLockTimeout, isAbstract, isCacheable, isCached, isComposite, isDeleted, isEditAllowed, isEmbedded, isExpired, isNew, isNormTextProvided, isPermissionAccepted, isPersistable, isReferenced, isRemovable, isRootClassIdProvided, isRootEntity, isRootEntityOf, isRootIdProvided, isTableSerialProvided, isTokenLockableByMe, isTokenLocked, isTokenLockedBy, isTokenLockedByMe, isTokenLockProvided, isValidated, isViewAllowed, isWriteAllowed, loadComponents, markCacheAccess, persist, persistTokenLocked, releaseTokenLock, reload, reloadForUpdate, reloadTokenLocked, requestTokenLock, reserveId, reserveId, save, select, selectAll, selectAllAsCursor, selectAllCached, selectAllForCache, selectAllIdSerial, selectAllWithExpiredTableSerials, selectAllWithExpiredTableSerials, selectAny, selectAnyCached, selectAnyForCache, selectByNormText, selectByNormTextAsCursor, selectCached, selectCachedOnly, selectExpiredTableSerials, selectExpiredTableSerials, selectForCache, selectForUpdate, selectLatest, selectMaxId, selectMaxTableSerial, selectSerial, selectTokenLocked, setExpired, toIdString, transferTokenLock, validateMethods inherited from interface ProxyDelegate
meMethods inherited from interface ScopeConfigurator
getDefaultScopesMethods inherited from interface SerialNumbered
isVirginMethods inherited from interface SessionDependable
isSessionImmutable, setSessionImmutableMethods inherited from interface SessionProvider
getSessionMethods inherited from interface Snapshotable
copy, createSnapshot, discardSnapshot, discardSnapshots, getSnapshots, isCopy, isSnapshot, revertToSnapshot, setCopyMethods inherited from interface Validateable
validate
-
Field Details
-
CLASSVARIABLES
public static final PersistentObjectClassVariables<StoredBundleKey, StoredBundleKeyPersistenceImpl> CLASSVARIABLESVariables common to all instances of StoredBundleKeyPersistenceImpl. -
CN_BUNDLEID
-
CN_KEY
-
CN_VALUE
-
-
Constructor Details
-
StoredBundleKeyPersistenceImpl
Creates a number space.- Parameters:
pdo- the number space PDOcontext- the domain context
-
StoredBundleKeyPersistenceImpl
Creates a number space with a session only.- Parameters:
pdo- the number space PDOsession- the session
-
StoredBundleKeyPersistenceImpl
Creates a number space without domain context or session.- Parameters:
pdo- the number space PDO
-
StoredBundleKeyPersistenceImpl
public StoredBundleKeyPersistenceImpl()Creates a number space without domain context or session.
-
-
Method Details
-
getClassVariables
public PersistentObjectClassVariables<StoredBundleKey, StoredBundleKeyPersistenceImpl> getClassVariables()Description copied from class:AbstractPersistentObjectGets the application-oriented class variables for this object.
Class variables for classes derived from AbstractPersistentObject are kept in an instance ofPersistentObjectClassVariables.- Overrides:
getClassVariablesin classAbstractPersistentObject<StoredBundleKey, StoredBundleKeyPersistenceImpl>- Returns:
- the class variables
- See Also:
-
getRemoteDelegate
Description copied from class:AbstractPersistentObjectGets the delegate for remote connections.
Each class has its own delegate.Overridden due to covariance.
- Overrides:
getRemoteDelegatein classAbstractPersistentObject<StoredBundleKey, StoredBundleKeyPersistenceImpl>- Returns:
- the delegate for this object
-
getRootId
public long getRootId()Description copied from interface:PersistentObjectGets the ID of the root entity this component belongs to.- Specified by:
getRootIdin interfacePersistentObject<StoredBundleKey>- Overrides:
getRootIdin classAbstractPersistentObject<StoredBundleKey, StoredBundleKeyPersistenceImpl>- Returns:
- the root id
-
getRootClassId
public int getRootClassId()Description copied from interface:PersistentObjectGets the class ID of the root entity this component belongs to.- Specified by:
getRootClassIdin interfacePersistentObject<StoredBundleKey>- Overrides:
getRootClassIdin classAbstractPersistentObject<StoredBundleKey, StoredBundleKeyPersistenceImpl>- Returns:
- the root class id
-
isTracked
public boolean isTracked()Description copied from class:AbstractDbObjectChecks if the modifications of this object are tracked.
By default,AbstractDbObjectsare not> tracked! This is a quality measure to ensure thatAbstractDbObject.isModified()returns false if and only if it hasn't been modified, i.e., the setters check for modification. See the wurblet DbMethods.- Specified by:
isTrackedin interfacePersistentObject<StoredBundleKey>- Overrides:
isTrackedin classAbstractDbObject<StoredBundleKeyPersistenceImpl>- Returns:
- true if tracked, false otherwise (default)
-
getFields
Description copied from class:AbstractDbObjectRetrieves the values of all fields.- Overrides:
getFieldsin classAbstractDbObject<StoredBundleKeyPersistenceImpl>- Parameters:
rs- the result set
-
setFields
Description copied from class:AbstractDbObjectSets the values of all fields (all columns of the database table) in the givenPreparedStatementWrapperfrom the object's attributes.- Overrides:
setFieldsin classAbstractDbObject<StoredBundleKeyPersistenceImpl>- Parameters:
st- the statement- Returns:
- the number of fields set
-
createInsertSql
Description copied from class:AbstractDbObjectCreates the SQL code for the insert statement.- Overrides:
createInsertSqlin classAbstractDbObject<StoredBundleKeyPersistenceImpl>- Parameters:
backend- the backend- Returns:
- the SQL code
-
createUpdateSql
Description copied from class:AbstractDbObjectCreates the SQL code for the update statement.- Overrides:
createUpdateSqlin classAbstractDbObject<StoredBundleKeyPersistenceImpl>- Parameters:
backend- the backend- Returns:
- the SQL code
-
getBundleId
public long getBundleId()Description copied from interface:StoredBundleKeyPersistenceGets the attribute 'bundleId'.- Specified by:
getBundleIdin interfaceStoredBundleKeyPersistence- Returns:
- the bundle id
-
getKey
Description copied from interface:StoredBundleKeyPersistenceGets the attribute 'key'.- Specified by:
getKeyin interfaceStoredBundleKeyPersistence- Returns:
- the resource bundle key
-
setKey
Description copied from interface:StoredBundleKeyPersistenceSets the attribute 'key'.- Specified by:
setKeyin interfaceStoredBundleKeyPersistence- Parameters:
key- the resource bundle key
-
getValue
Description copied from interface:StoredBundleKeyPersistenceGets the attribute 'value'.- Specified by:
getValuein interfaceStoredBundleKeyPersistence- Returns:
- the localized string
-
setValue
Description copied from interface:StoredBundleKeyPersistenceSets the attribute 'value'.- Specified by:
setValuein interfaceStoredBundleKeyPersistence- Parameters:
value- the localized string
-
revertAttributesToSnapshot
Copies all attributes from a snapshot back to this object.- Parameters:
snapshot- the snapshot object
-
getBundle
Description copied from interface:StoredBundleKeyPersistenceGets the StoredBundle bundle via bundleId.- Specified by:
getBundlein interfaceStoredBundleKeyPersistence- Returns:
- the bundle
-
getBundleBlunt
Gets the relation bundle without performing a database query if not loaded.- Returns:
- the bundle
-
setBundle
Description copied from interface:StoredBundleKeyPersistenceSets the StoredBundle bundle via bundleId.- Specified by:
setBundlein interfaceStoredBundleKeyPersistence- Parameters:
bundle- the bundle
-
setBundleBlunt
Sets the relation bundle without updating any further attributes.- Parameters:
bundle- the bundle
-
setSession
Description copied from class:AbstractDbObjectSets the session for this object.- Specified by:
setSessionin interfaceSessionDependable- Overrides:
setSessionin classAbstractDbObject<StoredBundleKeyPersistenceImpl>- Parameters:
session- the session
-
setDomainContext
Description copied from class:AbstractPersistentObjectSets this object's database application context.Setting the context will also set the session and context id.
- Specified by:
setDomainContextin interfaceDomainContextDependable- Overrides:
setDomainContextin classAbstractPersistentObject<StoredBundleKey, StoredBundleKeyPersistenceImpl>- Parameters:
context- the domain context
-
selectByBundleId
Description copied from interface:StoredBundleKeyPersistenceSelects the component list of StoredBundleKey keys via StoredBundleKey#bundleId.- Specified by:
selectByBundleIdin interfaceStoredBundleKeyPersistence- Parameters:
bundleId- the bundle id- Returns:
- the keys
-