Module org.seasar.doma.core
Class ScalarSingleResultParameter<BASIC,CONTAINER>
java.lang.Object
org.seasar.doma.internal.jdbc.sql.ScalarSingleResultParameter<BASIC,CONTAINER>
- All Implemented Interfaces:
JdbcMappable<BASIC>,JdbcMappingHint,ResultParameter<CONTAINER>,SingleResultParameter<BASIC,,CONTAINER> SqlParameter
- Direct Known Subclasses:
BasicSingleResultParameter,DomainSingleResultParameter,OptionalBasicSingleResultParameter,OptionalDomainSingleResultParameter,OptionalDoubleSingleResultParameter,OptionalIntSingleResultParameter,OptionalLongSingleResultParameter
public class ScalarSingleResultParameter<BASIC,CONTAINER>
extends Object
implements SingleResultParameter<BASIC,CONTAINER>
-
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.
-
Field Details
-
scalar
-
-
Constructor Details
-
ScalarSingleResultParameter
-
-
Method Details
-
getWrapper
Description copied from interface:JdbcMappableReturns the wrapper.- Specified by:
getWrapperin interfaceJdbcMappable<BASIC>- Returns:
- the wrapper
-
getValue
Description copied from interface:SqlParameterReturns the parameter value.- Specified by:
getValuein interfaceSqlParameter- Returns:
- the parameter value
-
getResult
- Specified by:
getResultin interfaceResultParameter<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
-