com.ibatis.sqlmap.engine.mapping.parameter
Class BasicParameterMap

java.lang.Object
  extended bycom.ibatis.sqlmap.engine.mapping.parameter.BasicParameterMap
All Implemented Interfaces:
ParameterMap
Direct Known Subclasses:
NoParameterMap

public class BasicParameterMap
extends java.lang.Object
implements ParameterMap


Constructor Summary
BasicParameterMap(SqlMapExecutorDelegate delegate)
           
 
Method Summary
 CacheKey getCacheKey(RequestScope request, java.lang.Object parameterObject)
           
 DataExchange getDataExchange()
           
 SqlMapExecutorDelegate getDelegate()
           
 java.lang.String getId()
           
 java.lang.Class getParameterClass()
           
 int getParameterCount()
           
 int getParameterIndex(java.lang.String propertyName)
           
 ParameterMapping[] getParameterMappings()
           
 java.lang.Object[] getParameterObjectValues(RequestScope request, java.lang.Object parameterObject)
           
 java.lang.String getResource()
           
 void refreshParameterObjectValues(RequestScope request, java.lang.Object parameterObject, java.lang.Object[] values)
           
 void setDataExchange(DataExchange dataExchange)
           
 void setId(java.lang.String id)
           
protected  void setParameter(java.sql.PreparedStatement ps, BasicParameterMapping mapping, java.lang.Object[] parameters, int i)
           
 void setParameterClass(java.lang.Class parameterClass)
           
 void setParameterMappingList(java.util.List parameterMappingList)
           
 void setParameters(RequestScope request, java.sql.PreparedStatement ps, java.lang.Object[] parameters)
           
 void setResource(java.lang.String resource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicParameterMap

public BasicParameterMap(SqlMapExecutorDelegate delegate)
Method Detail

getDelegate

public SqlMapExecutorDelegate getDelegate()

getId

public java.lang.String getId()
Specified by:
getId in interface ParameterMap

setId

public void setId(java.lang.String id)

getParameterClass

public java.lang.Class getParameterClass()
Specified by:
getParameterClass in interface ParameterMap

setParameterClass

public void setParameterClass(java.lang.Class parameterClass)

getDataExchange

public DataExchange getDataExchange()

setDataExchange

public void setDataExchange(DataExchange dataExchange)

getParameterMappings

public ParameterMapping[] getParameterMappings()
Specified by:
getParameterMappings in interface ParameterMap

setParameterMappingList

public void setParameterMappingList(java.util.List parameterMappingList)

getParameterIndex

public int getParameterIndex(java.lang.String propertyName)

getParameterCount

public int getParameterCount()

setParameters

public void setParameters(RequestScope request,
                          java.sql.PreparedStatement ps,
                          java.lang.Object[] parameters)
                   throws java.sql.SQLException
Specified by:
setParameters in interface ParameterMap
Parameters:
ps -
parameters -
Throws:
java.sql.SQLException

getParameterObjectValues

public java.lang.Object[] getParameterObjectValues(RequestScope request,
                                                   java.lang.Object parameterObject)
Specified by:
getParameterObjectValues in interface ParameterMap

getCacheKey

public CacheKey getCacheKey(RequestScope request,
                            java.lang.Object parameterObject)
Specified by:
getCacheKey in interface ParameterMap

refreshParameterObjectValues

public void refreshParameterObjectValues(RequestScope request,
                                         java.lang.Object parameterObject,
                                         java.lang.Object[] values)
Specified by:
refreshParameterObjectValues in interface ParameterMap

getResource

public java.lang.String getResource()

setResource

public void setResource(java.lang.String resource)

setParameter

protected void setParameter(java.sql.PreparedStatement ps,
                            BasicParameterMapping mapping,
                            java.lang.Object[] parameters,
                            int i)
                     throws java.sql.SQLException
Throws:
java.sql.SQLException