Search in sources :

Example 1 with KeyValueMetaProperty

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));
}
Also used : KeyValueMetaClass(com.haulmont.cuba.core.app.keyvalue.KeyValueMetaClass) KeyValueMetaProperty(com.haulmont.cuba.core.app.keyvalue.KeyValueMetaProperty)

Example 2 with KeyValueMetaProperty

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));
}
Also used : KeyValueMetaClass(com.haulmont.cuba.core.app.keyvalue.KeyValueMetaClass) KeyValueMetaProperty(com.haulmont.cuba.core.app.keyvalue.KeyValueMetaProperty)

Example 3 with KeyValueMetaProperty

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));
}
Also used : KeyValueMetaClass(com.haulmont.cuba.core.app.keyvalue.KeyValueMetaClass) KeyValueMetaProperty(com.haulmont.cuba.core.app.keyvalue.KeyValueMetaProperty)

Aggregations

KeyValueMetaClass (com.haulmont.cuba.core.app.keyvalue.KeyValueMetaClass)3 KeyValueMetaProperty (com.haulmont.cuba.core.app.keyvalue.KeyValueMetaProperty)3