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 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

      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)