|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibatis.db.sqlmap.ResultMap
The ResultMap object is used to map the results of an SQL statement to a bean or collection of beans.
Field Summary | |
private java.lang.String |
className
|
private java.util.List |
mappedPropertyNames
|
private java.util.Map |
mappings
|
private java.lang.String |
name
|
static int |
UNKNOWN_COLUMN_INDEX
|
Constructor Summary | |
ResultMap()
Default constructor |
Method Summary | |
void |
addResultMapping(ResultMapping mapping)
Adds a result mapping to this result map. |
java.lang.String |
getClassName()
Getter for the className property |
java.util.Iterator |
getMappedPropertyNames()
Returns an iterator that provides acces to all of the names of the mapped properties |
java.lang.String |
getName()
Getter for the name property |
ResultMapping |
getResultMapping(java.lang.String propertyName)
Returns a result mapping for the provided property name. |
void |
setClassName(java.lang.String className)
Setter for the className property |
void |
setName(java.lang.String name)
Setter for the name property |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int UNKNOWN_COLUMN_INDEX
private java.lang.String name
private java.lang.String className
private java.util.Map mappings
private java.util.List mappedPropertyNames
Constructor Detail |
public ResultMap()
Method Detail |
public java.lang.String getName()
public void setName(java.lang.String name)
name
- The new name of the objectpublic java.lang.String getClassName()
public void setClassName(java.lang.String className)
className
- The new name of the class to map data intopublic void addResultMapping(ResultMapping mapping)
mapping
- The mapping to add.public ResultMapping getResultMapping(java.lang.String propertyName)
propertyName
- The property name for which to look up the result mapping
public java.util.Iterator getMappedPropertyNames()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |