Class QConClass
- java.lang.Object
-
- com.db4o.internal.query.processor.QCon
-
- com.db4o.internal.query.processor.QConObject
-
- com.db4o.internal.query.processor.QConClass
-
- All Implemented Interfaces:
Visitor4
,FieldFilterable
,Constraint
,Unversioned
- Direct Known Subclasses:
QConPath
public class QConClass extends QConObject
Class constraint on queries
-
-
Field Summary
-
Fields inherited from class com.db4o.internal.query.processor.QCon
_children, i_evaluator, i_parent
-
-
Constructor Summary
Constructors Constructor Description QConClass()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canBeIndexLeaf()
protected boolean
canResolveByFieldIndex()
Constraint
equal()
Used in conjunction withConstraint.smaller()
orConstraint.greater()
to create constraints like "smaller or equal", "greater or equal".java.lang.String
getClassName()
void
setProcessedByIndex(QCandidates candidates)
java.lang.String
toString()
-
Methods inherited from class com.db4o.internal.query.processor.QConObject
byExample, canLoadByIndex, contains, endsWith, filter, getField, getObject, greater, hasObjectInParentPath, identity, identityID, internalSetProcessedByIndex, like, onSameFieldAs, smaller, startsWith, visit
-
Methods inherited from class com.db4o.internal.query.processor.QCon
and, childrenCount, container, evaluator, hasChildren, hasJoins, hasParent, id, iterateChildren, iterateJoins, not, or, parent, processedByIndex, setCandidates, streamLock, transaction
-
-
-
-
Method Detail
-
getClassName
public java.lang.String getClassName()
-
canBeIndexLeaf
public boolean canBeIndexLeaf()
- Overrides:
canBeIndexLeaf
in classQConObject
-
canResolveByFieldIndex
protected boolean canResolveByFieldIndex()
- Overrides:
canResolveByFieldIndex
in classQConObject
-
equal
public Constraint equal()
Description copied from interface:Constraint
Used in conjunction withConstraint.smaller()
orConstraint.greater()
to create constraints like "smaller or equal", "greater or equal". For example:
query.constrain(Pilot.class); query.descend("points").constrain(101).smaller().equal();
will return all pilots with points <= 101.- Specified by:
equal
in interfaceConstraint
- Overrides:
equal
in classQConObject
- Returns:
- this
Constraint
to allow the chaining of method calls.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classQConObject
-
setProcessedByIndex
public void setProcessedByIndex(QCandidates candidates)
- Overrides:
setProcessedByIndex
in classQCon
-
-