MySQL 5.6.14 Source Code Document
|
Classes | |
class | Delete |
interface | Executor |
class | Insert |
class | Noop |
class | Select |
Public Member Functions | |
SQLExecutor (DomainTypeHandlerImpl<?> domainTypeHandler, List< String > columnNames, int numberOfParameters) | |
SQLExecutor (DomainTypeHandlerImpl<?> domainTypeHandler, List< String > columnNames) | |
SQLExecutor (DomainTypeHandlerImpl<?> domainTypeHandler) | |
SQLExecutor (DomainTypeHandlerImpl<?> domainTypeHandler, List< String > columnNames, QueryDomainTypeImpl<?> queryDomainType) | |
SQLExecutor (DomainTypeHandlerImpl<?> domainTypeHandler, QueryDomainTypeImpl<?> queryDomainType, int numberOfParameters) |
Protected Member Functions | |
Map< String, Object > | createParameterMap (QueryDomainTypeImpl<?> queryDomainType, ParameterBindings parameterBindings, int offset, int count) throws SQLException |
ValueHandler | getValueHandler (ParameterBindings parameterBindings, int[] fieldNumberToParameterNumberMap, int offset) |
Static Protected Member Functions | |
static void | logParameterBindings (ParameterBindings parameterBindings) |
static int | countParameters (ParameterBindings parameterBindings) |
Protected Attributes | |
List< String > | columnNames = null |
int | numberOfFields |
int | numberOfParameters |
int[] | fieldNumberToColumnNumberMap = null |
int[] | columnNumberToFieldNumberMap = null |
Map< String, Integer > | columnNameToFieldNumberMap = new HashMap<String, Integer>() |
QueryDomainTypeImpl<?> | queryDomainType |
This class contains behavior to execute various SQL commands. There is one subclass for each command to be executed.
Definition at line 44 of file SQLExecutor.java.
|
inlinestaticprotected |
Count the number of bound parameters. If this is a batch execution, then the number of bound parameters is the number of statements in the batch times the number of parameters per statement. If detailed logging is enabled write the parameter bindings to the log.
parameterBindings | the jdbc parameter bindings |
Definition at line 355 of file SQLExecutor.java.
|
inlineprotected |
Create the parameter map assigning each bound parameter a number. The result is a map in which the key is a String whose key is a cardinal number starting with 1 (for JDBC which uses 1-origin for numbering) and whose value is the parameter's value.
queryDomainType | the query domain type |
parameterBindings | the parameter bindings |
offset | the number of parameters to skip |
count | the number of parameters to use |
SQLException |
Definition at line 251 of file SQLExecutor.java.
|
inlineprotected |
Create a value handler (part of the clusterj spi) to retrieve values from jdbc parameter bindings.
parameterBindings | the jdbc parameter bindings from prepared statements |
fieldNumberToParameterNumberMap | map from field number to parameter number |
offset | into the parameter bindings for this instance (used for batch execution) |
Definition at line 325 of file SQLExecutor.java.
|
inlinestaticprotected |
If detailed logging is enabled write the parameter bindings to the log.
parameterBindings | the jdbc parameter bindings |
Definition at line 333 of file SQLExecutor.java.
|
protected |
The column names in the SQL statement
Definition at line 56 of file SQLExecutor.java.
|
protected |
The map of column names to parameter numbers
Definition at line 71 of file SQLExecutor.java.
|
protected |
The map of column numbers to field numbers
Definition at line 68 of file SQLExecutor.java.
|
protected |
The map of field numbers to parameter numbers
Definition at line 65 of file SQLExecutor.java.
|
protected |
The number of fields in the domain object (also the number of mapped columns)
Definition at line 59 of file SQLExecutor.java.
|
protected |
The number of parameters in the where clause
Definition at line 62 of file SQLExecutor.java.
|
protected |
The query domain type for qualified SELECT and DELETE operations
Definition at line 74 of file SQLExecutor.java.