|
com.im.df.api 5.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DFField
The definition of a field which has a type, a name etc. DFFields belong to
a DFEntity.
A DFField is an abstraction of a column of data in a DFEntity, typically a database column. A DFField has a defined data type (e.g. Integer, Text, Image, Date etc.) and the DFField abstraction provides the additional information that is not typically present from the JDBC meta data. For example a DFField can describe an image (e.g. a GIF image) which would be stored in a database table as BLOB column. The image DFField would know how to store the image to the database and how to build the data from the BLOB into the image, whereas a different type of DFField (e.g a MP3 field) could also use a BLOB column to persist its data. To the database there is no difference between the two types of columns, but to DIF there is every difference!
Whilst simple DFFields might represent a single database column, the DFField abstraction allows data to be obtained from multiple database columns so that much richer data types than are available in a typical database column are possible. An example could be a DFField for a dose response curve, which could be represented as sets of percent inhibition values present in a separate table.
| Nested Class Summary | |
|---|---|
static class |
DFField.Required
Enumeration of required status for fields. |
| Nested classes/interfaces inherited from interface com.im.df.api.ddl.DFItem |
|---|
DFItem.Handle<T extends DFItem> |
| Nested classes/interfaces inherited from interface com.im.df.api.support.PropertiesEditingConfigurable |
|---|
PropertiesEditingConfigurable.Extra |
| Field Summary | |
|---|---|
static String |
PROP_DEFAULT_VALUE
|
static String |
PROP_DISTINCT_VALUES
|
static String |
PROP_REQUIRED
|
| Fields inherited from interface com.im.df.api.ddl.DFItem |
|---|
PROP_CAPABILITIES, PROP_DESCRIPTION, PROP_ID, PROP_NAME, PROP_TYPE, PROP_VALID |
| Method Summary | |
|---|---|
DFDataConvertor |
getConvertor()
|
DefaultValue |
getDefaultValue()
Get the default value to use for this field if none is specified. |
DFEntity |
getEntity()
|
Class<?> |
getFieldClass()
|
DFItem.Handle<DFField> |
getHandle()
Returns a handle to the Item. |
DFField.Required |
getRequired()
Getter for property required. |
DFField.Required[] |
getValidRequiredValues()
Which of the required values are valid for this field. |
Map<String,String> |
getXAttributes()
|
boolean |
isDistinctValues()
Getter for property distinctValues. |
boolean |
isQueryable()
Test whether this field is queryable or not. |
boolean |
isSortable()
Test whether this field is sortable or not. |
void |
putXAttribute(String attrKey,
String mimeType,
DFEnvironmentRW env)
|
void |
setDefaultValue(DefaultValue defaultValue,
DFEnvironmentRW env)
Set the default value to use for this field if none is specified. |
void |
setDistinctValues(boolean distinctValues,
DFEnvironmentRW env)
Setter for property distinctValues. |
void |
setRequired(DFField.Required required,
DFEnvironmentRW env)
Setter for property required. |
| Methods inherited from interface com.im.df.api.ddl.DFItem |
|---|
addPropertyChangeListener, getCapabilities, getDescription, getId, getName, getType, isValid, removePropertyChangeListener, setDescription, setName |
| Methods inherited from interface com.im.df.api.support.PropertiesEditingConfigurable |
|---|
isPropertyEditable |
| Field Detail |
|---|
static final String PROP_REQUIRED
static final String PROP_DISTINCT_VALUES
static final String PROP_DEFAULT_VALUE
| Method Detail |
|---|
DFEntity getEntity()
nullboolean isDistinctValues()
void setDistinctValues(boolean distinctValues,
DFEnvironmentRW env)
distinctValues - New value of property distinctValues.DFField.Required getRequired()
void setRequired(DFField.Required required,
DFEnvironmentRW env)
required - New value of property required.DFField.Required[] getValidRequiredValues()
DefaultValue getDefaultValue()
void setDefaultValue(DefaultValue defaultValue,
DFEnvironmentRW env)
defaultValue - New value for the defaultClass<?> getFieldClass()
boolean isSortable()
boolean isQueryable()
DFDataConvertor getConvertor()
DFDataComparator
(optional). Never returns null.DFItem.Handle<DFField> getHandle()
DFItem
getHandle in interface DFItemMap<String,String> getXAttributes()
void putXAttribute(String attrKey,
String mimeType,
DFEnvironmentRW env)
|
com.im.df.api 5.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||