|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.redhat.persistence.metadata.Element
com.redhat.persistence.metadata.Column
The Column class is used to keep information about the physical schema in the database.
Field Summary | |
static String |
versionId
|
Constructor Summary | |
Column(String columnName)
Constructs a new Column with the given table and columnName. |
|
Column(String columnName,
int type)
Constructs a new Column with the given table, columnName, and JDBC integer type code. |
|
Column(String columnName,
int type,
int size)
Constructs a new column with the given columnName, type and size. |
|
Column(String columnName,
int type,
int size,
int scale)
Constructs a new Column with the given table, columnName, JDBC integer type code, and size. |
|
Column(String name,
int type,
int size,
int scale,
boolean isNullable)
Constructs a new Column with the given table, columnName, JDBC integer type code, and size. |
Method Summary | |
String |
getColumnName()
Returns the name of this Column. |
String |
getName()
Returns the name of this Column. |
String |
getQualifiedName()
|
int |
getScale()
|
int |
getSize()
This returns the size of the column |
String |
getSQL()
|
Table |
getTable()
Returns the table that this Column belongs to. |
String |
getTableName()
Returns the name of the table that this Column belongs to. |
int |
getType()
Returns the type of this Column. |
static String |
getTypeName(int type)
|
boolean |
isForeignKey()
|
boolean |
isNullable()
|
boolean |
isPrimaryKey()
|
boolean |
isUniqueKey()
|
void |
setNullable(boolean value)
|
void |
setScale(int scale)
|
void |
setSize(int size)
|
void |
setType(int type)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String versionId
Constructor Detail |
public Column(String columnName)
columnName
- The name of this Column.public Column(String columnName, int type)
columnName
- The name of this Column.type
- The JDBC integer type code for this Column.public Column(String columnName, int type, int size)
columnName
- The name of this Column.type
- The JDBC integer type code for this Column.size
- The size of this Column.public Column(String columnName, int type, int size, int scale)
columnName
- The name of this Column.type
- The JDBC integer type code for this Column.size
- The size of this Column.public Column(String name, int type, int size, int scale, boolean isNullable)
name
- The name of this Column.type
- The JDBC integer type code for this Column.size
- The size of this Column.scale
- The scale of this Column.isNullable
- True if the column is nullable.Method Detail |
public Table getTable()
public String getName()
public String getTableName()
public String getColumnName()
public boolean isNullable()
public void setNullable(boolean value)
public int getType()
public void setType(int type)
public String getQualifiedName()
public boolean isPrimaryKey()
public boolean isUniqueKey()
public boolean isForeignKey()
public static String getTypeName(int type)
public int getSize()
public void setSize(int size)
public int getScale()
public void setScale(int scale)
public String getSQL()
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |