- java.lang.Object
-
- java.lang.Enum<JoinType>
-
- org.jooq.JoinType
-
- All Implemented Interfaces:
Serializable,Comparable<JoinType>
public enum JoinType extends Enum<JoinType>
The type of join.- Author:
- Lukas Eder
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CROSS_APPLYCROSS APPLYtwo tables.CROSS_JOINCROSS JOINtwo tables.FULL_OUTER_JOINFULL OUTER JOINtwo tables.JOININNER JOINtwo tables.LEFT_ANTI_JOINLEFT ANTI JOINtwo tables.LEFT_OUTER_JOINLEFT OUTER JOINtwo tables.LEFT_SEMI_JOINLEFT SEMI JOINtwo tables.NATURAL_FULL_OUTER_JOINNATURAL FULL OUTER JOINtwo tables.NATURAL_JOINNATURAL INNER JOINtwo tables.NATURAL_LEFT_OUTER_JOINNATURAL LEFT OUTER JOINtwo tables.NATURAL_RIGHT_OUTER_JOINNATURAL RIGHT OUTER JOINtwo tables.OUTER_APPLYOUTER APPLYtwo tables.RIGHT_OUTER_JOINRIGHT OUTER JOINtwo tables.STRAIGHT_JOINSTRAIGHT_JOINtwo tables.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanqualified()Whether aJOINoperation of this type must be qualified withONorUSING.KeywordtoKeyword()KeywordtoKeyword(boolean includeOptionalKeywords)StringtoSQL()static JoinTypevalueOf(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.
-
-
-
Enum Constant Detail
-
LEFT_OUTER_JOIN
@NotNull @Support public static final JoinType LEFT_OUTER_JOIN
LEFT OUTER JOINtwo tables.
-
RIGHT_OUTER_JOIN
@NotNull @Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) public static final JoinType RIGHT_OUTER_JOIN
RIGHT OUTER JOINtwo tables.
-
FULL_OUTER_JOIN
@NotNull @Support({AURORA_POSTGRES,COCKROACHDB,DB2,FIREBIRD,HANA,HSQLDB,INFORMIX,INGRES,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) public static final JoinType FULL_OUTER_JOIN
FULL OUTER JOINtwo tables.
-
NATURAL_JOIN
@NotNull @Support public static final JoinType NATURAL_JOIN
NATURAL INNER JOINtwo tables.
-
NATURAL_LEFT_OUTER_JOIN
@NotNull @Support public static final JoinType NATURAL_LEFT_OUTER_JOIN
NATURAL LEFT OUTER JOINtwo tables.
-
NATURAL_RIGHT_OUTER_JOIN
@NotNull @Support({ACCESS,ASE,AURORA_MYSQL,AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,FIREBIRD,H2,HSQLDB,INFORMIX,INGRES,MARIADB,MEMSQL,MYSQL,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) public static final JoinType NATURAL_RIGHT_OUTER_JOIN
NATURAL RIGHT OUTER JOINtwo tables.
-
NATURAL_FULL_OUTER_JOIN
@NotNull @Support({AURORA_POSTGRES,COCKROACHDB,DB2,FIREBIRD,HSQLDB,INFORMIX,INGRES,ORACLE,POSTGRES,SQLDATAWAREHOUSE,SQLSERVER,SYBASE,TERADATA,VERTICA}) public static final JoinType NATURAL_FULL_OUTER_JOIN
NATURAL FULL OUTER JOINtwo tables.
-
CROSS_APPLY
@NotNull @Support({AURORA_POSTGRES,DB2,ORACLE12C,POSTGRES_9_3,SQLDATAWAREHOUSE,SQLSERVER,SYBASE}) public static final JoinType CROSS_APPLY
CROSS APPLYtwo tables.
-
OUTER_APPLY
@NotNull @Support({AURORA_POSTGRES,DB2,ORACLE12C,POSTGRES_9_3,SQLDATAWAREHOUSE,SQLSERVER,SYBASE}) public static final JoinType OUTER_APPLY
OUTER APPLYtwo tables.
-
STRAIGHT_JOIN
@NotNull @Support({AURORA_MYSQL,MARIADB,MEMSQL,MYSQL}) public static final JoinType STRAIGHT_JOIN
STRAIGHT_JOINtwo tables.
-
LEFT_SEMI_JOIN
@NotNull @Support public static final JoinType LEFT_SEMI_JOIN
LEFT SEMI JOINtwo tables.
-
-
Method Detail
-
values
public static JoinType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (JoinType c : JoinType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JoinType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
toSQL
public final String toSQL()
-
toKeyword
public final Keyword toKeyword()
-
toKeyword
public final Keyword toKeyword(boolean includeOptionalKeywords)
-
qualified
public final boolean qualified()
Whether aJOINoperation of this type must be qualified withONorUSING.
-
-