|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.bea.domingo.map.BaseDMapper
public abstract class BaseDMapper
Abstract base class for domingo mappers providing useful methods to access
Notes. Converts
DNotesRuntimeExceptions into
MappingExceptions.
| Constructor Summary | |
|---|---|
BaseDMapper()
Constructor. |
|
| Method Summary | |
|---|---|
protected java.util.Calendar |
getCalendar(java.lang.Object calendarOrList)
Returns a calendar if the given object is a calendar or it is a list and the first element in the list is a calendar. |
protected java.util.List |
getValue(DDocument document,
java.lang.String itemName)
Reads the date value of an item. |
protected java.lang.Object |
getValue(java.lang.Object object,
java.lang.String getName)
Returns the value of an attribute given by its getter method from given object. |
protected java.util.Calendar |
getValueDate(DDocument document,
java.lang.String itemName)
Reads the date value of an item. |
protected DDateRange |
getValueDateRange(DDocument document,
java.lang.String itemName)
Reads the DDateRange value of an item. |
protected java.lang.Double |
getValueDouble(DDocument document,
java.lang.String itemName)
Reads the Double value of an item. |
protected java.lang.Integer |
getValueInteger(DDocument document,
java.lang.String itemName)
Reads the Integer value of an item. |
protected java.lang.String |
getValueString(DDocument document,
java.lang.String itemName)
Reads the String value of an item. |
protected static boolean |
hasMethod(java.lang.Class clazz,
java.lang.String name)
Checks if a class contains a method with the specified name and no arguments. |
protected void |
replaceItemValue(DDocument document,
java.lang.String itemName,
java.util.Calendar value)
Replaces the value of an item with a Calendar. |
protected void |
replaceItemValue(DDocument document,
java.lang.String itemName,
double value)
Replaces the value of an item with a double. |
protected void |
replaceItemValue(DDocument document,
java.lang.String itemName,
java.lang.Double value)
Replaces the value of an item with a Double. |
protected void |
replaceItemValue(DDocument document,
java.lang.String itemName,
int value)
Replaces the value of an item with an int. |
protected void |
replaceItemValue(DDocument document,
java.lang.String itemName,
java.lang.Integer value)
Replaces the value of an item with an Integer. |
protected void |
replaceItemValue(DDocument document,
java.lang.String itemName,
java.util.List value)
Replaces the value of an item with a List. |
protected void |
replaceItemValue(DDocument document,
java.lang.String itemName,
java.lang.String value)
Replaces the value of an item with a String. |
protected void |
setValue(java.lang.Object object,
java.lang.String setName,
java.lang.Object value,
java.lang.Class clazz)
Sets a value of an attribute given by its setter method in a given object. |
| 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 |
|---|
public BaseDMapper()
| Method Detail |
|---|
protected final void replaceItemValue(DDocument document,
java.lang.String itemName,
java.lang.String value)
throws MappingException
document - document to replace item initemName - name of item to replacevalue - the value to map
MappingException - if the value cannot be mapped to the item
protected final void replaceItemValue(DDocument document,
java.lang.String itemName,
java.util.Calendar value)
throws MappingException
document - document to replace item initemName - name of item to replacevalue - the value to map
MappingException - if the value cannot be mapped to the item
protected final void replaceItemValue(DDocument document,
java.lang.String itemName,
int value)
throws MappingException
document - document to replace item initemName - name of item to replacevalue - the value to map
MappingException - if the value cannot be mapped to the item
protected final void replaceItemValue(DDocument document,
java.lang.String itemName,
java.lang.Integer value)
throws MappingException
document - document to replace item initemName - name of item to replacevalue - the value to map
MappingException - if the value cannot be mapped to the item
protected final void replaceItemValue(DDocument document,
java.lang.String itemName,
double value)
throws MappingException
document - document to replace item initemName - name of item to replacevalue - the value to map
MappingException - if the value cannot be mapped to the item
protected final void replaceItemValue(DDocument document,
java.lang.String itemName,
java.lang.Double value)
throws MappingException
document - document to replace item initemName - name of item to replacevalue - the value to map
MappingException - if the value cannot be mapped to the item
protected final void replaceItemValue(DDocument document,
java.lang.String itemName,
java.util.List value)
throws MappingException
document - document to replace item initemName - name of item to replacevalue - the value to map
MappingException - if the value cannot be mapped to the item
protected final java.util.Calendar getValueDate(DDocument document,
java.lang.String itemName)
throws MappingException
document - the domingo document to read fromitemName - the name of the item to read from
MappingException - if the value cannot be read
protected final DDateRange getValueDateRange(DDocument document,
java.lang.String itemName)
throws MappingException
document - the domingo document to read fromitemName - the name of the item to read from
MappingException - if the value cannot be read
protected final java.lang.String getValueString(DDocument document,
java.lang.String itemName)
throws MappingException
document - the domingo document to read fromitemName - the name of the item to read from
MappingException - if the value cannot be read
protected final java.lang.Double getValueDouble(DDocument document,
java.lang.String itemName)
throws MappingException
document - the domingo document to read fromitemName - the name of the item to read from
MappingException - if the value cannot be read
protected final java.lang.Integer getValueInteger(DDocument document,
java.lang.String itemName)
throws MappingException
document - the domingo document to read fromitemName - the name of the item to read from
MappingException - if the value cannot be read
protected final java.util.List getValue(DDocument document,
java.lang.String itemName)
throws MappingException
document - the domingo document to read fromitemName - the name of the item to read from
MappingException - if the value cannot be readprotected final java.util.Calendar getCalendar(java.lang.Object calendarOrList)
calendarOrList - a Calendar or a List
Calendar or null
protected final java.lang.Object getValue(java.lang.Object object,
java.lang.String getName)
throws MappingException
object - the objectgetName - the name of the getter method
MappingException - if the given attribute cannot be accessed
protected final void setValue(java.lang.Object object,
java.lang.String setName,
java.lang.Object value,
java.lang.Class clazz)
throws MappingException
object - the objectsetName - the name of the setter methodvalue - the value to setclazz - class name of attribute
MappingException - if the given attribute cannot be accessed
protected static final boolean hasMethod(java.lang.Class clazz,
java.lang.String name)
clazz - the class to checkname - a method name
true if the method exists, else false
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||