com.im.df.api 5.9

com.im.df.api.support
Interface DFNewTypeWellKnownOptions.DBColumnInfo

All Superinterfaces:
DFNewTypeOptions
Enclosing interface:
DFNewTypeWellKnownOptions

public static interface DFNewTypeWellKnownOptions.DBColumnInfo
extends DFNewTypeOptions

This is just column info helper object which is used in new field options. It is extending DFNewTypeOptions just because of sharing methods for valid/error message and property changes.

It is not supposed this class is used directly as options.


Field Summary
static String PROP_COLUMN_NAME
           
static String PROP_NATIVE_TYPE_DEFINITION
           
 
Fields inherited from interface com.im.df.api.support.DFNewTypeOptions
PROP_ERROR_MESSAGE, PROP_VALID
 
Method Summary
 DBDatabaseInfo.NativeType createNativeTypeDefinition(int jdbcType, String columnType, int length, int scale)
          Create a NativeType definition based on these attributes.
 DBDatabaseInfo.NativeType[] getAllNativeTypeDefinitions()
           
 String getColumnName()
           
 DBDatabaseInfo.NativeType getNativeTypeDefinition()
           
 void setColumnName(String columnName)
           
 void setNativeTypeDefinition(DBDatabaseInfo.NativeType nativeTypeDef)
           
 
Methods inherited from interface com.im.df.api.support.DFNewTypeOptions
addPropertyChangeListener, getErrorMessage, isValid, removeAllPropertyChangeListener, removePropertyChangeListener
 

Field Detail

PROP_COLUMN_NAME

static final String PROP_COLUMN_NAME
See Also:
Constant Field Values

PROP_NATIVE_TYPE_DEFINITION

static final String PROP_NATIVE_TYPE_DEFINITION
See Also:
Constant Field Values
Method Detail

getColumnName

String getColumnName()

setColumnName

void setColumnName(String columnName)

getNativeTypeDefinition

DBDatabaseInfo.NativeType getNativeTypeDefinition()

setNativeTypeDefinition

void setNativeTypeDefinition(DBDatabaseInfo.NativeType nativeTypeDef)

createNativeTypeDefinition

DBDatabaseInfo.NativeType createNativeTypeDefinition(int jdbcType,
                                                     String columnType,
                                                     int length,
                                                     int scale)
Create a NativeType definition based on these attributes. It is assumed that the caller knows the column definition they want and it is correct for the underlying database. e.g. VARCHAR2(140), NUMBER(15.2)

Parameters:
columnType - The type of column e.g "NUMBER"
length - The length of the column (can be zero if column type does not have a length attribute.
scale - The scale (precession) of the column (can be zero if column type does not have a scale attribute.
Returns:
The created NativeType.
Throws:
IllegalArgumentException - if the attributes are inappropriate for the database

getAllNativeTypeDefinitions

DBDatabaseInfo.NativeType[] getAllNativeTypeDefinitions()

com.im.df.api 5.9