Package org.tentackle.persist.wurblet
Enum WurbletArgumentType
- java.lang.Object
-
- java.lang.Enum<WurbletArgumentType>
-
- org.tentackle.persist.wurblet.WurbletArgumentType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<WurbletArgumentType>
public enum WurbletArgumentType extends java.lang.Enum<WurbletArgumentType>
The type of aWurbletArgument.- Author:
- harald
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAttributeAllowed()Returns whether anAttributeis allowed.booleanisAttributeOptional()Returns whether anAttributemay be given optionally.booleanisAttributeRequired()Returns whether anAttributeis required.booleanisNameOptional()Returns whether the name of the method argument is optional.booleanisPathAllowed()Returns whether aRelationpath is allowed.booleanisPathOptional()Returns whether aRelationpath may be given optionally.booleanisPathRequired()Returns whether aRelationpath is required.booleanisRelopOptional()Returns whether the relop is optional.static WurbletArgumentTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static WurbletArgumentType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONDITION
public static final WurbletArgumentType CONDITION
AnAttributethat must meet a condition.
-
EXTRA
public static final WurbletArgumentType EXTRA
An extraAttribute.
Usually used for SQL UPDATE.
-
SORT
public static final WurbletArgumentType SORT
AnAttributeused for sorting.
-
JOIN
public static final WurbletArgumentType JOIN
ARelationthat will be joined and eagerly loaded.
-
-
Method Detail
-
values
public static WurbletArgumentType[] 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 (WurbletArgumentType c : WurbletArgumentType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WurbletArgumentType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
isPathOptional
public boolean isPathOptional()
Returns whether aRelationpath may be given optionally.- Returns:
- true if optional, false if none or required
-
isPathRequired
public boolean isPathRequired()
Returns whether aRelationpath is required.- Returns:
- true if must be given, false if not allowed or optional
-
isPathAllowed
public boolean isPathAllowed()
Returns whether aRelationpath is allowed.- Returns:
- true if optional or required
-
isAttributeOptional
public boolean isAttributeOptional()
Returns whether anAttributemay be given optionally.- Returns:
- true if optional, false if not allowed or required
-
isAttributeRequired
public boolean isAttributeRequired()
Returns whether anAttributeis required.- Returns:
- true if must be given, false if none or optional
-
isAttributeAllowed
public boolean isAttributeAllowed()
Returns whether anAttributeis allowed.- Returns:
- true if optional or required
-
isNameOptional
public boolean isNameOptional()
Returns whether the name of the method argument is optional.- Returns:
- true if optional, false if not allowed
-
isRelopOptional
public boolean isRelopOptional()
Returns whether the relop is optional.- Returns:
- true if optional, false if not allowed
-
-