- All Superinterfaces:
- DomainContextDependable,- DomainContextProvider,- org.tentackle.misc.Identifiable,- org.tentackle.misc.Immutable,- org.tentackle.reflect.Interceptable,- org.tentackle.misc.Modifiable,- PdoProvider<NumberPool>,- PersistenceDelegate<NumberPool>,- PersistentObject<NumberPool>,- ProxyDelegate<NumberPool>,- org.tentackle.validate.ScopeConfigurator,- Serializable,- org.tentackle.misc.SerialNumbered,- SessionDependable,- SessionProvider,- org.tentackle.misc.Snapshotable<NumberPool>,- org.tentackle.validate.Validateable
- All Known Subinterfaces:
- NumberPool
Persistence interface for number pool.
- Author:
- harald
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringattribute name for database column 'description'.static final Stringattribute name for database column 'lowmark'.static final Stringattribute name for database column 'name'.static final Stringattribute name for database column 'poolonline'.static final Stringattribute name for database column 'realm'.static final Stringattribute name for database column 'reqsize'.static final Stringattribute name for database column 'uplink'.static final intmaximum number of characters for 'name'.static final intmaximum number of characters for 'realm'.static final Stringrelation name for 'composite list of NumberRange numberRangeList via NumberRange#numberPoolId'.
- 
Method SummaryModifier and TypeMethodDescriptionGets the attribute description.Gets the last persisted value of description.longGets the attribute lowWaterMark.longGets the last persisted value of lowWaterMark.getName()Gets the attribute name.Gets the last persisted value of name.org.tentackle.misc.TrackedList<NumberRange> Gets composite list of NumberRange numberRangeList via NumberRange#numberPoolId.getRealm()Gets the attribute realm.Gets the last persisted value of realm.longGets the attribute requestSize.longGets the last persisted value of requestSize.Gets the attribute uplink.Gets the last persisted value of uplink.booleanGets the modification state of description.booleanGets the modification state of lowWaterMark.booleanGets the modification state of name.booleanReturns whether NumberRange is loaded.booleanisOnline()Gets the attribute online.booleanGets the modification state of online.booleanGets the last persisted value of online.booleanGets the modification state of realm.booleanGets the modification state of requestSize.booleanGets the modification state of uplink.voidForce the ranges to be reloaded.selectByNameRealm(String name, String realm) Selects by pool name and realm.Selects NumberPool by its unique domain key.voidsetDescription(String description) Sets the attribute description.voidsetLowWaterMark(long lowWaterMark) Sets the attribute lowWaterMark.voidSets the attribute name.voidsetOnline(boolean online) Sets the attribute online.voidSets the attribute realm.voidsetRequestSize(long requestSize) Sets the attribute requestSize.voidSets the attribute uplink.Methods inherited from interface org.tentackle.pdo.DomainContextDependablecreateValidContext, determineContextId, getBaseContext, getContextId, isDomainContextImmutable, setDomainContext, setDomainContextImmutableMethods inherited from interface org.tentackle.pdo.DomainContextProvidergetDomainContext, isWithinContext, isWithinContext, on, on, op, opMethods inherited from interface org.tentackle.misc.IdentifiabletoGenericStringMethods inherited from interface org.tentackle.misc.ImmutablegetImmutableLoggingLevel, isFinallyImmutable, isImmutable, setFinallyImmutable, setImmutable, setImmutableLoggingLevelMethods inherited from interface org.tentackle.misc.ModifiableisModifiedMethods inherited from interface org.tentackle.pdo.PdoProvidergetPdo, on, onMethods inherited from interface org.tentackle.pdo.PersistenceDelegategetDomainDelegateMethods inherited from interface org.tentackle.pdo.PersistentObjectattributesModified, containsPattern, delete, differsPersisted, findDuplicate, getCache, getCacheAccessCount, getCacheAccessTime, getClassBaseName, getClassId, getEditedBy, getEditedExpiry, getEditedSince, getEmbeddingParent, getExpiredTableSerials, getId, getModificationCount, getNormText, getRootClassId, getRootId, getSecurityResult, getSerial, getTableName, getTableSerial, getTokenLockTimeout, isAbstract, isCacheable, isCached, isComposite, isDeleted, isEditAllowed, isEmbedded, isExpired, isNew, isNormTextProvided, isPermissionAccepted, isPersistable, isReferenced, isRemovable, isRootClassIdProvided, isRootEntity, isRootEntityOf, isRootIdProvided, isTableSerialProvided, isTokenLockableByMe, isTokenLocked, isTokenLockedBy, isTokenLockedByMe, isTokenLockProvided, isTracked, isValidated, isViewAllowed, isWriteAllowed, loadComponents, markCacheAccess, persist, persistTokenLocked, releaseTokenLock, reload, reloadForUpdate, reloadTokenLocked, requestTokenLock, reserveId, reserveId, save, select, selectAll, selectAllAsCursor, selectAllCached, selectAllForCache, selectAllIdSerial, selectAllWithExpiredTableSerials, selectByNormText, selectByNormTextAsCursor, selectCached, selectCachedOnly, selectExpiredTableSerials, selectExpiredTableSerials, selectForCache, selectForUpdate, selectLatest, selectMaxId, selectMaxTableSerial, selectSerial, selectTokenLocked, setExpired, toIdString, transferTokenLock, validateMethods inherited from interface org.tentackle.pdo.ProxyDelegatemeMethods inherited from interface org.tentackle.validate.ScopeConfiguratorgetDefaultScopesMethods inherited from interface org.tentackle.misc.SerialNumberedisVirginMethods inherited from interface org.tentackle.session.SessionDependableisSessionImmutable, setSession, setSessionImmutableMethods inherited from interface org.tentackle.session.SessionProvidergetSessionMethods inherited from interface org.tentackle.misc.Snapshotablecopy, createSnapshot, discardSnapshot, discardSnapshots, getSnapshots, isCopy, isSnapshot, revertToSnapshot, setCopyMethods inherited from interface org.tentackle.validate.Validateablevalidate
- 
Field Details- 
CL_NAMEstatic final int CL_NAMEmaximum number of characters for 'name'.- See Also:
 
