|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.umber.catalan.process.workers.sql.SqlTable
Simple data holder for SQL table info.
Constructor Summary | |
SqlTable()
Creates a new instance of SqlTable. |
Method Summary | |
java.lang.String |
getCheckCondition()
Retrieves the table-level CHECK condition. |
java.lang.String |
getDdl()
Retrieves the original SQL DDL for the table. |
Field[] |
getFields()
Retrieves all fields in this table |
Field[] |
getForeignKeys()
Retrieves an array of all foreign key fields in this table. |
java.lang.String |
getName()
Retrieves the name of the table. |
PropertyName |
getNameProperty()
Retrieves the name of the table as a PropertyName object. |
Field[] |
getPrimaryKeys()
Retrieves an array of all primary key fields in this table. |
void |
setCheckCondition(java.lang.String checkCondition)
Assigns the table-level CHECK condition. |
void |
setDdl(java.lang.String ddl)
Sets the original SQL DDL for the table. |
void |
setFields(Field[] fields)
Assigns all fields in this table. |
void |
setForeignKeys(Field[] foreignKeys)
Assigns an array of all foreign key fields in this table. |
void |
setName(java.lang.String name)
Sets the table name. |
void |
setPrimaryKeys(Field[] primaryKeys)
Assigns an array of all primary key fields in this table. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SqlTable()
Method Detail |
public java.lang.String getDdl()
public void setDdl(java.lang.String ddl)
ddl
- DDL table contentpublic java.lang.String getName()
public PropertyName getNameProperty()
public void setName(java.lang.String name)
name
- table namepublic java.lang.String getCheckCondition()
public void setCheckCondition(java.lang.String checkCondition)
checkCondition
- CHECK conditionpublic Field[] getFields()
public void setFields(Field[] fields)
fields
- table fieldspublic Field[] getForeignKeys()
public void setForeignKeys(Field[] foreignKeys)
foreignKeys
- foreign key fieldspublic Field[] getPrimaryKeys()
public void setPrimaryKeys(Field[] primaryKeys)
primaryKeys
- primary key fields
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |