|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.writersforge.catalan.transform.text.SqlTable
Simple data holder for SQL table info.
| Nested Class Summary | |
static class |
SqlTable.Field
A single field in an SQL table. |
| 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. |
SqlTable.Field[] |
getFields()
Retrieves all fields in this table |
SqlTable.Field[] |
getForeignKeys()
Retrieves an array of all foreign key fields in this table. |
java.lang.String |
getName()
Retrieves the name of the table. |
org.writersforge.bellows.util.PropertyName |
getNameProperty()
Retrieves the name of the table as a PropertyName object. |
SqlTable.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(SqlTable.Field[] fields)
Assigns all fields in this table. |
void |
setForeignKeys(SqlTable.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(SqlTable.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 org.writersforge.bellows.util.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 SqlTable.Field[] getFields()
public void setFields(SqlTable.Field[] fields)
fields - table fieldspublic SqlTable.Field[] getForeignKeys()
public void setForeignKeys(SqlTable.Field[] foreignKeys)
foreignKeys - foreign key fieldspublic SqlTable.Field[] getPrimaryKeys()
public void setPrimaryKeys(SqlTable.Field[] primaryKeys)
primaryKeys - primary key fields
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||