Module org.seasar.doma.core
Class ScalarInOutParameter<BASIC,CONTAINER>
java.lang.Object
org.seasar.doma.internal.jdbc.sql.ScalarInOutParameter<BASIC,CONTAINER>
- All Implemented Interfaces:
InParameter<BASIC>,JdbcMappable<BASIC>,JdbcMappingHint,OutParameter<BASIC>,SqlParameter
- Direct Known Subclasses:
BasicInOutParameter,DomainInOutParameter,OptionalBasicInOutParameter,OptionalDomainInOutParameter,OptionalDoubleInOutParameter,OptionalIntInOutParameter,OptionalLongInOutParameter
public class ScalarInOutParameter<BASIC,CONTAINER>
extends Object
implements InParameter<BASIC>, OutParameter<BASIC>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<R,P, TH extends Throwable>
Raccept(SqlParameterVisitor<R, P, TH> visitor, P p) Accepts the visitor.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.getValue()Returns the parameter value.Returns the wrapper.voidUpdates the reference value.
-
Field Details
-
scalar
-
reference
-
-
Constructor Details
-
ScalarInOutParameter
-
-
Method Details
-
getValue
Description copied from interface:SqlParameterReturns the parameter value.- Specified by:
getValuein interfaceSqlParameter- Returns:
- the parameter value
-
getWrapper
Description copied from interface:JdbcMappableReturns the wrapper.- Specified by:
getWrapperin interfaceJdbcMappable<BASIC>- Returns:
- the wrapper
-
updateReference
public void updateReference()Description copied from interface:OutParameterUpdates the reference value.- Specified by:
updateReferencein interfaceOutParameter<BASIC>
-
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
-
accept
Description copied from interface:SqlParameterAccepts the visitor.- Specified by:
acceptin interfaceSqlParameter- Type Parameters:
R- the result typeP- the parameter typeTH- the throwable type- Parameters:
visitor- the visitorp- the parameter- Returns:
- the result
- Throws:
TH- the exception
-