[+/-]
A Query instance represents a specific query with bound
parameters. The instance is created by the method
com.mysql.clusterj.Session.createQuery
.
public interface com.mysql.clusterj.Query<E> {
// Public Methodspublic com.mysql.clusterj.Results<E> execute(java.lang.Object parameter);
public com.mysql.clusterj.Results<E> execute(java.lang.Object[] parameters);
public com.mysql.clusterj.Results<E> execute(java.util.Map<java.lang.String, ?> parameters);
public java.util.Map<java.lang.String, java.lang.Object> explain();
public java.util.List<E> getResultList();
public void setParameter(java.lang.String parameterName,
java.lang.Object value);
}
public com.mysql.clusterj.Results<E> execute(java.util.Map<java.lang.String, ?> parameters);
Execute the query with one or more named parameters. Parameters are resolved by name.
Parameters | |
parameters |
the parameters |
return |
the result |
public com.mysql.clusterj.Results<E> execute(java.lang.Object[] parameters);
Execute the query with one or more parameters. Parameters are resolved in the order they were declared in the query.
Parameters | |
parameters |
the parameters |
return |
the result |
public com.mysql.clusterj.Results<E> execute(java.lang.Object parameter);
Execute the query with exactly one parameter.
Parameters | |
parameter |
the parameter |
return |
the result |
public java.util.Map<java.lang.String, java.lang.Object> explain();
Explain how this query was executed, after execution. If called before executing the query, returns null. Returns a collection of key:value pairs that explain how the query was executed.
Parameters | |
return |
the data about the execution of this query |
public java.util.List<E> getResultList();
Get the results as a list.
Parameters | |
return |
the result |