de.bea.domingo.map
Class ConstantMapper

java.lang.Object
  extended by de.bea.domingo.map.BaseDMapper
      extended by de.bea.domingo.map.ConstantMapper
All Implemented Interfaces:
Mapper

public final class ConstantMapper
extends BaseDMapper

Class defining a constant value of an item value.

Author:
Kurt Riede

Constructor Summary
ConstantMapper(java.lang.String itemName, java.lang.String constant)
          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

ConstantMapper

public ConstantMapper(java.lang.String itemName,
                      java.lang.String constant)
Constructor. Creates a constant mapper where the Notes item name is equal to the itemName attribute and the value if the item will always be the given constant. The business object will never be changed by this mapper.

Parameters:
itemName - name of Notes item
constant - the constant value for the item
Method Detail

map

public void map(DDocument document,
                java.lang.Object object)
         throws MappingException
Performs the direct mapping from a document to a business object.

Parameters:
document - the Notes document
object - the business object
Throws:
MappingException - if an error occurred during mapping

map

public void map(java.lang.Object object,
                DDocument document)
         throws MappingException
Performs the direct mapping from a business object to a document.

Parameters:
object - the business object
document - the Notes document
Throws:
MappingException - if an error occurred during mapping


Domingo Java-API