- java.lang.Object
-
- org.tentackle.dbms.AbstractDbObject<P>
-
- org.tentackle.persist.AbstractPersistentObject<StoredBundleKey,StoredBundleKeyPersistenceImpl>
-
- org.tentackle.i18n.pdo.StoredBundleKeyPersistenceImpl
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.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.PdoHolder<StoredBundleKey>,org.tentackle.pdo.PdoMethodCacheProvider<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 org.tentackle.persist.AbstractPersistentObject<StoredBundleKey,StoredBundleKeyPersistenceImpl> implements StoredBundleKeyPersistence
Number Space persistence implementation.- Author:
- harald
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static org.tentackle.persist.PersistentObjectClassVariables<StoredBundleKey,StoredBundleKeyPersistenceImpl>CLASSVARIABLESVariables common to all instances of StoredBundleKeyPersistenceImpl.static java.lang.StringCN_BUNDLEIDdatabase column name for 'bundleId'.static java.lang.StringCN_KEYdatabase column name for 'key'.static java.lang.StringCN_VALUEdatabase 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_ONLY
-
Fields 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_TABLESERIAL
-
Fields inherited from interface org.tentackle.i18n.pdo.StoredBundleKeyPersistence
AN_BUNDLEID, AN_KEY, AN_VALUE, RN_BUNDLE
-
-
Constructor Summary
Constructors Constructor Description StoredBundleKeyPersistenceImpl()Creates a number space without domain context or session.StoredBundleKeyPersistenceImpl(StoredBundleKey pdo)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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringcreateInsertSql()java.lang.StringcreateUpdateSql()StoredBundlegetBundle()Gets StoredBundle bundle via bundleId (Bundle).StoredBundlegetBundleBlunt()Gets bundle without performing a select if not loaded.longgetBundleId()Gets the attribute bundleId.org.tentackle.persist.PersistentObjectClassVariables<StoredBundleKey,StoredBundleKeyPersistenceImpl>getClassVariables()voidgetFields(org.tentackle.dbms.ResultSetWrapper rs)java.lang.StringgetKey()Gets the attribute key.org.tentackle.i18n.pdo.rmi.StoredBundleKeyRemoteDelegategetRemoteDelegate()intgetRootClassId()longgetRootId()java.lang.StringgetValue()Gets the attribute value.booleanisTracked()protected voidrevertAttributesToSnapshot(StoredBundleKeyPersistenceImpl snapshot)Copies 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)voidsetKey(java.lang.String key)Sets the attribute key.voidsetSession(org.tentackle.session.Session session)voidsetValue(java.lang.String value)Sets the attribute value.-
Methods inherited from class org.tentackle.persist.AbstractPersistentObject
addComponents, addComponents, addReferencingClass, addSnapshot, assertDomainContextMutable, assertMutable, assertNormTextProvided, assertNotAbstract, assertNotCached, assertPersistable, assertReadPermission, assertRootContext, assertRootContextIsAccepted, assertRootEntity, assertTokenLockProvided, assertValidSnapshot, assertWritePermission, clearTokenLock, clone, configureRemoteObject, configureRemoteObjects, containsPattern, copy, countModification, createAttributesInSnapshot, createAttributesNormText, createComponentsInSnapshot, createDummyUpdateSql, createPropertySupport, createRelationsNormText, createSelectAllByIdInnerSql, createSelectAllIdSerialInnerSql, createSelectAllInnerSql, createSelectAllSql, createSelectAllWithExpiredTableSerialsSql, createSelectByNormTextSql, createSelectExpiredTableSerials1Sql, createSelectExpiredTableSerials2Sql, createSelectIdInnerSql, createSelectIdInnerSql, createSelectIdInnerSql, createSelectMaxIdSql, createSelectMaxTableSerialSql, createSelectSerialSql, createSelectTokenLockSql, createSnapshot, createTransferTokenLockSql, createTransferTokenLockWithTableSerialSql, createUpdateSerialAndTableSerialSql, createUpdateSerialSql, createUpdateTokenLockOnlySql, createUpdateTokenLockSql, createUpdateTokenLockWithCountSql, createValidContext, delete, delete, delete, deleteImpl, deleteMissingInCollection, deleteObject, deletePlainWithComponents, deletePlainWithComponents, derivePdoFromPo, determineContextId, discardSnapshot, discardSnapshots, executeFirstPdoQuery, executeFirstPdoQuery, executeListQuery, executeListQuery, executeQueryToList, executeQueryToList, executeTrackedListQuery, executeTrackedListQuery, expireCache, findDuplicate, finishModification, finishNotUpdated, getBaseContext, getCache, getCacheAccessCount, getCacheAccessTime, getColumnName, getContextId, getContextUserId, getDefaultScopes, getDomainContext, getDomainDelegate, getEagerJoinedSelect, getEagerJoins, getEditedBy, getEditedExpiry, getEditedSince, getEffectiveClass, getEffectiveSuperClasses, getNormText, getPdo, getPdoClass, getPdoMethodCache, getPersistenceClass, getSecurityResult, getSnapshots, getSqlClassIdCondition, getSqlContextCondition, getTableAlias, getTableName, getTokenLockObject, getTokenLockTimeout, getTopSuperTableAlias, getTopSuperTableName, getTransientData, getValidClassId, initModification, insertObject, insertPlainWithComponents, insertPlainWithComponents, isAbstract, isCacheable, isCached, isClassIdRequiredInWhereClause, isComposite, isCopy, isCountingModificationForTokenLock, isDomainContextImmutable, isEditAllowed, 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, readFromResultSetWrapper, readJoinedRow, releaseTokenLock, reload, reloadForUpdate, 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, setClassIdsInStatement, setCopy, setDomainContextImmutable, setEditedBy, setEditedExpiry, setEditedSince, setExpired, setModified, setNormText, setPdo, setPersistable, setRenewTokenLockRequested, setRootClassId, setRootId, setTokenLockObject, setTransientData, transferTokenLock, updateNormText, updateObject, updateRootContext, updateTokenLock, updateTokenLock, updateTokenLockOnly, validate, validate
-
Methods inherited from class org.tentackle.dbms.AbstractDbObject
acceptPersistenceVisitor, addPropertyChangeListener, addPropertyListener, alignComponents, assertNotNew, assertNotOverloaded, assertNotRemote, assertNumberOfRowsAffected, assertRemote, assertThisRowAffected, attributesModified, beginTx, clearOnRemoteSave, compareTo, createAttributesInSnapshot, createDeleteAllSql, createDeleteSql, createPreparedStatement, createPreparedStatement, createSelectObjectsWithExpiredTableSerialsSql, createSelectSql, createSqlUpdate, createUpdateAndSetSerialSql, deleteImpl, deletePlain, deleteReferencedRelations, deleteReferencingRelations, differsPersisted, dummyUpdate, equals, firePropertyChange, getBackend, getClassBaseName, getClassId, getColumnCount, getExpirationBacklog, getExpiredTableSerials, getId, getIdSource, getImmutableLoggingLevel, getModificationCount, getModificationLog, getPreparedStatement, getPreparedStatement, getSerial, getSession, getSessionHolder, getTableSerial, hashCode, insertImpl, insertPlain, isCountingModification, isDeleted, isEntity, isFinallyImmutable, isForcedModified, isFromThisJVM, isIdValid, isImmutable, isLoggingModification, isModified, isNew, isOverloadable, isRemovable, isSessionImmutable, isStatementAlwaysPrepared, isTableSerialProvided, isVirgin, loadLazyReferences, logModification, markDeleted, newInstance, newInstance, newInstance, persistObject, prepareDelete, prepareSave, prepareSetFields, reloadLockedObject, reloadObject, removeAllPropertyChangeListeners, removePropertyChangeListener, removePropertyListener, reserveId, resultAllIdSerial, resultAllObjects, resultObjectsWithExpiredTableSerials, revertAttributesToSnapshot, saveObject, saveReferencedRelations, saveReferencingRelations, selectAllIdSerial, selectAllObjects, selectExpiredTableSerials, selectExpiredTableSerials, selectMaxId, selectMaxTableSerial, selectNextObject, selectObject, selectObjectForUpdate, selectObjectsWithExpiredTableSerials, selectSerial, setClassId, setFinallyImmutable, setId, setImmutable, setImmutableLoggingLevel, setModificationLog, setOverloadable, setSerial, setSessionHolder, setSessionImmutable, setStatementAlwaysPrepared, setTableSerial, toGenericString, toIdString, toString, unmarkDeleted, updateImpl, updatePlain, updateSerial, updateSerial, updateSerialAndTableSerial
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.tentackle.pdo.DomainContextDependable
createValidContext, determineContextId, getBaseContext, getContextId, isDomainContextImmutable, setDomainContextImmutable
-
Methods inherited from interface org.tentackle.misc.Immutable
getImmutableLoggingLevel, isFinallyImmutable, isImmutable, setFinallyImmutable, setImmutable, setImmutableLoggingLevel
-
Methods inherited from interface org.tentackle.pdo.PersistentObject
attributesModified, containsPattern, delete, differsPersisted, findDuplicate, getCache, getCacheAccessCount, getCacheAccessTime, getClassBaseName, getClassId, getEditedBy, getEditedExpiry, getEditedSince, getExpiredTableSerials, getId, getModificationCount, getNormText, getSecurityResult, getSerial, getTableName, getTableSerial, getTokenLockObject, getTokenLockTimeout, getTransientData, isAbstract, isCacheable, isCached, isComposite, isDeleted, isEditAllowed, 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, requestTokenLock, reserveId, save, select, selectAll, selectAllAsCursor, selectAllCached, selectAllForCache, selectAllIdSerial, selectAllWithExpiredTableSerials, selectByNormText, selectByNormTextAsCursor, selectCached, selectCachedOnly, selectExpiredTableSerials, selectExpiredTableSerials, selectForCache, selectForUpdate, selectMaxId, selectMaxTableSerial, selectSerial, setEditedBy, setEditedExpiry, setEditedSince, setExpired, setId, setModified, setNormText, setRootClassId, setRootId, setSerial, setTableSerial, setTokenLockObject, setTransientData, toIdString, transferTokenLock, validate
-
Methods inherited from interface org.tentackle.session.SessionDependable
isSessionImmutable, setSessionImmutable
-
-
-
-
Field Detail
-
CLASSVARIABLES
public static final org.tentackle.persist.PersistentObjectClassVariables<StoredBundleKey,StoredBundleKeyPersistenceImpl> CLASSVARIABLES
Variables common to all instances of StoredBundleKeyPersistenceImpl.
-
CN_BUNDLEID
public static final java.lang.String CN_BUNDLEID
database column name for 'bundleId'.- See Also:
- Constant Field Values
-
CN_KEY
public static final java.lang.String CN_KEY
database column name for 'key'.- See Also:
- Constant Field Values
-
CN_VALUE
public static final java.lang.String CN_VALUE
database column name for 'value'.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StoredBundleKeyPersistenceImpl
public StoredBundleKeyPersistenceImpl(StoredBundleKey pdo, org.tentackle.pdo.DomainContext context)
Creates a number space.- Parameters:
pdo- the number space PDOcontext- the domain context
-
StoredBundleKeyPersistenceImpl
public StoredBundleKeyPersistenceImpl(StoredBundleKey pdo, org.tentackle.session.Session session)
Creates a number space with a session only.- Parameters:
pdo- the number space PDOsession- the session
-
StoredBundleKeyPersistenceImpl
public StoredBundleKeyPersistenceImpl(StoredBundleKey pdo)
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 Detail
-
getClassVariables
public org.tentackle.persist.PersistentObjectClassVariables<StoredBundleKey,StoredBundleKeyPersistenceImpl> getClassVariables()
- Overrides:
getClassVariablesin classorg.tentackle.persist.AbstractPersistentObject<StoredBundleKey,StoredBundleKeyPersistenceImpl>
-
getRemoteDelegate
public org.tentackle.i18n.pdo.rmi.StoredBundleKeyRemoteDelegate getRemoteDelegate()
- Overrides:
getRemoteDelegatein classorg.tentackle.persist.AbstractPersistentObject<StoredBundleKey,StoredBundleKeyPersistenceImpl>
-
getRootId
public long getRootId()
- Specified by:
getRootIdin interfaceorg.tentackle.pdo.PersistentObject<StoredBundleKey>- Overrides:
getRootIdin classorg.tentackle.persist.AbstractPersistentObject<StoredBundleKey,StoredBundleKeyPersistenceImpl>
-
getRootClassId
public int getRootClassId()
- Specified by:
getRootClassIdin interfaceorg.tentackle.pdo.PersistentObject<StoredBundleKey>- Overrides:
getRootClassIdin classorg.tentackle.persist.AbstractPersistentObject<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
public java.lang.String createInsertSql()
- Overrides:
createInsertSqlin classorg.tentackle.dbms.AbstractDbObject<StoredBundleKeyPersistenceImpl>
-
createUpdateSql
public java.lang.String 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
public java.lang.String getKey()
Description copied from interface:StoredBundleKeyPersistenceGets the attribute key.- Specified by:
getKeyin interfaceStoredBundleKeyPersistence- Returns:
- the resource bundle key
-
setKey
public void setKey(java.lang.String key)
Description copied from interface:StoredBundleKeyPersistenceSets the attribute key.- Specified by:
setKeyin interfaceStoredBundleKeyPersistence- Parameters:
key- the resource bundle key
-
getValue
public java.lang.String getValue()
Description copied from interface:StoredBundleKeyPersistenceGets the attribute value.- Specified by:
getValuein interfaceStoredBundleKeyPersistence- Returns:
- the localized string
-
setValue
public void setValue(java.lang.String value)
Description copied from interface:StoredBundleKeyPersistenceSets the attribute value.- Specified by:
setValuein interfaceStoredBundleKeyPersistence- Parameters:
value- the localized string
-
revertAttributesToSnapshot
protected void revertAttributesToSnapshot(StoredBundleKeyPersistenceImpl snapshot)
Copies all attributes from a snapshot back to this object.- Parameters:
snapshot- the snapshot object
-
getBundle
public StoredBundle getBundle()
Description copied from interface:StoredBundleKeyPersistenceGets StoredBundle bundle via bundleId (Bundle).- Specified by:
getBundlein interfaceStoredBundleKeyPersistence- Returns:
- bundle Bundle
-
getBundleBlunt
public StoredBundle getBundleBlunt()
Gets bundle without performing a select if not loaded.- Returns:
- bundle Bundle
-
setBundle
public void setBundle(StoredBundle bundle)
Description copied from interface:StoredBundleKeyPersistenceSets StoredBundle bundle via bundleId (Bundle).- Specified by:
setBundlein interfaceStoredBundleKeyPersistence- Parameters:
bundle- Bundle
-
setBundleBlunt
public void setBundleBlunt(StoredBundle bundle)
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 classorg.tentackle.persist.AbstractPersistentObject<StoredBundleKey,StoredBundleKeyPersistenceImpl>
-
selectByBundleId
public org.tentackle.misc.TrackedList<StoredBundleKey> selectByBundleId(long bundleId)
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
-
-