public class PojoSharedRecordEntityAdapter extends SharedRecordEntityAdapter
Constructor and Description |
---|
PojoSharedRecordEntityAdapter(Object entity,
ExternalValue externalValue,
com.whitestein.lsps.model.sharedrecord.SharedRecordConfiguration configuration,
RecordType type,
ModelInstance modelInstance,
ModelProvider modelProvider,
boolean isAuxiliary)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
static PojoSharedRecordEntityAdapter |
createNew(Map<?,?> values,
com.whitestein.lsps.model.sharedrecord.SharedRecordConfiguration configuration,
RecordType type,
ModelInstance modelInstance,
ModelProvider modelProvider,
org.hibernate.Session session)
Creates an adapter for a new entity given by the map of property values.
|
protected Object |
getFromEntity(Object entity,
RecordProperty property) |
Object |
getJavaObject()
Returns underlying java object if there is some.
|
protected Object |
getRawFromEntity(Object entity,
RecordProperty property)
Returns unmodified value from entity.
|
protected void |
setToEntity(RecordProperty property,
Object value)
Sets value to a property in entity.
|
clearEntity, convertToRuntime, getConfiguration, getHibernateConverter, getProperty, getPropertyInternal, getSession, getSharedRecordType, isInitialized, isSendNotifications, isUpdateNecessary, needsToBeReloaded, refresh, reloadIfNeeded, remove, removeAddedFromOldParents, removeEntity, removeFromAllAssociations, setField, setFieldsAndNotNullAssociations, setNullableAssociations, setNullableSerializedAssociations, setProperties, setPropertyInternal, setSendNotifications, setThisSideOfAssociation
addToNonSharedAssociationCache, canRemoveThisFromReverseAssociation, canSetProperty, cleanAndRenewVersion, createEntityIdentificationString, createEntityJavaIdentification, fireNewEntityChange, firePropertyChange, getAuditRevisionId, getEntity, getEntityIdentificationString, getEntityInternal, getEntityNotNull, getExternalRecordType, getExternalValue, getField, getFromEntity, getHolder, getJavaIdentification, getModelInstance, getModelProvider, getRawFromEntity, getType, getVersion, initEntityIdentificationString, isExternalValueCreated, postSetAssociation, removeThis, setEntityInternal, updateVersion
getConverter, getEvaluationConverter, getHolderFactory, getHolderInternal, removeNullObjects, setAssociation, setHolderInternal, setProperty
public PojoSharedRecordEntityAdapter(Object entity, ExternalValue externalValue, com.whitestein.lsps.model.sharedrecord.SharedRecordConfiguration configuration, RecordType type, ModelInstance modelInstance, ModelProvider modelProvider, boolean isAuxiliary)
entity
- externalValue
- configuration
- type
- modelInstance
- modelProvider
- isAuxiliary
- public static PojoSharedRecordEntityAdapter createNew(Map<?,?> values, com.whitestein.lsps.model.sharedrecord.SharedRecordConfiguration configuration, RecordType type, ModelInstance modelInstance, ModelProvider modelProvider, org.hibernate.Session session)
values
- configuration
- type
- modelInstance
- modelProvider
- session
- protected Object getRawFromEntity(Object entity, RecordProperty property)
ExternalRecordEntityAdapter
getRawFromEntity
in class ExternalRecordEntityAdapter
protected Object getFromEntity(Object entity, RecordProperty property)
getFromEntity
in class ExternalRecordEntityAdapter
protected void setToEntity(RecordProperty property, Object value)
SharedRecordEntityAdapter
setToEntity
in class SharedRecordEntityAdapter
public Object getJavaObject()
RecordEntityAdapter
getJavaObject
in class RecordEntityAdapter
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.