- java.lang.Object
-
- org.tentackle.dbms.AbstractDbObject<P>
-
- org.tentackle.persist.AbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>
-
- org.tentackle.i18n.pdo.StoredBundlePersistenceImpl
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.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 org.tentackle.persist.AbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl> implements StoredBundlePersistence
Number Space persistence implementation.- Author:
- harald
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static org.tentackle.persist.PersistentObjectClassVariables<StoredBundle,StoredBundlePersistenceImpl>CLASSVARIABLESVariables common to all instances of StoredBundlePersistenceImpl.static java.lang.StringCN_LOCALEdatabase column name for 'locale'.static java.lang.StringCN_NAMEdatabase 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_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
-
-
Constructor Summary
Constructors Constructor Description StoredBundlePersistenceImpl()Creates a number space without domain context or session.StoredBundlePersistenceImpl(StoredBundle pdo)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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intaddComponents(org.tentackle.misc.IdentifiableMap<org.tentackle.pdo.PersistentDomainObject<?>> components, boolean onlyLoaded)protected voidcreateComponentsInSnapshot(StoredBundlePersistenceImpl snapshot)Updates the components in snapshot object.
The snapshot object is assumed to be a clone of this object.java.lang.StringcreateInsertSql()java.lang.StringcreateUpdateSql()voiddeletePlainWithComponents()voiddeleteRemovedReferencingRelations()Deletes all referencing composite relations that have been removed from the PDO.
The database cascades down via referential integrity.booleanexpireCache(long maxSerial)org.tentackle.misc.TrackedList<StoredBundle>findByName(java.lang.String name)Finds all bundles (one for each locale) for a given name.StoredBundlefindByNameAndLocale(java.lang.String name, java.lang.String locale)Find the bundle by its name and locale.org.tentackle.pdo.PdoCache<StoredBundle>getCache()org.tentackle.persist.PersistentObjectClassVariables<StoredBundle,StoredBundlePersistenceImpl>getClassVariables()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>getKeysBlunt()Gets keys without performing a select if not loaded.java.lang.StringgetLocale()Gets the attribute locale.java.lang.StringgetName()Gets the attribute name.org.tentackle.i18n.pdo.rmi.StoredBundleRemoteDelegategetRemoteDelegate()voidinsertPlainWithComponents()booleanisComposite()booleanisCountingModification(char modType)booleanisKeysLoaded()Returns whether Keys is loaded.booleanisModified()booleanisReadAllowed()booleanisRootEntity()booleanisTableSerialProvided()booleanisTracked()org.tentackle.misc.IdentifiableMap<? extends org.tentackle.pdo.PersistentDomainObject<?>>loadComponents(boolean onlyLoaded)voidmarkDeleted()protected voidrevertAttributesToSnapshot(StoredBundlePersistenceImpl snapshot)Copies all attributes from a snapshot back to this object.protected voidrevertComponentsToSnapshot(StoredBundlePersistenceImpl snapshot)Reverts all components of this object to a given snapshot.voidsaveReferencingRelations(boolean update)java.util.List<StoredBundle>selectAllCached()StoredBundleselectByUniqueDomainKey(java.lang.String name, java.lang.String locale)Selects StoredBundle by its unique domain key.StoredBundleselectByUniqueDomainKeyForCache(StoredBundle.StoredBundleUDK udk)Selects via remote cache, if session is remote.StoredBundleselectCached(long id)StoredBundleselectCachedByUniqueDomainKey(StoredBundle.StoredBundleUDK udk)Selects via cache by unique domain key.StoredBundleselectCachedOnly(long id)StoredBundleselectCachedOnlyByUniqueDomainKey(StoredBundle.StoredBundleUDK udk)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)voidsetLocale(java.lang.String locale)Sets the attribute locale.voidsetName(java.lang.String name)Sets the attribute name.voidsetSession(org.tentackle.session.Session session)java.util.List<org.tentackle.validate.ValidationResult>validate(java.lang.String validationPath, org.tentackle.validate.ValidationScope scope)-
Methods inherited from class org.tentackle.persist.AbstractPersistentObject
addComponents, addReferencingClass, addSnapshot, applyTokenLockInfo, 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, derivePdoFromPo, determineContextId, discardSnapshot, discardSnapshots, executeFirstPdoQuery, executeFirstPdoQuery, executeListQuery, executeListQuery, executeQueryToList, executeQueryToList, executeTrackedListQuery, executeTrackedListQuery, findDuplicate, finishModification, finishNotUpdated, getBaseContext, getCacheAccessCount, getCacheAccessTime, getColumnName, getContextId, getContextUserId, getDefaultScopes, getDomainContext, getDomainDelegate, getEagerJoinedSelect, getEagerJoins, getEditedBy, getEditedExpiry, getEditedSince, getEffectiveClass, getEffectiveSuperClasses, getNormText, getPdo, getPdoClass, getPdoMethodCache, getPersistenceClass, getRootClassId, getRootId, getSecurityResult, getSnapshots, getSqlClassIdCondition, getSqlContextCondition, getTableAlias, getTableName, getTokenLockObject, getTokenLockTimeout, getTopSuperTableAlias, getTopSuperTableName, getTransientData, getValidClassId, initModification, insertObject, insertPlainWithComponents, isAbstract, isCacheable, isCached, isClassIdRequiredInWhereClause, isCopy, isCountingModificationForTokenLock, isDomainContextImmutable, isEditAllowed, 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, readFromResultSetWrapper, readJoinedRow, releaseTokenLock, reload, reloadForUpdate, 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, setClassIdsInStatement, setCopy, setDomainContextImmutable, setEditedBy, setEditedExpiry, setEditedSince, setExpired, setModified, setNormText, setPdo, setPersistable, setRenewTokenLockRequested, setRootClassId, setRootId, setTokenLockObject, setTransientData, transferTokenLock, updateNormText, updateObject, updateRootContext, updateTokenLock, updateTokenLock, updateTokenLockOnly, validate
-
Methods inherited from class org.tentackle.dbms.AbstractDbObject
acceptPersistenceVisitor, addPropertyListener, addPropertyListener, alignComponents, assertNew, assertNotNew, assertNotOverloaded, assertNotRemote, assertNumberOfRowsAffected, assertRemote, assertThisRowAffected, attributesModified, 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, getPropertySupport, getSerial, getSession, getSessionHolder, getTableSerial, hashCode, insertImpl, insertPlain, isDeleted, isEntity, isFinallyImmutable, isForcedModified, isFromThisJVM, isIdValid, isImmutable, isLoggingModification, isNew, isOverloadable, isRemovable, 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, 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, setImmutableLoggingLevel
-
Methods inherited from interface org.tentackle.pdo.PersistentObject
attributesModified, containsPattern, delete, differsPersisted, findDuplicate, getCacheAccessCount, getCacheAccessTime, getClassBaseName, getClassId, getEditedBy, getEditedExpiry, getEditedSince, getExpiredTableSerials, getId, getModificationCount, getNormText, getRootClassId, getRootId, getSecurityResult, getSerial, getTableName, getTableSerial, getTokenLockObject, getTokenLockTimeout, isAbstract, isCacheable, isCached, isDeleted, isEditAllowed, isExpired, isNew, isNormTextProvided, isPermissionAccepted, isPersistable, isReferenced, isRemovable, isRootClassIdProvided, isRootEntityOf, isRootIdProvided, isTokenLockableByMe, isTokenLocked, isTokenLockedBy, isTokenLockedByMe, isTokenLockProvided, isValidated, isViewAllowed, isWriteAllowed, markCacheAccess, persist, persistTokenLocked, releaseTokenLock, reload, reloadForUpdate, requestTokenLock, reserveId, reserveId, save, select, selectAll, selectAllAsCursor, selectAllForCache, selectAllIdSerial, selectAllWithExpiredTableSerials, selectByNormText, selectByNormTextAsCursor, selectExpiredTableSerials, selectExpiredTableSerials, selectForCache, selectForUpdate, selectMaxId, selectMaxTableSerial, selectSerial, setExpired, toIdString, transferTokenLock, validate
-
-
-
-
Field Detail
-
CLASSVARIABLES
public static final org.tentackle.persist.PersistentObjectClassVariables<StoredBundle,StoredBundlePersistenceImpl> CLASSVARIABLES
Variables common to all instances of StoredBundlePersistenceImpl.
-
CN_NAME
public static final java.lang.String CN_NAME
database column name for 'name'.- See Also:
- Constant Field Values
-
CN_LOCALE
public static final java.lang.String CN_LOCALE
database column name for 'locale'.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StoredBundlePersistenceImpl
public StoredBundlePersistenceImpl(StoredBundle pdo, org.tentackle.pdo.DomainContext context)
Creates a number space.- Parameters:
pdo- the number space PDOcontext- the domain context
-
StoredBundlePersistenceImpl
public StoredBundlePersistenceImpl(StoredBundle pdo, org.tentackle.session.Session session)
Creates a number space with a session only.- Parameters:
pdo- the number space PDOsession- the session
-
StoredBundlePersistenceImpl
public StoredBundlePersistenceImpl(StoredBundle pdo)
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 Detail
-
getClassVariables
public org.tentackle.persist.PersistentObjectClassVariables<StoredBundle,StoredBundlePersistenceImpl> getClassVariables()
- Overrides:
getClassVariablesin classorg.tentackle.persist.AbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>
-
getRemoteDelegate
public org.tentackle.i18n.pdo.rmi.StoredBundleRemoteDelegate getRemoteDelegate()
- Overrides:
getRemoteDelegatein classorg.tentackle.persist.AbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>
-
isRootEntity
public boolean isRootEntity()
- Specified by:
isRootEntityin interfaceorg.tentackle.pdo.PersistentObject<StoredBundle>- Overrides:
isRootEntityin classorg.tentackle.persist.AbstractPersistentObject<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
public java.lang.String createInsertSql()
- Overrides:
createInsertSqlin classorg.tentackle.dbms.AbstractDbObject<StoredBundlePersistenceImpl>
-
createUpdateSql
public java.lang.String createUpdateSql()
- Overrides:
createUpdateSqlin classorg.tentackle.dbms.AbstractDbObject<StoredBundlePersistenceImpl>
-
getName
public java.lang.String getName()
Description copied from interface:StoredBundlePersistenceGets the attribute name.- Specified by:
getNamein interfaceStoredBundlePersistence- Returns:
- the resource bundle name
-
setName
public void setName(java.lang.String name)
Description copied from interface:StoredBundlePersistenceSets the attribute name.- Specified by:
setNamein interfaceStoredBundlePersistence- Parameters:
name- the resource bundle name
-
getLocale
public java.lang.String getLocale()
Description copied from interface:StoredBundlePersistenceGets the attribute locale.- Specified by:
getLocalein interfaceStoredBundlePersistence- Returns:
- the locale, null if default
-
setLocale
public void setLocale(java.lang.String locale)
Description copied from interface:StoredBundlePersistenceSets the attribute locale.- Specified by:
setLocalein interfaceStoredBundlePersistence- Parameters:
locale- the locale, null if default
-
revertAttributesToSnapshot
protected void revertAttributesToSnapshot(StoredBundlePersistenceImpl snapshot)
Copies all attributes from a snapshot back to this object.- Parameters:
snapshot- the snapshot object
-
selectByUniqueDomainKey
public StoredBundle selectByUniqueDomainKey(java.lang.String name, java.lang.String locale)
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
public org.tentackle.misc.TrackedList<StoredBundleKey> getKeys()
Description copied from interface:StoredBundlePersistenceGets composite list of StoredBundleKey keys via StoredBundleKey#bundleId (Keys).- Specified by:
getKeysin interfaceStoredBundlePersistence- Returns:
- keys Keys
-
getKeysBlunt
public org.tentackle.misc.TrackedList<StoredBundleKey> 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 classorg.tentackle.persist.AbstractPersistentObject<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 java.util.List<org.tentackle.validate.ValidationResult> validate(java.lang.String validationPath, org.tentackle.validate.ValidationScope scope)- Specified by:
validatein interfaceorg.tentackle.validate.Validateable- Overrides:
validatein classorg.tentackle.persist.AbstractPersistentObject<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 classorg.tentackle.persist.AbstractPersistentObject<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 classorg.tentackle.persist.AbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>
-
addComponents
public int addComponents(org.tentackle.misc.IdentifiableMap<org.tentackle.pdo.PersistentDomainObject<?>> components, boolean onlyLoaded)- Overrides:
addComponentsin classorg.tentackle.persist.AbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>
-
insertPlainWithComponents
public void insertPlainWithComponents()
- Overrides:
insertPlainWithComponentsin classorg.tentackle.persist.AbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>
-
deletePlainWithComponents
public void deletePlainWithComponents()
- Overrides:
deletePlainWithComponentsin classorg.tentackle.persist.AbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>
-
markDeleted
public void markDeleted()
- Overrides:
markDeletedin classorg.tentackle.dbms.AbstractDbObject<StoredBundlePersistenceImpl>
-
createComponentsInSnapshot
protected void createComponentsInSnapshot(StoredBundlePersistenceImpl snapshot)
Updates the components in snapshot object.
The snapshot object is assumed to be a clone of this object.- Parameters:
snapshot- the snapshot
-
revertComponentsToSnapshot
protected void revertComponentsToSnapshot(StoredBundlePersistenceImpl snapshot)
Reverts all components of this object to a given snapshot.- Parameters:
snapshot- the snapshot object
-
getCache
public org.tentackle.pdo.PdoCache<StoredBundle> getCache()
- Specified by:
getCachein interfaceorg.tentackle.pdo.PersistentObject<StoredBundle>- Overrides:
getCachein classorg.tentackle.persist.AbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>
-
isCountingModification
public boolean isCountingModification(char modType)
- Overrides:
isCountingModificationin classorg.tentackle.dbms.AbstractDbObject<StoredBundlePersistenceImpl>
-
isReadAllowed
public boolean isReadAllowed()
- Overrides:
isReadAllowedin classorg.tentackle.persist.AbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>
-
expireCache
public boolean expireCache(long maxSerial)
- Overrides:
expireCachein classorg.tentackle.persist.AbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>
-
selectCachedOnly
public StoredBundle selectCachedOnly(long id)
- Specified by:
selectCachedOnlyin interfaceorg.tentackle.pdo.PersistentObject<StoredBundle>- Overrides:
selectCachedOnlyin classorg.tentackle.persist.AbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>
-
selectCached
public StoredBundle selectCached(long id)
- Specified by:
selectCachedin interfaceorg.tentackle.pdo.PersistentObject<StoredBundle>- Overrides:
selectCachedin classorg.tentackle.persist.AbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>
-
selectCachedOnlyByUniqueDomainKey
public StoredBundle selectCachedOnlyByUniqueDomainKey(StoredBundle.StoredBundleUDK udk)
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
public StoredBundle selectCachedByUniqueDomainKey(StoredBundle.StoredBundleUDK udk)
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
public StoredBundle selectByUniqueDomainKeyForCache(StoredBundle.StoredBundleUDK udk)
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
public java.util.List<StoredBundle> selectAllCached()
- Specified by:
selectAllCachedin interfaceorg.tentackle.pdo.PersistentObject<StoredBundle>- Overrides:
selectAllCachedin classorg.tentackle.persist.AbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>
-
findByName
public org.tentackle.misc.TrackedList<StoredBundle> findByName(java.lang.String name)
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
public StoredBundle findByNameAndLocale(java.lang.String name, java.lang.String locale)
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
-
-