|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object toolbox.dao.FieldDefinition
public class FieldDefinition
Encapsulates the definition of one database field.
Constructor Summary | |
---|---|
FieldDefinition(java.lang.String name,
java.lang.String type,
java.lang.Integer typeInt,
java.lang.String allowNull,
java.lang.String keyType,
java.lang.String defaultVal,
java.lang.String extra)
Creates a new FieldDefinition instance. |
Method Summary | |
---|---|
java.lang.String |
getDefaultValue()
Return this fields default value as a String. |
java.lang.String |
getExtra()
Returns the value of the extra member. |
java.lang.String |
getKeyType()
Return this fields key type. |
java.lang.String |
getName()
Return this fields name. |
int |
getSQLType()
Returns an int representing the SQL type of this field. |
java.lang.String |
getType()
Return this fields type. |
boolean |
isNullable()
Indicates whether or not this field allows null values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FieldDefinition(java.lang.String name, java.lang.String type, java.lang.Integer typeInt, java.lang.String allowNull, java.lang.String keyType, java.lang.String defaultVal, java.lang.String extra)
name
- Field name.type
- Field type.typeInt
- Field type as an int.allowNull
- Flag indicating whether or not this field is nullable.keyType
- Indicates whether or not this is a key field and also
inidicates what kind of key.defaultVal
- Default value for this field.extra
- Contains additional information regarding this field.Method Detail |
---|
public java.lang.String getName()
public java.lang.String getType()
public boolean isNullable()
public java.lang.String getKeyType()
public java.lang.String getDefaultValue()
public int getSQLType()
public java.lang.String getExtra()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |