Main Page | Packages | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint Class Reference

Inheritance diagram for org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint:

org.openmobileis.database.fastobjectdb.db.query.soda.BaseConstraint org.odbms.Constraint org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraints List of all members.

Detailed Description

Author:
Philippe Delrieu
Since:
JDK 1.1
Version:
1.0.

Definition at line 41 of file FODBSodaConstraint.java.

Public Member Functions

 FODBSodaConstraint (FODBSodaQuery query, int constraintId)
Constraint and (Constraint with)
 links two Constraints for AND evaluation.
Constraint or (Constraint with)
 links two Constraints for OR evaluation.
Constraint equal ()
 sets the evaluation mode to ==.
Constraint greater ()
 sets the evaluation mode to >.
Constraint smaller ()
 sets the evaluation mode to <.
Constraint identity ()
 sets the evaluation mode to identity comparison.
Constraint like ()
 sets the evaluation mode to "like" comparison.
Constraint distinct ()
 return only object that are distinct for this constraint.
Constraint contains ()
 sets the evaluation mode to containment comparison.
Constraint not ()
 turns on not() comparison.
Object getObject ()
 returns the Object the query graph was constrained with to create this Constraint.
int getConstraintId ()
boolean equals (Object con)

Protected Member Functions

void execute (LongArray longArray) throws FODBException

Package Functions

void setIndex (FODBSodaIndexPath index)
String getIndexMember ()
boolean setOperand (Object ope)
boolean addComparator (int ope)
boolean hasIndex ()
boolean isHasOperande ()
void setHasOperande (boolean b)

Package Attributes

boolean hasOperande = false


Member Function Documentation

Constraint org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.and Constraint  with  ) 
 

links two Constraints for AND evaluation.

Parameters:
with the other Constraint
Returns:
a new Constraint, that can be used for further calls to and() and or()}

Implements org.odbms.Constraint.

Definition at line 102 of file FODBSodaConstraint.java.

References org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaIndexPath.getIndexComparator(), org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.getIndexMember(), org.openmobileis.database.fastobjectdb.db.query.soda.BaseConstraint.getNextConstraint(), org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.indexpath, org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaIndexPath.mergeIndexComporator(), and org.openmobileis.database.fastobjectdb.db.query.soda.BaseConstraint.nextContraintLink.

Constraint org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.contains  ) 
 

sets the evaluation mode to containment comparison.



Evaluation is dependant on the constrained query node:

String
the persistent object is tested to contain a substring.
arrays, java.util.Collection collections
the persistent object is tested to contain all elements of the constraining object.
Returns:
this Constraint to allow the chaining of method calls.

Implements org.odbms.Constraint.

Definition at line 175 of file FODBSodaConstraint.java.

References org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.addComparator().

Constraint org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.distinct  ) 
 

return only object that are distinct for this constraint.

If two object has the same value, only the first on is return.

Returns:
linked constraint.

Implements org.odbms.Constraint.

Definition at line 167 of file FODBSodaConstraint.java.

References org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.addComparator().

Constraint org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.equal  ) 
 

sets the evaluation mode to ==.

Returns:
this Constraint to allow the chaining of method calls.

Implements org.odbms.Constraint.

Definition at line 125 of file FODBSodaConstraint.java.

References org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.addComparator().

int org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.getConstraintId  ) 
 

Returns:

Definition at line 202 of file FODBSodaConstraint.java.

Object org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.getObject  ) 
 

returns the Object the query graph was constrained with to create this Constraint.

Returns:
Object the constraining object.

Implements org.odbms.Constraint.

Definition at line 191 of file FODBSodaConstraint.java.

Constraint org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.greater  ) 
 

sets the evaluation mode to >.

Returns:
this Constraint to allow the chaining of method calls.

Implements org.odbms.Constraint.

Definition at line 133 of file FODBSodaConstraint.java.

References org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.addComparator().

Constraint org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.identity  ) 
 

sets the evaluation mode to identity comparison.

Returns:
this Constraint to allow the chaining of method calls.

Implements org.odbms.Constraint.

Definition at line 149 of file FODBSodaConstraint.java.

References org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.addComparator().

boolean org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.isHasOperande  )  [package]
 

Returns:

Definition at line 218 of file FODBSodaConstraint.java.

References org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.hasOperande.

Constraint org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.like  ) 
 

sets the evaluation mode to "like" comparison.

Returns:
this Constraint to allow the chaining of method calls.

Implements org.odbms.Constraint.

Definition at line 157 of file FODBSodaConstraint.java.

References org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.addComparator().

Constraint org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.not  ) 
 

turns on not() comparison.

Returns:
this Constraint to allow the chaining of method calls.

Implements org.odbms.Constraint.

Definition at line 183 of file FODBSodaConstraint.java.

References org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.addComparator().

Constraint org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.or Constraint  with  ) 
 

links two Constraints for OR evaluation.

Parameters:
with the other Constraint
Returns:
a new Constraint, that can be used for further calls to and() and or()

Implements org.odbms.Constraint.

Definition at line 118 of file FODBSodaConstraint.java.

void org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.setHasOperande boolean  b  )  [package]
 

Parameters:
b 

Definition at line 225 of file FODBSodaConstraint.java.

References org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.hasOperande.

Constraint org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.smaller  ) 
 

sets the evaluation mode to <.

Returns:
this Constraint to allow the chaining of method calls.

Implements org.odbms.Constraint.

Definition at line 141 of file FODBSodaConstraint.java.

References org.openmobileis.database.fastobjectdb.db.query.soda.FODBSodaConstraint.addComparator().


The documentation for this class was generated from the following file:
Generated on Wed Dec 14 21:05:38 2005 for OpenMobileIS by  doxygen 1.4.4