|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jso.sql.ColumnDescriptor
Class for column descritptors. Column descriptors represent columns of a table in a relational database.
Constructor Summary | |
ColumnDescriptor()
Constructs the column descriptor. |
|
ColumnDescriptor(java.lang.String aName,
int aType)
Constructs a nullable column descriptor. |
|
ColumnDescriptor(java.lang.String aName,
int aType,
boolean isNullable)
Constructs a column descriptor. |
Method Summary | |
boolean |
equals(java.lang.Object o)
Indicates whether some other column descriptor is "equal to" this one. |
java.lang.String |
getName()
Gets column's name. |
int |
getType()
Gets column's type. |
int |
hashCode()
Returns a hash code value for the column descriptor. |
boolean |
isNullable()
|
void |
setName(java.lang.String aName)
Sets column's name. |
void |
setNullable(boolean isNullable)
|
void |
setType(int aType)
Sets column's type. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ColumnDescriptor()
public ColumnDescriptor(java.lang.String aName, int aType) throws java.lang.IllegalArgumentException
aName
- A name for the column.aType
- A type for the column.public ColumnDescriptor(java.lang.String aName, int aType, boolean isNullable) throws java.lang.IllegalArgumentException
aName
- A name for the column.aType
- A type for the column.isNullable
- Indicates if the column is nullable.Method Detail |
public void setName(java.lang.String aName)
aName
- A name for the column.public java.lang.String getName()
public void setType(int aType) throws java.lang.IllegalArgumentException
aType
- A type for the column. Only the following SQL types are
allowed:
BIGINT
BOOLEAN
CHAR
DATE
DOUBLE
FLOAT
INTEGER
LONGVARCHAR
NULL
SMALLINT
TIME
TIMESTAMP
TINYINT
VARCHAR
java.lang.IllegalArgumentException
public int getType()
public void setNullable(boolean isNullable)
public boolean isNullable()
public boolean equals(java.lang.Object o)
o
- The object with which to compare.
true
if the column descriptor is the same as the
column descriptor argument; false
otherwise.public int hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |