Search in sources :

Example 1 with EdmSimpleType

use of org.apache.olingo.odata2.api.edm.EdmSimpleType in project wildfly-camel by wildfly-extras.

the class MyODataSingleProcessor method getKeyValue.

private int getKeyValue(KeyPredicate key) throws ODataException {
    EdmProperty property = key.getProperty();
    EdmSimpleType type = (EdmSimpleType) property.getType();
    return type.valueOfString(key.getLiteral(), EdmLiteralKind.DEFAULT, property.getFacets(), Integer.class);
}
Also used : EdmSimpleType(org.apache.olingo.odata2.api.edm.EdmSimpleType) EdmProperty(org.apache.olingo.odata2.api.edm.EdmProperty)

Aggregations

EdmProperty (org.apache.olingo.odata2.api.edm.EdmProperty)1 EdmSimpleType (org.apache.olingo.odata2.api.edm.EdmSimpleType)1