Documentation Home
MySQL Cluster API Developer Guide
Download this Manual
PDF (US Ltr) - 4.9Mb
PDF (A4) - 4.8Mb
EPUB - 1.9Mb
HTML Download (TGZ) - 1.8Mb
HTML Download (Zip) - 1.9Mb


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);
}

Figure 4.39 QueryDefinition Class

QueryDefinition Class

4.3.3.4.2 not(Predicate)
public abstract Predicate not(Predicate predicate);

Convenience method to negate a predicate.

Parameters

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.

Parameters

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.

Parameters

predicate

the Predicate

return

this query definition


User Comments
Sign Up Login You must be logged in to post a comment.