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
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)
-
Field Details
-
includePrimary
private boolean includePrimary -
includeInherited
private boolean includeInherited -
excludeDefaultValues
private boolean excludeDefaultValues
-
-
Constructor Details
-
Options
public Options()Creates the default options.
-
-
Method Details
-
includePrimary
public boolean includePrimary()Should primary annotations be included in the search or not. Enabled by default. -
setIncludePrimary
-
includeInherited
public boolean includeInherited()Should inherited annotations be included in the search or not. Disabled by default. -
setIncludeInherited
-
excludeDefaultValues
public boolean excludeDefaultValues()Should default values (for project-specific annotation types) be excluded from the query or not. Disabled by default. -
setExcludeDefaultValues
-