|
com.im.commons.db 5.9.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.im.commons.db.ddl.AbstractDBInfo.PlatformNativeType
public static final class AbstractDBInfo.PlatformNativeType
| Constructor Summary | |
|---|---|
AbstractDBInfo.PlatformNativeType(int jdbcType,
String nativeType,
int length,
int scale,
String formatString)
|
|
AbstractDBInfo.PlatformNativeType(int jdbcType,
String nativeType,
int length,
String formatString)
|
|
| Method Summary | |
|---|---|
String |
columnDefinition()
Our current column definition e.g. |
String |
columnDefinition(int size,
int scale)
|
boolean |
equals(Object obj)
|
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. |
int |
getSize()
Deprecated. Use getLength() |
int |
hashCode()
|
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. |
void |
setScale(int scale)
|
void |
setSize(int size)
Deprecated. Use reSize() |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractDBInfo.PlatformNativeType(int jdbcType,
String nativeType,
int length,
int scale,
String formatString)
public AbstractDBInfo.PlatformNativeType(int jdbcType,
String nativeType,
int length,
String formatString)
| Method Detail |
|---|
public int getJdbcType()
getJdbcType in interface DBDatabaseInfo.NativeTypepublic String getNativeType()
DBDatabaseInfo.NativeType
getNativeType in interface DBDatabaseInfo.NativeTypepublic DBDatabaseInfo.ColumnSQLType geColumnType()
DBDatabaseInfo.NativeTypeDBDatabaseInfo.ColumnSQLType enum values. This may not be defined if
it is not a DIF supported column type.
geColumnType in interface DBDatabaseInfo.NativeType@Deprecated public int getSize()
@Deprecated public void setSize(int size)
public int getLength()
DBDatabaseInfo.NativeType
getLength in interface DBDatabaseInfo.NativeTypepublic boolean hasLength()
DBDatabaseInfo.NativeType
hasLength in interface DBDatabaseInfo.NativeTypepublic boolean isLengthSpecified()
DBDatabaseInfo.NativeType
isLengthSpecified in interface DBDatabaseInfo.NativeTypepublic boolean isScaleSpecified()
DBDatabaseInfo.NativeType
isScaleSpecified in interface DBDatabaseInfo.NativeTypepublic Integer getMinAllowedLength()
DBDatabaseInfo.NativeType
getMinAllowedLength in interface DBDatabaseInfo.NativeTypepublic Integer getMaxAllowedLength()
DBDatabaseInfo.NativeType
getMaxAllowedLength in interface DBDatabaseInfo.NativeTypepublic boolean isResizingSupported()
DBDatabaseInfo.NativeType
isResizingSupported in interface DBDatabaseInfo.NativeTypepublic DBDatabaseInfo.NativeType reSize(int newLength)
DBDatabaseInfo.NativeType
reSize in interface DBDatabaseInfo.NativeTypenewLength - The new length for the column
public int getScale()
DBDatabaseInfo.NativeType
getScale in interface DBDatabaseInfo.NativeTypepublic void setScale(int scale)
public boolean hasScale()
DBDatabaseInfo.NativeType
hasScale in interface DBDatabaseInfo.NativeTypepublic Integer getMinAllowedScale()
DBDatabaseInfo.NativeType
getMinAllowedScale in interface DBDatabaseInfo.NativeTypepublic Integer getMaxAllowedScale()
DBDatabaseInfo.NativeType
getMaxAllowedScale in interface DBDatabaseInfo.NativeTypepublic boolean isRescalingSupported()
isRescalingSupported in interface DBDatabaseInfo.NativeTypepublic DBDatabaseInfo.NativeType reScale(int newScale)
DBDatabaseInfo.NativeType
reScale in interface DBDatabaseInfo.NativeTypenewScale - The new scale for the column
public String columnDefinition()
DBDatabaseInfo.NativeType
columnDefinition in interface DBDatabaseInfo.NativeType
public String columnDefinition(int size,
int scale)
public boolean isSupported()
isSupported in interface DBDatabaseInfo.NativeTypepublic String getColumnDefinitionMesageFormat()
DBDatabaseInfo.NativeType
getColumnDefinitionMesageFormat in interface DBDatabaseInfo.NativeTypepublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
com.im.commons.db 5.9.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||