com.klg.jclass.field.db.datasource
Class DataSourceValueModel
java.lang.Object
|
+--com.klg.jclass.util.value.AbstractValueModel
|
+--com.klg.jclass.field.db.datasource.AbstractBindingValueModel
|
+--com.klg.jclass.field.db.datasource.DataSourceValueModel
- public class DataSourceValueModel
- extends AbstractBindingValueModel
The datasource value model.
- See Also:
- Serialized Form
Fields inherited from class com.klg.jclass.util.value.AbstractValueModel |
listeners,
value |
Method Summary |
String |
getDataBinding()
Returns the field's value of the dataBinding object property. |
void |
setDataBinding(com.klg.jclass.datasource.BindingModel binding,
String column_name)
Binds to a data source using a Binding. |
void |
setDataBinding(com.klg.jclass.datasource.DataModel data_model,
com.klg.jclass.datasource.MetaDataModel meta_data_model,
String column_name)
Sets the data binding. |
void |
setDataBinding(String data_binding)
Sets the data binding hierarchy string, starting from a TreeDataBean instance name
and containing full sequence of MetaDataModel levels starting from the root to the level
the table is bound with. |
Methods inherited from class com.klg.jclass.util.value.AbstractValueModel |
addValueListener,
getValue,
removeValueListener |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
DataSourceValueModel
public DataSourceValueModel(JCFieldComponent c)
- Constructs a new datasource value model for the given field component.
- Parameters:
c
- a field component
DataSourceValueModel
public DataSourceValueModel(JCFieldComponent c,
com.klg.jclass.datasource.DataModel data_model,
com.klg.jclass.datasource.MetaDataModel meta_data_model,
String column_name)
getDataBinding
public String getDataBinding()
- Returns the field's value of the dataBinding object property.
The dataBinding property specifies a string describing a TreeDataBean
instance and metadata level of the instance this table is bound with.
The format of the property is as follows:
<TreeDataBean name>:<MetaDataModel description>[|<MetaDataModel description>...]
setDataBinding
public void setDataBinding(String data_binding)
- Sets the data binding hierarchy string, starting from a TreeDataBean instance name
and containing full sequence of MetaDataModel levels starting from the root to the level
the table is bound with.
setDataBinding
public void setDataBinding(com.klg.jclass.datasource.DataModel data_model,
com.klg.jclass.datasource.MetaDataModel meta_data_model,
String column_name)
- Sets the data binding.
setDataBinding
public void setDataBinding(com.klg.jclass.datasource.BindingModel binding,
String column_name)
- Binds to a data source using a Binding.