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.QueryDomainTypeImpl< T > Class Reference
Inheritance diagram for com.mysql.clusterj.core.query.QueryDomainTypeImpl< T >:
Collaboration diagram for com.mysql.clusterj.core.query.QueryDomainTypeImpl< T >:

Public Member Functions

 QueryDomainTypeImpl (DomainTypeHandler< T > domainTypeHandler, Class< T > cls)
 QueryDomainTypeImpl (DomainTypeHandler< T > domainTypeHandler)
PredicateOperand get (String propertyName)
QueryDefinition< T > where (Predicate predicate)
PredicateOperand param (String parameterName)
Predicate not (Predicate predicate)
List< T > getResultList (QueryExecutionContext context)
ResultData getResultData (QueryExecutionContext context)
int deletePersistentAll (QueryExecutionContext context)
void explain (QueryExecutionContext context)
Class< T > getType ()

Protected Member Functions

CandidateIndexImpl[] createCandidateIndexes ()
Map< String, Object > newExplain (CandidateIndexImpl index, ScanType scanType)
void assertAllParametersBound (QueryExecutionContext context)

Protected Attributes

Class< T > cls
DomainTypeHandler< T > domainTypeHandler
PredicateImpl where
Map< String, ParameterImplparameters
Map< String, PropertyImplproperties

Detailed Description

Definition at line 53 of file QueryDomainTypeImpl.java.

Member Function Documentation

void com.mysql.clusterj.core.query.QueryDomainTypeImpl< T >.assertAllParametersBound ( QueryExecutionContext  context)
inlineprotected

Assert that all parameters used by this query are bound.

Parameters
contextthe context, including the parameter map
Exceptions
ClusterJUserExceptionif not all parameters are bound

Definition at line 417 of file QueryDomainTypeImpl.java.

int com.mysql.clusterj.core.query.QueryDomainTypeImpl< T >.deletePersistentAll ( QueryExecutionContext  context)
inline

Delete the instances that satisfy the query and return the number of instances deleted. The type of operation used to find the instances (primary key lookup, unique key lookup, index scan, or table scan) depends on the where clause and the bound parameter values.

Parameters
contextthe query context, including the bound parameters
Returns
the number of instances deleted
Exceptions
ClusterJUserExceptionif not all parameters are bound

Definition at line 283 of file QueryDomainTypeImpl.java.

Here is the call graph for this function:

void com.mysql.clusterj.core.query.QueryDomainTypeImpl< T >.explain ( QueryExecutionContext  context)
inline

Explain how this query will be or was executed and store the result in the context.

Parameters
contextthe context, including bound parameters

Definition at line 390 of file QueryDomainTypeImpl.java.

Here is the call graph for this function:

ResultData com.mysql.clusterj.core.query.QueryDomainTypeImpl< T >.getResultData ( QueryExecutionContext  context)
inline

Execute the query and return the result data. The type of operation (primary key lookup, unique key lookup, index scan, or table scan) depends on the where clause and the bound parameter values.

Parameters
contextthe query context, including the bound parameters
Returns
the raw result data from the query
Exceptions
ClusterJUserExceptionif not all parameters are bound

Definition at line 185 of file QueryDomainTypeImpl.java.

Here is the call graph for this function:

List<T> com.mysql.clusterj.core.query.QueryDomainTypeImpl< T >.getResultList ( QueryExecutionContext  context)
inline

Query.getResultList delegates to this method.

Returns
the results of executing the query

Definition at line 147 of file QueryDomainTypeImpl.java.

Here is the call graph for this function:

Map<String, Object> com.mysql.clusterj.core.query.QueryDomainTypeImpl< T >.newExplain ( CandidateIndexImpl  index,
ScanType  scanType 
)
inlineprotected

Create a new explain for this query.

Parameters
indexthe index used
scanTypethe scan type
Returns
the explain

Definition at line 405 of file QueryDomainTypeImpl.java.

Predicate com.mysql.clusterj.core.query.QueryDomainTypeImpl< T >.not ( Predicate  predicate)
inline

Convenience method to negate a predicate.

Parameters
predicatethe predicate to negate
Returns
the inverted predicate

Definition at line 139 of file QueryDomainTypeImpl.java.

Here is the call graph for this function:

QueryDefinition<T> com.mysql.clusterj.core.query.QueryDomainTypeImpl< T >.where ( Predicate  predicate)
inline

Set the where clause. Mark parameters used by this query.

Parameters
predicatethe predicate
Returns
the query definition (this)

Definition at line 105 of file QueryDomainTypeImpl.java.

Member Data Documentation

Class<T> com.mysql.clusterj.core.query.QueryDomainTypeImpl< T >.cls
protected

My class.

Definition at line 62 of file QueryDomainTypeImpl.java.

DomainTypeHandler<T> com.mysql.clusterj.core.query.QueryDomainTypeImpl< T >.domainTypeHandler
protected

My DomainTypeHandler.

Definition at line 65 of file QueryDomainTypeImpl.java.

Map<String, ParameterImpl> com.mysql.clusterj.core.query.QueryDomainTypeImpl< T >.parameters
protected
Initial value:

My parameters. These encapsulate the parameter names not the values.

Definition at line 71 of file QueryDomainTypeImpl.java.

Map<String, PropertyImpl> com.mysql.clusterj.core.query.QueryDomainTypeImpl< T >.properties
protected
Initial value:

My properties. These encapsulate the property names not the values.

Definition at line 75 of file QueryDomainTypeImpl.java.

PredicateImpl com.mysql.clusterj.core.query.QueryDomainTypeImpl< T >.where
protected

My where clause.

Definition at line 68 of file QueryDomainTypeImpl.java.


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