|
com.im.commons.db 5.9.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface DBDatabaseInfo.NativeType
Represents a database column native type.
| Method Summary | |
|---|---|
String |
columnDefinition()
Our current column definition e.g. |
DBDatabaseInfo.ColumnSQLType |
geColumnType()
Column type as one of the DBDatabaseInfo.ColumnSQLType enum values. |
String |
getColumnDefinitionMesageFormat()
Get a MessageFormat string that can be used to generate the column definition based on the native type, the length and the scale. |
int |
getJdbcType()
|
int |
getLength()
The length (size) of this column. |
Integer |
getMaxAllowedLength()
The maximum allowed length for this column. |
Integer |
getMaxAllowedScale()
The maximum allowed scale for this column. |
Integer |
getMinAllowedLength()
The minimum allowed length for this column. |
Integer |
getMinAllowedScale()
The minimum allowed scale for this column. |
String |
getNativeType()
The column type in string form e.g. |
int |
getScale()
The scale (precision) of this column. |
boolean |
hasLength()
Does this column have a length. |
boolean |
hasScale()
Does this column have a scale. |
boolean |
isLengthSpecified()
Has length been specified upon table creation. |
boolean |
isRescalingSupported()
|
boolean |
isResizingSupported()
Can the length of this column be changed. |
boolean |
isScaleSpecified()
Has scale been specified upon table creation. |
boolean |
isSupported()
Is this a supported DIF datatype. |
DBDatabaseInfo.NativeType |
reScale(int newScale)
Create a new NativeType of this new scale. |
DBDatabaseInfo.NativeType |
reSize(int newLength)
Create a new NativeType of this new length. |
| Method Detail |
|---|
int getJdbcType()
String getNativeType()
DBDatabaseInfo.ColumnSQLType geColumnType()
DBDatabaseInfo.ColumnSQLType enum values. This may not be defined if
it is not a DIF supported column type.
int getLength()
boolean hasLength()
boolean isLengthSpecified()
boolean isScaleSpecified()
Integer getMinAllowedLength()
Integer getMaxAllowedLength()
boolean isResizingSupported()
DBDatabaseInfo.NativeType reSize(int newLength)
newLength - The new length for the column
int getScale()
boolean hasScale()
Integer getMinAllowedScale()
Integer getMaxAllowedScale()
boolean isRescalingSupported()
DBDatabaseInfo.NativeType reScale(int newScale)
newScale - The new scale for the column
String columnDefinition()
boolean isSupported()
String getColumnDefinitionMesageFormat()
|
com.im.commons.db 5.9.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||