public final class DirectMapper extends BaseDMapper
intdoubleOther types must be mapped e.g. with a CustomMapper.
| Constructor and Description |
|---|
DirectMapper(String itemName,
Class clazz)
Constructor.
|
DirectMapper(String itemName,
String attributeName,
Class clazz)
Constructor.
|
DirectMapper(String itemName,
String getName,
String setName,
Class clazz)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
map(DDocument document,
Object object)
Performs the direct mapping from a document to a business object.
|
void |
map(Object object,
DDocument document)
Performs the direct mapping from a business object to a document.
|
getCalendar, getValue, getValue, getValueDate, getValueDateRange, getValueDouble, getValueInteger, getValueString, hasMethod, replaceItemValue, replaceItemValue, replaceItemValue, replaceItemValue, replaceItemValue, replaceItemValue, replaceItemValue, setValuepublic DirectMapper(String itemName, Class clazz) throws MethodNotFoundException
itemName - name of Notes itemclazz - the value typeMethodNotFoundException - if the getter or setter method was not found for the attribute namepublic DirectMapper(String itemName, String attributeName, Class clazz) throws MethodNotFoundException
itemName - name of Notes itemattributeName - name of Java attributeclazz - the value typeMethodNotFoundException - if the getter or setter method was not found for the attribute namepublic DirectMapper(String itemName, String getName, String setName, Class clazz)
itemName - name of Notes itemgetName - name of get-methodsetName - name of set-methodclazz - the value typepublic void map(DDocument document, Object object) throws MappingException
document - the Notes documentobject - the business objectMappingException - if an error occurred during mappingpublic void map(Object object, DDocument document) throws MappingException
String,
Calendar, Integer, Double
or List, where if the object is a List, all
values in the list must be of one of the other types.object - the business objectdocument - the Notes documentMappingException - if an error occurred during mappingCopyright © 2005–2020. All rights reserved.