- 
CL_REALMstatic final int CL_REALMmaximum number of characters for 'realm'.- See Also:
 
- 
RN_NUMBERRANGELISTrelation name for 'composite list of NumberRange numberRangeList via NumberRange#numberPoolId'.- See Also:
 
- 
AN_NAMEattribute name for database column 'name'.- See Also:
 
- 
AN_REALMattribute name for database column 'realm'.- See Also:
 
- 
AN_DESCRIPTIONattribute name for database column 'description'.- See Also:
 
- 
AN_ONLINEattribute name for database column 'poolonline'.- See Also:
 
- 
AN_LOWWATERMARKattribute name for database column 'lowmark'.- See Also:
 
- 
AN_REQUESTSIZEattribute name for database column 'reqsize'.- See Also:
 
- 
AN_UPLINKattribute name for database column 'uplink'.- See Also:
 
 
- 
- 
Method Details- 
getNameGets the attribute name.- Returns:
- the number pool name
 
- 
setNameSets the attribute name.- Parameters:
- name- the number pool name
 
- 
isNameModifiedboolean isNameModified()Gets the modification state of name.- Returns:
- true if modified
 
- 
getNamePersistedString getNamePersisted()Gets the last persisted value of name.- Returns:
- the last persisted value
 
- 
getRealmGets the attribute realm.- Returns:
- pool realm, optional
 
- 
setRealmSets the attribute realm.- Parameters:
- realm- pool realm, optional
 
- 
isRealmModifiedboolean isRealmModified()Gets the modification state of realm.- Returns:
- true if modified
 
- 
getRealmPersistedString getRealmPersisted()Gets the last persisted value of realm.- Returns:
- the last persisted value
 
