Module org.seasar.doma.core
Package org.seasar.doma.jdbc.entity
Class DefaultPropertyType.DefaultProperty
java.lang.Object
org.seasar.doma.jdbc.entity.DefaultPropertyType.DefaultProperty
- All Implemented Interfaces:
Property<ENTITY,,BASIC> JdbcMappable<BASIC>,JdbcMappingHint
- Enclosing class:
- DefaultPropertyType<ENTITY,
BASIC, CONTAINER>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns this property as anInParameterfor use in SQL execution.get()Returns the current value of this property.Returns the non-optional value of this property.Returns the domain class if this object is mapped to the domain class.Returns the JDBC type if the target value is mapped to the JDBC type.Returns the wrapper.Loads the value from the entity into this property.Saves the current value of this property to the given entity instance.toString()
-
Field Details
-
scalar
-
-
Constructor Details
-
DefaultProperty
protected DefaultProperty()
-
-
Method Details
-
get
Description copied from interface:PropertyReturns the current value of this property.The returned value may be wrapped in an Optional if the property is nullable.
-
getAsNonOptional
Description copied from interface:PropertyReturns the non-optional value of this property.If the property value is wrapped in an Optional, this method unwraps it. This method may throw an exception if the property value is null.
- Specified by:
getAsNonOptionalin interfaceProperty<ENTITY,BASIC> - Returns:
- the non-optional value of this property
-
load
Description copied from interface:PropertyLoads the value from the entity into this property.This method extracts the property value from the given entity instance and stores it in this property object for later use.
-
save
Description copied from interface:PropertySaves the current value of this property to the given entity instance.This method updates the property value in the given entity instance with the current value stored in this property object.
-
asInParameter
Description copied from interface:PropertyReturns this property as anInParameterfor use in SQL execution.This method allows the property to be used as a parameter in SQL statements.
- Specified by:
asInParameterin interfaceProperty<ENTITY,BASIC> - Returns:
- an input parameter representing this property's value
- See Also:
-
getWrapper
Description copied from interface:JdbcMappableReturns the wrapper.- Specified by:
getWrapperin interfaceJdbcMappable<BASIC>- Returns:
- the wrapper
-
getDomainClass
Description copied from interface:JdbcMappingHintReturns the domain class if this object is mapped to the domain class.- Specified by:
getDomainClassin interfaceJdbcMappingHint- Returns:
- the domain class
-
getJdbcType
Description copied from interface:JdbcMappingHintReturns the JDBC type if the target value is mapped to the JDBC type.- Specified by:
getJdbcTypein interfaceJdbcMappingHint- Returns:
- the JDBC type
-
toString
-