MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mysql.clusterj.core.query.QueryExecutionContextImpl Class Reference
Inheritance diagram for com.mysql.clusterj.core.query.QueryExecutionContextImpl:
Collaboration diagram for com.mysql.clusterj.core.query.QueryExecutionContextImpl:

Public Member Functions

 QueryExecutionContextImpl (SessionSPI session)
 QueryExecutionContextImpl (SessionSPI session, Map< String, Object > parameterMap)
void bindParameterValue (String parameterName, Object value)
Object getParameterValue (String parameterName)
boolean isBound (String parameterName)
SessionSPI getSession ()
ResultData getResultData (QueryDomainType<?> queryDomainType)
void addFilter (ScanFilter scanFilter)
void deleteFilters ()
void setExplain (Map< String, Object > explain)
Map< String, Object > getExplain ()
Byte getByte (String index)
BigDecimal getBigDecimal (String index)
BigInteger getBigInteger (String index)
Boolean getBoolean (String index)
byte[] getBytes (String index)
Double getDouble (String index)
Float getFloat (String index)
Integer getInt (String index)
Date getJavaSqlDate (String index)
Time getJavaSqlTime (String index)
Timestamp getJavaSqlTimestamp (String index)
java.util.Date getJavaUtilDate (String index)
Long getLong (String index)
Short getShort (String index)
String getString (String index)
Object getObject (String index)

Protected Member Functions

 QueryExecutionContextImpl (QueryExecutionContextImpl context)

Protected Attributes

Map< String, Object > boundParameters
SessionSPI session
Map< String, Object > explain = null

Detailed Description

This is the execution context for a query. It contains the parameter bindings so as to make query execution thread-safe.

Definition at line 45 of file QueryExecutionContextImpl.java.

Constructor & Destructor Documentation

com.mysql.clusterj.core.query.QueryExecutionContextImpl.QueryExecutionContextImpl ( SessionSPI  session)
inline

Create a new execution context with an empty map of parameters.

Parameters
sessionthe session for this context

Definition at line 68 of file QueryExecutionContextImpl.java.

Here is the call graph for this function:

com.mysql.clusterj.core.query.QueryExecutionContextImpl.QueryExecutionContextImpl ( QueryExecutionContextImpl  context)
inlineprotected

Create a new execution context copying the bound parameter values. This allows a new execution of a query only modifying some parameters.

Parameters
contextan existing execution context

Definition at line 80 of file QueryExecutionContextImpl.java.

com.mysql.clusterj.core.query.QueryExecutionContextImpl.QueryExecutionContextImpl ( SessionSPI  session,
Map< String, Object >  parameterMap 
)
inline

Create a new execution context with specific map of parameters.

Parameters
sessionthe session for this context
parameterMapthe parameter map for this context

Definition at line 89 of file QueryExecutionContextImpl.java.

Member Function Documentation

void com.mysql.clusterj.core.query.QueryExecutionContextImpl.addFilter ( ScanFilter  scanFilter)
inline

Add a filter to the list of filters created for this query.

Parameters
scanFilterthe filter

Implements com.mysql.clusterj.core.spi.QueryExecutionContext.

Definition at line 136 of file QueryExecutionContextImpl.java.

void com.mysql.clusterj.core.query.QueryExecutionContextImpl.bindParameterValue ( String  parameterName,
Object  value 
)
inline

Bind the value of a parameter for this query execution.

Parameters
parameterNamethe name of the parameter
valuethe value for the parameter

Definition at line 99 of file QueryExecutionContextImpl.java.

Here is the call graph for this function:

void com.mysql.clusterj.core.query.QueryExecutionContextImpl.deleteFilters ( )
inline

Delete all the filters created for this query.

Implements com.mysql.clusterj.core.spi.QueryExecutionContext.

Definition at line 142 of file QueryExecutionContextImpl.java.

Object com.mysql.clusterj.core.query.QueryExecutionContextImpl.getParameterValue ( String  parameterName)
inline

Get the value of a parameter by name.

Implements com.mysql.clusterj.core.spi.QueryExecutionContext.

Definition at line 108 of file QueryExecutionContextImpl.java.

Here is the call graph for this function:

boolean com.mysql.clusterj.core.query.QueryExecutionContextImpl.isBound ( String  parameterName)
inline

Return whether the parameter has a value for this execution context.

Parameters
parameterNamethe name of the parameter
Returns
whether the parameter has a value

Implements com.mysql.clusterj.core.spi.QueryExecutionContext.

Definition at line 121 of file QueryExecutionContextImpl.java.

Here is the caller graph for this function:

Member Data Documentation

Map<String, Object> com.mysql.clusterj.core.query.QueryExecutionContextImpl.boundParameters
protected
Initial value:

Definition at line 53 of file QueryExecutionContextImpl.java.

Map<String, Object> com.mysql.clusterj.core.query.QueryExecutionContextImpl.explain = null
protected

The explain for this query; will be null until executed or explained

Definition at line 63 of file QueryExecutionContextImpl.java.

SessionSPI com.mysql.clusterj.core.query.QueryExecutionContextImpl.session
protected

The session for this query

Definition at line 57 of file QueryExecutionContextImpl.java.


The documentation for this class was generated from the following file: