Package tilda.enums
Enum ObjectMode
- java.lang.Object
-
- java.lang.Enum<ObjectMode>
-
- tilda.enums.ObjectMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ObjectMode>
public enum ObjectMode extends java.lang.Enum<ObjectMode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CODE_ONLY
Only the code-side artifacts are generated and nothing is defined in the DB.DB_ONLY
Only the database-side artifacts are generated (could be a temporary table needed for a database-side model, but no need for code being generated on the Java side (for example)NONE
No code or database assets is generated at all.NORMAL
Normal Object, i.e., generate both DB and Code artifacts
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ObjectMode
parse(java.lang.String Str)
static ObjectMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ObjectMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NORMAL
public static final ObjectMode NORMAL
Normal Object, i.e., generate both DB and Code artifacts
-
DB_ONLY
public static final ObjectMode DB_ONLY
Only the database-side artifacts are generated (could be a temporary table needed for a database-side model, but no need for code being generated on the Java side (for example)
-
CODE_ONLY
public static final ObjectMode CODE_ONLY
Only the code-side artifacts are generated and nothing is defined in the DB. This is useful to customize a complex query where columns are known in advance and reuse JDBC Row handling, queries, JSON formatting etc on the code-side.
-
NONE
public static final ObjectMode NONE
No code or database assets is generated at all. The object exists purely as meta-data, for example, to map to a custom table/view not defined in Tilda per se.
-
-
Method Detail
-
values
public static ObjectMode[] 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 (ObjectMode c : ObjectMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ObjectMode 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
-
parse
public static ObjectMode parse(java.lang.String Str)
-
-