Interface NumberPoolPersistence
- 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 'component 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 the component 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 the 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 DomainContextDependable
createValidContext, determineContextId, getBaseContext, getContextId, isDomainContextImmutable, setDomainContext, setDomainContextImmutableMethods inherited from interface 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 PdoProvider
getPdo, on, onMethods inherited from interface PersistenceDelegate
getDomainDelegateMethods inherited from interface 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, selectAllWithExpiredTableSerials, selectAny, selectAnyCached, selectAnyForCache, selectByNormText, selectByNormTextAsCursor, selectCached, selectCachedOnly, selectExpiredTableSerials, selectExpiredTableSerials, selectForCache, selectForUpdate, selectLatest, selectMaxId, selectMaxTableSerial, selectSerial, selectTokenLocked, setExpired, toIdString, transferTokenLock, validateMethods inherited from interface ProxyDelegate
meMethods inherited from interface org.tentackle.validate.ScopeConfigurator
getDefaultScopesMethods inherited from interface org.tentackle.misc.SerialNumbered
isVirginMethods inherited from interface SessionDependable
isSessionImmutable, setSession, setSessionImmutableMethods inherited from interface 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 'component list of NumberRange numberRangeList via NumberRange#numberPoolId'.- See Also:
-
AN_NAME
-
AN_REALM
-
AN_DESCRIPTION
-
AN_ONLINE
-
AN_LOWWATERMARK
-
AN_REQUESTSIZE
-
AN_UPLINK
-
-
Method Details
-
getName
Gets the attribute 'name'.- Returns:
- the number pool name
-
setName
-
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:
- the pool realm, optional
-
setRealm
Sets the attribute 'realm'.- Parameters:
realm- the 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:
- the short description
-
setDescription
Sets the attribute 'description'.- Parameters:
description- the 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="the minimum number count before request to fill up from uplink, 0 to disable") long getLowWaterMark()Gets the attribute 'lowWaterMark'.- Returns:
- the minimum number count before request to fill up from uplink, 0 to disable
-
setLowWaterMark
void setLowWaterMark(long lowWaterMark) Sets the attribute 'lowWaterMark'.- Parameters:
lowWaterMark- the 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="the number count to request from uplink, 0 to disable") long getRequestSize()Gets the attribute 'requestSize'.- Returns:
- the number count to request from uplink, 0 to disable
-
setRequestSize
void setRequestSize(long requestSize) Sets the attribute 'requestSize'.- Parameters:
requestSize- the 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="the uplink configuration (optional)") @NotNull(condition="$slave") String getUplink()Gets the attribute 'uplink'.- Returns:
- the uplink configuration (optional)
-
setUplink
Sets the attribute 'uplink'.- Parameters:
uplink- the 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 the 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="the list of NumberRange") org.tentackle.misc.TrackedList<NumberRange> getNumberRangeList()Gets the component list of NumberRange numberRangeList via NumberRange#numberPoolId.- Returns:
- the list of 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.
-