|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ddlutils.model.Column
public class Column
Represents a column in the database model.
| Constructor Summary | |
|---|---|
Column()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getDefaultValue()
Returns the default value of the column. |
java.lang.String |
getDescription()
Returns the description of the column. |
java.lang.String |
getJavaName()
Returns the java name of the column. |
java.lang.String |
getName()
Returns the name of the column. |
java.lang.Object |
getParsedDefaultValue()
Tries to parse the default value of the column and returns it as an object of the corresponding java type. |
int |
getPrecisionRadix()
Returns the precision radix of the column. |
int |
getScale()
Returns the scale of the column. |
java.lang.String |
getSize()
Returns the size of the column. |
int |
getSizeAsInt()
Returns the size of the column as an integer. |
java.lang.String |
getType()
Returns the JDBC type of the column. |
int |
getTypeCode()
Returns the code (one of the constants in Types) of the
JDBC type of the column. |
int |
hashCode()
|
boolean |
isAutoIncrement()
Determines whether this column is an auto-increment column. |
boolean |
isOfBinaryType()
Determines whether this column is of a binary type. |
boolean |
isOfNumericType()
Determines whether this column is of a numeric type. |
boolean |
isOfSpecialType()
Determines whether this column is of a special type. |
boolean |
isOfTextType()
Determines whether this column is of a text type. |
boolean |
isPrimaryKey()
Determines whether this column is a primary key column. |
boolean |
isRequired()
Determines whether this column is a required column, ie. |
void |
setAutoIncrement(boolean autoIncrement)
Specifies whether this column is an auto-increment column. |
void |
setDefaultValue(java.lang.String defaultValue)
Sets the default value of the column. |
void |
setDescription(java.lang.String description)
Sets the description of the column. |
void |
setJavaName(java.lang.String javaName)
Sets the java name of the column. |
void |
setName(java.lang.String name)
Sets the name of the column. |
void |
setPrecisionRadix(int precisionRadix)
Sets the precision radix of the column. |
void |
setPrimaryKey(boolean primaryKey)
Specifies whether this column is a primary key column. |
void |
setRequired(boolean required)
Specifies whether this column is a required column, ie. |
void |
setScale(int scale)
Sets the scale of the column. |
void |
setSize(java.lang.String size)
Sets the size of the column. |
void |
setSizeAndScale(int size,
int scale)
Sets both the size and scale. |
void |
setType(java.lang.String type)
Sets the JDBC type of the column. |
void |
setTypeCode(int typeCode)
Sets the code (one of the constants in Types) of the
JDBC type of the column. |
java.lang.String |
toString()
|
java.lang.String |
toVerboseString()
Returns a verbose string representation of this column. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Column()
| Method Detail |
|---|
public java.lang.String getName()
public void setName(java.lang.String name)
name - The namepublic java.lang.String getJavaName()
public void setJavaName(java.lang.String javaName)
javaName - The java namepublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - The descriptionpublic boolean isPrimaryKey()
true if this column is a primary key columnpublic void setPrimaryKey(boolean primaryKey)
primaryKey - true if this column is a primary key columnpublic boolean isRequired()
NULL values.
true if this column is a required columnpublic void setRequired(boolean required)
NULL values.
required - true if this column is a required columnpublic boolean isAutoIncrement()
true if this column is an auto-increment columnpublic void setAutoIncrement(boolean autoIncrement)
autoIncrement - true if this column is an auto-increment columnpublic int getTypeCode()
Types) of the
JDBC type of the column.
public void setTypeCode(int typeCode)
Types) of the
JDBC type of the column.
typeCode - The type codepublic java.lang.String getType()
public void setType(java.lang.String type)
type - The typepublic boolean isOfNumericType()
true if this column is of a numeric typepublic boolean isOfTextType()
true if this column is of a text typepublic boolean isOfBinaryType()
true if this column is of a binary typepublic boolean isOfSpecialType()
true if this column is of a special typepublic java.lang.String getSize()
public int getSizeAsInt()
public void setSize(java.lang.String size)
size - The sizepublic int getScale()
public void setScale(int scale)
scale - The scale
public void setSizeAndScale(int size,
int scale)
size - The sizescale - The scalepublic int getPrecisionRadix()
public void setPrecisionRadix(int precisionRadix)
precisionRadix - The precision radixpublic java.lang.String getDefaultValue()
public java.lang.Object getParsedDefaultValue()
public void setDefaultValue(java.lang.String defaultValue)
defaultValue - The default value
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toVerboseString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||