JClass DesktopViews 6.3.0 API
Documentation

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
All Implemented Interfaces:
JCValueModel, Serializable

public class DataSourceValueModel
extends AbstractBindingValueModel

The datasource value model.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.klg.jclass.field.db.datasource.AbstractBindingValueModel
dataBinding
 
Fields inherited from class com.klg.jclass.util.value.AbstractValueModel
listeners, value
 
Constructor Summary
DataSourceValueModel(com.klg.jclass.field.JCFieldComponent c)
          Constructs a new datasource value model for the given field component.
DataSourceValueModel(com.klg.jclass.field.JCFieldComponent c, com.klg.jclass.datasource.DataModel data_model, com.klg.jclass.datasource.MetaDataModel meta_data_model, String column_name)
           
 
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 JCTreeData 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.field.db.datasource.AbstractBindingValueModel
getValueClass, isCurrency, setValue
 
Methods inherited from class com.klg.jclass.util.value.AbstractValueModel
addValueListener, getValue, removeValueListener, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSourceValueModel

public DataSourceValueModel(com.klg.jclass.field.JCFieldComponent c)
Constructs a new datasource value model for the given field component.

Parameters:
c - a field component

DataSourceValueModel

public DataSourceValueModel(com.klg.jclass.field.JCFieldComponent c,
                            com.klg.jclass.datasource.DataModel data_model,
                            com.klg.jclass.datasource.MetaDataModel meta_data_model,
                            String column_name)
Method Detail

getDataBinding

public String getDataBinding()
Returns the field's value of the dataBinding object property. The dataBinding property specifies a string describing a JCTreeData instance and metadata level of the instance this table is bound with. The format of the property is as follows:
 <JCTreeData name>:<MetaDataModel description>[|<MetaDataModel description>...]
 


setDataBinding

public void setDataBinding(String data_binding)
Sets the data binding hierarchy string, starting from a JCTreeData 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.


Copyright © 2004 Quest Software Inc..
All rights reserved.