org.gjt.tw.dbobjects
Class FieldMapping

java.lang.Object
  |
  +--org.gjt.tw.dbobjects.FieldMapping

public class FieldMapping
extends java.lang.Object

FieldMapping is a wrapper class that holds data about the mapping of one field.


Field Summary
 java.lang.String columnName
          Description of the Field
 java.lang.Class fieldClass
          Description of the Field
 java.lang.String fieldName
          Description of the Field
 java.lang.reflect.Method getMethod
          Description of the Field
 java.lang.reflect.Method setMethod
          Description of the Field
 
Constructor Summary
FieldMapping(java.lang.String fieldName, java.lang.reflect.Method setMethod, java.lang.reflect.Method getMethod, java.lang.Class fieldClass, java.lang.String columnName)
          Constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fieldName

public java.lang.String fieldName
Description of the Field

setMethod

public java.lang.reflect.Method setMethod
Description of the Field

getMethod

public java.lang.reflect.Method getMethod
Description of the Field

fieldClass

public java.lang.Class fieldClass
Description of the Field

columnName

public java.lang.String columnName
Description of the Field
Constructor Detail

FieldMapping

public FieldMapping(java.lang.String fieldName,
                    java.lang.reflect.Method setMethod,
                    java.lang.reflect.Method getMethod,
                    java.lang.Class fieldClass,
                    java.lang.String columnName)
Constructor.
Parameters:
fieldName - name of the variable that should be stored in the database.
setMethod - Method that is called to set the content of the variable in the object.
getMethod - Method that is called to get the content of the object's variable.
fieldClass - class of the object that is set and gotten.
columnName - name of the column in the database that is associated with this mapping.