| com.completex.objective.components.persistency.mapper.Mapper
All known Subclasses: com.completex.objective.components.persistency.mapper.impl.DynamicMapperImpl,
Mapper | public interface Mapper (Code) | | Establishes map between Persistent Objects and Domain Objects that can be POJOs.
Inability to map the value should normally be tolerated.
author: Gennady Krizhevsky |
Inner Class :static class NullMapper implements Mapper | |
Field Summary | |
final public static NullMapper | NULL_MAPPER |
NULL_MAPPER | final public static NullMapper NULL_MAPPER(Code) | | |
convertBeanToPo | Object convertBeanToPo(Object bean, boolean forModification)(Code) | | Converts POJO bean to Persistent Object.
Parameters: bean - POJO bean Parameters: forModification - if true, indicates to cache Persistent Object in Thread Session Persistent Object throws: OdalMappingRuntimeException - if the mapping is not found |
convertPoToBean | Object convertPoToBean(Object po, boolean forModification)(Code) | | Converts Persistent Object to POJO bean. If the mapping not found it should normally return
unconverted Persistent Object.
Parameters: po - Persistent Object Parameters: forModification - if true, indicates to cache Persistent Object in Thread Session POJO bean |
mappingExists | boolean mappingExists(Class beanClass, Class poClass)(Code) | | Returns true is the mapping found. At least one of the arguments should not be null.
Parameters: beanClass - bean class Parameters: poClass - persistent object class true is the mapping found |
|
|