Package 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
Fields Modifier and Type Field Description static java.lang.String
PROP_COLUMN_NAME
static java.lang.String
PROP_NATIVE_TYPE_DEFINITION
-
Fields inherited from interface com.im.df.api.support.DFNewTypeOptions
PROP_ERROR_MESSAGE, PROP_VALID
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.im.commons.db.ddl.DBDatabaseInfo.NativeType
createNativeTypeDefinition(int jdbcType, java.lang.String columnType, int length, int scale)
Create a NativeType definition based on these attributes.com.im.commons.db.ddl.DBDatabaseInfo.NativeType[]
getAllNativeTypeDefinitions()
java.lang.String
getColumnName()
com.im.commons.db.ddl.DBDatabaseInfo.NativeType
getNativeTypeDefinition()
void
setColumnName(java.lang.String columnName)
void
setNativeTypeDefinition(com.im.commons.db.ddl.DBDatabaseInfo.NativeType nativeTypeDef)
-
Methods inherited from interface com.im.df.api.support.DFNewTypeOptions
addPropertyChangeListener, getErrorMessage, isValid, removePropertyChangeListener
-
-
-
-
Field Detail
-
PROP_COLUMN_NAME
static final java.lang.String PROP_COLUMN_NAME
- See Also:
- Constant Field Values
-
PROP_NATIVE_TYPE_DEFINITION
static final java.lang.String PROP_NATIVE_TYPE_DEFINITION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getColumnName
java.lang.String getColumnName()
-
setColumnName
void setColumnName(java.lang.String columnName)
-
getNativeTypeDefinition
com.im.commons.db.ddl.DBDatabaseInfo.NativeType getNativeTypeDefinition()
-
setNativeTypeDefinition
void setNativeTypeDefinition(com.im.commons.db.ddl.DBDatabaseInfo.NativeType nativeTypeDef)
-
createNativeTypeDefinition
com.im.commons.db.ddl.DBDatabaseInfo.NativeType createNativeTypeDefinition(int jdbcType, java.lang.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:
java.lang.IllegalArgumentException
- if the attributes are inappropriate for the database
-
getAllNativeTypeDefinitions
com.im.commons.db.ddl.DBDatabaseInfo.NativeType[] getAllNativeTypeDefinitions()
-
-