Package guru.mikelue.foxglove
Enum Class ColumnMeta.Property
- All Implemented Interfaces:
Serializable,Comparable<ColumnMeta.Property>,Constable
- Enclosing class:
ColumnMeta
The properties used for auto-generating of a column.
This type is used with
EnumSet usually.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates whether the column is auto-increment.Indicates whether the column has default value.Indicates whether the column is generated by database.Indicates whether the column allows null value. -
Method Summary
Modifier and TypeMethodDescriptionstatic ColumnMeta.PropertyReturns the enum constant of this class with the specified name.static ColumnMeta.Property[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NULLABLE
Indicates whether the column allows null value. This value corresponds to NULLABLE defined byDatabaseMetaData.getColumns(String, String, String, String). For "columnNullable" or "unknown" value of NULLABLE, this value is put into the set. -
DEFAULT_VALUE
Indicates whether the column has default value. This value corresponds to COLUMN_DEF defined byDatabaseMetaData.getColumns(String, String, String, String). For not-null value of COLUMN_DEF, this value is put into the set. -
AUTO_INCREMENT
Indicates whether the column is auto-increment. This value corresponds to IS_AUTOINCREMENT defined byDatabaseMetaData.getColumns(String, String, String, String). For "YES" value of IS_AUTOINCREMENT, this value is put into the set. -
GENERATED
Indicates whether the column is generated by database. This value corresponds to IS_GENERATEDCOLUMN defined byDatabaseMetaData.getColumns(String, String, String, String). For "YES" value of IS_GENERATEDCOLUMN, this value is put into the set.
-
-
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
-