Class NumberPoolDomainImpl

All Implemented Interfaces:
Serializable, NumberPoolDomain, DomainContextProvider, DomainDelegate<NumberPool>, DomainObject<NumberPool>, PdoProvider<NumberPool>, ProxyDelegate<NumberPool>, EffectiveClassProvider<NumberPool>, Interceptable, SessionProvider

NumberPool domain implementation.
Author:
harald
See Also:
  • Constructor Details

    • NumberPoolDomainImpl

      public NumberPoolDomainImpl(NumberPool pdo)
    • NumberPoolDomainImpl

      public NumberPoolDomainImpl()
  • Method Details

    • toString

      public String toString()
      Description copied from class: AbstractDomainObject
      Gets the string representation of this domain object.

      The default implementation returns the domain key, if this is a root entity. If a component, its single-name will be returned. If evaluating the domain key failed, the generic string is returned along with the exception in parentheses. This is due to the fact that toString should never throw an exception as it is used for logging and debugging.

      Overrides:
      toString in class AbstractDomainObject<NumberPool,NumberPoolDomainImpl>
      Returns:
      the string representation
    • getCurrentRange

      public NumberRange getCurrentRange()
      Description copied from interface: NumberPoolDomain
      Get the current range.
      This is the first non-empty range with the lowest "begin".
      Specified by:
      getCurrentRange in interface NumberPoolDomain
      Returns:
      the current range
    • isSlave

      public boolean isSlave()
      Description copied from interface: NumberPoolDomain
      Returns whether this pool is a slave pool and gets its ranges from an uplink.
      Specified by:
      isSlave in interface NumberPoolDomain
      Returns:
      true if slave