Documentation Home
MySQL NDB Cluster API Developer Guide
Related Documentation Download this Manual
PDF (US Ltr) - 3.6Mb
PDF (A4) - 3.6Mb


4.3.3.4 QueryDefinition

QueryDefinition allows users to define queries.

4.3.3.4.1 Synopsis
 public interface QueryDefinition<E> {
// Public Methods  public abstract Predicate not(Predicate predicate);
  public abstract PredicateOperand param(String parameterName);
  public abstract QueryDefinition<E> where(Predicate predicate);
}
4.3.3.4.2 not(Predicate)
public abstract Predicate not(Predicate predicate);

Convenience method to negate a predicate.

Table 4.112 not(Predicate)

Parameter Description
predicate the predicate to negate
return the inverted predicate

4.3.3.4.3 param(String)
public abstract PredicateOperand param(String parameterName);

Specify a parameter for the query.

Table 4.113 param(String)

Parameter Description
parameterName the name of the parameter
return the PredicateOperand representing the parameter

4.3.3.4.4 where(Predicate)
public abstract QueryDefinition<E> where(Predicate predicate);

Specify the predicate to satisfy the query.

Table 4.114 where(Predicate)

Parameter Description
predicate the Predicate
return this query definition