Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.ibatis.sqlmap.engine.mapping.parameter
Class BasicParameterMap  view BasicParameterMap download BasicParameterMap.java

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


Field Summary
private  com.ibatis.sqlmap.engine.exchange.DataExchange dataExchange
           
private  com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate delegate
           
private  java.lang.String id
           
private  java.lang.Class parameterClass
           
private  java.util.Map parameterMappingIndex
           
private  ParameterMapping[] parameterMappings
           
private  java.lang.String resource
           
 
Constructor Summary
BasicParameterMap(com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate delegate)
           
 
Method Summary
 com.ibatis.sqlmap.engine.cache.CacheKey getCacheKey(com.ibatis.sqlmap.engine.scope.RequestScope request, java.lang.Object parameterObject)
           
 com.ibatis.sqlmap.engine.exchange.DataExchange getDataExchange()
           
 com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate getDelegate()
           
 java.lang.String getId()
           
 java.lang.Class getParameterClass()
           
 int getParameterCount()
           
 int getParameterIndex(java.lang.String propertyName)
           
 ParameterMapping[] getParameterMappings()
           
 java.lang.Object[] getParameterObjectValues(com.ibatis.sqlmap.engine.scope.RequestScope request, java.lang.Object parameterObject)
           
 java.lang.String getResource()
           
 void refreshParameterObjectValues(com.ibatis.sqlmap.engine.scope.RequestScope request, java.lang.Object parameterObject, java.lang.Object[] values)
           
 void setDataExchange(com.ibatis.sqlmap.engine.exchange.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(com.ibatis.sqlmap.engine.scope.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
 

Field Detail

id

private java.lang.String id

parameterClass

private java.lang.Class parameterClass

parameterMappings

private ParameterMapping[] parameterMappings

dataExchange

private com.ibatis.sqlmap.engine.exchange.DataExchange dataExchange

resource

private java.lang.String resource

parameterMappingIndex

private java.util.Map parameterMappingIndex

delegate

private com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate delegate
Constructor Detail

BasicParameterMap

public BasicParameterMap(com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate delegate)
Method Detail

getDelegate

public com.ibatis.sqlmap.engine.impl.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 com.ibatis.sqlmap.engine.exchange.DataExchange getDataExchange()

setDataExchange

public void setDataExchange(com.ibatis.sqlmap.engine.exchange.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(com.ibatis.sqlmap.engine.scope.RequestScope request,
                          java.sql.PreparedStatement ps,
                          java.lang.Object[] parameters)
                   throws java.sql.SQLException
Specified by:
setParameters in interface ParameterMap

getParameterObjectValues

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

getCacheKey

public com.ibatis.sqlmap.engine.cache.CacheKey getCacheKey(com.ibatis.sqlmap.engine.scope.RequestScope request,
                                                           java.lang.Object parameterObject)
Specified by:
getCacheKey in interface ParameterMap

refreshParameterObjectValues

public void refreshParameterObjectValues(com.ibatis.sqlmap.engine.scope.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