Module org.seasar.doma.core
Package org.seasar.doma.jdbc.domain
Class AbstractDomainType<BASIC,DOMAIN>
java.lang.Object
org.seasar.doma.jdbc.domain.AbstractDomainType<BASIC,DOMAIN>
- All Implemented Interfaces:
DomainType<BASIC,DOMAIN>
public abstract class AbstractDomainType<BASIC,DOMAIN>
extends Object
implements DomainType<BASIC,DOMAIN>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprotected class -
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractDomainType(Supplier<Wrapper<BASIC>> wrapperSupplier) protectedAbstractDomainType(Supplier<Wrapper<BASIC>> wrapperSupplier, Supplier<JdbcType<?>> jdbcTypeSupplier) -
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.protected abstract BASICgetBasicValue(DOMAIN domain) protected abstract DOMAINMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.seasar.doma.jdbc.domain.DomainType
createOptionalScalarSupplier, createScalarSupplier, getBasicClass, getDomainClass
-
Field Details
-
wrapperSupplier
-
jdbcTypeSupplier
-
-
Constructor Details
-
AbstractDomainType
-
AbstractDomainType
-
-
Method Details
-
newDomain
-
getBasicValue
-
createScalar
Description copied from interface:DomainTypeCreate a scalar.- Specified by:
createScalarin interfaceDomainType<BASIC,DOMAIN> - Returns:
- the scalar
-
createScalar
Description copied from interface:DomainTypeCreate a scalar that has the initial value.- Specified by:
createScalarin interfaceDomainType<BASIC,DOMAIN> - Parameters:
value- the initial value- Returns:
- the scalar
-
createOptionalScalar
Description copied from interface:DomainTypeCreate an optional scalar.- Specified by:
createOptionalScalarin interfaceDomainType<BASIC,DOMAIN> - Returns:
- the optional scalar
-
createOptionalScalar
Description copied from interface:DomainTypeCreate an optional scalar that has the initial value.- Specified by:
createOptionalScalarin interfaceDomainType<BASIC,DOMAIN> - Parameters:
value- the initial value- Returns:
- the optional scalar
-