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 typeTeiidException
public static Object convertByteArrayToTeiidRuntimeType(Class<?> type, byte[] contents, String odataType, String srid) 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)
public static org.apache.olingo.commons.api.edm.geo.Geospatial convertToODataValue(InputStream wkb, boolean includesSrid) throws FunctionExecutionException
FunctionExecutionException
Copyright © 2019. All rights reserved.