|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<JoinType> org.apache.jackrabbit.oak.jcr.query.qom.JoinType
public enum JoinType
Enumeration of the JCR 2.0 join types.
Enum Constant Summary | |
---|---|
INNER
|
|
LEFT
|
|
RIGHT
|
Method Summary | |
---|---|
String |
formatSql(Object left,
Object right,
Object condition)
Formats an SQL join with this join type and the given sources and join condition. |
static JoinType |
getJoinTypeByName(String name)
Returns the join type with the given JCR name. |
javax.jcr.query.qom.Join |
join(javax.jcr.query.qom.QueryObjectModelFactory factory,
javax.jcr.query.qom.Source left,
javax.jcr.query.qom.Source right,
javax.jcr.query.qom.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 javax.jcr.query.qom.Join join(javax.jcr.query.qom.QueryObjectModelFactory factory, javax.jcr.query.qom.Source left, javax.jcr.query.qom.Source right, javax.jcr.query.qom.JoinCondition condition) throws javax.jcr.RepositoryException
factory
- factory for creating the joinleft
- left join sourceright
- right join sourcecondition
- join condition
javax.jcr.RepositoryException
- if the join can not be createdpublic String formatSql(Object left, Object right, Object condition)
left
- left sourceright
- right sourcecondition
- join condition
left join right
public String toString()
toString
in class Enum<JoinType>
QueryObjectModelConstants
public static JoinType getJoinTypeByName(String name)
name
- JCR name of a join type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |