Search in sources :

Example 1 with LiteralImpl

use of org.apache.olingo.server.core.uri.queryoption.expression.LiteralImpl in project teiid by teiid.

the class DocumentNode method getKeyPredicateExpression.

private static org.apache.olingo.server.api.uri.queryoption.expression.Expression getKeyPredicateExpression(UriParameter key, OData odata, Column column) {
    org.apache.olingo.server.api.uri.queryoption.expression.Expression expr = key.getExpression();
    if (expr == null) {
        EdmPrimitiveTypeKind primitiveTypeKind = ODataTypeManager.odataType(column.getRuntimeType());
        expr = new LiteralImpl(key.getText(), odata.createPrimitiveTypeInstance(primitiveTypeKind));
    }
    return expr;
}
Also used : LiteralImpl(org.apache.olingo.server.core.uri.queryoption.expression.LiteralImpl) EdmPrimitiveTypeKind(org.apache.olingo.commons.api.edm.EdmPrimitiveTypeKind)

Aggregations

EdmPrimitiveTypeKind (org.apache.olingo.commons.api.edm.EdmPrimitiveTypeKind)1 LiteralImpl (org.apache.olingo.server.core.uri.queryoption.expression.LiteralImpl)1