public enum JoinType extends Enum<JoinType>
| Enum Constant and Description |
|---|
ANTI
Anti-join (also known as Anti-semi-join).
|
FULL
Full-outer join.
|
INNER
Inner join.
|
LEFT
Left-outer join.
|
RIGHT
Right-outer join.
|
SEMI
Semi-join.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
generatesNullsOnLeft()
Returns whether a join of this type may generate NULL values on the
left-hand side.
|
boolean |
generatesNullsOnRight()
Returns whether a join of this type may generate NULL values on the
right-hand side.
|
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 final JoinType FULL
public static final JoinType SEMI
For example, EMP semi-join DEPT finds all EMP records
that have a corresponding DEPT record:
SELECT * FROM EMP
WHERE EXISTS (SELECT 1 FROM DEPT
WHERE DEPT.DEPTNO = EMP.DEPTNO)
public static final JoinType ANTI
For example, EMP anti-join DEPT finds all EMP records
that do not have a corresponding DEPT record:
SELECT * FROM EMP
WHERE NOT EXISTS (SELECT 1 FROM DEPT
WHERE DEPT.DEPTNO = EMP.DEPTNO)
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 boolean generatesNullsOnRight()
public boolean generatesNullsOnLeft()
Copyright © 2012-2021 Apache Software Foundation. All Rights Reserved.