|
com.im.df.api 5.9 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface DBFieldCapability.DBColumn
Represents a single database column. This object can be used for obtaining more information about DB columns as well as for changing them (renaming column, resizing, etc.). Use the main schema DDL lock for setters.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.im.df.api.support.PropertiesEditingConfigurable |
|---|
PropertiesEditingConfigurable.Extra |
| Field Summary | |
|---|---|
static String |
PROP_CASE_INSENSITIVE_SEARCH
|
static String |
PROP_COLUMN_DEFINITION
|
static String |
PROP_COLUMN_NAME
|
static String |
PROP_DEFAULT_VALUE
|
static String |
PROP_JDBC_TYPE
|
static String |
PROP_LENGTH
|
static String |
PROP_REQUIRED
|
static String |
PROP_SCALE
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
|
boolean |
canDrop()
Can column be dropped? |
String |
columnDefinition()
The full column definition e.g VARCHAR2(255) or NUMBER(10.1). |
String |
getColumnName()
Get the name of the column. |
DBDatabaseInfo.ColumnSQLType |
getColumnType()
One of the ColumnType enum values. |
String |
getDefaultValue()
Getter for property defaultValue. |
DFField |
getField()
Get the field the column belongs to. |
int |
getJdbcType()
Get the jdbc type of the column, as defined in Types. |
int |
getLength()
Get the length of the column. |
String |
getNativeType()
Native database column type (e.g. |
DBDatabaseInfo.ResizingSupported |
getResizingSupported()
Can the column be resized and rescaled. |
int |
getScale()
Get the scale of the column. |
void |
handleUpdateColInfo(DBColInfo old,
DBColInfo nue)
|
boolean |
isRequired()
NULL (false) or NOT NULL (true). |
void |
removePropertyChangeListener(PropertyChangeListener listener)
|
void |
setColumnName(String columnName,
DFEnvironmentRW env)
Set the new name of the column. |
void |
setLength(int length,
DFEnvironmentRW env)
Set the length of the column. |
void |
setScale(int scale,
DFEnvironmentRW env)
Set the scale of the column. |
| Methods inherited from interface com.im.df.api.support.PropertiesEditingConfigurable |
|---|
isPropertyEditable |
| Field Detail |
|---|
static final String PROP_COLUMN_NAME
static final String PROP_SCALE
static final String PROP_LENGTH
static final String PROP_REQUIRED
static final String PROP_DEFAULT_VALUE
static final String PROP_CASE_INSENSITIVE_SEARCH
static final String PROP_JDBC_TYPE
static final String PROP_COLUMN_DEFINITION
| Method Detail |
|---|
String getColumnName()
void setColumnName(String columnName,
DFEnvironmentRW env)
columnName - New value of property columnName.int getScale()
void setScale(int scale,
DFEnvironmentRW env)
scale - New value of property scale.env - The environment with feedback and proper lockint getLength()
void setLength(int length,
DFEnvironmentRW env)
length - New value of property length.env - The environment with feedback and proper lockboolean isRequired()
String getDefaultValue()
int getJdbcType()
Types.
String getNativeType()
DBDatabaseInfo.ColumnSQLType getColumnType()
String columnDefinition()
TODO P2 - this method is going to be renamed to follow bean pattern style.
DFField getField()
DBDatabaseInfo.ResizingSupported getResizingSupported()
void addPropertyChangeListener(PropertyChangeListener listener)
void removePropertyChangeListener(PropertyChangeListener listener)
boolean canDrop()
void handleUpdateColInfo(DBColInfo old,
DBColInfo nue)
|
com.im.df.api 5.9 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||