net.comtor.dao
Class ComtorJDBCField

java.lang.Object
  extended by net.comtor.dao.ComtorJDBCField

public class ComtorJDBCField
extends java.lang.Object


Field Summary
static int TYPE_BIGDECIMAL
           
static int TYPE_BOOLEAN
           
static int TYPE_BYTE
           
static int TYPE_CHAR
           
static int TYPE_CLASS
           
static int TYPE_DATE
           
static int TYPE_DOUBLE
           
static int TYPE_FLOAT
           
static int TYPE_INT
           
static int TYPE_LONG
           
static int TYPE_SHORT
           
static int TYPE_STRING
           
static int TYPE_TIME
           
static int TYPE_TIMESTAMP
           
static int TYPE_URL
           
static int TYPE_VOID
           
 
Constructor Summary
ComtorJDBCField(java.lang.Class clazz, java.lang.String fieldName, java.lang.String tableName, boolean isboolean)
           
ComtorJDBCField(java.lang.String fieldName, java.lang.String tableName, java.lang.Class type, java.lang.reflect.Method getMethod, java.lang.reflect.Method setMethod)
          Creates a new instance of DBField
 
Method Summary
 java.lang.String getFieldName()
           
 java.lang.reflect.Method getGetMethod()
          Getter for property getMethod.
 int getIntType()
           
 java.lang.reflect.Method getSetMethod()
          Getter for property setMethod.
 java.lang.String getTableName()
           
 java.lang.Class getType()
          Getter for property classType.
static int getTypeFromString(java.lang.String type)
           
 java.lang.Object getValue(java.lang.Object obj)
           
 boolean isFindable()
           
 boolean isInsertable()
           
 boolean isSelectable()
           
 boolean isUpdatable()
           
 void setFieldName(java.lang.String string)
           
 void setFindable(boolean b)
           
 void setGetMethod(java.lang.reflect.Method getMethod)
          Setter for property getMethod.
 void setInsertable(boolean b)
           
 void setSelectable(boolean b)
           
 void setSetMethod(java.lang.reflect.Method setMethod)
          Setter for property setMethod.
 void setTableName(java.lang.String string)
           
 void setType(java.lang.Class classType)
          Setter for property classType.
 void setUpdatable(boolean b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_BYTE

public static final int TYPE_BYTE
See Also:
Constant Field Values

TYPE_CHAR

public static final int TYPE_CHAR
See Also:
Constant Field Values

TYPE_DOUBLE

public static final int TYPE_DOUBLE
See Also:
Constant Field Values

TYPE_FLOAT

public static final int TYPE_FLOAT
See Also:
Constant Field Values

TYPE_INT

public static final int TYPE_INT
See Also:
Constant Field Values

TYPE_LONG

public static final int TYPE_LONG
See Also:
Constant Field Values

TYPE_BOOLEAN

public static final int TYPE_BOOLEAN
See Also:
Constant Field Values

TYPE_SHORT

public static final int TYPE_SHORT
See Also:
Constant Field Values

TYPE_VOID

public static final int TYPE_VOID
See Also:
Constant Field Values

TYPE_STRING

public static final int TYPE_STRING
See Also:
Constant Field Values

TYPE_BIGDECIMAL

public static final int TYPE_BIGDECIMAL
See Also:
Constant Field Values

TYPE_DATE

public static final int TYPE_DATE
See Also:
Constant Field Values

TYPE_TIME

public static final int TYPE_TIME
See Also:
Constant Field Values

TYPE_TIMESTAMP

public static final int TYPE_TIMESTAMP
See Also:
Constant Field Values

TYPE_URL

public static final int TYPE_URL
See Also:
Constant Field Values

TYPE_CLASS

public static final int TYPE_CLASS
See Also:
Constant Field Values
Constructor Detail

ComtorJDBCField

public ComtorJDBCField(java.lang.String fieldName,
                       java.lang.String tableName,
                       java.lang.Class type,
                       java.lang.reflect.Method getMethod,
                       java.lang.reflect.Method setMethod)
Creates a new instance of DBField

Parameters:
name - Name of field in class
fieldName - field name in table
tableName - table name
type - Class Type of Object

ComtorJDBCField

public ComtorJDBCField(java.lang.Class clazz,
                       java.lang.String fieldName,
                       java.lang.String tableName,
                       boolean isboolean)
Method Detail

getIntType

public int getIntType()

getTypeFromString

public static int getTypeFromString(java.lang.String type)

getSetMethod

public java.lang.reflect.Method getSetMethod()
Getter for property setMethod.

Returns:
Value of property setMethod.

setSetMethod

public void setSetMethod(java.lang.reflect.Method setMethod)
Setter for property setMethod.

Parameters:
setMethod - New value of property setMethod.

getGetMethod

public java.lang.reflect.Method getGetMethod()
Getter for property getMethod.

Returns:
Value of property getMethod.

setGetMethod

public void setGetMethod(java.lang.reflect.Method getMethod)
Setter for property getMethod.

Parameters:
getMethod - New value of property getMethod.

getType

public java.lang.Class getType()
Getter for property classType.

Returns:
Value of property classType.

setType

public void setType(java.lang.Class classType)
Setter for property classType.

Parameters:
classType - New value of property classType.

getFieldName

public java.lang.String getFieldName()
Returns:

getTableName

public java.lang.String getTableName()
Returns:

setFieldName

public void setFieldName(java.lang.String string)
Parameters:
string -

setTableName

public void setTableName(java.lang.String string)
Parameters:
string -

isFindable

public boolean isFindable()
Returns:

isInsertable

public boolean isInsertable()
Returns:

isSelectable

public boolean isSelectable()
Returns:

isUpdatable

public boolean isUpdatable()
Returns:

setFindable

public void setFindable(boolean b)
Parameters:
b -

setInsertable

public void setInsertable(boolean b)
Parameters:
b -

setSelectable

public void setSelectable(boolean b)
Parameters:
b -

setUpdatable

public void setUpdatable(boolean b)
Parameters:
b -

getValue

public java.lang.Object getValue(java.lang.Object obj)