use of com.haulmont.cuba.core.app.keyvalue.KeyValueMetaProperty in project cuba by cuba-platform.
the class ValueDatasourceDelegate method addProperty.
public void addProperty(String name, Datatype datatype) {
checkNotNullArgument(name, "name is null");
checkNotNullArgument(datatype, "type is null");
((KeyValueMetaClass) ds.metaClass).addProperty(new KeyValueMetaProperty(ds.metaClass, name, datatype));
}
use of com.haulmont.cuba.core.app.keyvalue.KeyValueMetaProperty in project cuba by cuba-platform.
the class ValueDatasourceDelegate method addProperty.
public void addProperty(String name) {
checkNotNullArgument(name, "name is null");
((KeyValueMetaClass) ds.metaClass).addProperty(new KeyValueMetaProperty(ds.metaClass, name, String.class));
}
use of com.haulmont.cuba.core.app.keyvalue.KeyValueMetaProperty 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