public class ODataTypeManager extends Object
Constructor and Description |
---|
ODataTypeManager() |
Modifier and Type | Method and Description |
---|---|
static Object |
convertByteArrayToTeiidRuntimeType(Class<?> type,
byte[] contents,
String odataType) |
static String |
convertToODataURIValue(Object val,
String odataType) |
static Object |
convertToTeiidRuntimeType(Class<?> type,
Object value,
String odataType) |
static org.apache.olingo.commons.api.edm.EdmPrimitiveTypeKind |
odataType(Class<?> teiidRuntimeTypeClass) |
static org.apache.olingo.commons.api.edm.EdmPrimitiveTypeKind |
odataType(String teiidRuntimeType) |
static Object |
parseLiteral(org.apache.olingo.commons.api.edm.EdmParameter edmParameter,
Class<?> runtimeType,
String value) |
static Object |
parseLiteral(org.apache.olingo.commons.api.edm.EdmProperty edmProperty,
Class<?> runtimeType,
String value) |
static Object |
parseLiteral(String odataType,
String value) |
static Object |
rationalizePrecision(Integer precision,
Integer scale,
Object value) |
static String |
teiidType(org.apache.olingo.commons.core.edm.primitivetype.SingletonPrimitiveType odataType,
boolean array) |
static String |
teiidType(String odataType,
boolean array) |
public static String teiidType(org.apache.olingo.commons.core.edm.primitivetype.SingletonPrimitiveType odataType, boolean array)
public static org.apache.olingo.commons.api.edm.EdmPrimitiveTypeKind odataType(Class<?> teiidRuntimeTypeClass)
public static org.apache.olingo.commons.api.edm.EdmPrimitiveTypeKind odataType(String teiidRuntimeType)
public static Object convertToTeiidRuntimeType(Class<?> type, Object value, String odataType) throws TeiidException
type
- value
- odataType
- type hint if the value could be a string containing a literal value of another typeTeiidException
public static Object convertByteArrayToTeiidRuntimeType(Class<?> type, byte[] contents, String odataType) throws TeiidException
TeiidException
public static Object parseLiteral(org.apache.olingo.commons.api.edm.EdmParameter edmParameter, Class<?> runtimeType, String value) throws TeiidProcessingException
TeiidProcessingException
public static Object parseLiteral(org.apache.olingo.commons.api.edm.EdmProperty edmProperty, Class<?> runtimeType, String value) throws TeiidException
TeiidException
public static Object parseLiteral(String odataType, String value) throws TeiidException
TeiidException
public static Object rationalizePrecision(Integer precision, Integer scale, Object value)
Copyright © 2018 JBoss by Red Hat. All rights reserved.