org.hibernate.envers.entities.mapper.id
Class SingleIdMapper
java.lang.Object
   org.hibernate.envers.entities.mapper.id.AbstractIdMapper
org.hibernate.envers.entities.mapper.id.AbstractIdMapper
       org.hibernate.envers.entities.mapper.id.SingleIdMapper
org.hibernate.envers.entities.mapper.id.SingleIdMapper
- All Implemented Interfaces: 
- IdMapper, SimpleIdMapperBuilder, SimpleMapperBuilder
- public class SingleIdMapper 
- extends AbstractIdMapper- implements SimpleIdMapperBuilder
- Author:
- Adam Warski (adam at warski dot org)
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
SingleIdMapper
public SingleIdMapper()
SingleIdMapper
public SingleIdMapper(PropertyData propertyData)
add
public void add(PropertyData propertyData)
- 
- Specified by:
- addin interface- SimpleMapperBuilder
 
- 
 
mapToEntityFromMap
public boolean mapToEntityFromMap(Object obj,
                                  Map data)
- 
- Specified by:
- mapToEntityFromMapin interface- IdMapper
 
- 
- Parameters:
- obj- Object to map to.
- data- Data to map.
- Returns:
- True if data was mapped; false otherwise (when the id is null).
 
mapToIdFromMap
public Object mapToIdFromMap(Map data)
- 
- Specified by:
- mapToIdFromMapin interface- IdMapper
 
- 
 
mapToIdFromEntity
public Object mapToIdFromEntity(Object data)
- 
- Specified by:
- mapToIdFromEntityin interface- IdMapper
 
- 
 
mapToMapFromId
public void mapToMapFromId(Map<String,Object> data,
                           Object obj)
- 
- Specified by:
- mapToMapFromIdin interface- IdMapper
 
- 
 
mapToMapFromEntity
public void mapToMapFromEntity(Map<String,Object> data,
                               Object obj)
- 
- Specified by:
- mapToMapFromEntityin interface- IdMapper
 
- 
 
mapToEntityFromEntity
public void mapToEntityFromEntity(Object objTo,
                                  Object objFrom)
- 
 
- 
 
prefixMappedProperties
public IdMapper prefixMappedProperties(String prefix)
- Description copied from interface: IdMapper
- Creates a mapper with all mapped properties prefixed. A mapped property is a property which
 is directly mapped to values (not composite).
 
- 
- Specified by:
- prefixMappedPropertiesin interface- IdMapper
 
- 
- Parameters:
- prefix- Prefix to add to mapped properties
- Returns:
- A copy of the current property mapper, with mapped properties prefixed.
 
mapToQueryParametersFromId
public List<QueryParameterData> mapToQueryParametersFromId(Object obj)
- 
- Specified by:
- mapToQueryParametersFromIdin interface- IdMapper
 
- 
- Parameters:
- obj- Id from which to map.
- Returns:
- A set parameter data, needed to build a query basing on the given id.
 
Copyright © 2001-2010 Red Hat, Inc.  All Rights Reserved.