- 
getDescriptionGets the attribute description.- Returns:
- short description
 
- 
setDescriptionSets the attribute description.- Parameters:
- description- short description
 
- 
isDescriptionModifiedboolean isDescriptionModified()Gets the modification state of description.- Returns:
- true if modified
 
- 
getDescriptionPersistedString getDescriptionPersisted()Gets the last persisted value of description.- Returns:
- the last persisted value
 
- 
isOnlineGets the attribute online.- Returns:
- true if online, else offline
 
- 
setOnlinevoid setOnline(boolean online) Sets the attribute online.- Parameters:
- online- true if online, else offline
 
- 
isOnlineModifiedboolean isOnlineModified()Gets the modification state of online.- Returns:
- true if modified
 
- 
isOnlinePersistedboolean isOnlinePersisted()Gets the last persisted value of online.- Returns:
- the last persisted value
 
- 
getLowWaterMark@Persistent(ordinal=4, comment="minimum number count before request to fill up from uplink, 0 to disable") long getLowWaterMark()Gets the attribute lowWaterMark.- Returns:
- minimum number count before request to fill up from uplink, 0 to disable
 
- 
setLowWaterMarkvoid setLowWaterMark(long lowWaterMark) Sets the attribute lowWaterMark.- Parameters:
- lowWaterMark- minimum number count before request to fill up from uplink, 0 to disable
 
- 
isLowWaterMarkModifiedboolean isLowWaterMarkModified()Gets the modification state of lowWaterMark.- Returns:
- true if modified
 
- 
getLowWaterMarkPersistedlong getLowWaterMarkPersisted()Gets the last persisted value of lowWaterMark.- Returns:
- the last persisted value
 
- 
getRequestSize@Persistent(ordinal=5, comment="number count to request from uplink, 0 to disable") long getRequestSize()Gets the attribute requestSize.- Returns:
- number count to request from uplink, 0 to disable
 
- 
setRequestSizevoid setRequestSize(long requestSize) Sets the attribute requestSize.- Parameters:
- requestSize- number count to request from uplink, 0 to disable
 
- 
isRequestSizeModifiedboolean isRequestSizeModified()Gets the modification state of requestSize.- Returns:
- true if modified
 
- 
getRequestSizePersistedlong getRequestSizePersisted()Gets the last persisted value of requestSize.- Returns:
- the last persisted value
 
- 
getUplink@Persistent(ordinal=6, comment="uplink configuration (optional)") @NotNull(condition="$slave") String getUplink()Gets the attribute uplink.- Returns:
- uplink configuration (optional)
 
- 
setUplinkSets the attribute uplink.- Parameters:
- uplink- uplink configuration (optional)
 
- 
isUplinkModifiedboolean isUplinkModified()Gets the modification state of uplink.- Returns:
- true if modified
 
- 
getUplinkPersistedString getUplinkPersisted()Gets the last persisted value of uplink.- Returns:
- the last persisted value
 
- 
selectByUniqueDomainKeySelects NumberPool by its unique domain key.- Parameters:
- name- the number pool name
- Returns:
- the NumberPool, null if no such PDO
 
- 
getNumberRangeList@Bindable @Persistent(ordinal=0, comment="NumberRange") org.tentackle.misc.TrackedList<NumberRange> getNumberRangeList()Gets composite list of NumberRange numberRangeList via NumberRange#numberPoolId.- Returns:
- numberRangeList NumberRange
 
- 
isNumberRangeListLoaded@Bindable boolean isNumberRangeListLoaded()Returns whether NumberRange is loaded.- Returns:
- true if getNumberRangeList() invoked at least once
 
- 
selectByNameRealmSelects by pool name and realm.- Parameters:
- name- the pool's name
- realm- the optional realm
- Returns:
- the pool
 
- 
reloadRangesvoid reloadRanges()Force the ranges to be reloaded.
 
-