public abstract class AbstractOneToOneMapper extends AbstractToOneMapper
AbstractToOneMapper.EntityInfo
Modifier | Constructor and Description |
---|---|
protected |
AbstractOneToOneMapper(java.lang.String entityName,
java.lang.String referencedEntityName,
PropertyData propertyData,
ServiceRegistry serviceRegistry) |
Modifier and Type | Method and Description |
---|---|
void |
mapModifiedFlagsToMapForCollectionChange(java.lang.String collectionPropertyName,
java.util.Map<java.lang.String,java.lang.Object> data) |
void |
mapModifiedFlagsToMapFromEntity(SessionImplementor session,
java.util.Map<java.lang.String,java.lang.Object> data,
java.lang.Object newObj,
java.lang.Object oldObj) |
void |
nullSafeMapToEntityFromMap(EnversService enversService,
java.lang.Object obj,
java.util.Map data,
java.lang.Object primaryKey,
AuditReaderImplementor versionsReader,
java.lang.Number revision)
Parameter
obj is never null . |
protected abstract java.lang.Object |
queryForReferencedEntity(AuditReaderImplementor versionsReader,
AbstractToOneMapper.EntityInfo referencedEntity,
java.io.Serializable primaryKey,
java.lang.Number revision) |
getEntityInfo, getPropertyData, mapCollectionChanges, mapToEntityFromMap, mapToMapFromEntity, setPropertyValue
protected AbstractOneToOneMapper(java.lang.String entityName, java.lang.String referencedEntityName, PropertyData propertyData, ServiceRegistry serviceRegistry)
public void nullSafeMapToEntityFromMap(EnversService enversService, java.lang.Object obj, java.util.Map data, java.lang.Object primaryKey, AuditReaderImplementor versionsReader, java.lang.Number revision)
AbstractToOneMapper
obj
is never null
.nullSafeMapToEntityFromMap
in class AbstractToOneMapper
protected abstract java.lang.Object queryForReferencedEntity(AuditReaderImplementor versionsReader, AbstractToOneMapper.EntityInfo referencedEntity, java.io.Serializable primaryKey, java.lang.Number revision)
versionsReader
- Audit reader.referencedEntity
- Referenced entity descriptor.primaryKey
- Referenced entity identifier.revision
- Revision number.public void mapModifiedFlagsToMapFromEntity(SessionImplementor session, java.util.Map<java.lang.String,java.lang.Object> data, java.lang.Object newObj, java.lang.Object oldObj)
public void mapModifiedFlagsToMapForCollectionChange(java.lang.String collectionPropertyName, java.util.Map<java.lang.String,java.lang.Object> data)
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.