Package net.sf.basedb.core
Class AnnotationRestriction.Options
- java.lang.Object
-
- net.sf.basedb.core.AnnotationRestriction.Options
-
- Enclosing class:
- AnnotationRestriction
public static class AnnotationRestriction.Options extends Object
Options that specify which annotations to consider when searching.- Since:
- 3.11
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
excludeDefaultValues
private boolean
includeInherited
private boolean
includePrimary
-
Constructor Summary
Constructors Constructor Description Options()
Creates the default options.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
excludeDefaultValues()
Should default values (for project-specific annotation types) be excluded from the query or not.boolean
includeInherited()
Should inherited annotations be included in the search or not.boolean
includePrimary()
Should primary annotations be included in the search or not.AnnotationRestriction.Options
setExcludeDefaultValues(boolean excludeDefaultValues)
AnnotationRestriction.Options
setIncludeInherited(boolean includeInherited)
AnnotationRestriction.Options
setIncludePrimary(boolean includePrimary)
-
-
-
Method Detail
-
includePrimary
public boolean includePrimary()
Should primary annotations be included in the search or not. Enabled by default.
-
setIncludePrimary
public AnnotationRestriction.Options setIncludePrimary(boolean includePrimary)
-
includeInherited
public boolean includeInherited()
Should inherited annotations be included in the search or not. Disabled by default.
-
setIncludeInherited
public AnnotationRestriction.Options setIncludeInherited(boolean includeInherited)
-
excludeDefaultValues
public boolean excludeDefaultValues()
Should default values (for project-specific annotation types) be excluded from the query or not. Disabled by default.
-
setExcludeDefaultValues
public AnnotationRestriction.Options setExcludeDefaultValues(boolean excludeDefaultValues)
-
-