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.
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
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()