de.bea.domingo.groupware.map
Class BaseContactMapper

java.lang.Object
  extended by de.bea.domingo.map.BaseDMapper
      extended by de.bea.domingo.map.MapperSet
          extended by de.bea.domingo.map.BaseMapper
              extended by de.bea.domingo.groupware.map.BaseContactMapper
All Implemented Interfaces:
DMapper, Mapper
Direct Known Subclasses:
PrivateContactMapper, PublicContactMapper

public abstract class BaseContactMapper
extends BaseMapper

Mapper for Contact entries - common functonality between Public and Private address books.

Author:
Daniel Schwarz
See Also:
Contact, ContactDigest, PublicContactMapper, PrivateContactMapper

Field Summary
 
Fields inherited from class de.bea.domingo.map.BaseMapper
EMPTY_ARGS, EMPTY_PARAMS
 
Constructor Summary
BaseContactMapper()
          Constructor.
 
Method Summary
 void map(DViewEntry viewEntry, java.lang.Object object)
          Maps a Domingo ViewEntry to a business object.
protected abstract  void mapColumnValues(java.util.List columnValues, ContactDigest digest)
          Maps the column values a contact digest.
 java.lang.Object newDigest()
          Creates a new digest instance of the business object.
 java.lang.Object newInstance()
          Creates a new instance of the business object.
 
Methods inherited from class de.bea.domingo.map.BaseMapper
getDigestClass, getInstanceClass
 
Methods inherited from class de.bea.domingo.map.MapperSet
add, map, map
 
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
 
Methods inherited from interface de.bea.domingo.map.Mapper
map, map
 

Constructor Detail

BaseContactMapper

public BaseContactMapper()
                  throws MethodNotFoundException
Constructor.

Throws:
MethodNotFoundException - if a getter or setter method was not found in the instance or digest class
Method Detail

map

public final void map(DViewEntry viewEntry,
                      java.lang.Object object)
               throws MappingException
Maps a Domingo ViewEntry to a business object.

Parameters:
viewEntry - the domingo ViewEntry
object - the business object
Throws:
MappingException - if an error occurred during mapping
See Also:
map(de.bea.domingo.DViewEntry, java.lang.Object)

mapColumnValues

protected abstract void mapColumnValues(java.util.List columnValues,
                                        ContactDigest digest)
Maps the column values a contact digest. Implemented by database/view-specific subclasses.

Parameters:
columnValues - column values of a view entry.
digest - the digest to map the column values into

newDigest

public final java.lang.Object newDigest()
Creates a new digest instance of the business object.

Returns:
new instance
See Also:
DMapper.newDigest()

newInstance

public final java.lang.Object newInstance()
Creates a new instance of the business object.

Returns:
new instance
See Also:
DMapper.newInstance()


Domingo Java-API