use of com.haulmont.cuba.core.app.keyvalue.KeyValueMetaClass in project cuba by cuba-platform.
the class ValueCollectionDatasourceImpl method setup.
@Override
public void setup(DsContext dsContext, DataSupplier dataSupplier, String id, MetaClass metaClass, @Nullable View view) {
this.id = id;
this.dsContext = dsContext;
this.dataSupplier = dataSupplier;
this.metaClass = new KeyValueMetaClass();
}
use of com.haulmont.cuba.core.app.keyvalue.KeyValueMetaClass in project cuba by cuba-platform.
the class ValueDatasourceDelegate method addProperty.
public void addProperty(String name, Class type) {
checkNotNullArgument(name, "name is null");
checkNotNullArgument(type, "type is null");
((KeyValueMetaClass) ds.metaClass).addProperty(new KeyValueMetaProperty(ds.metaClass, name, type));
}
Aggregations