java.lang.Object
org.tentackle.dbms.AbstractDbObject<P>
org.tentackle.persist.AbstractPersistentObject<NumberPool,NumberPoolPersistenceImpl>
org.tentackle.persist.ns.NumberPoolPersistenceImpl
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<NumberPoolPersistenceImpl>,ModificationLoggable,org.tentackle.misc.Identifiable,org.tentackle.misc.Immutable,org.tentackle.misc.Modifiable,org.tentackle.misc.SerialNumbered,org.tentackle.misc.Snapshotable<NumberPool>,NumberPoolPersistence,DomainContextDependable,DomainContextProvider,PdoMethodCacheProvider<NumberPool>,PdoProvider<NumberPool>,PersistenceDelegate<NumberPool>,PersistentObject<NumberPool>,ProxyDelegate<NumberPool>,org.tentackle.reflect.EffectiveClassProvider<NumberPool>,org.tentackle.reflect.Interceptable,org.tentackle.session.SessionDependable,org.tentackle.session.SessionProvider,org.tentackle.validate.ScopeConfigurator,org.tentackle.validate.Validateable
@PersistentObjectService(org.tentackle.ns.pdo.NumberPool.class)
public class NumberPoolPersistenceImpl
extends AbstractPersistentObject<NumberPool,NumberPoolPersistenceImpl>
implements NumberPoolPersistence
Number Space persistence implementation.
- Author:
- harald
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionVariables common to all instances of NumberPoolPersistenceImpl.static final Stringdatabase column name for 'description'.static final Stringdatabase column name for 'lowWaterMark'.static final Stringdatabase column name for 'name'.static final Stringdatabase column name for 'online'.static final Stringdatabase column name for 'realm'.static final Stringdatabase column name for 'requestSize'.static final Stringdatabase column name for 'uplink'.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_TABLESERIALFields inherited from interface org.tentackle.ns.pdo.NumberPoolPersistence
AN_DESCRIPTION, AN_LOWWATERMARK, AN_NAME, AN_ONLINE, AN_REALM, AN_REQUESTSIZE, AN_UPLINK, CL_NAME, CL_REALM, RN_NUMBERRANGELIST -
Constructor Summary
ConstructorsConstructorDescriptionCreates a number space without domain context or session.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. -
Method Summary
Modifier and TypeMethodDescriptionintaddComponents(org.tentackle.misc.IdentifiableMap<PersistentDomainObject<?>> components, boolean onlyLoaded) Adds the components of this object to a map.booleanprotected voidUpdates the components in snapshot object.
The snapshot object is assumed to be a clone of this object.voidDeletes this object and all its components without any further processing.
Same asAbstractDbObject.deletePlain()but with components.voidbooleanGets the application oriented class variables for this object.
Class variables for classes derived from AbstractPersistentObject are kept in an instance ofPersistentObjectClassVariables.voidlonglonggetName()org.tentackle.misc.TrackedList<NumberRange>org.tentackle.misc.TrackedList<NumberRange>Gets numberRangeList without performing a select if not loaded.getRealm()org.tentackle.persist.ns.rmi.NumberPoolRemoteDelegatelonglongvoidInserts this object and all its components without any further processing.
Same asAbstractDbObject.insertPlain()but with components.booleanTells whether this object is composite (i.e.booleanbooleanbooleanbooleanbooleanbooleanisOnline()booleanbooleanbooleanbooleanbooleanbooleanbooleanDetermines whether in updates of composite objects unmodified objects in the update path get at least the serial updated or are not touched at all.booleanorg.tentackle.misc.IdentifiableMap<? extends PersistentDomainObject<?>>loadComponents(boolean onlyLoaded) voidvoidprotected voidCopies all attributes from a snapshot back to this object.protected voidReverts all components of this object to a given snapshot.voidsaveReferencingRelations(boolean update) selectByNameRealm(String name, String realm) voidsetDescription(String description) voidsetDomainContext(DomainContext context) intvoidsetImmutable(boolean immutable) voidsetLowWaterMark(long lowWaterMark) voidsetModified(boolean modified) Sets the modified flag.voidvoidsetOnline(boolean online) voidvoidsetRequestSize(long requestSize) voidsetSession(org.tentackle.session.Session session) voidList<org.tentackle.validate.ValidationResult>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, deleteImpl, deleteMissingInCollection, deleteObject, deletePlainWithComponents, derivePdoFromPo, determineContextId, discardSnapshot, discardSnapshots, executeFirstPdoQuery, executeFirstPdoQuery, executeListQuery, executeListQuery, executeQueryToList, executeQueryToList, executeTrackedListQuery, executeTrackedListQuery, expireCache, findDuplicate, finishModification, finishNotUpdated, getBaseContext, getBatchablePreparedStatement, getCache, getCacheAccessCount, getCacheAccessTime, getColumnName, getColumnNames, getColumnNames, 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, getTokenLockTimeout, getTopSuperTableAlias, getTopSuperTableName, getTransientData, getValidClassIds, initModification, insertImpl, insertObject, insertPlainWithComponents, isAbstract, isCacheable, isCached, isCopy, 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, persist, persistImpl, persistTokenLocked, presetVirgin, readFromResultSetWrapper, readJoinedRow, releaseTokenLock, reload, reloadForUpdate, removeReferencingClass, requestTokenLock, resultAll, resultAllCursor, resultAllWithExpiredTableSerials, resultByNormText, resultByNormTextCursor, revertAttributesToSnapshot, revertComponentsToSnapshot, revertToSnapshot, save, save, save, saveImpl, select, select, selectAll, selectAllAsCursor, selectAllCached, selectAllForCache, selectAllWithExpiredTableSerials, selectByNormText, selectByNormTextAsCursor, selectByTemplate, selectCached, selectCachedOnly, selectForCache, selectForUpdate, selectLatest, setCopy, setDomainContextImmutable, setEditedBy, setEditedExpiry, setEditedSince, setExpired, setNormText, setPdo, setPersistable, setRenewTokenLockRequested, setRootClassId, setRootId, setTransientData, 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, clearOnRemoteSave, compareTo, createAttributesInSnapshot, createDeleteAllSql, createDeleteSql, createPreparedStatement, createPreparedStatement, createSelectObjectsWithExpiredTableSerialsSql, createSelectSql, createSqlUpdate, createUpdateAndSetSerialSql, deletePlain, deleteReferencedRelations, dummyUpdate, equals, firePropertyChange, getBackend, getClassBaseName, getClassId, getColumnCount, getExpirationBacklog, getExpiredTableSerials, getId, getIdSource, getImmutableLoggingLevel, getModificationCount, getModificationLog, getPreparedStatement, getPreparedStatement, getPropertySupport, getSerial, getSession, getSessionHolder, getTableSerial, hashCode, insertPlain, isCountingModification, isDeleted, isEntity, isFinallyImmutable, isForcedModified, isFromThisJVM, isIdValid, isImmutable, isLoggingModification, isNew, isOverloadable, isRemovable, isSessionImmutable, isStatementAlwaysPrepared, isTableSerialProvided, 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, 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
containsPattern, delete, findDuplicate, getCache, getCacheAccessCount, getCacheAccessTime, getClassBaseName, getClassId, getEditedBy, getEditedExpiry, getEditedSince, getExpiredTableSerials, getId, getModificationCount, getNormText, getRootClassId, getRootId, getSecurityResult, getSerial, getTableName, getTableSerial, getTokenLockTimeout, isAbstract, isCacheable, isCached, isDeleted, isEditAllowed, isExpired, isNew, isNormTextProvided, isPermissionAccepted, isPersistable, isReferenced, isRemovable, isRootClassIdProvided, isRootEntityOf, isRootIdProvided, isTableSerialProvided, isTokenLockableByMe, isTokenLocked, isTokenLockedBy, isTokenLockedByMe, isTokenLockProvided, isValidated, isViewAllowed, isWriteAllowed, markCacheAccess, persist, persistTokenLocked, releaseTokenLock, reload, reloadForUpdate, requestTokenLock, reserveId, reserveId, save, select, selectAll, selectAllAsCursor, selectAllCached, selectAllForCache, selectAllIdSerial, selectAllWithExpiredTableSerials, selectByNormText, selectByNormTextAsCursor, selectCached, selectCachedOnly, selectExpiredTableSerials, selectExpiredTableSerials, selectForCache, selectForUpdate, selectLatest, selectMaxId, selectMaxTableSerial, selectSerial, 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<NumberPool,NumberPoolPersistenceImpl> CLASSVARIABLESVariables common to all instances of NumberPoolPersistenceImpl. -
CN_NAME
database column name for 'name'.- See Also:
-
CN_REALM
database column name for 'realm'.- See Also:
-
CN_DESCRIPTION
database column name for 'description'.- See Also:
-
CN_ONLINE
database column name for 'online'.- See Also:
-
CN_LOWWATERMARK
database column name for 'lowWaterMark'.- See Also:
-
CN_REQUESTSIZE
database column name for 'requestSize'.- See Also:
-
CN_UPLINK
database column name for 'uplink'.- See Also:
-
-
Constructor Details
-
NumberPoolPersistenceImpl
Creates a number space.- Parameters:
pdo- the number space PDOcontext- the domain context
-
NumberPoolPersistenceImpl
Creates a number space with a session only.- Parameters:
pdo- the number space PDOsession- the session
-
NumberPoolPersistenceImpl
Creates a number space without domain context or session.- Parameters:
pdo- the number space PDO
-
NumberPoolPersistenceImpl
public NumberPoolPersistenceImpl()Creates a number space without domain context or session.
-
-
Method Details
-
getClassVariables
Description copied from class:AbstractPersistentObjectGets the application oriented class variables for this object.
Class variables for classes derived from AbstractPersistentObject are kept in an instance ofPersistentObjectClassVariables.- Overrides:
getClassVariablesin classAbstractPersistentObject<NumberPool,NumberPoolPersistenceImpl> - Returns:
- the class variables
- See Also:
-
isUpdatingSerialEvenIfNotModified
public boolean isUpdatingSerialEvenIfNotModified()Description copied from class:AbstractPersistentObjectDetermines whether in updates of composite objects unmodified objects in the update path get at least the serial updated or are not touched at all. The default is to leave unmodified objects untouched, except root entities. However, in some applications it is necessary to update the master object if some of its children are updated (usually to trigger something, e.g. a cache-update).The default implementation returns true if this is a root entity.
- Overrides:
isUpdatingSerialEvenIfNotModifiedin classAbstractPersistentObject<NumberPool,NumberPoolPersistenceImpl> - Returns:
- true if update serial even if object is unchanged
- See Also:
-
getRemoteDelegate
public org.tentackle.persist.ns.rmi.NumberPoolRemoteDelegate getRemoteDelegate()Description copied from class:AbstractPersistentObjectOverridden due to covariance.
- Overrides:
getRemoteDelegatein classAbstractPersistentObject<NumberPool,NumberPoolPersistenceImpl>
-
isRootEntity
public boolean isRootEntity()Description copied from class:AbstractPersistentObjectThe default is false. Override if this is a root-entity.
- Specified by:
isRootEntityin interfacePersistentObject<NumberPool>- Overrides:
isRootEntityin classAbstractPersistentObject<NumberPool,NumberPoolPersistenceImpl>
-
isTracked
public boolean isTracked()- Specified by:
isTrackedin interfacePersistentObject<NumberPool>- Overrides:
isTrackedin classAbstractDbObject<NumberPoolPersistenceImpl>
-
setModified
public void setModified(boolean modified) Description copied from class:AbstractPersistentObjectSets the modified flag.For optimizations, it is possible to skip objects that have not been modified. The modified-attribute is cleared whenever the object is persisted.
- Overrides:
setModifiedin classAbstractPersistentObject<NumberPool,NumberPoolPersistenceImpl> - Parameters:
modified- is true if object is flagged modified, false if not.
-
differsPersisted
public boolean differsPersisted()- Specified by:
differsPersistedin interfacePersistentObject<NumberPool>- Overrides:
differsPersistedin classAbstractDbObject<NumberPoolPersistenceImpl>
-
attributesModified
public boolean attributesModified()- Specified by:
attributesModifiedin interfacePersistentObject<NumberPool>- Overrides:
attributesModifiedin classAbstractDbObject<NumberPoolPersistenceImpl>
-
getFields
- Overrides:
getFieldsin classAbstractDbObject<NumberPoolPersistenceImpl>
-
setFields
- Overrides:
setFieldsin classAbstractDbObject<NumberPoolPersistenceImpl>
-
createInsertSql
- Overrides:
createInsertSqlin classAbstractDbObject<NumberPoolPersistenceImpl>
-
createUpdateSql
- Overrides:
createUpdateSqlin classAbstractDbObject<NumberPoolPersistenceImpl>
-
getName
- Specified by:
getNamein interfaceNumberPoolPersistence
-
setName
- Specified by:
setNamein interfaceNumberPoolPersistence
-
isNameModified
public boolean isNameModified()- Specified by:
isNameModifiedin interfaceNumberPoolPersistence
-
getNamePersisted
- Specified by:
getNamePersistedin interfaceNumberPoolPersistence
-
getRealm
- Specified by:
getRealmin interfaceNumberPoolPersistence
-
setRealm
- Specified by:
setRealmin interfaceNumberPoolPersistence
-
isRealmModified
public boolean isRealmModified()- Specified by:
isRealmModifiedin interfaceNumberPoolPersistence
-
getRealmPersisted
- Specified by:
getRealmPersistedin interfaceNumberPoolPersistence
-
getDescription
- Specified by:
getDescriptionin interfaceNumberPoolPersistence
-
setDescription
- Specified by:
setDescriptionin interfaceNumberPoolPersistence
-
isDescriptionModified
public boolean isDescriptionModified()- Specified by:
isDescriptionModifiedin interfaceNumberPoolPersistence
-
getDescriptionPersisted
- Specified by:
getDescriptionPersistedin interfaceNumberPoolPersistence
-
isOnline
public boolean isOnline()- Specified by:
isOnlinein interfaceNumberPoolPersistence
-
setOnline
public void setOnline(boolean online) - Specified by:
setOnlinein interfaceNumberPoolPersistence
-
isOnlineModified
public boolean isOnlineModified()- Specified by:
isOnlineModifiedin interfaceNumberPoolPersistence
-
isOnlinePersisted
public boolean isOnlinePersisted()- Specified by:
isOnlinePersistedin interfaceNumberPoolPersistence
-
getLowWaterMark
public long getLowWaterMark()- Specified by:
getLowWaterMarkin interfaceNumberPoolPersistence
-
setLowWaterMark
public void setLowWaterMark(long lowWaterMark) - Specified by:
setLowWaterMarkin interfaceNumberPoolPersistence
-
isLowWaterMarkModified
public boolean isLowWaterMarkModified()- Specified by:
isLowWaterMarkModifiedin interfaceNumberPoolPersistence
-
getLowWaterMarkPersisted
public long getLowWaterMarkPersisted()- Specified by:
getLowWaterMarkPersistedin interfaceNumberPoolPersistence
-
getRequestSize
public long getRequestSize()- Specified by:
getRequestSizein interfaceNumberPoolPersistence
-
setRequestSize
public void setRequestSize(long requestSize) - Specified by:
setRequestSizein interfaceNumberPoolPersistence
-
isRequestSizeModified
public boolean isRequestSizeModified()- Specified by:
isRequestSizeModifiedin interfaceNumberPoolPersistence
-
getRequestSizePersisted
public long getRequestSizePersisted()- Specified by:
getRequestSizePersistedin interfaceNumberPoolPersistence
-
getUplink
- Specified by:
getUplinkin interfaceNumberPoolPersistence
-
setUplink
- Specified by:
setUplinkin interfaceNumberPoolPersistence
-
isUplinkModified
public boolean isUplinkModified()- Specified by:
isUplinkModifiedin interfaceNumberPoolPersistence
-
getUplinkPersisted
- Specified by:
getUplinkPersistedin interfaceNumberPoolPersistence
-
revertAttributesToSnapshot
Copies all attributes from a snapshot back to this object.- Parameters:
snapshot- the snapshot object
-
selectByUniqueDomainKey
- Specified by:
selectByUniqueDomainKeyin interfaceNumberPoolPersistence
-
getNumberRangeList
- Specified by:
getNumberRangeListin interfaceNumberPoolPersistence
-
getNumberRangeListBlunt
Gets numberRangeList without performing a select if not loaded.- Returns:
- numberRangeList NumberRange
-
isNumberRangeListLoaded
public boolean isNumberRangeListLoaded()- Specified by:
isNumberRangeListLoadedin interfaceNumberPoolPersistence
-
setSession
public void setSession(org.tentackle.session.Session session) - Specified by:
setSessionin interfaceorg.tentackle.session.SessionDependable- Overrides:
setSessionin classAbstractDbObject<NumberPoolPersistenceImpl>
-
setDomainContext
Description copied from class:AbstractPersistentObjectSetting the context will also set the session and context id.
- Specified by:
setDomainContextin interfaceDomainContextDependable- Overrides:
setDomainContextin classAbstractPersistentObject<NumberPool,NumberPoolPersistenceImpl>
-
deleteReferencingRelations
public void deleteReferencingRelations()- Overrides:
deleteReferencingRelationsin classAbstractDbObject<NumberPoolPersistenceImpl>
-
saveReferencingRelations
public void saveReferencingRelations(boolean update) - Overrides:
saveReferencingRelationsin classAbstractDbObject<NumberPoolPersistenceImpl>
-
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<NumberPool,NumberPoolPersistenceImpl>
-
setImmutable
public void setImmutable(boolean immutable) - Specified by:
setImmutablein interfaceorg.tentackle.misc.Immutable- Overrides:
setImmutablein classAbstractDbObject<NumberPoolPersistenceImpl>
-
isModified
public boolean isModified()- Specified by:
isModifiedin interfaceorg.tentackle.misc.Modifiable- Overrides:
isModifiedin classAbstractDbObject<NumberPoolPersistenceImpl>
-
isComposite
public boolean isComposite()Description copied from class:AbstractPersistentObjectTells whether this object is composite (i.e. has composite relations).
The method is overridden by the PdoRelations-wurblet if at least one relation is flagged as "composite". The default implementation returns false.- Specified by:
isCompositein interfacePersistentObject<NumberPool>- Overrides:
isCompositein classAbstractPersistentObject<NumberPool,NumberPoolPersistenceImpl> - Returns:
- true if object is composite, false if not.
-
loadComponents
public org.tentackle.misc.IdentifiableMap<? extends PersistentDomainObject<?>> loadComponents(boolean onlyLoaded) Description copied from class:AbstractPersistentObjectBy default the method throws a PersistenceException telling that it is not implemented if isComposite() returns true.
- Specified by:
loadComponentsin interfacePersistentObject<NumberPool>- Overrides:
loadComponentsin classAbstractPersistentObject<NumberPool,NumberPoolPersistenceImpl> - Parameters:
onlyLoaded- true if return only already loaded components (lazy composite relations)- Returns:
- the map of all components, including this object.
-
addComponents
public int addComponents(org.tentackle.misc.IdentifiableMap<PersistentDomainObject<?>> components, boolean onlyLoaded) Description copied from class:AbstractPersistentObjectAdds the components of this object to a map.- Overrides:
addComponentsin classAbstractPersistentObject<NumberPool,NumberPoolPersistenceImpl> - Parameters:
components- the component maponlyLoaded- true if return only already loaded component (lazy composite relations)- Returns:
- the number of components added
-
insertPlainWithComponents
public void insertPlainWithComponents()Description copied from class:AbstractPersistentObjectInserts this object and all its components without any further processing.
Same asAbstractDbObject.insertPlain()but with components.- Overrides:
insertPlainWithComponentsin classAbstractPersistentObject<NumberPool,NumberPoolPersistenceImpl>
-
deletePlainWithComponents
public void deletePlainWithComponents()Description copied from class:AbstractPersistentObjectDeletes this object and all its components without any further processing.
Same asAbstractDbObject.deletePlain()but with components.- Overrides:
deletePlainWithComponentsin classAbstractPersistentObject<NumberPool,NumberPoolPersistenceImpl>
-
markDeleted
public void markDeleted()- Overrides:
markDeletedin classAbstractDbObject<NumberPoolPersistenceImpl>
-
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
-
selectByNameRealm
- Specified by:
selectByNameRealmin interfaceNumberPoolPersistence
-
reloadRanges
public void reloadRanges()- Specified by:
reloadRangesin interfaceNumberPoolPersistence
-