MySQL 5.6.14 Source Code Document
|
Public Member Functions | |
void | setParameter (String parameterName, Object value) |
List< E > | getResultList () |
int | deletePersistentAll () |
Results< E > | execute (Object parameter) |
Results< E > | execute (Object...parameters) |
Results< E > | execute (Map< String,?> parameters) |
Map< String, Object > | explain () |
Static Public Attributes | |
static final String | SCAN_TYPE = "ScanType" |
static final String | SCAN_TYPE_PRIMARY_KEY = "PRIMARY_KEY" |
static final String | SCAN_TYPE_UNIQUE_KEY = "UNIQUE_KEY" |
static final String | SCAN_TYPE_INDEX_SCAN = "INDEX_SCAN" |
static final String | SCAN_TYPE_TABLE_SCAN = "TABLE_SCAN" |
static final String | INDEX_USED = "IndexUsed" |
A Query instance represents a specific query with bound parameters. The instance is created by the method com.mysql.clusterj.Session#createQuery.
Definition at line 27 of file Query.java.
int com.mysql.clusterj.Query< E >.deletePersistentAll | ( | ) |
Delete the instances that satisfy the query criteria.
Execute the query with exactly one parameter.
parameter | the parameter |
Execute the query with one or more parameters. Parameters are resolved in the order they were declared in the query.
parameters | the parameters |
Execute the query with one or more named parameters. Parameters are resolved by name.
parameters | the parameters |
Explain how this query will be or was executed. If called before binding all parameters, throws ClusterJUserException. Return a map of key:value pairs that explain how the query will be or was executed. Details can be obtained by calling toString on the value. The following keys are returned:
ClusterJUserException | if not all parameters are bound |
Get the results as a list.
ClusterJUserException | if not all parameters are bound |
ClusterJDatastoreException | if an exception is reported by the datastore |
Set the value of a parameter. If called multiple times for the same parameter, silently replace the value.
parameterName | the name of the parameter |
value | the value for the parameter |
The query explain index used key
Definition at line 45 of file Query.java.
The query explain scan type key
Definition at line 30 of file Query.java.
The query explain scan type value for index scan
Definition at line 39 of file Query.java.
The query explain scan type value for primary key
Definition at line 33 of file Query.java.
The query explain scan type value for table scan
Definition at line 42 of file Query.java.
The query explain scan type value for unique key
Definition at line 36 of file Query.java.