- Type Parameters:
BASIC- the basic typeDOMAIN- the domain type
- All Known Implementing Classes:
AbstractDomainType
public interface DomainType<BASIC,DOMAIN>
A description for a domain type.
The implementation class is not required to be thread safe.
-
Method Summary
Modifier and TypeMethodDescriptionCreate an optional scalar.createOptionalScalar(DOMAIN value) Create an optional scalar that has the initial value.Create a scalar.createScalar(DOMAIN value) Create a scalar that has the initial value.Class<?>Returns the basic class.Returns the domain class.
-
Method Details
-
getBasicClass
Class<?> getBasicClass()Returns the basic class.This method may return a primitive type, so the return type is not
Class<BASIC>butClass<?>.- Returns:
- the basic class
-
getDomainClass
Returns the domain class.- Returns:
- the domain class
-
createScalar
Create a scalar.- Returns:
- the scalar
-
createScalar
Create a scalar that has the initial value.- Parameters:
value- the initial value- Returns:
- the scalar
-
createOptionalScalar
Create an optional scalar.- Returns:
- the optional scalar
-
createOptionalScalar
Create an optional scalar that has the initial value.- Parameters:
value- the initial value- Returns:
- the optional scalar
-
createScalarSupplier
-
createOptionalScalarSupplier
-