public class ODataTypeManager extends Object
| Constructor and Description |
|---|
ODataTypeManager() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
convertByteArrayToTeiidRuntimeType(Class<?> type,
byte[] contents,
String odataType,
String srid) |
static String |
convertToODataURIValue(Object val,
String odataType) |
static org.apache.olingo.commons.api.edm.geo.Geospatial |
convertToODataValue(InputStream wkb,
boolean includesSrid) |
static Object |
convertToTeiidRuntimeType(Class<?> type,
Object value,
String odataType,
String srid) |
static org.apache.olingo.commons.api.edm.EdmPrimitiveTypeKind |
odataType(BaseColumn c) |
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(BaseColumn c)
public static org.apache.olingo.commons.api.edm.EdmPrimitiveTypeKind odataType(String teiidRuntimeType)
public static Object convertToTeiidRuntimeType(Class<?> type, Object value, String odataType, String srid) throws TeiidException
type - value - odataType - type hint if the value could be a string containing a literal value of another typeTeiidExceptionpublic static Object convertByteArrayToTeiidRuntimeType(Class<?> type, byte[] contents, String odataType, String srid) throws TeiidException
TeiidExceptionpublic static Object parseLiteral(org.apache.olingo.commons.api.edm.EdmParameter edmParameter, Class<?> runtimeType, String value) throws TeiidProcessingException
TeiidProcessingExceptionpublic static Object parseLiteral(org.apache.olingo.commons.api.edm.EdmProperty edmProperty, Class<?> runtimeType, String value) throws TeiidException
TeiidExceptionpublic static Object parseLiteral(String odataType, String value) throws TeiidException
TeiidExceptionpublic static Object rationalizePrecision(Integer precision, Integer scale, Object value)
public static org.apache.olingo.commons.api.edm.geo.Geospatial convertToODataValue(InputStream wkb, boolean includesSrid) throws FunctionExecutionException
FunctionExecutionExceptionCopyright © 2019. All rights reserved.