|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ddlutils.model.Column
Represents a column in the database model.
Constructor Summary | |
Column()
|
Method Summary | |
protected Object |
clone()
|
boolean |
equals(Object obj)
|
String |
getDefaultValue()
Returns the default value of the column. |
String |
getDescription()
Returns the description of the column. |
String |
getJavaName()
Returns the java name of the column. |
String |
getName()
Returns the name of the column. |
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. |
String |
getSize()
Returns the size of the column. |
int |
getSizeAsInt()
Returns the size of the column as an integer. |
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(String defaultValue)
Sets the default value of the column. |
void |
setDescription(String description)
Sets the description of the column. |
void |
setJavaName(String javaName)
Sets the java name of the column. |
void |
setName(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(String size)
Sets the size of the column. |
void |
setType(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. |
String |
toString()
|
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 String getName()
public void setName(String name)
name
- The namepublic String getJavaName()
public void setJavaName(String javaName)
javaName
- The java namepublic String getDescription()
public void setDescription(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 String getType()
public void setType(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 String getSize()
public int getSizeAsInt()
public void setSize(String size)
size
- The sizepublic int getScale()
public void setScale(int scale)
scale
- The scalepublic int getPrecisionRadix()
public void setPrecisionRadix(int precisionRadix)
precisionRadix
- The precision radixpublic String getDefaultValue()
public Object getParsedDefaultValue()
public void setDefaultValue(String defaultValue)
defaultValue
- The default valueprotected Object clone() throws CloneNotSupportedException
CloneNotSupportedException
public boolean equals(Object obj)
public int hashCode()
public String toString()
public String toVerboseString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |