|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Include> net.sf.basedb.core.Include
public enum Include
This enumeration defines constants that are used to specify which items to include in a query.
EntityQuery.include(Include[])
Enum Constant Summary | |
---|---|
ANNOTATED
Include items that have at least one annotation. |
|
IN_PROJECT
Include items in the active project. |
|
MINE
Include item owned by the logged in user. |
|
NOT_ANNOTATED
Include items that have no annotations. |
|
NOT_REMOVED
Include items flagged as not removed. |
|
OTHERS
Include items owned by other users. |
|
REMOVED
Include items flagged as removed. |
|
SHARED
Include items shared to the logged in user. |
Field Summary | |
---|---|
static Collection<Include> |
ALL
A non-modifable collection containing all options. |
private int |
value
|
Method Summary | |
---|---|
(package private) static Set<Include> |
fromInt(int includes)
Convert an integer value to a set of includes. |
private int |
getValue()
|
static int |
toInt(Set<Include> includes)
|
static Include |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Include[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Include REMOVED
public static final Include NOT_REMOVED
public static final Include ANNOTATED
public static final Include NOT_ANNOTATED
public static final Include MINE
public static final Include OTHERS
public static final Include SHARED
public static final Include IN_PROJECT
Field Detail |
---|
public static final Collection<Include> ALL
private final int value
Method Detail |
---|
public static Include[] values()
for (Include c : Include.values()) System.out.println(c);
public static Include valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullprivate int getValue()
public static int toInt(Set<Include> includes)
static Set<Include> fromInt(int includes)
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |