@DomainObjectService(value=org.tentackle.ns.pdo.NumberRange.class) public class NumberRangeDomainImpl extends AbstractDomainObject<NumberRange,NumberRangeDomainImpl> implements NumberRangeDomain
| Constructor and Description |
|---|
NumberRangeDomainImpl() |
NumberRangeDomainImpl(NumberRange pdo) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertNotEmpty()
Asserts that range is not empty.
|
boolean |
intersects(long begin,
long end) |
boolean |
isEmpty() |
long |
popNumber() |
NumberSource.Range |
popNumbers(long count) |
long |
size() |
String |
toString()
Gets the string representation of this domain object.
|
assertRootEntity, clone, cloneDomainObject, findByUniqueDomainKey, getDomainContext, getEffectiveClass, getEffectiveSuperClasses, getPdo, getPersistenceDelegate, getPlural, getSession, getSingular, getUniqueDomainKey, getUniqueDomainKeyType, isUniqueDomainKeyProvided, me, pdo, setPdo, setUniqueDomainKey, toGenericStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcloneDomainObject, findByUniqueDomainKey, getPlural, getSingular, getUniqueDomainKey, getUniqueDomainKeyType, isUniqueDomainKeyProvided, pdo, setUniqueDomainKey, toGenericStringgetPersistenceDelegatemegetDomainContext, on, oppublic NumberRangeDomainImpl(NumberRange pdo)
public NumberRangeDomainImpl()
public String toString()
AbstractDomainObjectThe 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.
toString in class AbstractDomainObject<NumberRange,NumberRangeDomainImpl>public long size()
size in interface NumberRangeDomainpublic boolean isEmpty()
isEmpty in interface NumberRangeDomainpublic long popNumber()
popNumber in interface NumberRangeDomainpublic NumberSource.Range popNumbers(long count)
popNumbers in interface NumberRangeDomainpublic boolean intersects(long begin,
long end)
intersects in interface NumberRangeDomainprotected void assertNotEmpty()
NumberSourceEmptyException - if emptyTentackle - distributed, domain- and model-driven