public class Field
extends java.lang.Object
Field
represents a field in a database table. Objects of
class Field
can be used to keep field name, field type, getter
and setter methods in one place for reference.Constructor and Description |
---|
Field()
Create a new object of class
Field |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Determine whether or not this object is equal to antoher object
|
java.lang.String |
getColumnName()
Get the column name of this field
|
DBColumn.Type |
getColumnType()
Get the column type of this field
|
java.lang.reflect.Method |
getGetter()
Get the getter method for this field
|
java.lang.reflect.Method |
getSetter()
Get the setter method of this field
|
void |
setColumnName(java.lang.String columnName)
Set the column name of this field
|
void |
setColumnType(DBColumn.Type columnType)
Set the column type of this field
|
void |
setGetter(java.lang.reflect.Method getter)
Set the getter method of this field
|
void |
setSetter(java.lang.reflect.Method setter)
Set the setter method of this field
|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the other object to compare with this objectpublic java.lang.String getColumnName()
public void setColumnName(java.lang.String columnName)
columnName
- the column namepublic DBColumn.Type getColumnType()
public void setColumnType(DBColumn.Type columnType)
columnType
- the column typepublic java.lang.reflect.Method getGetter()
public void setGetter(java.lang.reflect.Method getter)
getter
- the method to get the value of this fieldpublic java.lang.reflect.Method getSetter()
public void setSetter(java.lang.reflect.Method setter)
setter
- the method to set the value of this field