@PersistentObjectService(value=org.tentackle.ns.pdo.NumberPool.class) public class NumberPoolPersistenceImpl extends AbstractPersistentObject<NumberPool,NumberPoolPersistenceImpl> implements NumberPoolPersistence
| Modifier and Type | Field and Description |
|---|---|
static PersistentObjectClassVariables<NumberPool,NumberPoolPersistenceImpl> |
CLASSVARIABLES
Variables common to all instances of NumberPoolPersistenceImpl.
|
static String |
CN_DESCRIPTION
database column name for 'description'.
|
static String |
CN_LOWWATERMARK
database column name for 'lowWaterMark'.
|
static String |
CN_NAME
database column name for 'name'.
|
static String |
CN_ONLINE
database column name for 'online'.
|
static String |
CN_REALM
database column name for 'realm'.
|
static String |
CN_REQUESTSIZE
database column name for 'requestSize'.
|
static String |
CN_UPLINK
database column name for 'uplink'.
|
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_TABLESERIALAN_DESCRIPTION, AN_LOWWATERMARK, AN_NAME, AN_ONLINE, AN_REALM, AN_REQUESTSIZE, AN_UPLINK, CL_NAME, CL_REALM, RN_NUMBERRANGELIST| Constructor and Description |
|---|
NumberPoolPersistenceImpl()
Creates a number space without domain context or session.
|
NumberPoolPersistenceImpl(NumberPool pdo)
Creates a number space without domain context or session.
|
NumberPoolPersistenceImpl(NumberPool pdo,
DomainContext context)
Creates a number space.
|
NumberPoolPersistenceImpl(NumberPool 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<PersistentDomainObject<?>> components,
boolean onlyLoaded)
Adds the components of this object to a map.
|
boolean |
attributesModified() |
protected void |
createComponentsInSnapshot(NumberPoolPersistenceImpl 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()
Deletes this object and all its components without any further processing.
Same as AbstractDbObject.deletePlain() but with components. |
void |
deleteReferencingRelations() |
boolean |
differsPersisted() |
PersistentObjectClassVariables<NumberPool,NumberPoolPersistenceImpl> |
getClassVariables()
Gets the application oriented class variables for this object.
Class variables for classes derived from AbstractPersistentObject are kept in an instance of PersistentObjectClassVariables. |
String |
getDescription() |
String |
getDescriptionPersisted() |
void |
getFields(ResultSetWrapper rs) |
long |
getLowWaterMark() |
long |
getLowWaterMarkPersisted() |
String |
getName() |
String |
getNamePersisted() |
org.tentackle.misc.TrackedList<NumberRange> |
getNumberRangeList() |
org.tentackle.misc.TrackedList<NumberRange> |
getNumberRangeListBlunt()
Gets numberRangeList without performing a select if not loaded.
|
String |
getRealm() |
String |
getRealmPersisted() |
org.tentackle.persist.ns.rmi.NumberPoolRemoteDelegate |
getRemoteDelegate() |
long |
getRequestSize() |
long |
getRequestSizePersisted() |
String |
getUplink() |
String |
getUplinkPersisted() |
void |
insertPlainWithComponents()
Inserts this object and all its components without any further processing.
Same as AbstractDbObject.insertPlain() but with components. |
boolean |
isComposite()
Tells whether this object is composite (i.e.
|
boolean |
isDescriptionModified() |
boolean |
isLowWaterMarkModified() |
boolean |
isModified() |
boolean |
isNameModified() |
boolean |
isNumberRangeListLoaded() |
boolean |
isOnline() |
boolean |
isOnlineModified() |
boolean |
isOnlinePersisted() |
boolean |
isRealmModified() |
boolean |
isRequestSizeModified() |
boolean |
isRootEntity() |
boolean |
isTracked() |
boolean |
isUpdatingSerialEvenIfNotModified()
Determines whether in updates of composite objects unmodified objects in the
update path get at least the serial updated or are not touched at all.
|
boolean |
isUplinkModified() |
org.tentackle.misc.IdentifiableMap<? extends PersistentDomainObject<?>> |
loadComponents(boolean onlyLoaded)
Loads all components.
The method is used to transfer a copy of an object between tiers including all composite object relations recursively. |
void |
markDeleted() |
void |
reloadRanges() |
protected void |
revertAttributesToSnapshot(NumberPoolPersistenceImpl snapshot)
Copies all attributes from a snapshot back to this object.
|
protected void |
revertComponentsToSnapshot(NumberPoolPersistenceImpl snapshot)
Reverts all components of this object to a given snapshot.
|
void |
saveReferencingRelations(boolean update) |
NumberPool |
selectByNameRealm(String name,
String realm) |
NumberPool |
selectByUniqueDomainKey(String name) |
void |
setDescription(String description) |
void |
setDomainContext(DomainContext context) |
int |
setFields(PreparedStatementWrapper st) |
void |
setImmutable(boolean immutable) |
void |
setLowWaterMark(long lowWaterMark) |
void |
setModified(boolean modified) |
void |
setName(String name) |
void |
setOnline(boolean online) |
void |
setRealm(String realm) |
void |
setRequestSize(long requestSize) |
void |
setSession(org.tentackle.session.Session session) |
void |
setUplink(String uplink) |
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, expireCache, findDuplicate, findSnapshotMethod, finishModification, finishNotUpdated, freeze, getBaseContext, getCache, 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, isReadAllowed, isReferenced, isRenewTokenLockRequested, isRootClassIdProvided, isRootEntityOf, isRootIdProvided, isSnapshot, isTokenLockableByMe, isTokenLocked, isTokenLockedBy, isTokenLockedByMe, isTokenLockProvided, isUpdateNecessary, 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, selectCached, selectCachedOnly, selectForCache, selectForUpdate, selectLocked, setClassIdsInStatement, setDomainContextImmutable, setEditedBy, setEditedExpiry, setEditedSince, setExpired, setNormText, setPdo, setPersistable, setRenewTokenLockRequested, setRootClassId, setRootId, setTokenLockObject, setTransientData, transferTokenLock, updateRootContext, updateTokenLock, updateTokenLock, updateTokenLockOnly, validateacceptPersistenceVisitor, addPropertyChangeListener, addPropertyListener, alignComponents, assertNotNew, assertNotOverloaded, assertNotRemote, assertNumberOfRowsAffected, assertRemote, assertThisRowAffected, beginTx, clearOnRemoteSave, compareTo, copyToDb, createAttributesInSnapshot, createDeleteAllSql, createDeleteSql, createPreparedStatement, createPreparedStatement, createSelectObjectsWithExpiredTableSerialsSql, createSelectSql, createSqlUpdate, createUpdateAndSetSerialSql, deleteImpl, deleteObject, deletePlain, deleteReferencedRelations, dummyUpdate, equals, firePropertyChange, getBackend, getClassBaseName, getClassId, getColumnCount, getExpirationBacklog, getExpiredTableSerials, getId, getIdSource, getImmutableLoggingLevel, getModificationCount, getModificationLog, getPreparedStatement, getPreparedStatement, getSerial, getSession, getSessionHolder, getTableSerial, hashCode, insertImpl, insertObject, insertPlain, isCountingModification, isDeleted, isEntity, isFromThisJVM, isIdValid, isImmutable, isLoggingModification, isNew, isOverloadable, isRemovable, isSessionImmutable, isStatementAlwaysPrepared, isTableSerialProvided, 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, waitclonePersistentObject, containsPattern, createCopyInContext, delete, findDuplicate, getCache, 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, isTableSerialProvided, 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, selectCached, selectCachedOnly, selectExpiredTableSerials, selectExpiredTableSerials, selectForCache, selectForUpdate, selectLocked, selectMaxId, selectMaxTableSerial, selectSerial, setEditedBy, setEditedExpiry, setEditedSince, setExpired, setId, setNormText, setRootClassId, setRootId, setSerial, setTableSerial, setTokenLockObject, setTransientData, toIdString, transferTokenLock, validategetDomainDelegatemecreateSnapshot, getSnapshots, isSnapshot, revertToSnapshotcreateValidContext, determineContextId, getBaseContext, getContextId, isDomainContextImmutable, setDomainContextImmutablegetDomainContext, on, opisSessionImmutable, setSessionImmutablecreateModificationLogpublic static final PersistentObjectClassVariables<NumberPool,NumberPoolPersistenceImpl> CLASSVARIABLES
public static final String CN_NAME
public static final String CN_REALM
public static final String CN_DESCRIPTION
public static final String CN_ONLINE
public static final String CN_LOWWATERMARK
public static final String CN_REQUESTSIZE
public static final String CN_UPLINK
public NumberPoolPersistenceImpl(NumberPool pdo, DomainContext context)
pdo - the number space PDOcontext - the domain contextpublic NumberPoolPersistenceImpl(NumberPool pdo, org.tentackle.session.Session session)
pdo - the number space PDOsession - the sessionpublic NumberPoolPersistenceImpl(NumberPool pdo)
pdo - the number space PDOpublic NumberPoolPersistenceImpl()
public PersistentObjectClassVariables<NumberPool,NumberPoolPersistenceImpl> getClassVariables()
AbstractPersistentObjectPersistentObjectClassVariables.getClassVariables in class AbstractPersistentObject<NumberPool,NumberPoolPersistenceImpl>AbstractDbObject.getClassVariables()public boolean isUpdatingSerialEvenIfNotModified()
AbstractPersistentObjectThe default implementation returns true if this is a root entity.
isUpdatingSerialEvenIfNotModified in class AbstractPersistentObject<NumberPool,NumberPoolPersistenceImpl>AbstractDbObject.updateObject()public org.tentackle.persist.ns.rmi.NumberPoolRemoteDelegate getRemoteDelegate()
AbstractPersistentObjectOverridden due to covariance.
getRemoteDelegate in class AbstractPersistentObject<NumberPool,NumberPoolPersistenceImpl>public boolean isRootEntity()
AbstractPersistentObjectThe default is false. Override if this is a root-entity.
isRootEntity in interface PersistentObject<NumberPool>isRootEntity in class AbstractPersistentObject<NumberPool,NumberPoolPersistenceImpl>public boolean isTracked()
isTracked in interface PersistentObject<NumberPool>isTracked in class AbstractDbObject<NumberPoolPersistenceImpl>public void setModified(boolean modified)
setModified in interface PersistentObject<NumberPool>setModified in class AbstractPersistentObject<NumberPool,NumberPoolPersistenceImpl>public boolean differsPersisted()
differsPersisted in interface PersistentObject<NumberPool>differsPersisted in class AbstractDbObject<NumberPoolPersistenceImpl>public boolean attributesModified()
attributesModified in interface PersistentObject<NumberPool>attributesModified in class AbstractDbObject<NumberPoolPersistenceImpl>public void getFields(ResultSetWrapper rs)
getFields in class AbstractDbObject<NumberPoolPersistenceImpl>public int setFields(PreparedStatementWrapper st)
setFields in class AbstractDbObject<NumberPoolPersistenceImpl>public String createInsertSql()
createInsertSql in class AbstractDbObject<NumberPoolPersistenceImpl>public String createUpdateSql()
createUpdateSql in class AbstractDbObject<NumberPoolPersistenceImpl>public String getName()
getName in interface NumberPoolPersistencepublic void setName(String name)
setName in interface NumberPoolPersistencepublic boolean isNameModified()
isNameModified in interface NumberPoolPersistencepublic String getNamePersisted()
getNamePersisted in interface NumberPoolPersistencepublic String getRealm()
getRealm in interface NumberPoolPersistencepublic void setRealm(String realm)
setRealm in interface NumberPoolPersistencepublic boolean isRealmModified()
isRealmModified in interface NumberPoolPersistencepublic String getRealmPersisted()
getRealmPersisted in interface NumberPoolPersistencepublic String getDescription()
getDescription in interface NumberPoolPersistencepublic void setDescription(String description)
setDescription in interface NumberPoolPersistencepublic boolean isDescriptionModified()
isDescriptionModified in interface NumberPoolPersistencepublic String getDescriptionPersisted()
getDescriptionPersisted in interface NumberPoolPersistencepublic boolean isOnline()
isOnline in interface NumberPoolPersistencepublic void setOnline(boolean online)
setOnline in interface NumberPoolPersistencepublic boolean isOnlineModified()
isOnlineModified in interface NumberPoolPersistencepublic boolean isOnlinePersisted()
isOnlinePersisted in interface NumberPoolPersistencepublic long getLowWaterMark()
getLowWaterMark in interface NumberPoolPersistencepublic void setLowWaterMark(long lowWaterMark)
setLowWaterMark in interface NumberPoolPersistencepublic boolean isLowWaterMarkModified()
isLowWaterMarkModified in interface NumberPoolPersistencepublic long getLowWaterMarkPersisted()
getLowWaterMarkPersisted in interface NumberPoolPersistencepublic long getRequestSize()
getRequestSize in interface NumberPoolPersistencepublic void setRequestSize(long requestSize)
setRequestSize in interface NumberPoolPersistencepublic boolean isRequestSizeModified()
isRequestSizeModified in interface NumberPoolPersistencepublic long getRequestSizePersisted()
getRequestSizePersisted in interface NumberPoolPersistencepublic String getUplink()
getUplink in interface NumberPoolPersistencepublic void setUplink(String uplink)
setUplink in interface NumberPoolPersistencepublic boolean isUplinkModified()
isUplinkModified in interface NumberPoolPersistencepublic String getUplinkPersisted()
getUplinkPersisted in interface NumberPoolPersistenceprotected void revertAttributesToSnapshot(NumberPoolPersistenceImpl snapshot)
snapshot - the snapshot objectpublic NumberPool selectByUniqueDomainKey(String name)
selectByUniqueDomainKey in interface NumberPoolPersistencepublic org.tentackle.misc.TrackedList<NumberRange> getNumberRangeList()
getNumberRangeList in interface NumberPoolPersistencepublic org.tentackle.misc.TrackedList<NumberRange> getNumberRangeListBlunt()
public boolean isNumberRangeListLoaded()
isNumberRangeListLoaded in interface NumberPoolPersistencepublic void setSession(org.tentackle.session.Session session)
setSession in interface org.tentackle.session.SessionDependablesetSession in class AbstractDbObject<NumberPoolPersistenceImpl>public void setDomainContext(DomainContext context)
AbstractPersistentObjectSetting the context will also set the session and context id.
setDomainContext in interface DomainContextDependablesetDomainContext in class AbstractPersistentObject<NumberPool,NumberPoolPersistenceImpl>public void deleteReferencingRelations()
deleteReferencingRelations in class AbstractDbObject<NumberPoolPersistenceImpl>public void saveReferencingRelations(boolean update)
saveReferencingRelations in class AbstractDbObject<NumberPoolPersistenceImpl>public List<org.tentackle.validate.ValidationResult> validate(String validationPath, org.tentackle.validate.ValidationScope scope)
validate in interface org.tentackle.validate.Validateablevalidate in class AbstractPersistentObject<NumberPool,NumberPoolPersistenceImpl>public void setImmutable(boolean immutable)
setImmutable in interface org.tentackle.misc.ImmutablesetImmutable in interface PersistentObject<NumberPool>setImmutable in class AbstractDbObject<NumberPoolPersistenceImpl>public boolean isModified()
isModified in interface org.tentackle.misc.ModifiableisModified in class AbstractDbObject<NumberPoolPersistenceImpl>public boolean isComposite()
AbstractPersistentObjectisComposite in interface PersistentObject<NumberPool>isComposite in class AbstractPersistentObject<NumberPool,NumberPoolPersistenceImpl>public org.tentackle.misc.IdentifiableMap<? extends PersistentDomainObject<?>> loadComponents(boolean onlyLoaded)
AbstractPersistentObjectloadComponents in class AbstractPersistentObject<NumberPool,NumberPoolPersistenceImpl>onlyLoaded - true if return only already loaded components (lazy composite relations)public int addComponents(org.tentackle.misc.IdentifiableMap<PersistentDomainObject<?>> components, boolean onlyLoaded)
AbstractPersistentObjectaddComponents in class AbstractPersistentObject<NumberPool,NumberPoolPersistenceImpl>components - the component maponlyLoaded - true if return only already loaded component (lazy composite relations)public void insertPlainWithComponents()
AbstractPersistentObjectAbstractDbObject.insertPlain() but with components.insertPlainWithComponents in class AbstractPersistentObject<NumberPool,NumberPoolPersistenceImpl>public void deletePlainWithComponents()
AbstractPersistentObjectAbstractDbObject.deletePlain() but with components.deletePlainWithComponents in class AbstractPersistentObject<NumberPool,NumberPoolPersistenceImpl>public void markDeleted()
markDeleted in class AbstractDbObject<NumberPoolPersistenceImpl>protected void createComponentsInSnapshot(NumberPoolPersistenceImpl snapshot)
snapshot - the snapshotprotected void revertComponentsToSnapshot(NumberPoolPersistenceImpl snapshot)
snapshot - the snapshot objectpublic NumberPool selectByNameRealm(String name, String realm)
selectByNameRealm in interface NumberPoolPersistencepublic void reloadRanges()
reloadRanges in interface NumberPoolPersistenceTentackle - distributed, domain- and model-driven