public class TypeConverterUtils extends Object
| Constructor and Description |
|---|
TypeConverterUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
convertToType(EdmType type,
String value)
Convert string value of EdmType to a corresponding java type.
|
static Object |
getValueBasedOnTypeOfRequestPayload(EdmType type,
Object value)
Convert value of EdmType to a corresponding java type supported by CDS4J
library.
|
static Object |
getValueBasedOnTypeOfResultSet(EdmType type,
Object value)
Convert value of EdmType to a corresponding java type supported by Olingo
library.
|
public static Object convertToType(EdmType type, String value)
type - Edm Typevalue - string representation of a valuepublic static Object getValueBasedOnTypeOfResultSet(EdmType type, Object value)
type - Edm Typevalue - string representation of a valuepublic static Object getValueBasedOnTypeOfRequestPayload(EdmType type, Object value)
type - Edm Typevalue - string representation of a valueCopyright © 2021. All rights reserved.