Package com.db4o.config
Class QueryEvaluationMode
- java.lang.Object
-
- com.db4o.config.QueryEvaluationMode
-
public class QueryEvaluationMode extends java.lang.Object
This class provides static constants for the query evaluation modes that db4o supports.
For detailed documentation please seeQueryConfiguration.evaluationMode(QueryEvaluationMode)
-
-
Field Summary
Fields Modifier and Type Field Description static QueryEvaluationMode
IMMEDIATE
Constant for immediate query evaluation.static QueryEvaluationMode
LAZY
Constant for lazy query evaluation.static QueryEvaluationMode
SNAPSHOT
Constant for snapshot query evaluation.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
asInt()
internal method, ignore please.static QueryEvaluationMode
fromInt(int i)
internal method, ignore please.java.lang.String
toString()
-
-
-
Field Detail
-
IMMEDIATE
public static final QueryEvaluationMode IMMEDIATE
Constant for immediate query evaluation. The query is executed fully whenQuery.execute()
is called.
For detailed documentation please seeQueryConfiguration.evaluationMode(QueryEvaluationMode)
-
SNAPSHOT
public static final QueryEvaluationMode SNAPSHOT
Constant for snapshot query evaluation. WhenQuery.execute()
is called, the query processor chooses the best indexes, does all index processing and creates a snapshot of the index at this point in time. Non-indexed constraints are evaluated lazily when the application iterates through theObjectSet
resultset of the query.
For detailed documentation please seeQueryConfiguration.evaluationMode(QueryEvaluationMode)
-
LAZY
public static final QueryEvaluationMode LAZY
Constant for lazy query evaluation. WhenQuery.execute()
is called, the query processor only chooses the best index and creates an iterator on this index. Indexes and constraints are evaluated lazily when the application iterates through theObjectSet
resultset of the query.
For detailed documentation please seeQueryConfiguration.evaluationMode(QueryEvaluationMode)
-
-
Method Detail
-
asInt
public int asInt()
internal method, ignore please.
-
fromInt
public static QueryEvaluationMode fromInt(int i)
internal method, ignore please.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-