Class ParameterMap

java.lang.Object
com.ibatis.sqlmap.engine.mapping.parameter.ParameterMap
Direct Known Subclasses:
NoParameterMap

public class ParameterMap extends Object
The Class ParameterMap.
  • Constructor Details

    • ParameterMap

      public ParameterMap(SqlMapExecutorDelegate delegate)
      Instantiates a new parameter map.
      Parameters:
      delegate - the delegate
  • Method Details

    • getDelegate

      public SqlMapExecutorDelegate getDelegate()
      Gets the delegate.
      Returns:
      the delegate
    • getId

      public String getId()
      Gets the id.
      Returns:
      the id
    • setId

      public void setId(String id)
      Sets the id.
      Parameters:
      id - the new id
    • getParameterClass

      public Class getParameterClass()
      Gets the parameter class.
      Returns:
      the parameter class
    • setParameterClass

      public void setParameterClass(Class parameterClass)
      Sets the parameter class.
      Parameters:
      parameterClass - the new parameter class
    • getDataExchange

      public DataExchange getDataExchange()
      Gets the data exchange.
      Returns:
      the data exchange
    • setDataExchange

      public void setDataExchange(DataExchange dataExchange)
      Sets the data exchange.
      Parameters:
      dataExchange - the new data exchange
    • getParameterMappings

      public ParameterMapping[] getParameterMappings()
      Gets the parameter mappings.
      Returns:
      the parameter mappings
    • setParameterMappingList

      public void setParameterMappingList(List parameterMappingList)
      Sets the parameter mapping list.
      Parameters:
      parameterMappingList - the new parameter mapping list
    • getParameterIndex

      public int getParameterIndex(String propertyName)
      Gets the parameter index.
      Parameters:
      propertyName - the property name
      Returns:
      the parameter index
    • getParameterCount

      public int getParameterCount()
      Gets the parameter count.
      Returns:
      the parameter count
    • setParameters

      public void setParameters(StatementScope statementScope, PreparedStatement ps, Object[] parameters) throws SQLException
      Sets the parameters.
      Parameters:
      statementScope - the statement scope
      ps - the ps
      parameters - the parameters
      Throws:
      SQLException - the SQL exception
    • getParameterObjectValues

      public Object[] getParameterObjectValues(StatementScope statementScope, Object parameterObject)
      Gets the parameter object values.
      Parameters:
      statementScope - the statement scope
      parameterObject - the parameter object
      Returns:
      the parameter object values
    • getCacheKey

      public CacheKey getCacheKey(StatementScope statementScope, Object parameterObject)
      Gets the cache key.
      Parameters:
      statementScope - the statement scope
      parameterObject - the parameter object
      Returns:
      the cache key
    • refreshParameterObjectValues

      public void refreshParameterObjectValues(StatementScope statementScope, Object parameterObject, Object[] values)
      Refresh parameter object values.
      Parameters:
      statementScope - the statement scope
      parameterObject - the parameter object
      values - the values
    • getResource

      public String getResource()
      Gets the resource.
      Returns:
      the resource
    • setResource

      public void setResource(String resource)
      Sets the resource.
      Parameters:
      resource - the new resource
    • setParameter

      protected void setParameter(PreparedStatement ps, ParameterMapping mapping, Object[] parameters, int i) throws SQLException
      Sets the parameter.
      Parameters:
      ps - the ps
      mapping - the mapping
      parameters - the parameters
      i - the i
      Throws:
      SQLException - the SQL exception