Search in sources :

Example 1 with ArangoDBProperty

use of org.ff4j.arangodb.document.ArangoDBProperty in project ff4j by ff4j.

the class PropertyStoreArangoDB method createProperty.

/**
 * {@inheritDoc}
 */
@Override
public <T> void createProperty(final Property<T> prop) {
    assertPropertyNotNull(prop);
    assertPropertyNotExist(prop.getName());
    ArangoDBProperty arangoDBProperty = StoreMapper.toPropertyStore(prop);
    insertProperty(arangoDBProperty);
}
Also used : ArangoDBProperty(org.ff4j.arangodb.document.ArangoDBProperty)

Example 2 with ArangoDBProperty

use of org.ff4j.arangodb.document.ArangoDBProperty in project ff4j by ff4j.

the class PropertyStoreArangoDB method updateProperty.

/**
 * {@inheritDoc}
 */
@Override
public <T> void updateProperty(final Property<T> prop) {
    assertPropertyNotNull(prop);
    assertPropertyExist(prop.getName());
    ArangoDBProperty arangoDBProperty = StoreMapper.toPropertyStore(prop);
    replaceProperty(arangoDBProperty);
}
Also used : ArangoDBProperty(org.ff4j.arangodb.document.ArangoDBProperty)

Aggregations

ArangoDBProperty (org.ff4j.arangodb.document.ArangoDBProperty)2