com.ibatis.db.sqlmap
Class ParameterMap

java.lang.Object
  extended bycom.ibatis.db.sqlmap.ParameterMap

public class ParameterMap
extends java.lang.Object

The ParameterMap object is used to define the mapping between a MappedStatement and a bean. The properties are mapped by the order that they appear in this object (which is the order that they appear in the xml file that defines it).


Field Summary
private  java.util.Map mappings
           
private  java.lang.String name
           
private  java.util.List propertyNames
           
 
Constructor Summary
ParameterMap()
          Default constructor
 
Method Summary
 void addParameterMapping(ParameterMapping parameterMapping)
           
 int getCountOfPropertyMappings()
          Getter for the number of property mappings defined by this ParameterMap
 java.lang.String getName()
          Getter for the name property
 ParameterMapping getParameterMapping(int i)
           
 java.lang.String[] getPropertyNameArray()
          Getter for propertyNames 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

name

private java.lang.String name

propertyNames

private java.util.List propertyNames

mappings

private java.util.Map mappings
Constructor Detail

ParameterMap

public ParameterMap()
Default constructor

Method Detail

getName

public java.lang.String getName()
Getter for the name property

Returns:
The name of the ParameterMap object

setName

public void setName(java.lang.String name)
Setter for the name property

Parameters:
name - The new name of the object

getPropertyNameArray

public java.lang.String[] getPropertyNameArray()
Getter for propertyNames property

Returns:
An array of Strings containing the names of the properties

addParameterMapping

public void addParameterMapping(ParameterMapping parameterMapping)

getParameterMapping

public ParameterMapping getParameterMapping(int i)

getCountOfPropertyMappings

public int getCountOfPropertyMappings()
Getter for the number of property mappings defined by this ParameterMap

Returns:
The number of mappings