- All Implemented Interfaces:
Serializable,Comparable<DefaultJoinType>,Constable,JoinType
Default implementation of the
JoinType interface used to represent the default join types.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the join type will be accompanied by an ON clause.booleanisOuter()Whether the join type is an outer join.sql()The SQL representation of the join type.static DefaultJoinTypeReturns the enum constant of this class with the specified name.static DefaultJoinType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INNER
-
CROSS
-
LEFT
-
RIGHT
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
sql
The SQL representation of the join type. For example, "INNER JOIN" or "LEFT JOIN". -
hasOnClause
public boolean hasOnClause()Whether the join type will be accompanied by an ON clause.Note: The
JoinTypeimplementation is not responsible for generating the ON clause. This method is used to determine whether the ON clause should be included in the generated SQL.- Specified by:
hasOnClausein interfaceJoinType- Returns:
trueif the join type will be accompanied by an ON clause,falseotherwise.
-
isOuter
public boolean isOuter()Whether the join type is an outer join.Outer joins will be treated differently when generating the SQL. Outer joins will be placed at the end of the join list to prevent undesired side effects.
-