java.lang.Object
org.tentackle.dbms.AbstractDbObject<StoredBundlePersistenceImpl>
org.tentackle.persist.AbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>
org.tentackle.i18n.pdo.StoredBundlePersistenceImpl
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<StoredBundlePersistenceImpl>,org.tentackle.dbms.ModificationLoggable,StoredBundlePersistence,org.tentackle.misc.Identifiable,org.tentackle.misc.Immutable,org.tentackle.misc.Modifiable,org.tentackle.misc.SerialNumbered,org.tentackle.misc.Snapshotable<StoredBundle>,org.tentackle.pdo.DomainContextDependable,org.tentackle.pdo.DomainContextProvider,org.tentackle.pdo.PdoMethodCacheProvider<StoredBundle>,org.tentackle.pdo.PdoProvider<StoredBundle>,org.tentackle.pdo.PersistenceDelegate<StoredBundle>,org.tentackle.pdo.PersistentObject<StoredBundle>,org.tentackle.pdo.ProxyDelegate<StoredBundle>,org.tentackle.reflect.EffectiveClassProvider<StoredBundle>,org.tentackle.reflect.Interceptable,org.tentackle.session.SessionDependable,org.tentackle.session.SessionProvider,org.tentackle.validate.ScopeConfigurator,org.tentackle.validate.Validateable
@PersistentObjectService(StoredBundle.class)
public class StoredBundlePersistenceImpl
extends AbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>
implements StoredBundlePersistence
Number Space persistence implementation.
- Author:
- harald
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionVariables common to all instances of StoredBundlePersistenceImpl.static final Stringdatabase column name for 'locale'.static final Stringdatabase column name for 'name'.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_TABLESERIAL -
Constructor Summary
ConstructorsConstructorDescriptionCreates a number space without domain context or session.Creates a number space without domain context or session.StoredBundlePersistenceImpl(StoredBundle pdo, org.tentackle.pdo.DomainContext context) Creates a number space.StoredBundlePersistenceImpl(StoredBundle pdo, org.tentackle.session.Session session) Creates a number space with a session only. -
Method Summary
Modifier and TypeMethodDescriptionintaddComponents(org.tentackle.misc.IdentifiableMap<org.tentackle.pdo.PersistentDomainObject<?>> components, boolean onlyLoaded) protected voidUpdates the components in snapshot object.
The snapshot object is assumed to be a clone of this object.createInsertSql(org.tentackle.sql.Backend backend) createUpdateSql(org.tentackle.sql.Backend backend) voidvoidDeletes all referencing composite relations that have been removed from the PDO.
The database cascades down via referential integrity.voidexpireCache(long maxSerial) org.tentackle.misc.TrackedList<StoredBundle> findByName(String name) Finds all bundles (one for each locale) for a given name.findByNameAndLocale(String name, String locale) Find the bundle by its name and locale.org.tentackle.pdo.PdoCache<StoredBundle> getCache()protected org.tentackle.pdo.PdoCacheIndex<StoredBundle, StoredBundle.StoredBundleUDK> Gets the index for the unique domain key.voidgetFields(org.tentackle.dbms.ResultSetWrapper rs) org.tentackle.misc.TrackedList<StoredBundleKey> getKeys()Gets composite list of StoredBundleKey keys via StoredBundleKey#bundleId (Keys).org.tentackle.misc.TrackedList<StoredBundleKey> Gets keys without performing a select if not loaded.Gets the attribute locale.getName()Gets the attribute name.org.tentackle.i18n.pdo.rmi.StoredBundleRemoteDelegatevoidbooleanbooleanisCountingModification(org.tentackle.dbms.ModificationType modType) booleanReturns whether Keys is loaded.booleanbooleanbooleanbooleanbooleanorg.tentackle.misc.IdentifiableMap<? extends org.tentackle.pdo.PersistentDomainObject<?>> loadComponents(boolean onlyLoaded) voidprotected voidCopies all attributes from a snapshot back to this object.protected voidReverts all components of this object to a given snapshot.voidsaveReferencingRelations(boolean update) selectByUniqueDomainKey(String name, String locale) Selects StoredBundle by its unique domain key.Selects via remote cache, if session is remote.selectCached(long id) Selects via cache by unique domain key.selectCachedOnly(long id) Selects from cache by unique domain key but does not load from db if not in cache.voidsetDomainContext(org.tentackle.pdo.DomainContext context) intsetFields(org.tentackle.dbms.PreparedStatementWrapper st) voidsetImmutable(boolean immutable) voidSets the attribute locale.voidSets the attribute name.voidsetSession(org.tentackle.session.Session session) List<org.tentackle.validate.ValidationResult> Methods inherited from class org.tentackle.persist.AbstractPersistentObject
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, derivePdoFromPo, determineContextId, discardSnapshot, discardSnapshots, executeFirstPdoQuery, executeFirstPdoQuery, executeListQuery, executeListQuery, executeQuery, executeQuery, executeQueryToList, executeQueryToList, executeScrollableQuery, executeScrollableQuery, executeTrackedListQuery, executeTrackedListQuery, findDuplicate, finishModification, finishNotUpdated, getBaseContext, getBatchablePreparedStatement, getCacheAccessCount, getCacheAccessTime, getColumnName, getColumnNames, getColumnNames, getColumnPrefix, getContextId, getContextUserId, getDefaultScopes, getDomainContext, getDomainDelegate, getEagerJoinedSelect, getEagerJoins, getEditedBy, getEditedExpiry, getEditedSince, getEffectiveClass, getEffectiveSuperClasses, getEmbeddingParent, getNormText, getPdo, getPdoClass, getPdoMethodCache, getPersistenceClass, getRootClassId, getRootId, getSecurityResult, getSnapshots, getSqlClassIdCondition, getSqlContextCondition, getTableAlias, getTableName, getTokenLockTimeout, getTopSuperTableAlias, getTopSuperTableName, getTransientData, getValidClassIds, initModification, insertImpl, insertObject, insertPlainWithComponents, isAbstract, isCacheable, isCached, isCopy, isDomainContextImmutable, isEditAllowed, isEmbedded, isExpired, isExplicitIdAliasRequiredInJoins, isModified, isNormTextProvided, isPermissionAccepted, isPersistable, isReferenced, isRenewTokenLockRequested, isRootClassIdProvided, isRootEntityOf, isRootIdProvided, isSnapshot, isTokenLockableByMe, isTokenLocked, isTokenLockedBy, isTokenLockedByMe, isTokenLockProvided, isUpdateNecessary, isUpdatingSerialEvenIfNotModified, isValidated, isViewAllowed, isWriteAllowed, 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, selectAllForCache, selectAllWithExpiredTableSerials, selectByNormText, selectByNormTextAsCursor, selectByTemplate, 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, 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, isDeleted, isEntity, isFinallyImmutable, isForcedModified, isFromThisJVM, isIdValid, isImmutable, isLoggingModification, isNew, isOverloadable, isRemovable, isReplayedLeniently, isSessionImmutable, isStatementAlwaysPrepared, isVirgin, loadLazyReferences, logModification, newInstance, newInstance, newInstance, persistObject, prepareDelete, prepareSave, prepareSetFields, reloadObject, reloadObjectForUpdate, removeAllPropertyListeners, removePropertyListener, removePropertyListener, reserveId, reserveId, resultAllIdSerial, resultAllObjects, resultObjectsWithExpiredTableSerials, revertAttributesToSnapshot, saveObject, saveReferencedRelations, selectAllIdSerial, selectAllObjects, selectExpiredTableSerials, selectExpiredTableSerials, selectMaxId, selectMaxTableSerial, selectNextObject, selectObject, selectObjectForUpdate, selectObjectsWithExpiredTableSerials, selectSerial, setClassId, setFinallyImmutable, setId, 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, setImmutableLoggingLevelMethods 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, getCacheAccessCount, getCacheAccessTime, getClassBaseName, getClassId, getEditedBy, getEditedExpiry, getEditedSince, getEmbeddingParent, getExpiredTableSerials, getId, getModificationCount, getNormText, getRootClassId, getRootId, getSecurityResult, getSerial, getTableName, getTableSerial, getTokenLockTimeout, isAbstract, isCacheable, isCached, isDeleted, isEditAllowed, isEmbedded, isExpired, isNew, isNormTextProvided, isPermissionAccepted, isPersistable, isReferenced, isRemovable, isRootClassIdProvided, isRootEntityOf, isRootIdProvided, isTokenLockableByMe, isTokenLocked, isTokenLockedBy, isTokenLockedByMe, isTokenLockProvided, isValidated, isViewAllowed, isWriteAllowed, markCacheAccess, persist, persistTokenLocked, releaseTokenLock, reload, reloadForUpdate, reloadTokenLocked, requestTokenLock, reserveId, reserveId, save, select, selectAll, selectAllAsCursor, selectAllForCache, selectAllIdSerial, selectAllWithExpiredTableSerials, selectByNormText, selectByNormTextAsCursor, 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, setCopy
-
Field Details
-
CLASSVARIABLES
public static final PersistentObjectClassVariables<StoredBundle,StoredBundlePersistenceImpl> CLASSVARIABLESVariables common to all instances of StoredBundlePersistenceImpl. -
CN_NAME
database column name for 'name'.- See Also:
-
CN_LOCALE
database column name for 'locale'.- See Also:
-
-
Constructor Details
-
StoredBundlePersistenceImpl
Creates a number space.- Parameters:
pdo- the number space PDOcontext- the domain context
-
StoredBundlePersistenceImpl
Creates a number space with a session only.- Parameters:
pdo- the number space PDOsession- the session
-
StoredBundlePersistenceImpl
Creates a number space without domain context or session.- Parameters:
pdo- the number space PDO
-
StoredBundlePersistenceImpl
public StoredBundlePersistenceImpl()Creates a number space without domain context or session.
-
-
Method Details
-
getClassVariables
- Overrides:
getClassVariablesin classAbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>
-
getRemoteDelegate
public org.tentackle.i18n.pdo.rmi.StoredBundleRemoteDelegate getRemoteDelegate()- Overrides:
getRemoteDelegatein classAbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>
-
isRootEntity
public boolean isRootEntity()- Specified by:
isRootEntityin interfaceorg.tentackle.pdo.PersistentObject<StoredBundle>- Overrides:
isRootEntityin classAbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>
-
isTableSerialProvided
public boolean isTableSerialProvided()- Specified by:
isTableSerialProvidedin interfaceorg.tentackle.pdo.PersistentObject<StoredBundle>- Overrides:
isTableSerialProvidedin classorg.tentackle.dbms.AbstractDbObject<StoredBundlePersistenceImpl>
-
isTracked
public boolean isTracked()- Specified by:
isTrackedin interfaceorg.tentackle.pdo.PersistentObject<StoredBundle>- Overrides:
isTrackedin classorg.tentackle.dbms.AbstractDbObject<StoredBundlePersistenceImpl>
-
getFields
public void getFields(org.tentackle.dbms.ResultSetWrapper rs) - Overrides:
getFieldsin classorg.tentackle.dbms.AbstractDbObject<StoredBundlePersistenceImpl>
-
setFields
public int setFields(org.tentackle.dbms.PreparedStatementWrapper st) - Overrides:
setFieldsin classorg.tentackle.dbms.AbstractDbObject<StoredBundlePersistenceImpl>
-
createInsertSql
- Overrides:
createInsertSqlin classorg.tentackle.dbms.AbstractDbObject<StoredBundlePersistenceImpl>
-
createUpdateSql
- Overrides:
createUpdateSqlin classorg.tentackle.dbms.AbstractDbObject<StoredBundlePersistenceImpl>
-
getName
Description copied from interface:StoredBundlePersistenceGets the attribute name.- Specified by:
getNamein interfaceStoredBundlePersistence- Returns:
- the resource bundle name
-
setName
Description copied from interface:StoredBundlePersistenceSets the attribute name.- Specified by:
setNamein interfaceStoredBundlePersistence- Parameters:
name- the resource bundle name
-
getLocale
Description copied from interface:StoredBundlePersistenceGets the attribute locale.- Specified by:
getLocalein interfaceStoredBundlePersistence- Returns:
- the locale, null if default
-
setLocale
Description copied from interface:StoredBundlePersistenceSets the attribute locale.- Specified by:
setLocalein interfaceStoredBundlePersistence- Parameters:
locale- the locale, null if default
-
revertAttributesToSnapshot
Copies all attributes from a snapshot back to this object.- Parameters:
snapshot- the snapshot object
-
selectByUniqueDomainKey
Description copied from interface:StoredBundlePersistenceSelects StoredBundle by its unique domain key.- Specified by:
selectByUniqueDomainKeyin interfaceStoredBundlePersistence- Parameters:
name- the resource bundle namelocale- the locale, null if default- Returns:
- the StoredBundle, null if no such PDO
-
getKeys
Description copied from interface:StoredBundlePersistenceGets composite list of StoredBundleKey keys via StoredBundleKey#bundleId (Keys).- Specified by:
getKeysin interfaceStoredBundlePersistence- Returns:
- keys Keys
-
getKeysBlunt
Gets keys without performing a select if not loaded.- Returns:
- keys Keys
-
isKeysLoaded
public boolean isKeysLoaded()Description copied from interface:StoredBundlePersistenceReturns whether Keys is loaded.- Specified by:
isKeysLoadedin interfaceStoredBundlePersistence- Returns:
- true if getKeys() invoked at least once
-
setSession
public void setSession(org.tentackle.session.Session session) - Specified by:
setSessionin interfaceorg.tentackle.session.SessionDependable- Overrides:
setSessionin classorg.tentackle.dbms.AbstractDbObject<StoredBundlePersistenceImpl>
-
setDomainContext
public void setDomainContext(org.tentackle.pdo.DomainContext context) - Specified by:
setDomainContextin interfaceorg.tentackle.pdo.DomainContextDependable- Overrides:
setDomainContextin classAbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>
-
deleteRemovedReferencingRelations
public void deleteRemovedReferencingRelations()Deletes all referencing composite relations that have been removed from the PDO.
The database cascades down via referential integrity. -
saveReferencingRelations
public void saveReferencingRelations(boolean update) - Overrides:
saveReferencingRelationsin classorg.tentackle.dbms.AbstractDbObject<StoredBundlePersistenceImpl>
-
validate
public List<org.tentackle.validate.ValidationResult> validate(String validationPath, org.tentackle.validate.ValidationScope scope) - Specified by:
validatein interfaceorg.tentackle.validate.Validateable- Overrides:
validatein classAbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>
-
setImmutable
public void setImmutable(boolean immutable) - Specified by:
setImmutablein interfaceorg.tentackle.misc.Immutable- Overrides:
setImmutablein classorg.tentackle.dbms.AbstractDbObject<StoredBundlePersistenceImpl>
-
isModified
public boolean isModified()- Specified by:
isModifiedin interfaceorg.tentackle.misc.Modifiable- Overrides:
isModifiedin classorg.tentackle.dbms.AbstractDbObject<StoredBundlePersistenceImpl>
-
isComposite
public boolean isComposite()- Specified by:
isCompositein interfaceorg.tentackle.pdo.PersistentObject<StoredBundle>- Overrides:
isCompositein classAbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>
-
loadComponents
public org.tentackle.misc.IdentifiableMap<? extends org.tentackle.pdo.PersistentDomainObject<?>> loadComponents(boolean onlyLoaded) - Specified by:
loadComponentsin interfaceorg.tentackle.pdo.PersistentObject<StoredBundle>- Overrides:
loadComponentsin classAbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>
-
addComponents
public int addComponents(org.tentackle.misc.IdentifiableMap<org.tentackle.pdo.PersistentDomainObject<?>> components, boolean onlyLoaded) - Overrides:
addComponentsin classAbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>
-
insertPlainWithComponents
public void insertPlainWithComponents()- Overrides:
insertPlainWithComponentsin classAbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>
-
deletePlainWithComponents
public void deletePlainWithComponents()- Overrides:
deletePlainWithComponentsin classAbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>
-
markDeleted
public void markDeleted()- Overrides:
markDeletedin classorg.tentackle.dbms.AbstractDbObject<StoredBundlePersistenceImpl>
-
createComponentsInSnapshot
Updates the components in snapshot object.
The snapshot object is assumed to be a clone of this object.- Parameters:
snapshot- the snapshot
-
revertComponentsToSnapshot
Reverts all components of this object to a given snapshot.- Parameters:
snapshot- the snapshot object
-
getCache
- Specified by:
getCachein interfaceorg.tentackle.pdo.PersistentObject<StoredBundle>- Overrides:
getCachein classAbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>
-
isCountingModification
public boolean isCountingModification(org.tentackle.dbms.ModificationType modType) - Overrides:
isCountingModificationin classorg.tentackle.dbms.AbstractDbObject<StoredBundlePersistenceImpl>
-
isReadAllowed
public boolean isReadAllowed()- Overrides:
isReadAllowedin classAbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>
-
expireCache
public void expireCache(long maxSerial) - Overrides:
expireCachein classAbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>
-
selectCachedOnly
- Specified by:
selectCachedOnlyin interfaceorg.tentackle.pdo.PersistentObject<StoredBundle>- Overrides:
selectCachedOnlyin classAbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>
-
selectCached
- Specified by:
selectCachedin interfaceorg.tentackle.pdo.PersistentObject<StoredBundle>- Overrides:
selectCachedin classAbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>
-
getCacheIndexUdk
protected org.tentackle.pdo.PdoCacheIndex<StoredBundle,StoredBundle.StoredBundleUDK> getCacheIndexUdk()Gets the index for the unique domain key.- Returns:
- the index for StoredBundle.StoredBundleUDK udk
-
selectCachedOnlyByUniqueDomainKey
Selects from cache by unique domain key but does not load from db if not in cache.- Specified by:
selectCachedOnlyByUniqueDomainKeyin interfaceStoredBundlePersistence- Parameters:
udk- the unique domain key- Returns:
- the pdo, null if not in cache
-
selectCachedByUniqueDomainKey
Selects via cache by unique domain key.- Specified by:
selectCachedByUniqueDomainKeyin interfaceStoredBundlePersistence- Parameters:
udk- the unique key- Returns:
- the pdo, null if no such object
-
selectByUniqueDomainKeyForCache
Selects via remote cache, if session is remote.- Specified by:
selectByUniqueDomainKeyForCachein interfaceStoredBundlePersistence- Parameters:
udk- the unique key- Returns:
- the pdo, null if no such object
-
selectAllCached
- Specified by:
selectAllCachedin interfaceorg.tentackle.pdo.PersistentObject<StoredBundle>- Overrides:
selectAllCachedin classAbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>
-
findByName
Description copied from interface:StoredBundlePersistenceFinds all bundles (one for each locale) for a given name.- Specified by:
findByNamein interfaceStoredBundlePersistence- Parameters:
name- the bundle name- Returns:
- the localized bundles
-
findByNameAndLocale
Description copied from interface:StoredBundlePersistenceFind the bundle by its name and locale.- Specified by:
findByNameAndLocalein interfaceStoredBundlePersistence- Parameters:
name- the bundle namelocale- the locale- Returns:
- the bundle
-