- 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 Summary
FieldsModifier 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 Summary
Modifier 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.DomainContextDependable
createValidContext, determineContextId, getBaseContext, getContextId, isDomainContextImmutable, setDomainContext, setDomainContextImmutableMethods inherited from interface org.tentackle.pdo.DomainContextProvider
getDomainContext, isWithinContext, isWithinContext, on, on, op, opMethods inherited from interface org.tentackle.misc.Identifiable
toGenericStringMethods inherited from interface org.tentackle.misc.Immutable
getImmutableLoggingLevel, isFinallyImmutable, isImmutable, setFinallyImmutable, setImmutable, setImmutableLoggingLevelMethods inherited from interface org.tentackle.misc.Modifiable
isModifiedMethods 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
attributesModified, 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.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, setSession, setSessionImmutableMethods inherited from interface org.tentackle.session.SessionProvider
getSessionMethods inherited from interface org.tentackle.misc.Snapshotable
copy, createSnapshot, discardSnapshot, discardSnapshots, getSnapshots, isCopy, isSnapshot, revertToSnapshot, setCopyMethods inherited from interface org.tentackle.validate.Validateable
validate
-
Field Details
-
CL_NAME
static final int CL_NAMEmaximum number of characters for 'name'.- See Also:
-
CL_REALM
static final int CL_REALMmaximum number of characters for 'realm'.- See Also:
-
RN_NUMBERRANGELIST
relation name for 'composite list of NumberRange numberRangeList via NumberRange#numberPoolId'.- See Also:
-
AN_NAME
attribute name for database column 'name'.- See Also:
-
AN_REALM
attribute name for database column 'realm'.- See Also:
-
AN_DESCRIPTION
attribute name for database column 'description'.- See Also:
-
AN_ONLINE
attribute name for database column 'poolonline'.- See Also:
-
AN_LOWWATERMARK
attribute name for database column 'lowmark'.- See Also:
-
AN_REQUESTSIZE
attribute name for database column 'reqsize'.- See Also:
-
AN_UPLINK
attribute name for database column 'uplink'.- See Also:
-
-
Method Details
-
getName
Gets the attribute name.- Returns:
- the number pool name
-
setName
Sets the attribute name.- Parameters:
name- the number pool name
-
isNameModified
boolean isNameModified()Gets the modification state of name.- Returns:
- true if modified
-
getNamePersisted
String getNamePersisted()Gets the last persisted value of name.- Returns:
- the last persisted value
-
getRealm
Gets the attribute realm.- Returns:
- pool realm, optional
-
setRealm
Sets the attribute realm.- Parameters:
realm- pool realm, optional
-
isRealmModified
boolean isRealmModified()Gets the modification state of realm.- Returns:
- true if modified
-
getRealmPersisted
String getRealmPersisted()Gets the last persisted value of realm.- Returns:
- the last persisted value
-
getDescription
Gets the attribute description.- Returns:
- short description
-
setDescription
Sets the attribute description.- Parameters:
description- short description
-
isDescriptionModified
boolean isDescriptionModified()Gets the modification state of description.- Returns:
- true if modified
-
getDescriptionPersisted
String getDescriptionPersisted()Gets the last persisted value of description.- Returns:
- the last persisted value
-
isOnline
Gets the attribute online.- Returns:
- true if online, else offline
-
setOnline
void setOnline(boolean online) Sets the attribute online.- Parameters:
online- true if online, else offline
-
isOnlineModified
boolean isOnlineModified()Gets the modification state of online.- Returns:
- true if modified
-
isOnlinePersisted
boolean 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
-
setLowWaterMark
void setLowWaterMark(long lowWaterMark) Sets the attribute lowWaterMark.- Parameters:
lowWaterMark- minimum number count before request to fill up from uplink, 0 to disable
-
isLowWaterMarkModified
boolean isLowWaterMarkModified()Gets the modification state of lowWaterMark.- Returns:
- true if modified
-
getLowWaterMarkPersisted
long 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
-
setRequestSize
void setRequestSize(long requestSize) Sets the attribute requestSize.- Parameters:
requestSize- number count to request from uplink, 0 to disable
-
isRequestSizeModified
boolean isRequestSizeModified()Gets the modification state of requestSize.- Returns:
- true if modified
-
getRequestSizePersisted
long 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)
-
setUplink
Sets the attribute uplink.- Parameters:
uplink- uplink configuration (optional)
-
isUplinkModified
boolean isUplinkModified()Gets the modification state of uplink.- Returns:
- true if modified
-
getUplinkPersisted
String getUplinkPersisted()Gets the last persisted value of uplink.- Returns:
- the last persisted value
-
selectByUniqueDomainKey
Selects 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
-
selectByNameRealm
Selects by pool name and realm.- Parameters:
name- the pool's namerealm- the optional realm- Returns:
- the pool
-
reloadRanges
void reloadRanges()Force the ranges to be reloaded.
-