com.ibatis.sqlmap.engine.mapping.result

Class ResultMapping

public class ResultMapping extends Object

Basic implementation of ResultMapping
Method Summary
intgetColumnIndex()
Getter for the column index that we are mapping
StringgetColumnName()
Getter for the column name that we are mapping
StringgetErrorString()
Getter for the error message when something goes wrong mapping this property
ClassgetJavaType()
Setter for the Java type of the column
intgetJdbcType()
Getter for the JDBC type of the column
StringgetJdbcTypeName()
Getter for the JDBC type name of the column
StringgetNestedResultMapName()
StringgetNotNullColumn()
Getter for the name of the column to check for null before instantiating a nested resultMapping value
StringgetNullValue()
Getter for what to return if the column is null
StringgetPropertyName()
StringgetStatementName()
Getter for the name of the statement
TypeHandlergetTypeHandler()
Getter for the type handler for the column
voidsetColumnIndex(int columnIndex)
Setter for the column index we are mapping (used by the automap or builder)
voidsetColumnName(String columnName)
Setter for the column name we are mapping (used by the automap or builder)
voidsetJavaType(Class javaType)
Setter for the Java type of the column
voidsetJdbcTypeName(String jdbcTypeName)
Setter for the JDBC type name of the column
voidsetNestedResultMapName(String nestedResultMapName)
voidsetNotNullColumn(String notNullColumn)
Setter for the name of the column to check for null before instantiating a nested resultMapping value
voidsetNullValue(String nullValue)
Setter for what to return if the column is null
voidsetPropertyName(String propertyName)
Setter for the object property name (used by the automap, and the builder)
voidsetStatementName(String statementName)
Setter for the name of the statement
voidsetTypeHandler(TypeHandler typeHandler)
Setter for the type handler for the column

Method Detail

getColumnIndex

public int getColumnIndex()
Getter for the column index that we are mapping

Returns: - the column index

getColumnName

public String getColumnName()
Getter for the column name that we are mapping

Returns: - the column name

getErrorString

public String getErrorString()
Getter for the error message when something goes wrong mapping this property

Returns: - the error message

getJavaType

public Class getJavaType()
Setter for the Java type of the column

Returns: - the Java type

getJdbcType

public int getJdbcType()
Getter for the JDBC type of the column

Returns: - the JDBC type

getJdbcTypeName

public String getJdbcTypeName()
Getter for the JDBC type name of the column

Returns: - the JDBC type name

getNestedResultMapName

public String getNestedResultMapName()

getNotNullColumn

public String getNotNullColumn()
Getter for the name of the column to check for null before instantiating a nested resultMapping value

Returns: - the null substitution

getNullValue

public String getNullValue()
Getter for what to return if the column is null

Returns: - the null substitution

getPropertyName

public String getPropertyName()

getStatementName

public String getStatementName()
Getter for the name of the statement

Returns: - the name

getTypeHandler

public TypeHandler getTypeHandler()
Getter for the type handler for the column

Returns: - the type handler

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

setColumnName

public void setColumnName(String columnName)
Setter for the column name we are mapping (used by the automap or builder)

Parameters: columnName - the column name

setJavaType

public void setJavaType(Class javaType)
Setter for the Java type of the column

Parameters: javaType - the Java type

setJdbcTypeName

public void setJdbcTypeName(String jdbcTypeName)
Setter for the JDBC type name of the column

Parameters: jdbcTypeName - the JDBC type name

setNestedResultMapName

public void setNestedResultMapName(String nestedResultMapName)

setNotNullColumn

public void setNotNullColumn(String notNullColumn)
Setter for the name of the column to check for null before instantiating a nested resultMapping value

Parameters: notNullColumn - the column name

setNullValue

public void setNullValue(String nullValue)
Setter for what to return if the column is null

Parameters: nullValue - the null substitution

setPropertyName

public void setPropertyName(String propertyName)
Setter for the object property name (used by the automap, and the builder)

Parameters: propertyName - the property name

setStatementName

public void setStatementName(String statementName)
Setter for the name of the statement

Parameters: statementName - the name

setTypeHandler

public void setTypeHandler(TypeHandler typeHandler)
Setter for the type handler for the column

Parameters: typeHandler - the type handler

Copyright © 2011. All Rights Reserved.