| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
formatSql(java.lang.Object left,
java.lang.Object right,
java.lang.Object condition)
Formats an SQL join with this join type and the given sources and
join condition.
|
static JoinType |
getJoinTypeByName(java.lang.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.
|
java.lang.String |
toString()
Returns the JCR 2.0 name of this join type.
|
static JoinType |
valueOf(java.lang.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.
|
public static final JoinType INNER
public static final JoinType LEFT
public static final JoinType RIGHT
public static JoinType[] values()
for (JoinType c : JoinType.values()) System.out.println(c);
public static JoinType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.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 conditionRepositoryException - if the join can not be createdpublic java.lang.String formatSql(java.lang.Object left,
java.lang.Object right,
java.lang.Object condition)
left - left sourceright - right sourcecondition - join conditionleft join rightpublic java.lang.String toString()
toString in class java.lang.Enum<JoinType>QueryObjectModelConstantspublic static JoinType getJoinTypeByName(java.lang.String name) throws RepositoryException
name - JCR name of a join typeRepositoryException - if the given name is unknown"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"