|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jdbdump.dump.Column
public class Column
Represents a single column of a table in the database, with all its parameters.
| Constructor Summary | |
|---|---|
Column(java.lang.String name)
Creates a new table column with specified name. |
|
| Method Summary | |
|---|---|
Constraint |
getConstraint()
Returns this column's constraint (e.g. |
int |
getDecimalDigits()
Returns the number of possible digits after a dot/comma, if the column stores decimal numbers. |
java.lang.String |
getDefault()
Returns the default value used for column's fields if no value is specified. |
int |
getLength()
Returns the column's length in characters. |
java.lang.String |
getName()
Returns the column's name. |
int |
getNullable()
Tells if NULL values are allowed to be stored in this column. |
java.lang.String |
getNullable2()
Tells if NULL values are allowed to be stored in this column. |
java.lang.String |
getRemarks()
Returns the column's remarks, i.e. |
java.lang.String |
getType()
Returns the column's type name. |
void |
setConstraint(Constraint constraint)
Assigns a constraint to this table column. |
void |
setDecimalDigits(int decimalDigits)
Sets the number of column's decimal digits. |
void |
setDefault(java.lang.String defaultValue)
Sets the column's default value. |
void |
setLength(int length)
Sets the column's length in characters. |
void |
setName(java.lang.String name)
Sets the column's name. |
void |
setNullable(int nullable)
Sets the column's nullability (DatabaseMetaData.columnNoNulls, DatabaseMetaData.columnNullable or DatabaseMetaData.columnNullableUnknown). |
void |
setNullable2(java.lang.String nullable2)
Sets the column's nullability ("YES", "NO" or ""). |
void |
setRemarks(java.lang.String remarks)
Sets the column's remarks. |
void |
setType(java.lang.String type)
Sets the column's type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Column(java.lang.String name)
name - column name| Method Detail |
|---|
public java.lang.String getName()
public void setName(java.lang.String name)
name - new column namepublic java.lang.String getType()
public void setType(java.lang.String type)
type - new column type namepublic int getLength()
public void setLength(int length)
length - column lengthpublic int getDecimalDigits()
public void setDecimalDigits(int decimalDigits)
decimalDigits - number of column's decimal digitspublic int getNullable()
public void setNullable(int nullable)
nullable - a constant specifying column's nullabilitypublic java.lang.String getNullable2()
public void setNullable2(java.lang.String nullable2)
nullable2 - a string specifying column's nullabilitypublic java.lang.String getDefault()
public void setDefault(java.lang.String defaultValue)
defaultValue - column's new default valuepublic java.lang.String getRemarks()
public void setRemarks(java.lang.String remarks)
name - column's new remarks stringpublic void setConstraint(Constraint constraint)
a - constraint to be set as this column's constraintpublic Constraint getConstraint()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||