@PersistentObjectService(value=StoredBundle.class) public class StoredBundlePersistenceImpl extends AbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl> implements StoredBundlePersistence
| Modifier and Type | Field and Description |
|---|---|
static PersistentObjectClassVariables<StoredBundle,StoredBundlePersistenceImpl> |
CLASSVARIABLES
Variables common to all instances of StoredBundlePersistenceImpl.
|
static String |
CN_LOCALE
database column name for 'locale'.
|
static String |
CN_NAME
database column name for 'name'.
|
AN_EDITEDBY, AN_EDITEDEXPIRY, AN_EDITEDSINCE, AN_NORMTEXT, AN_ROOTCLASSID, AN_ROOTID, CN_EDITEDBY, CN_EDITEDEXPIRY, CN_EDITEDSINCE, CN_NORMTEXT, CN_ROOTCLASSID, CN_ROOTID, objectIsSnapshot, TX_DELETE_ALL_IN_CONTEXT, TX_SAVE_COPY_IN_CONTEXT, TX_TRANSFER_TOKENLOCKAN_CLASSID, AN_ID, AN_SERIAL, AN_TABLESERIAL, CN_CLASSID, CN_ID, CN_SERIAL, CN_TABLESERIAL, idComparator, nameComparator, nameIdComparator, 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 and 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.
|
| Modifier and Type | Method and Description |
|---|---|
int |
addComponents(org.tentackle.misc.IdentifiableMap<org.tentackle.pdo.PersistentDomainObject<?>> components,
boolean onlyLoaded) |
protected void |
createComponentsInSnapshot(StoredBundlePersistenceImpl snapshot)
Updates the components in snapshot object.
The snapshot object is assumed to be a clone of this object. |
String |
createInsertSql() |
String |
createUpdateSql() |
void |
deletePlainWithComponents() |
void |
deleteRemovedReferencingRelations()
Deletes all referencing composite relations that have been removed from the PDO.
The database cascades down via referential integrity. |
boolean |
expireCache(long maxSerial) |
org.tentackle.misc.TrackedList<StoredBundle> |
findByName(String name)
Finds all bundles (one for each locale) for a given name.
|
StoredBundle |
findByNameAndLocale(String name,
String locale)
Find the bundle by its name and locale.
|
StoredBundle |
findByUniqueDomainKeyForCache(StoredBundle.StoredBundleUDK udk)
Selects via remote cache, if session is remote.
|
org.tentackle.pdo.PdoCache<StoredBundle> |
getCache() |
PersistentObjectClassVariables<StoredBundle,StoredBundlePersistenceImpl> |
getClassVariables() |
void |
getFields(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.
|
String |
getLocale()
Gets the attribute locale.
|
String |
getName()
Gets the attribute name.
|
org.tentackle.i18n.pdo.rmi.StoredBundleRemoteDelegate |
getRemoteDelegate() |
void |
insertPlainWithComponents() |
boolean |
isComposite() |
boolean |
isCountingModification(char modType) |
boolean |
isKeysLoaded()
Returns whether Keys is loaded.
|
boolean |
isModified() |
boolean |
isReadAllowed() |
boolean |
isRootEntity() |
boolean |
isTableSerialProvided() |
boolean |
isTracked() |
org.tentackle.misc.IdentifiableMap<? extends org.tentackle.pdo.PersistentDomainObject<?>> |
loadComponents(boolean onlyLoaded) |
void |
markDeleted() |
protected void |
revertAttributesToSnapshot(StoredBundlePersistenceImpl snapshot)
Copies all attributes from a snapshot back to this object.
|
protected void |
revertComponentsToSnapshot(StoredBundlePersistenceImpl snapshot)
Reverts all components of this object to a given snapshot.
|
void |
saveReferencingRelations(boolean update) |
StoredBundle |
selectByUniqueDomainKey(String name,
String locale)
Selects StoredBundle by its unique domain key.
|
StoredBundle |
selectCached(long id) |
StoredBundle |
selectCachedByUniqueDomainKey(StoredBundle.StoredBundleUDK udk)
Selects via cache by unique domain key.
|
StoredBundle |
selectCachedOnly(long id) |
StoredBundle |
selectCachedOnlyByUniqueDomainKey(StoredBundle.StoredBundleUDK udk)
Selects from cache by unique domain key but does not load from db if not in cache.
|
void |
setDomainContext(org.tentackle.pdo.DomainContext context) |
int |
setFields(org.tentackle.dbms.PreparedStatementWrapper st) |
void |
setImmutable(boolean immutable) |
void |
setLocale(String locale)
Sets the attribute locale.
|
void |
setName(String name)
Sets the attribute name.
|
void |
setSession(org.tentackle.session.Session session) |
List<org.tentackle.validate.ValidationResult> |
validate(String validationPath,
org.tentackle.validate.ValidationScope scope) |
addComponents, addReferencingClass, addSnapshot, assertDomainContextMutable, assertMutable, assertNormTextProvided, assertNotAbstract, assertNotCached, assertPersistable, assertReadPermission, assertRootContext, assertRootContextIsAccepted, assertRootEntity, assertTokenLockProvided, assertValidSnapshot, assertWritePermission, clearTokenLock, clone, clonePersistentObject, configureRemoteObject, configureRemoteObjects, containsPattern, copy, countModification, createAttributesInSnapshot, createComponentsInSnapshot, createCopyInContext, createDummyUpdateSql, createPropertySupport, 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, deletePlainWithComponents, derivePdoFromPo, determineContextId, executeFirstPdoQuery, executeFirstPdoQuery, executeListQuery, executeListQuery, executeQueryToList, executeQueryToList, executeTrackedListQuery, executeTrackedListQuery, findDuplicate, findSnapshotMethod, finishModification, finishNotUpdated, freeze, getBaseContext, getCacheAccessCount, getCacheAccessTime, getColumnName, getContextId, getContextUserId, getCopiedObject, getDefaultScopes, getDomainContext, getDomainDelegate, getEagerJoinedSelect, getEagerJoins, getEditedBy, getEditedExpiry, getEditedSince, getEffectiveClass, getEffectiveSuperClasses, getNormText, getPdo, getPdoClass, getPersistenceClass, getRootClassId, getRootId, getSecurityResult, getSnapshots, getSqlClassIdCondition, getSqlContextCondition, getTableAlias, getTableName, getTokenLockObject, getTokenLockTimeout, getTopSuperTableAlias, getTopSuperTableName, getTransientData, getValidClassId, initModification, insertPlainWithComponents, isAbstract, isCacheable, isCached, isClassIdRequiredInWhereClause, 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, pdo, persist, persistImpl, persistTokenLocked, readFromResultSetWrapper, readJoinedRow, releaseTokenLock, reload, reloadForUpdate, reloadLocked, removeReferencingClass, requestTokenLock, resultAll, resultAllCursor, resultAllWithExpiredTableSerials, resultByNormText, resultByNormTextCursor, revertAttributesToSnapshot, revertComponentsToSnapshot, revertToSnapshot, save, save, save, saveCopyInContext, saveImpl, select, select, selectAll, selectAllAsCursor, selectAllCached, selectAllForCache, selectAllWithExpiredTableSerials, selectByNormText, selectByNormTextAsCursor, selectByTemplate, selectForCache, selectForUpdate, selectLocked, setClassIdsInStatement, setDomainContextImmutable, setEditedBy, setEditedExpiry, setEditedSince, setExpired, setModified, setNormText, setPdo, setPersistable, setRenewTokenLockRequested, setRootClassId, setRootId, setTokenLockObject, setTransientData, transferTokenLock, updateRootContext, updateTokenLock, updateTokenLock, updateTokenLockOnly, validateacceptPersistenceVisitor, addPropertyChangeListener, addPropertyListener, alignComponents, assertNotNew, assertNotOverloaded, assertNotRemote, assertNumberOfRowsAffected, assertRemote, assertThisRowAffected, attributesModified, beginTx, clearOnRemoteSave, compareTo, copyToDb, createAttributesInSnapshot, createDeleteAllSql, createDeleteSql, createPreparedStatement, createPreparedStatement, createSelectObjectsWithExpiredTableSerialsSql, createSelectSql, createSqlUpdate, createUpdateAndSetSerialSql, deleteImpl, deleteObject, 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, insertObject, insertPlain, isDeleted, isEntity, isFromThisJVM, isIdValid, isImmutable, isLoggingModification, isNew, isOverloadable, isRemovable, isSessionImmutable, isStatementAlwaysPrepared, isVirgin, loadLazyReferences, logModification, newInstance, newInstance, newInstance, persistObject, prepareDelete, prepareSave, prepareSetFields, reloadLockedObject, reloadObject, removeAllPropertyChangeListeners, removePropertyChangeListener, removePropertyListener, reserveId, resultAllIdSerial, resultAllObjects, resultObjectsWithExpiredTableSerials, revertAttributesToSnapshot, saveObject, saveReferencedRelations, selectAllIdSerial, selectAllObjects, selectExpiredTableSerials, selectExpiredTableSerials, selectMaxId, selectMaxTableSerial, selectNextObject, selectObject, selectObjectForUpdate, selectObjectsWithExpiredTableSerials, selectSerial, setClassId, setId, setImmutableLoggingLevel, setModificationLog, setOverloadable, setSerial, setSessionHolder, setSessionImmutable, setStatementAlwaysPrepared, setTableSerial, toGenericString, toIdString, toString, unmarkDeleted, updateImpl, updateObject, updatePlain, updateSerial, updateSerial, updateSerialAndTableSerialfinalize, getClass, notify, notifyAll, wait, wait, waitattributesModified, clonePersistentObject, containsPattern, createCopyInContext, delete, differsPersisted, findDuplicate, getCacheAccessCount, getCacheAccessTime, getClassBaseName, getClassId, getCopiedObject, getEditedBy, getEditedExpiry, getEditedSince, getExpiredTableSerials, getId, getModificationCount, getNormText, getRootClassId, getRootId, getSecurityResult, getSerial, getTableName, getTableSerial, getTokenLockObject, getTokenLockTimeout, getTransientData, isAbstract, isCacheable, isCached, isDeleted, isEditAllowed, isExpired, isImmutable, isNew, isNormTextProvided, isPermissionAccepted, isPersistable, isReferenced, isRemovable, isRootClassIdProvided, isRootEntityOf, isRootIdProvided, isTokenLockableByMe, isTokenLocked, isTokenLockedBy, isTokenLockedByMe, isTokenLockProvided, isValidated, isViewAllowed, isWriteAllowed, markCacheAccess, pdo, persist, persistTokenLocked, prepareDelete, releaseTokenLock, reload, reloadForUpdate, reloadLocked, requestTokenLock, reserveId, save, select, selectAll, selectAllAsCursor, selectAllCached, selectAllForCache, selectAllIdSerial, selectAllWithExpiredTableSerials, selectByNormText, selectByNormTextAsCursor, selectExpiredTableSerials, selectExpiredTableSerials, selectForCache, selectForUpdate, selectLocked, selectMaxId, selectMaxTableSerial, selectSerial, setEditedBy, setEditedExpiry, setEditedSince, setExpired, setId, setModified, setNormText, setRootClassId, setRootId, setSerial, setTableSerial, setTokenLockObject, setTransientData, toIdString, transferTokenLock, validatecreateSnapshot, getSnapshots, isSnapshot, revertToSnapshotcreateValidContext, determineContextId, getBaseContext, getContextId, isDomainContextImmutable, setDomainContextImmutablepublic static final PersistentObjectClassVariables<StoredBundle,StoredBundlePersistenceImpl> CLASSVARIABLES
public static final String CN_NAME
public static final String CN_LOCALE
public StoredBundlePersistenceImpl(StoredBundle pdo, org.tentackle.pdo.DomainContext context)
pdo - the number space PDOcontext - the domain contextpublic StoredBundlePersistenceImpl(StoredBundle pdo, org.tentackle.session.Session session)
pdo - the number space PDOsession - the sessionpublic StoredBundlePersistenceImpl(StoredBundle pdo)
pdo - the number space PDOpublic StoredBundlePersistenceImpl()
public PersistentObjectClassVariables<StoredBundle,StoredBundlePersistenceImpl> getClassVariables()
getClassVariables in class AbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>public org.tentackle.i18n.pdo.rmi.StoredBundleRemoteDelegate getRemoteDelegate()
getRemoteDelegate in class AbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>public boolean isRootEntity()
isRootEntity in interface org.tentackle.pdo.PersistentObject<StoredBundle>isRootEntity in class AbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>public boolean isTableSerialProvided()
isTableSerialProvided in interface org.tentackle.pdo.PersistentObject<StoredBundle>isTableSerialProvided in class org.tentackle.dbms.AbstractDbObject<StoredBundlePersistenceImpl>public boolean isTracked()
isTracked in interface org.tentackle.pdo.PersistentObject<StoredBundle>isTracked in class org.tentackle.dbms.AbstractDbObject<StoredBundlePersistenceImpl>public void getFields(org.tentackle.dbms.ResultSetWrapper rs)
getFields in class org.tentackle.dbms.AbstractDbObject<StoredBundlePersistenceImpl>public int setFields(org.tentackle.dbms.PreparedStatementWrapper st)
setFields in class org.tentackle.dbms.AbstractDbObject<StoredBundlePersistenceImpl>public String createInsertSql()
createInsertSql in class org.tentackle.dbms.AbstractDbObject<StoredBundlePersistenceImpl>public String createUpdateSql()
createUpdateSql in class org.tentackle.dbms.AbstractDbObject<StoredBundlePersistenceImpl>public String getName()
StoredBundlePersistencegetName in interface StoredBundlePersistencepublic void setName(String name)
StoredBundlePersistencesetName in interface StoredBundlePersistencename - the resource bundle namepublic String getLocale()
StoredBundlePersistencegetLocale in interface StoredBundlePersistencepublic void setLocale(String locale)
StoredBundlePersistencesetLocale in interface StoredBundlePersistencelocale - the locale, null if defaultprotected void revertAttributesToSnapshot(StoredBundlePersistenceImpl snapshot)
snapshot - the snapshot objectpublic StoredBundle selectByUniqueDomainKey(String name, String locale)
StoredBundlePersistenceselectByUniqueDomainKey in interface StoredBundlePersistencename - the resource bundle namelocale - the locale, null if defaultpublic org.tentackle.misc.TrackedList<StoredBundleKey> getKeys()
StoredBundlePersistencegetKeys in interface StoredBundlePersistencepublic org.tentackle.misc.TrackedList<StoredBundleKey> getKeysBlunt()
public boolean isKeysLoaded()
StoredBundlePersistenceisKeysLoaded in interface StoredBundlePersistencepublic void setSession(org.tentackle.session.Session session)
setSession in interface org.tentackle.session.SessionDependablesetSession in class org.tentackle.dbms.AbstractDbObject<StoredBundlePersistenceImpl>public void setDomainContext(org.tentackle.pdo.DomainContext context)
setDomainContext in interface org.tentackle.pdo.DomainContextDependablesetDomainContext in class AbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>public void deleteRemovedReferencingRelations()
public void saveReferencingRelations(boolean update)
saveReferencingRelations in class org.tentackle.dbms.AbstractDbObject<StoredBundlePersistenceImpl>public List<org.tentackle.validate.ValidationResult> validate(String validationPath, org.tentackle.validate.ValidationScope scope)
validate in interface org.tentackle.validate.Validateablevalidate in class AbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>public void setImmutable(boolean immutable)
setImmutable in interface org.tentackle.misc.ImmutablesetImmutable in interface org.tentackle.pdo.PersistentObject<StoredBundle>setImmutable in class org.tentackle.dbms.AbstractDbObject<StoredBundlePersistenceImpl>public boolean isModified()
isModified in interface org.tentackle.misc.ModifiableisModified in class org.tentackle.dbms.AbstractDbObject<StoredBundlePersistenceImpl>public boolean isComposite()
isComposite in interface org.tentackle.pdo.PersistentObject<StoredBundle>isComposite in class AbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>public org.tentackle.misc.IdentifiableMap<? extends org.tentackle.pdo.PersistentDomainObject<?>> loadComponents(boolean onlyLoaded)
loadComponents in class AbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>public int addComponents(org.tentackle.misc.IdentifiableMap<org.tentackle.pdo.PersistentDomainObject<?>> components,
boolean onlyLoaded)
addComponents in class AbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>public void insertPlainWithComponents()
insertPlainWithComponents in class AbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>public void deletePlainWithComponents()
deletePlainWithComponents in class AbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>public void markDeleted()
markDeleted in class org.tentackle.dbms.AbstractDbObject<StoredBundlePersistenceImpl>protected void createComponentsInSnapshot(StoredBundlePersistenceImpl snapshot)
snapshot - the snapshotprotected void revertComponentsToSnapshot(StoredBundlePersistenceImpl snapshot)
snapshot - the snapshot objectpublic org.tentackle.pdo.PdoCache<StoredBundle> getCache()
getCache in interface org.tentackle.pdo.PersistentObject<StoredBundle>getCache in class AbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>public boolean isCountingModification(char modType)
isCountingModification in class org.tentackle.dbms.AbstractDbObject<StoredBundlePersistenceImpl>public boolean isReadAllowed()
isReadAllowed in class AbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>public boolean expireCache(long maxSerial)
expireCache in class AbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>public StoredBundle selectCachedOnly(long id)
selectCachedOnly in interface org.tentackle.pdo.PersistentObject<StoredBundle>selectCachedOnly in class AbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>public StoredBundle selectCached(long id)
selectCached in interface org.tentackle.pdo.PersistentObject<StoredBundle>selectCached in class AbstractPersistentObject<StoredBundle,StoredBundlePersistenceImpl>public StoredBundle selectCachedOnlyByUniqueDomainKey(StoredBundle.StoredBundleUDK udk)
selectCachedOnlyByUniqueDomainKey in interface StoredBundlePersistenceudk - the unique domain keypublic StoredBundle selectCachedByUniqueDomainKey(StoredBundle.StoredBundleUDK udk)
selectCachedByUniqueDomainKey in interface StoredBundlePersistenceudk - the unique keypublic StoredBundle findByUniqueDomainKeyForCache(StoredBundle.StoredBundleUDK udk)
findByUniqueDomainKeyForCache in interface StoredBundlePersistenceudk - the unique keypublic org.tentackle.misc.TrackedList<StoredBundle> findByName(String name)
StoredBundlePersistencefindByName in interface StoredBundlePersistencename - the bundle namepublic StoredBundle findByNameAndLocale(String name, String locale)
StoredBundlePersistencefindByNameAndLocale in interface StoredBundlePersistencename - the bundle namelocale - the localeTentackle - distributed, domain- and model-driven