java.lang.Object
org.tentackle.domain.AbstractDomainObject<NumberRange,NumberRangeDomainImpl>
org.tentackle.domain.ns.NumberRangeDomainImpl
- All Implemented Interfaces:
Serializable,NumberRangeDomain,DomainContextProvider,DomainDelegate<NumberRange>,DomainObject<NumberRange>,PdoProvider<NumberRange>,ProxyDelegate<NumberRange>,org.tentackle.reflect.EffectiveClassProvider<NumberRange>,org.tentackle.reflect.Interceptable,org.tentackle.session.SessionProvider
@DomainObjectService(org.tentackle.ns.pdo.NumberRange.class)
public class NumberRangeDomainImpl
extends AbstractDomainObject<NumberRange,NumberRangeDomainImpl>
implements NumberRangeDomain
NumberRange domain implementation.
- Author:
- harald
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAsserts that range is not empty.booleanintersects(long begin, long end) booleanisEmpty()longpopNumbers(long count) longsize()toString()Gets the string representation of this domain object.Methods inherited from class org.tentackle.domain.AbstractDomainObject
assertRootEntity, findByUniqueDomainKey, getDomainContext, getEffectiveClass, getEffectiveSuperClasses, getPdo, getPersistenceDelegate, getPlural, getSession, getSingular, getUniqueDomainKey, getUniqueDomainKeyType, isUniqueDomainKeyProvided, me, setPdo, setUniqueDomainKey, toGenericStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.tentackle.pdo.DomainContextProvider
getDomainContext, on, on, op, opMethods inherited from interface org.tentackle.pdo.DomainDelegate
getPersistenceDelegateMethods inherited from interface org.tentackle.pdo.DomainObject
findByUniqueDomainKey, getPlural, getSingular, getUniqueDomainKey, getUniqueDomainKeyType, isUniqueDomainKeyProvided, setUniqueDomainKey, toGenericStringMethods inherited from interface org.tentackle.pdo.PdoProvider
getPdo, on, onMethods inherited from interface org.tentackle.pdo.ProxyDelegate
meMethods inherited from interface org.tentackle.session.SessionProvider
getSession
-
Constructor Details
-
NumberRangeDomainImpl
-
NumberRangeDomainImpl
public NumberRangeDomainImpl()
-
-
Method Details
-
toString
Description copied from class:AbstractDomainObjectGets 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:
toStringin classAbstractDomainObject<NumberRange,NumberRangeDomainImpl> - Returns:
- the string representation
-
size
public long size()- Specified by:
sizein interfaceNumberRangeDomain
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceNumberRangeDomain
-
popNumber
public long popNumber()- Specified by:
popNumberin interfaceNumberRangeDomain
-
popNumbers
- Specified by:
popNumbersin interfaceNumberRangeDomain
-
intersects
public boolean intersects(long begin, long end) - Specified by:
intersectsin interfaceNumberRangeDomain
-
assertNotEmpty
protected void assertNotEmpty()Asserts that range is not empty.- Throws:
NumberSourceEmptyException- if empty
-