public enum JoinType extends Enum<JoinType>
Modifier and Type | Method and Description |
---|---|
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.
|
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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- 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 conditionjavax.jcr.RepositoryException
- if the join can not be createdpublic String formatSql(Object left, Object right, Object condition)
left
- left sourceright
- right sourcecondition
- join conditionleft join right
public String toString()
public static JoinType getJoinTypeByName(String name) throws javax.jcr.RepositoryException
name
- JCR name of a join typejavax.jcr.RepositoryException
- if the given name is unknownCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.