- java.lang.Object
-
- java.lang.Enum<JoinType>
-
- com.speedment.runtime.join.stage.JoinType
-
- All Implemented Interfaces:
Serializable,Comparable<JoinType>
public enum JoinType extends Enum<JoinType>
- Author:
- Per Minborg
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CROSS_JOININNER_JOINLEFT_JOINRIGHT_JOIN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisNeverNullable()Returns if this JoinType always produce results that are NEVERnullfor entities belonging to another Stage.booleanisNullableOther()Returns if this JoinType can produce results that arenullfor entities belonging to another Stage.booleanisNullableSelf()Returns if this JoinType can produce results that arenullfor entities belonging to the same Stage where this JoinType is present.Stringsql()Returns the SQL representation of the JoinType.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.
-
-
-
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
-
sql
public String sql()
Returns the SQL representation of the JoinType.- Returns:
- the SQL representation of the JoinType
-
isNullableSelf
public boolean isNullableSelf()
Returns if this JoinType can produce results that arenullfor entities belonging to the same Stage where this JoinType is present.- Returns:
- if this JoinType can produce results that are
nullfor entities belonging to the same Stage where this JoinType is present
-
isNullableOther
public boolean isNullableOther()
Returns if this JoinType can produce results that arenullfor entities belonging to another Stage.- Returns:
- if this JoinType can produce results that are
nullfor entities belonging to another Stage
-
isNeverNullable
public boolean isNeverNullable()
Returns if this JoinType always produce results that are NEVERnullfor entities belonging to another Stage.- Returns:
- if this JoinType always produce results that are NEVER
nullfor entities belonging to another Stage.
-
-