Package com.im.commons.db.ddl
Enum DBDatabaseInfo.ColumnSizing
- java.lang.Object
-
- java.lang.Enum<DBDatabaseInfo.ColumnSizing>
-
- com.im.commons.db.ddl.DBDatabaseInfo.ColumnSizing
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DBDatabaseInfo.ColumnSizing>
- Enclosing interface:
- DBDatabaseInfo
public static enum DBDatabaseInfo.ColumnSizing extends java.lang.Enum<DBDatabaseInfo.ColumnSizing>
Definition of sizing characteristics of column length or scale.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANY
Length or scale can only be increased or decreased.DOWNWARDS_ONLY
Length or scale can only be decreased.FIXED
Length or scale can be set, but once set cannot be changed.NONE
Length or scale not valid for this type of column.UPWARDS_ONLY
Length or scale can only be increased.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DBDatabaseInfo.ColumnSizing
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DBDatabaseInfo.ColumnSizing[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final DBDatabaseInfo.ColumnSizing NONE
Length or scale not valid for this type of column.
-
FIXED
public static final DBDatabaseInfo.ColumnSizing FIXED
Length or scale can be set, but once set cannot be changed.
-
UPWARDS_ONLY
public static final DBDatabaseInfo.ColumnSizing UPWARDS_ONLY
Length or scale can only be increased.
-
DOWNWARDS_ONLY
public static final DBDatabaseInfo.ColumnSizing DOWNWARDS_ONLY
Length or scale can only be decreased.
-
ANY
public static final DBDatabaseInfo.ColumnSizing ANY
Length or scale can only be increased or decreased.
-
-
Method Detail
-
values
public static DBDatabaseInfo.ColumnSizing[] 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 (DBDatabaseInfo.ColumnSizing c : DBDatabaseInfo.ColumnSizing.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DBDatabaseInfo.ColumnSizing 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
-
-