public class RuntimeToJavaConverter extends Object
Constructor and Description |
---|
RuntimeToJavaConverter(ModelProvider modelProvider,
SharedRecordTypeFactory sharedRecordTypeFactory,
ModelInstance modelInstance)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
ExternalRecordHolder |
convertExternalEntityToRuntime(Object object)
Converts external value to runtime value.
|
static Object |
convertToJava(boolean isForCustomUi,
Type type,
JavaMapping javaMapping,
Object object)
Converts the given object to a java object for the given type.
|
static Object |
convertToJava(Object object)
Converts the given object to a java object for the given type.
|
static Object |
convertToJava(Type type,
JavaMapping javaMapping,
Object object)
Converts the given object to a java object for the given type.
|
static Object |
convertToJavaIdentification(RecordType type,
Object primaryKey)
Converts external record identification to java object structure.
|
Object |
convertToRuntime(Type type,
Object object)
Converts from a java objects to runtime object.
|
static String |
createIdentificationString(RecordType recordType,
Object value)
Creates identification string.
|
ExternalTypeFactory |
getTypeFactory(RecordType type)
Returns a type factory for the given type or null if there is none.
|
static Serializable |
parseIdentificationString(RecordType recordType,
String entityIdentificationString)
Creates identification object from identification string.
|
public RuntimeToJavaConverter(ModelProvider modelProvider, SharedRecordTypeFactory sharedRecordTypeFactory, ModelInstance modelInstance)
modelProvider
- sharedRecordTypeFactory
- modelInstance
- public static Object convertToJava(boolean isForCustomUi, Type type, JavaMapping javaMapping, Object object)
isForCustomUi
- type
- javaMapping
- object
- public static Object convertToJava(Type type, JavaMapping javaMapping, Object object)
type
- javaMapping
- object
- public static Object convertToJava(Object object)
object
- public static String createIdentificationString(RecordType recordType, Object value)
recordType
- value
- public static Serializable parseIdentificationString(RecordType recordType, String entityIdentificationString)
recordType
- entityIdentificationString
- public Object convertToRuntime(Type type, Object object)
type
- object
- public ExternalRecordHolder convertExternalEntityToRuntime(Object object)
object
- public ExternalTypeFactory getTypeFactory(RecordType type)
type
- public static Object convertToJavaIdentification(RecordType type, Object primaryKey)
type
- primaryKey
- Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.