Class ParameterMap
java.lang.Object
com.ibatis.sqlmap.engine.mapping.parameter.ParameterMap
-
Constructor Summary
ConstructorsConstructorDescriptionParameterMap
(SqlMapExecutorDelegate delegate) Instantiates a new parameter map. -
Method Summary
Modifier and TypeMethodDescriptiongetCacheKey
(StatementScope statementScope, Object parameterObject) Gets the cache key.Gets the data exchange.Gets the delegate.getId()
Gets the id.Gets the parameter class.int
Gets the parameter count.int
getParameterIndex
(String propertyName) Gets the parameter index.Gets the parameter mappings.Object[]
getParameterObjectValues
(StatementScope statementScope, Object parameterObject) Gets the parameter object values.Gets the resource.void
refreshParameterObjectValues
(StatementScope statementScope, Object parameterObject, Object[] values) Refresh parameter object values.void
setDataExchange
(DataExchange dataExchange) Sets the data exchange.void
Sets the id.protected void
setParameter
(PreparedStatement ps, ParameterMapping mapping, Object[] parameters, int i) Sets the parameter.void
setParameterClass
(Class parameterClass) Sets the parameter class.void
setParameterMappingList
(List parameterMappingList) Sets the parameter mapping list.void
setParameters
(StatementScope statementScope, PreparedStatement ps, Object[] parameters) Sets the parameters.void
setResource
(String resource) Sets the resource.
-
Constructor Details
-
ParameterMap
Instantiates a new parameter map.- Parameters:
delegate
- the delegate
-
-
Method Details
-
getDelegate
-
getId
-
setId
-
getParameterClass
-
setParameterClass
Sets the parameter class.- Parameters:
parameterClass
- the new parameter class
-
getDataExchange
-
setDataExchange
Sets the data exchange.- Parameters:
dataExchange
- the new data exchange
-
getParameterMappings
Gets the parameter mappings.- Returns:
- the parameter mappings
-
setParameterMappingList
Sets the parameter mapping list.- Parameters:
parameterMappingList
- the new parameter mapping list
-
getParameterIndex
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 scopeps
- the psparameters
- the parameters- Throws:
SQLException
- the SQL exception
-
getParameterObjectValues
Gets the parameter object values.- Parameters:
statementScope
- the statement scopeparameterObject
- the parameter object- Returns:
- the parameter object values
-
getCacheKey
Gets the cache key.- Parameters:
statementScope
- the statement scopeparameterObject
- 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 scopeparameterObject
- the parameter objectvalues
- the values
-
getResource
-
setResource
-
setParameter
protected void setParameter(PreparedStatement ps, ParameterMapping mapping, Object[] parameters, int i) throws SQLException Sets the parameter.- Parameters:
ps
- the psmapping
- the mappingparameters
- the parametersi
- the i- Throws:
SQLException
- the SQL exception
-