|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.bea.domingo.map.BaseDMapper de.bea.domingo.map.DirectMapper
public final class DirectMapper
Class defining and performing a direct mapping of a single attribute between a document and a business object. The following types are supported:
int
double
Other types must be mapped e.g. with a CustomMapper
.
Constructor Summary | |
---|---|
DirectMapper(java.lang.String itemName,
java.lang.Class clazz)
Constructor. |
|
DirectMapper(java.lang.String itemName,
java.lang.String attributeName,
java.lang.Class clazz)
Constructor. |
|
DirectMapper(java.lang.String itemName,
java.lang.String getName,
java.lang.String setName,
java.lang.Class clazz)
Constructor. |
Method Summary | |
---|---|
void |
map(DDocument document,
java.lang.Object object)
Performs the direct mapping from a document to a business object. |
void |
map(java.lang.Object object,
DDocument document)
Performs the direct mapping from a business object to a document. |
Methods inherited from class de.bea.domingo.map.BaseDMapper |
---|
getCalendar, getValue, getValue, getValueDate, getValueDateRange, getValueDouble, getValueInteger, getValueString, hasMethod, replaceItemValue, replaceItemValue, replaceItemValue, replaceItemValue, replaceItemValue, replaceItemValue, replaceItemValue, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirectMapper(java.lang.String itemName, java.lang.Class clazz) throws MethodNotFoundException
itemName
- name of Notes itemclazz
- the value type
MethodNotFoundException
- if the getter or setter method was not found for the attribute namepublic DirectMapper(java.lang.String itemName, java.lang.String attributeName, java.lang.Class clazz) throws MethodNotFoundException
itemName
- name of Notes itemattributeName
- name of Java attributeclazz
- the value type
MethodNotFoundException
- if the getter or setter method was not found for the attribute namepublic DirectMapper(java.lang.String itemName, java.lang.String getName, java.lang.String setName, java.lang.Class clazz)
itemName
- name of Notes itemgetName
- name of get-methodsetName
- name of set-methodclazz
- the value typeMethod Detail |
---|
public void map(DDocument document, java.lang.Object object) throws MappingException
document
- the Notes documentobject
- the business object
MappingException
- if an error occurred during mappingpublic void map(java.lang.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 document
MappingException
- if an error occurred during mapping
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |