Package org.apache.ibatis.annotations
Annotation Type Arg
-
@Documented @Retention(RUNTIME) @Target(METHOD) @Repeatable(ConstructorArgs.class) public @interface Arg
The annotation that specify a mapping definition for the constructor argument.- Author:
- Clinton Begin
- See Also:
ConstructorArgs
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringcolumnReturn the column name(or column label) to map to this argument.StringcolumnPrefixReturns the column prefix that use when applyingresultMap().booleanidReturns whether id column or not.Class<?>javaTypeReturn the java type for this argument.JdbcTypejdbcTypeReturn the jdbc type for column that map to this argument.StringnameReturns the parameter name for applying this mapping.StringresultMapReturns the result map id for mapping to a object that map to this argument.StringselectReturn the statement id for retrieving a object that map to this argument.Class<? extends TypeHandler>typeHandlerReturns theTypeHandlertype for retrieving a column value from result set.
-
-
-
-
column
String column
Return the column name(or column label) to map to this argument.- Returns:
- the column name(or column label)
- Default:
- ""
-
-
-
javaType
Class<?> javaType
Return the java type for this argument.- Returns:
- the java type
- Default:
- void.class
-
-
-
jdbcType
JdbcType jdbcType
Return the jdbc type for column that map to this argument.- Returns:
- the jdbc type
- Default:
- org.apache.ibatis.type.JdbcType.UNDEFINED
-
-
-
typeHandler
Class<? extends TypeHandler> typeHandler
Returns theTypeHandlertype for retrieving a column value from result set.- Returns:
- the
TypeHandlertype
- Default:
- org.apache.ibatis.type.UnknownTypeHandler.class
-
-
-
select
String select
Return the statement id for retrieving a object that map to this argument.- Returns:
- the statement id
- Default:
- ""
-
-
-
resultMap
String resultMap
Returns the result map id for mapping to a object that map to this argument.- Returns:
- the result map id
- Default:
- ""
-
-
-
name
String name
Returns the parameter name for applying this mapping.- Returns:
- the parameter name
- Since:
- 3.4.3
- Default:
- ""
-
-
-
columnPrefix
String columnPrefix
Returns the column prefix that use when applyingresultMap().- Returns:
- the column prefix
- Since:
- 3.5.0
- Default:
- ""
-
-