Class ResultMapping
java.lang.Object
com.ibatis.sqlmap.engine.mapping.result.ResultMapping
Basic implementation of ResultMapping.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Getter for the column index that we are mapping.Getter for the column name that we are mapping.Getter for the error message when something goes wrong mapping this property.Setter for the Java type of the column.int
Getter for the JDBC type of the column.Getter for the JDBC type name of the column.Gets the nested result map name.Getter for the name of the column to check for null before instantiating a nested resultMapping value.Getter for what to return if the column is null.Gets the property name.Getter for the name of the statement.Getter for the type handler for the column.void
setColumnIndex
(int columnIndex) Setter for the column index we are mapping (used by the automap or builder).void
setColumnName
(String columnName) Setter for the column name we are mapping (used by the automap or builder).void
setJavaType
(Class javaType) Setter for the Java type of the column.void
setJdbcTypeName
(String jdbcTypeName) Setter for the JDBC type name of the column.void
setNestedResultMapName
(String nestedResultMapName) Sets the nested result map name.void
setNotNullColumn
(String notNullColumn) Setter for the name of the column to check for null before instantiating a nested resultMapping value.void
setNullValue
(String nullValue) Setter for what to return if the column is null.void
setPropertyName
(String propertyName) Setter for the object property name (used by the automap, and the builder).void
setStatementName
(String statementName) Setter for the name of the statement.void
setTypeHandler
(TypeHandler typeHandler) Setter for the type handler for the column.
-
Constructor Details
-
ResultMapping
public ResultMapping()
-
-
Method Details
-
getPropertyName
Gets the property name.- Returns:
- the property name
-
setPropertyName
Setter for the object property name (used by the automap, and the builder).- Parameters:
propertyName
- - the property name
-
getErrorString
Getter for the error message when something goes wrong mapping this property.- Returns:
- - the error message
-
getColumnName
Getter for the column name that we are mapping.- Returns:
- - the column name
-
setColumnName
Setter for the column name we are mapping (used by the automap or builder).- Parameters:
columnName
- - the column name
-
getColumnIndex
public int getColumnIndex()Getter for the column index that we are mapping.- Returns:
- - the column index
-
setColumnIndex
public void setColumnIndex(int columnIndex) Setter for the column index we are mapping (used by the automap or builder).- Parameters:
columnIndex
- - the column index
-
getTypeHandler
Getter for the type handler for the column.- Returns:
- - the type handler
-
setTypeHandler
Setter for the type handler for the column.- Parameters:
typeHandler
- - the type handler
-
getJavaType
Setter for the Java type of the column.- Returns:
- - the Java type
-
setJavaType
Setter for the Java type of the column.- Parameters:
javaType
- - the Java type
-
getJdbcType
public int getJdbcType()Getter for the JDBC type of the column.- Returns:
- - the JDBC type
-
getJdbcTypeName
Getter for the JDBC type name of the column.- Returns:
- - the JDBC type name
-
setJdbcTypeName
Setter for the JDBC type name of the column.- Parameters:
jdbcTypeName
- - the JDBC type name
-
getNullValue
Getter for what to return if the column is null.- Returns:
- - the null substitution
-
setNullValue
Setter for what to return if the column is null.- Parameters:
nullValue
- - the null substitution
-
getNotNullColumn
Getter for the name of the column to check for null before instantiating a nested resultMapping value.- Returns:
- - the null substitution
-
setNotNullColumn
Setter for the name of the column to check for null before instantiating a nested resultMapping value.- Parameters:
notNullColumn
- - the column name
-
getStatementName
Getter for the name of the statement.- Returns:
- - the name
-
setStatementName
Setter for the name of the statement.- Parameters:
statementName
- - the name
-
getNestedResultMapName
Gets the nested result map name.- Returns:
- the nested result map name
-
setNestedResultMapName
Sets the nested result map name.- Parameters:
nestedResultMapName
- the new nested result map name
-