- 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
Modifier and TypeFieldDescriptionstatic final String
attribute name for database column 'description'.static final String
attribute name for database column 'lowmark'.static final String
attribute name for database column 'name'.static final String
attribute name for database column 'poolonline'.static final String
attribute name for database column 'realm'.static final String
attribute name for database column 'reqsize'.static final String
attribute name for database column 'uplink'.static final int
maximum number of characters for 'name'.static final int
maximum number of characters for 'realm'.static final String
relation 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.long
Gets the attribute lowWaterMark.long
Gets 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.long
Gets the attribute requestSize.long
Gets the last persisted value of requestSize.Gets the attribute uplink.Gets the last persisted value of uplink.boolean
Gets the modification state of description.boolean
Gets the modification state of lowWaterMark.boolean
Gets the modification state of name.boolean
Returns whether NumberRange is loaded.boolean
isOnline()
Gets the attribute online.boolean
Gets the modification state of online.boolean
Gets the last persisted value of online.boolean
Gets the modification state of realm.boolean
Gets the modification state of requestSize.boolean
Gets the modification state of uplink.void
Force the ranges to be reloaded.selectByNameRealm
(String name, String realm) Selects by pool name and realm.Selects NumberPool by its unique domain key.void
setDescription
(String description) Sets the attribute description.void
setLowWaterMark
(long lowWaterMark) Sets the attribute lowWaterMark.void
Sets the attribute name.void
setOnline
(boolean online) Sets the attribute online.void
Sets the attribute realm.void
setRequestSize
(long requestSize) Sets the attribute requestSize.void
Sets the attribute uplink.Methods inherited from interface org.tentackle.pdo.DomainContextDependable
createValidContext, determineContextId, getBaseContext, getContextId, isDomainContextImmutable, setDomainContext, setDomainContextImmutable
Methods inherited from interface org.tentackle.pdo.DomainContextProvider
getDomainContext, isWithinContext, isWithinContext, on, on, op, op
Methods inherited from interface org.tentackle.misc.Identifiable
toGenericString
Methods inherited from interface org.tentackle.misc.Immutable
getImmutableLoggingLevel, isFinallyImmutable, isImmutable, setFinallyImmutable, setImmutable, setImmutableLoggingLevel
Methods inherited from interface org.tentackle.misc.Modifiable
isModified
Methods inherited from interface org.tentackle.pdo.PdoProvider
getPdo, on, on
Methods inherited from interface org.tentackle.pdo.PersistenceDelegate
getDomainDelegate
Methods 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, validate
Methods inherited from interface org.tentackle.pdo.ProxyDelegate
me
Methods inherited from interface org.tentackle.validate.ScopeConfigurator
getDefaultScopes
Methods inherited from interface org.tentackle.misc.SerialNumbered
isVirgin
Methods inherited from interface org.tentackle.session.SessionDependable
isSessionImmutable, setSession, setSessionImmutable
Methods inherited from interface org.tentackle.session.SessionProvider
getSession
Methods inherited from interface org.tentackle.misc.Snapshotable
copy, createSnapshot, discardSnapshot, discardSnapshots, getSnapshots, isCopy, isSnapshot, revertToSnapshot, setCopy
Methods 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.
-