public class RuntimeToHibernateConverter extends Object
Modifier and Type | Method and Description |
---|---|
static Object |
convertToHibernate(java.util.function.Supplier<org.hibernate.Session> session,
String databaseJndi,
Type type,
Object object)
Converts the given object to a Hibernate object for the given type.
|
Object |
convertToRuntime(SharedRecordEntityAdapter adapter,
String propertyName,
Type type,
Object object,
Long auditRevisionId)
Converts from a hibernate to runtime object.
|
static RuntimeToHibernateConverter |
get(ModelInstance modelInstance,
ModelProvider modelProvider) |
protected RecordType |
getRecordType(com.whitestein.lsps.model.sharedrecord.SharedRecordConfiguration configuration,
com.whitestein.lsps.model.sharedrecord.ExternalRecordEntity record) |
static Object |
parsePrimaryKeyString(java.util.function.Supplier<org.hibernate.Session> session,
RecordType type,
String string)
Parses the primary key string representation.
|
public static RuntimeToHibernateConverter get(ModelInstance modelInstance, ModelProvider modelProvider)
modelProvider
- modelInstance
- public static Object parsePrimaryKeyString(java.util.function.Supplier<org.hibernate.Session> session, RecordType type, String string)
session
- type
- string
- public static Object convertToHibernate(java.util.function.Supplier<org.hibernate.Session> session, String databaseJndi, Type type, Object object)
session
- databaseJndi
- type
- object
- public Object convertToRuntime(SharedRecordEntityAdapter adapter, String propertyName, Type type, Object object, Long auditRevisionId)
adapter
- propertyName
- type
- object
- auditRevisionId
- protected RecordType getRecordType(com.whitestein.lsps.model.sharedrecord.SharedRecordConfiguration configuration, com.whitestein.lsps.model.sharedrecord.ExternalRecordEntity record)
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.