public abstract class AbstractOneToOneMapper extends AbstractToOneMapper
AbstractToOneMapper.EntityInfo
Modifier | Constructor and Description |
---|---|
protected |
AbstractOneToOneMapper(String entityName,
String referencedEntityName,
PropertyData propertyData) |
Modifier and Type | Method and Description |
---|---|
void |
mapModifiedFlagsToMapForCollectionChange(String collectionPropertyName,
Map<String,Object> data) |
void |
mapModifiedFlagsToMapFromEntity(SessionImplementor session,
Map<String,Object> data,
Object newObj,
Object oldObj) |
void |
nullSafeMapToEntityFromMap(AuditConfiguration verCfg,
Object obj,
Map data,
Object primaryKey,
AuditReaderImplementor versionsReader,
Number revision)
Parameter
obj is never null . |
protected abstract Object |
queryForReferencedEntity(AuditReaderImplementor versionsReader,
AbstractToOneMapper.EntityInfo referencedEntity,
Serializable primaryKey,
Number revision) |
getEntityInfo, getPropertyData, mapCollectionChanges, mapToEntityFromMap, mapToMapFromEntity, setPropertyValue
protected AbstractOneToOneMapper(String entityName, String referencedEntityName, PropertyData propertyData)
public void nullSafeMapToEntityFromMap(AuditConfiguration verCfg, Object obj, Map data, Object primaryKey, AuditReaderImplementor versionsReader, Number revision)
AbstractToOneMapper
obj
is never null
.protected abstract Object queryForReferencedEntity(AuditReaderImplementor versionsReader, AbstractToOneMapper.EntityInfo referencedEntity, Serializable primaryKey, Number revision)
versionsReader
- Audit reader.referencedEntity
- Referenced entity descriptor.primaryKey
- Referenced entity identifier.revision
- Revision number.public void mapModifiedFlagsToMapFromEntity(SessionImplementor session, Map<String,Object> data, Object newObj, Object oldObj)
Copyright © 2018 JBoss by Red Hat. All rights reserved.