@PersistentObjectService(value=org.tentackle.ns.pdo.NumberRange.class) public class NumberRangePersistenceImpl extends AbstractPersistentObject<NumberRange,NumberRangePersistenceImpl> implements NumberRangePersistence
| Modifier and Type | Field and Description |
|---|---|
static PersistentObjectClassVariables<NumberRange,NumberRangePersistenceImpl> |
CLASSVARIABLES
Variables common to all instances of NumberRangePersistenceImpl.
|
static String |
CN_BEGIN
database column name for 'begin'.
|
static String |
CN_END
database column name for 'end'.
|
static String |
CN_NUMBERPOOLID
database column name for 'numberPoolId'.
|
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, preparePending, 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_BEGIN, AN_END, AN_NUMBERPOOLID, RN_NUMBERPOOL| Constructor and Description |
|---|
NumberRangePersistenceImpl()
Creates a number space without domain context or session.
|
NumberRangePersistenceImpl(NumberRange pdo)
Creates a number space without domain context or session.
|
NumberRangePersistenceImpl(NumberRange pdo,
DomainContext context)
Creates a number space.
|
NumberRangePersistenceImpl(NumberRange pdo,
Session session)
Creates a number space with a session only.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
createAttributesInSnapshot(NumberRangePersistenceImpl snapshot)
Updates the attributes in snapshot object.
The snapshot object is assumed to be a clone of this object. |
String |
createInsertSql()
Creates the SQL code for the insert statement.
|
String |
createUpdateSql()
Creates the SQL code for the update statement.
|
boolean |
differsPersisted()
Overridden cause of "--fulltracked".
|
boolean |
expireCache(long maxSerial)
Expires the cache according to the serial numbers.
If objects of this class are cached, the cache must be expired on updates, etc... |
long |
getBegin()
Gets the attribute begin.
|
long |
getBeginPersisted()
Gets the last persisted value of begin.
|
PdoCache<NumberRange> |
getCache()
Gets the cache.
|
PersistentObjectClassVariables<NumberRange,NumberRangePersistenceImpl> |
getClassVariables()
Gets the application oriented class variables for this object.
Class variables for classes derived from AbstractPersistentObject are kept in an instance of PersistentObjectClassVariables. |
long |
getEnd()
Gets the attribute end.
|
long |
getEndPersisted()
Gets the last persisted value of end.
|
void |
getFields(ResultSetWrapper rs)
Retrieves the values of all fields.
|
NumberPool |
getNumberPool()
Gets numberPool via numberPoolId.
|
long |
getNumberPoolId()
Gets the attribute numberPoolId.
|
long |
getNumberPoolIdPersisted()
Gets the last persisted value of numberPoolId.
|
org.tentackle.ns.pdo.rmi.NumberRangeRemoteDelegate |
getRemoteDelegate()
Gets the delegate for remote connections.
Each class has its own delegate. |
int |
getRootClassId()
The root entity class is NumberPool.
|
long |
getRootId()
The root entity id is numberPoolId.
|
boolean |
isBeginModified()
Gets the modification state of begin.
|
boolean |
isCountingModification(char modType)
Determines whether modifications of this object are counted in the modification table.
Counting is also turned on if the PDO provides a tableserial. |
boolean |
isEndModified()
Gets the modification state of end.
|
boolean |
isNumberPoolIdModified()
Gets the modification state of numberPoolId.
|
boolean |
isReadAllowed()
Determines whether the application is allowed to read this PDO.
Makes no sense to publish in PersistentObject because PDOs without read permissions are not read from the database at all. |
boolean |
isTracked()
Overridden cause of "--tracked".
|
protected void |
revertAttributesToSnapshot(NumberRangePersistenceImpl snapshot)
Copies all attributes from a snapshot back to this object.
|
List<NumberRange> |
selectAllCached()
Gets all objects in context via cache.
|
TrackedList<NumberRange> |
selectByNumberPoolId(long numberPoolId) |
NumberRange |
selectCached(long id)
Gets the object via cache.
If there is no cache (i.e. |
NumberRange |
selectCachedOnly(long id)
Gets the object via cache only.
If there is no cache (i.e. |
void |
setBegin(long begin)
Sets the attribute begin.
|
void |
setDomainContext(DomainContext context)
Sets the context in this and all related objects.
|
void |
setEnd(long end)
Sets the attribute end.
|
int |
setFields(PreparedStatementWrapper st)
Sets the values of all fields (all columns of the database table)
in the given
PreparedStatementWrapper from the object's attributes. |
void |
setModified(boolean modified)
Overridden cause of "--attracked".
|
void |
setNumberPool(NumberPool numberPool)
Sets numberPool via numberPoolId.
|
void |
setSession(Session session)
Sets the session in this and all related objects.
|
addComponents, 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, createSelectAllByIdInnerSql, createSelectAllIdSerialInnerSql, createSelectAllInnerSql, createSelectAllSql, createSelectByNormTextSql, createSelectExpiredTableSerials1Sql, createSelectExpiredTableSerials2Sql, createSelectIdInnerSql, createSelectIdInnerSql, createSelectMaxIdSql, createSelectMaxTableSerialSql, createSelectSerialSql, createSelectTokenLockSql, createSnapshot, createTransferTokenLockSql, createTransferTokenLockWithTableSerialSql, createUpdateSerialAndTableSerialSql, createUpdateSerialSql, createUpdateTokenLockOnlySql, createUpdateTokenLockSql, createUpdateTokenLockWithCountSql, createValidContext, delete, delete, delete, deleteImpl, deleteMissingInCollection, deletePlainWithComponents, deletePlainWithComponents, derivePdoFromPo, determineContextId, executeFirstPdoQuery, executeFirstPdoQuery, executeListQuery, executeListQuery, executeQueryToList, executeQueryToList, executeTrackedListQuery, executeTrackedListQuery, findDuplicate, findSnapshotMethod, finishModification, finishNotUpdated, getBaseContext, getCacheAccessCount, getCacheAccessTime, getColumnName, getContextId, getContextUserId, getCopiedObject, getDefaultScopes, getDomainContext, getDomainDelegate, getEagerJoinedSelect, getEagerJoins, getEditedBy, getEditedExpiry, getEditedSince, getNormText, getPdo, getPdoClass, getPersistenceClass, getSecurityResult, getSnapshots, getSqlClassIdCondition, getSqlContextCondition, getTableAlias, getTableName, getTokenLockObject, getTokenLockTimeout, getTopSuperTableAlias, getTopSuperTableName, getTransientData, getValidClassId, initModification, insertObject, insertPlainWithComponents, insertPlainWithComponents, isAbstract, isCacheable, isCached, isClassIdRequiredInWhereClause, isComposite, isCountingModificationForTokenLock, isDomainContextImmutable, isEditAllowed, isExpired, isExplicitIdAliasRequiredInJoins, isModified, isNormTextProvided, isPermissionAccepted, isPersistable, isReferenced, isRenewTokenLockRequested, isRootClassIdProvided, isRootEntity, isRootIdProvided, isSnapshot, isTokenLocked, isTokenLockedBy, isTokenLockedByMe, isTokenLockProvided, isUpdateNecessary, isUpdatingSerialEvenIfNotModified, isValidated, isViewAllowed, isWriteAllowed, loadComponents, markCacheAccess, markDeleted, markDeleted, newId, orderBy, pdo, persist, persistImpl, persistTokenLocked, readFromResultSetWrapper, readJoinedRow, releaseTokenLock, reload, reloadLocked, removeReferencingClass, requestTokenLock, resultAll, resultAllCursor, resultByNormText, resultByNormTextCursor, revertAttributesToSnapshot, revertComponentsToSnapshot, revertToSnapshot, save, save, save, saveCopyInContext, saveImpl, select, select, selectAll, selectAllAsCursor, selectAllForCache, selectByNormText, selectByNormTextAsCursor, selectByTemplate, selectForCache, selectLocked, setDomainContextImmutable, setEditedBy, setEditedExpiry, setEditedSince, setExpired, setNormText, setPdo, setPersistable, setRenewTokenLockRequested, setRootClassId, setRootId, setTokenLockObject, setTransientData, transferTokenLock, updateObject, updateRootContext, updateTokenLock, updateTokenLock, updateTokenLockOnly, validate, validateacceptPersistenceVisitor, addPropertyChangeListener, addPropertyChangeListener, assertNotNew, assertNotOverloaded, assertNotRemote, assertNumberOfRowsAffected, assertRemote, assertThisRowAffected, attributesModified, beginTx, clearOnRemoteSave, compareTo, copyToDb, createAttributesInSnapshot, createDeleteAllSql, createDeleteSql, createModificationLog, createPreparedStatement, createPreparedStatement, createSelectSql, createSqlUpdate, deleteImpl, deleteObject, deletePlain, deleteReferencedRelations, deleteReferencingRelations, dummyUpdate, equals, firePropertyChange, getBackend, getClassBaseName, getClassId, getColumnCount, getExpirationBacklog, getExpiredTableSerials, getId, getIdSource, getImmutableLoggingLevel, getModificationCount, getModificationLog, getPreparedStatement, getPreparedStatement, getPropertyChangeListeners, getPropertyChangeListeners, getSerial, getSession, getSessionHolder, getTableSerial, hashCode, insertImpl, insertPlain, isDeleted, isEntity, isIdValid, isImmutable, isLoggingModification, isModified, isNew, isOverloadable, isRemovable, isSessionImmutable, isStatementAlwaysPrepared, isTableSerialProvided, isVirgin, loadLazyReferences, logModification, markDeleted, newInstance, newInstance, newInstance, persistObject, prepareDelete, prepareSave, prepareSetFields, reloadLockedObject, reloadObject, removeAllPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener, reserveId, resultAllIdSerial, resultAllObjects, revertAttributesToSnapshot, saveObject, saveReferencedRelations, saveReferencingRelations, selectAllIdSerial, selectAllObjects, selectExpiredTableSerials, selectExpiredTableSerials, selectLockedObject, selectMaxId, selectMaxTableSerial, selectNextObject, selectObject, selectSerial, setClassId, setId, setImmutable, setImmutableLoggingLevel, setModificationLog, setOverloadable, setSerial, setSessionHolder, setSessionImmutable, setStatementAlwaysPrepared, setTableSerial, toGenericString, toIdString, toString, unmarkDeleted, updateImpl, updatePlain, updateSerial, updateSerialAndTableSerialfinalize, getClass, notify, notifyAll, wait, wait, waitattributesModified, clonePersistentObject, containsPattern, createCopyInContext, delete, findDuplicate, getCacheAccessCount, getCacheAccessTime, getClassBaseName, getClassId, getCopiedObject, getEditedBy, getEditedExpiry, getEditedSince, getExpiredTableSerials, getId, getModificationCount, getNormText, getSecurityResult, getSerial, getTableName, getTableSerial, getTokenLockObject, getTokenLockTimeout, getTransientData, isAbstract, isCacheable, isCached, isComposite, isDeleted, isEditAllowed, isExpired, isImmutable, isNew, isNormTextProvided, isPermissionAccepted, isPersistable, isReferenced, isRemovable, isRootClassIdProvided, isRootEntity, isRootIdProvided, isTableSerialProvided, isTokenLocked, isTokenLockedBy, isTokenLockedByMe, isTokenLockProvided, isValidated, isViewAllowed, isWriteAllowed, markCacheAccess, pdo, persist, persistTokenLocked, prepareDelete, releaseTokenLock, reload, reloadLocked, requestTokenLock, reserveId, save, select, selectAll, selectAllAsCursor, selectAllForCache, selectAllIdSerial, selectByNormText, selectByNormTextAsCursor, selectExpiredTableSerials, selectExpiredTableSerials, selectForCache, selectLocked, selectMaxId, selectMaxTableSerial, selectSerial, setEditedBy, setEditedExpiry, setEditedSince, setExpired, setId, setImmutable, setNormText, setRootClassId, setRootId, setSerial, setTableSerial, setTokenLockObject, setTransientData, toIdString, transferTokenLock, validategetDomainDelegatecreateSnapshot, getSnapshots, isSnapshot, revertToSnapshottoGenericStringisModifiedisVirginvalidategetDefaultScopescreateValidContext, determineContextId, getBaseContext, getContextId, isDomainContextImmutable, setDomainContextImmutablegetDomainContext, on, opnisSessionImmutable, setSessionImmutablegetSessionpublic static final PersistentObjectClassVariables<NumberRange,NumberRangePersistenceImpl> CLASSVARIABLES
public static final String CN_NUMBERPOOLID
public static final String CN_BEGIN
public static final String CN_END
public NumberRangePersistenceImpl(NumberRange pdo, DomainContext context)
pdo - the number space PDOcontext - the domain contextpublic NumberRangePersistenceImpl(NumberRange pdo, Session session)
pdo - the number space PDOsession - the sessionpublic NumberRangePersistenceImpl(NumberRange pdo)
pdo - the number space PDOpublic NumberRangePersistenceImpl()
public PersistentObjectClassVariables<NumberRange,NumberRangePersistenceImpl> getClassVariables()
AbstractPersistentObjectPersistentObjectClassVariables.getClassVariables in class AbstractPersistentObject<NumberRange,NumberRangePersistenceImpl>AbstractDbObject.getClassVariables()public org.tentackle.ns.pdo.rmi.NumberRangeRemoteDelegate getRemoteDelegate()
AbstractPersistentObjectOverridden due to covariance.
getRemoteDelegate in class AbstractPersistentObject<NumberRange,NumberRangePersistenceImpl>public long getRootId()
getRootId in interface PersistentObject<NumberRange>getRootId in class AbstractPersistentObject<NumberRange,NumberRangePersistenceImpl>public int getRootClassId()
getRootClassId in interface PersistentObject<NumberRange>getRootClassId in class AbstractPersistentObject<NumberRange,NumberRangePersistenceImpl>public boolean isTracked()
isTracked in interface PersistentObject<NumberRange>isTracked in class AbstractDbObject<NumberRangePersistenceImpl>public void setModified(boolean modified)
setModified in interface PersistentObject<NumberRange>setModified in class AbstractPersistentObject<NumberRange,NumberRangePersistenceImpl>modified - is true if object is flagged modified, false if not.public boolean differsPersisted()
differsPersisted in interface PersistentObject<NumberRange>differsPersisted in class AbstractDbObject<NumberRangePersistenceImpl>public void getFields(ResultSetWrapper rs)
AbstractDbObjectgetFields in class AbstractDbObject<NumberRangePersistenceImpl>rs - the result setpublic int setFields(PreparedStatementWrapper st)
AbstractDbObjectPreparedStatementWrapper from the object's attributes.setFields in class AbstractDbObject<NumberRangePersistenceImpl>st - the statementpublic String createInsertSql()
AbstractDbObjectcreateInsertSql in class AbstractDbObject<NumberRangePersistenceImpl>public String createUpdateSql()
AbstractDbObjectcreateUpdateSql in class AbstractDbObject<NumberRangePersistenceImpl>public long getNumberPoolId()
getNumberPoolId in interface NumberRangePersistencepublic boolean isNumberPoolIdModified()
isNumberPoolIdModified in interface NumberRangePersistencepublic long getNumberPoolIdPersisted()
getNumberPoolIdPersisted in interface NumberRangePersistencepublic long getBegin()
getBegin in interface NumberRangePersistencepublic void setBegin(long begin)
setBegin in interface NumberRangePersistencebegin - begin of rangepublic boolean isBeginModified()
isBeginModified in interface NumberRangePersistencepublic long getBeginPersisted()
getBeginPersisted in interface NumberRangePersistencepublic long getEnd()
getEnd in interface NumberRangePersistencepublic void setEnd(long end)
setEnd in interface NumberRangePersistenceend - end of rangepublic boolean isEndModified()
isEndModified in interface NumberRangePersistencepublic long getEndPersisted()
getEndPersisted in interface NumberRangePersistenceprotected void createAttributesInSnapshot(NumberRangePersistenceImpl snapshot)
snapshot - the snapshotprotected void revertAttributesToSnapshot(NumberRangePersistenceImpl snapshot)
snapshot - the snapshot objectpublic NumberPool getNumberPool()
getNumberPool in interface NumberRangePersistencepublic void setNumberPool(NumberPool numberPool)
setNumberPool in interface NumberRangePersistencenumberPool - numberPoolpublic void setSession(Session session)
setSession in interface SessionDependablesetSession in class AbstractDbObject<NumberRangePersistenceImpl>session - the sessionpublic void setDomainContext(DomainContext context)
setDomainContext in interface DomainContextDependablesetDomainContext in class AbstractPersistentObject<NumberRange,NumberRangePersistenceImpl>context - the domain contextpublic TrackedList<NumberRange> selectByNumberPoolId(long numberPoolId)
selectByNumberPoolId in interface NumberRangePersistencepublic PdoCache<NumberRange> getCache()
AbstractPersistentObjectgetCache in interface PersistentObject<NumberRange>getCache in class AbstractPersistentObject<NumberRange,NumberRangePersistenceImpl>public boolean isCountingModification(char modType)
AbstractDbObjectisCountingModification in class AbstractDbObject<NumberRangePersistenceImpl>modType - is one of the modtypes INSERT, UPDATE, DELETE, ...public boolean isReadAllowed()
AbstractPersistentObjectisReadAllowed in class AbstractPersistentObject<NumberRange,NumberRangePersistenceImpl>public boolean expireCache(long maxSerial)
AbstractPersistentObject
cache.expire(maxSerial);
while "cache" has been declared by the wurblet PdoCache.expireCache in class AbstractPersistentObject<NumberRange,NumberRangePersistenceImpl>maxSerial - is the new tableSerial this object will getPdoCachepublic NumberRange selectCachedOnly(long id)
AbstractPersistentObjectselectCachedOnly in interface PersistentObject<NumberRange>selectCachedOnly in class AbstractPersistentObject<NumberRange,NumberRangePersistenceImpl>id - the uniue object IDAbstractDbObject.selectObject(long)public NumberRange selectCached(long id)
AbstractPersistentObjectselectCached in interface PersistentObject<NumberRange>selectCached in class AbstractPersistentObject<NumberRange,NumberRangePersistenceImpl>id - the uniue object IDAbstractDbObject.selectObject(long)public List<NumberRange> selectAllCached()
AbstractPersistentObjectselectAllCached in interface PersistentObject<NumberRange>selectAllCached in class AbstractPersistentObject<NumberRange,NumberRangePersistenceImpl>AbstractPersistentObject.selectAll()Copyright © 2016 Krake Softwaretechnik. All rights reserved.