public abstract class ListMapper extends BaseDMapper
| Constructor and Description |
|---|
ListMapper(String itemName)
Constructor.
|
ListMapper(String itemName,
String getName)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
add(String itemName,
Class clazz)
Adds a mapper where the Notes item name is equal to the itemName
attribute and the names of the get/set methods in the business class are
equal to "get" + itemName and "set" + itemName.
|
protected void |
add(String itemName,
String attributeName,
Class clazz)
Adds a mapper where the Notes item name is equal to the itemName
attribute and the names of the get/set methods in the business class are
equal to "get" + attributeName and
"set" + attributeName.
|
protected void |
add(String itemName,
String getName,
String setName,
Class clazz)
Adds a mapper where the Notes item name is equal to the itemName
attribute and the names of the get/set methods in the business class are
equal to getName and setName.
|
protected abstract Object |
createItem(Object object)
Creates a new instance of a list item.
|
void |
map(DDocument document,
Object object)
Maps a domingo document to a business object.
|
void |
map(Object object,
DDocument document)
Maps a business object to a domingo document.
|
getCalendar, getValue, getValue, getValueDate, getValueDateRange, getValueDouble, getValueInteger, getValueString, hasMethod, replaceItemValue, replaceItemValue, replaceItemValue, replaceItemValue, replaceItemValue, replaceItemValue, replaceItemValue, setValuepublic ListMapper(String itemName)
itemName - name of Notes itempublic ListMapper(String itemName, String getName)
itemName - name of Notes itemgetName - name of get-methodprotected final void add(String itemName, Class clazz)
itemName - name of Notes itemclazz - the value typeprotected final void add(String itemName, String attributeName, Class clazz)
itemName - name of Notes itemattributeName - name of Java attributeclazz - the value typeprotected final void add(String itemName, String getName, String setName, Class clazz)
itemName - name of Notes itemgetName - name of get-methodsetName - name of set-methodclazz - the value typepublic final void map(DDocument document, Object object) throws MappingException
document - the domingo document to mapobject - the business objectMappingException - if an error occurred during mappingMapper.map(DDocument,
java.lang.Object)protected abstract Object createItem(Object object)
object - parent objectpublic final void map(Object object, DDocument document) throws MappingException
object - the business objectdocument - the domingo document to map toMappingException - if an error occurred during mappingMapper.map(java.lang.Object,
DDocument)Copyright © 2005–2020. All rights reserved.