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>,org.tentackle.dbms.ModificationLoggable,StoredBundleKeyPersistence,org.tentackle.misc.Identifiable,org.tentackle.misc.Immutable,org.tentackle.misc.Modifiable,org.tentackle.misc.SerialNumbered,org.tentackle.misc.Snapshotable<StoredBundleKey>,org.tentackle.pdo.DomainContextDependable,org.tentackle.pdo.DomainContextProvider,org.tentackle.pdo.PdoMethodCacheProvider<StoredBundleKey>,org.tentackle.pdo.PdoProvider<StoredBundleKey>,org.tentackle.pdo.PersistenceDelegate<StoredBundleKey>,org.tentackle.pdo.PersistentObject<StoredBundleKey>,org.tentackle.pdo.ProxyDelegate<StoredBundleKey>,org.tentackle.reflect.EffectiveClassProvider<StoredBundleKey>,org.tentackle.reflect.Interceptable,org.tentackle.session.SessionDependable,org.tentackle.session.SessionProvider,org.tentackle.validate.ScopeConfigurator,org.tentackle.validate.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 org.tentackle.persist.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_TRANSFER_TOKENLOCK, TX_UPDATE_TOKENLOCK, TX_UPDATE_TOKENLOCK_ONLYFields inherited from class org.tentackle.dbms.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 org.tentackle.i18n.pdo.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, org.tentackle.pdo.DomainContext context) Creates a number space.StoredBundleKeyPersistenceImpl(StoredBundleKey pdo, org.tentackle.session.Session session) Creates a number space with a session only. -
Method Summary
Modifier and TypeMethodDescriptioncreateInsertSql(org.tentackle.sql.Backend backend) createUpdateSql(org.tentackle.sql.Backend backend) Gets StoredBundle bundle via bundleId (Bundle).Gets bundle without performing a select if not loaded.longGets the attribute bundleId.voidgetFields(org.tentackle.dbms.ResultSetWrapper rs) getKey()Gets the attribute key.org.tentackle.i18n.pdo.rmi.StoredBundleKeyRemoteDelegateintlonggetValue()Gets the attribute value.booleanprotected voidCopies all attributes from a snapshot back to this object.org.tentackle.misc.TrackedList<StoredBundleKey> selectByBundleId(long bundleId) Selects composite list of StoredBundleKey keys via StoredBundleKey#bundleId (Keys).voidsetBundle(StoredBundle bundle) Sets StoredBundle bundle via bundleId (Bundle).voidsetBundleBlunt(StoredBundle bundle) Sets bundle without setting any attributes.voidsetDomainContext(org.tentackle.pdo.DomainContext context) intsetFields(org.tentackle.dbms.PreparedStatementWrapper st) voidSets the attribute key.voidsetSession(org.tentackle.session.Session session) voidSets the attribute value.Methods inherited from class org.tentackle.persist.AbstractPersistentObject
addComponents, addComponents, 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, createSelectByNormTextSql, createSelectExpiredTableSerials1Sql, createSelectExpiredTableSerials2Sql, createSelectIdInnerSql, createSelectIdInnerSql, createSelectIdInnerSql, createSelectMaxIdSql, createSelectMaxTableSerialSql, createSelectSerialSql, createSelectTokenLockSql, createSnapshot, createStatementKey, createTransferTokenLockSql, createTransferTokenLockWithTableSerialSql, createUpdateSerialAndTableSerialSql, createUpdateSerialSql, createUpdateTokenLockOnlySql, createUpdateTokenLockSql, createUpdateTokenLockWithCountSql, 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, requestTokenLock, resultAll, resultAllCursor, resultAllWithExpiredTableSerials, resultByNormText, resultByNormTextCursor, revertAttributesToSnapshot, revertComponentsToSnapshot, revertToSnapshot, save, save, save, saveImpl, select, select, selectAll, selectAllAsCursor, selectAllCached, selectAllForCache, selectAllWithExpiredTableSerials, 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 org.tentackle.dbms.AbstractDbObject
acceptPersistenceVisitor, addPropertyListener, addPropertyListener, alignComponents, applyDbObjectResult, assertNew, assertNotNew, assertNotOverloaded, assertNotRemote, assertNumberOfRowsAffected, assertRemote, assertThisRowAffected, attributesModified, clearOnRemoteSave, compareTo, createDeleteAllSql, createDeleteSql, createPreparedStatement, createPreparedStatement, createSelectObjectsWithExpiredTableSerialsSql, createSelectSql, createSqlUpdate, createUpdateAndSetSerialSql, deletePlain, deleteReferencedRelations, deleteReferencingRelations, differsPersisted, dummyUpdate, equals, firePropertyChange, getBackend, getClassBaseName, getClassId, getColumnCount, getExpirationBacklog, 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 class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.tentackle.pdo.DomainContextDependable
createValidContext, determineContextId, getBaseContext, getContextId, isDomainContextImmutable, setDomainContextImmutableMethods inherited from interface org.tentackle.pdo.DomainContextProvider
getDomainContext, on, on, op, opMethods inherited from interface org.tentackle.misc.Identifiable
toGenericStringMethods inherited from interface org.tentackle.misc.Immutable
getImmutableLoggingLevel, isFinallyImmutable, isImmutable, setFinallyImmutable, setImmutable, setImmutableLoggingLevelMethods inherited from interface org.tentackle.misc.Modifiable
isModifiedMethods inherited from interface org.tentackle.dbms.ModificationLoggable
createModificationLogMethods inherited from interface org.tentackle.pdo.PdoProvider
getPdo, on, onMethods inherited from interface org.tentackle.pdo.PersistenceDelegate
getDomainDelegateMethods inherited from interface org.tentackle.pdo.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, selectByNormText, selectByNormTextAsCursor, selectCached, selectCachedOnly, selectExpiredTableSerials, selectExpiredTableSerials, selectForCache, selectForUpdate, selectLatest, selectMaxId, selectMaxTableSerial, selectSerial, selectTokenLocked, setExpired, toIdString, transferTokenLock, validateMethods inherited from interface org.tentackle.pdo.ProxyDelegate
meMethods inherited from interface org.tentackle.validate.ScopeConfigurator
getDefaultScopesMethods inherited from interface org.tentackle.misc.SerialNumbered
isVirginMethods inherited from interface org.tentackle.session.SessionDependable
isSessionImmutable, setSessionImmutableMethods inherited from interface org.tentackle.session.SessionProvider
getSessionMethods inherited from interface org.tentackle.misc.Snapshotable
copy, createSnapshot, discardSnapshot, discardSnapshots, getSnapshots, isCopy, isSnapshot, revertToSnapshot, setCopyMethods inherited from interface org.tentackle.validate.Validateable
validate
-
Field Details
-
CLASSVARIABLES
public static final PersistentObjectClassVariables<StoredBundleKey,StoredBundleKeyPersistenceImpl> CLASSVARIABLESVariables common to all instances of StoredBundleKeyPersistenceImpl. -
CN_BUNDLEID
database column name for 'bundleId'.- See Also:
-
CN_KEY
database column name for 'key'.- See Also:
-
CN_VALUE
database column name for 'value'.- See Also:
-
-
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()- Overrides:
getClassVariablesin classAbstractPersistentObject<StoredBundleKey,StoredBundleKeyPersistenceImpl>
-
getRemoteDelegate
public org.tentackle.i18n.pdo.rmi.StoredBundleKeyRemoteDelegate getRemoteDelegate()- Overrides:
getRemoteDelegatein classAbstractPersistentObject<StoredBundleKey,StoredBundleKeyPersistenceImpl>
-
getRootId
public long getRootId()- Specified by:
getRootIdin interfaceorg.tentackle.pdo.PersistentObject<StoredBundleKey>- Overrides:
getRootIdin classAbstractPersistentObject<StoredBundleKey,StoredBundleKeyPersistenceImpl>
-
getRootClassId
public int getRootClassId()- Specified by:
getRootClassIdin interfaceorg.tentackle.pdo.PersistentObject<StoredBundleKey>- Overrides:
getRootClassIdin classAbstractPersistentObject<StoredBundleKey,StoredBundleKeyPersistenceImpl>
-
isTracked
public boolean isTracked()- Specified by:
isTrackedin interfaceorg.tentackle.pdo.PersistentObject<StoredBundleKey>- Overrides:
isTrackedin classorg.tentackle.dbms.AbstractDbObject<StoredBundleKeyPersistenceImpl>
-
getFields
public void getFields(org.tentackle.dbms.ResultSetWrapper rs) - Overrides:
getFieldsin classorg.tentackle.dbms.AbstractDbObject<StoredBundleKeyPersistenceImpl>
-
setFields
public int setFields(org.tentackle.dbms.PreparedStatementWrapper st) - Overrides:
setFieldsin classorg.tentackle.dbms.AbstractDbObject<StoredBundleKeyPersistenceImpl>
-
createInsertSql
- Overrides:
createInsertSqlin classorg.tentackle.dbms.AbstractDbObject<StoredBundleKeyPersistenceImpl>
-
createUpdateSql
- Overrides:
createUpdateSqlin classorg.tentackle.dbms.AbstractDbObject<StoredBundleKeyPersistenceImpl>
-
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 StoredBundle bundle via bundleId (Bundle).- Specified by:
getBundlein interfaceStoredBundleKeyPersistence- Returns:
- bundle Bundle
-
getBundleBlunt
Gets bundle without performing a select if not loaded.- Returns:
- bundle Bundle
-
setBundle
Description copied from interface:StoredBundleKeyPersistenceSets StoredBundle bundle via bundleId (Bundle).- Specified by:
setBundlein interfaceStoredBundleKeyPersistence- Parameters:
bundle- Bundle
-
setBundleBlunt
Sets bundle without setting any attributes.- Parameters:
bundle- Bundle
-
setSession
public void setSession(org.tentackle.session.Session session) - Specified by:
setSessionin interfaceorg.tentackle.session.SessionDependable- Overrides:
setSessionin classorg.tentackle.dbms.AbstractDbObject<StoredBundleKeyPersistenceImpl>
-
setDomainContext
public void setDomainContext(org.tentackle.pdo.DomainContext context) - Specified by:
setDomainContextin interfaceorg.tentackle.pdo.DomainContextDependable- Overrides:
setDomainContextin classAbstractPersistentObject<StoredBundleKey,StoredBundleKeyPersistenceImpl>
-
selectByBundleId
Description copied from interface:StoredBundleKeyPersistenceSelects composite list of StoredBundleKey keys via StoredBundleKey#bundleId (Keys).- Specified by:
selectByBundleIdin interfaceStoredBundleKeyPersistence- Parameters:
bundleId- the bundle id- Returns:
- Keys
-