|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<JoinType>
org.apache.jackrabbit.commons.query.qom.JoinType
public enum JoinType
Enumeration of the JCR 2.0 join types.
Enum Constant Summary | |
---|---|
INNER
|
|
LEFT
|
|
RIGHT
|
Method Summary | |
---|---|
static JoinType |
getJoinTypeByName(String name)
Returns the join type with the given JCR name. |
Join |
join(QueryObjectModelFactory factory,
Source left,
Source right,
JoinCondition condition)
Returns the join of the given sources. |
String |
toString()
Returns the JCR 2.0 name of this join type. |
static JoinType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static JoinType[] |
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, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final JoinType INNER
public static final JoinType LEFT
public static final JoinType RIGHT
Method Detail |
---|
public static JoinType[] values()
for (JoinType c : JoinType.values()) System.out.println(c);
public static JoinType 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 nullpublic Join join(QueryObjectModelFactory factory, Source left, Source right, JoinCondition condition) throws RepositoryException
factory
- factory for creating the joinleft
- left join sourceright
- right join sourcecondition
- join condition
RepositoryException
- if the join can not be createdpublic String toString()
toString
in class Enum<JoinType>
QueryObjectModelConstants
public static JoinType getJoinTypeByName(String name) throws RepositoryException
name
- JCR name of a join type
RepositoryException
- if the given name is unknown
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |