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

public interface NumberPoolPersistence extends PersistentObject<NumberPool>
Persistence interface for number pool.
Author:
harald
  • Field Details

  • Method Details

    • getName

      @Persistent(ordinal=0, comment="the number pool name") @NotNull @DomainKey String getName()
      Gets the attribute name.
      Returns:
      the number pool name
    • setName

      void setName(String name)
      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

      @Persistent(ordinal=1, comment="pool realm, optional") String getRealm()
      Gets the attribute realm.
      Returns:
      pool realm, optional
    • setRealm

      void setRealm(String realm)
      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

      @Persistent(ordinal=2, comment="short description") String getDescription()
      Gets the attribute description.
      Returns:
      short description
    • setDescription

      void setDescription(String description)
      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

      @Persistent(ordinal=3, comment="true if online, else offline") boolean 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

      void setUplink(String uplink)
      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

      NumberPool selectByUniqueDomainKey(String name)
      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

      NumberPool selectByNameRealm(String name, String realm)
      Selects by pool name and realm.
      Parameters:
      name - the pool's name
      realm - the optional realm
      Returns:
      the pool
    • reloadRanges

      void reloadRanges()
      Force the ranges to be reloaded.