Package com.db4o.query
Class Predicate<ExtentType>
- java.lang.Object
-
- com.db4o.query.Predicate<ExtentType>
-
- All Implemented Interfaces:
java.io.Serializable
public abstract class Predicate<ExtentType> extends java.lang.Object implements java.io.Serializable- See Also:
ObjectContainer.query(Predicate), Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPREDICATEMETHOD_NAMEpublic for implementation reasons, please ignore.
-
Constructor Summary
Constructors Constructor Description Predicate()Predicate(java.lang.Class<? extends ExtentType> extentType)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanappliesTo(ExtentType candidate)public for implementation reasons, please ignore.java.lang.Class<? extends ExtentType>extentType()public for implementation reasons, please ignore.java.lang.reflect.MethodgetFilterMethod()abstract booleanmatch(ExtentType candidate)The match method that needs to be implemented by the user.
-
-
-
Field Detail
-
PREDICATEMETHOD_NAME
public static final java.lang.String PREDICATEMETHOD_NAME
public for implementation reasons, please ignore.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Predicate
public Predicate()
-
Predicate
public Predicate(java.lang.Class<? extends ExtentType> extentType)
-
-
Method Detail
-
getFilterMethod
public java.lang.reflect.Method getFilterMethod()
-
extentType
public java.lang.Class<? extends ExtentType> extentType()
public for implementation reasons, please ignore.
-
match
public abstract boolean match(ExtentType candidate)
The match method that needs to be implemented by the user.- Parameters:
candidate- the candidate object passed from db4o- Returns:
- true to include an object in the resulting ObjectSet
-
appliesTo
public boolean appliesTo(ExtentType candidate)
public for implementation reasons, please ignore.
-
-