|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.comtor.dao.ComtorJDBCField
public class ComtorJDBCField
| 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 |
|---|
public static final int TYPE_BYTE
public static final int TYPE_CHAR
public static final int TYPE_DOUBLE
public static final int TYPE_FLOAT
public static final int TYPE_INT
public static final int TYPE_LONG
public static final int TYPE_BOOLEAN
public static final int TYPE_SHORT
public static final int TYPE_VOID
public static final int TYPE_STRING
public static final int TYPE_BIGDECIMAL
public static final int TYPE_DATE
public static final int TYPE_TIME
public static final int TYPE_TIMESTAMP
public static final int TYPE_URL
public static final int TYPE_CLASS
| Constructor Detail |
|---|
public ComtorJDBCField(java.lang.String fieldName,
java.lang.String tableName,
java.lang.Class type,
java.lang.reflect.Method getMethod,
java.lang.reflect.Method setMethod)
name - Name of field in classfieldName - field name in tabletableName - table nametype - Class Type of Object
public ComtorJDBCField(java.lang.Class clazz,
java.lang.String fieldName,
java.lang.String tableName,
boolean isboolean)
| Method Detail |
|---|
public int getIntType()
public static int getTypeFromString(java.lang.String type)
public java.lang.reflect.Method getSetMethod()
public void setSetMethod(java.lang.reflect.Method setMethod)
setMethod - New value of property setMethod.public java.lang.reflect.Method getGetMethod()
public void setGetMethod(java.lang.reflect.Method getMethod)
getMethod - New value of property getMethod.public java.lang.Class getType()
public void setType(java.lang.Class classType)
classType - New value of property classType.public java.lang.String getFieldName()
public java.lang.String getTableName()
public void setFieldName(java.lang.String string)
string - public void setTableName(java.lang.String string)
string - public boolean isFindable()
public boolean isInsertable()
public boolean isSelectable()
public boolean isUpdatable()
public void setFindable(boolean b)
b - public void setInsertable(boolean b)
b - public void setSelectable(boolean b)
b - public void setUpdatable(boolean b)
b - public java.lang.Object getValue(java.lang.Object obj)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||