| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.apache.ws.jaxme.sqls.impl.TableImplorg.apache.ws.jaxme.sqls.impl.ViewImplpublic class ViewImplextends TableImplNested Class Summary |
Nested classes/interfaces inherited from class org.apache.ws.jaxme.sqls.impl.TableImpl | |
TableImpl.NameImpl | |
Constructor Summary | |
| |
Method Summary | |
Column |
|
Iterator |
|
DeleteStatement |
|
Iterator |
|
Iterator |
|
InsertStatement |
|
Index |
|
UpdateStatement |
|
SelectStatement | |
Column |
|
Column |
|
ForeignKey |
|
Index |
|
Index |
|
Index |
|
Methods inherited from class org.apache.ws.jaxme.sqls.impl.TableImpl | |
equals, getColumn, getColumn, getColumns, getDeleteStatement, getForeignKeys, getIndexes, getInsertStatement, getName, getPrimaryKey, getQName, getSchema, getSelectStatement, getUpdateStatement, hashCode, newColumn, newColumn, newForeignKey, newIndex, newKey, newPrimaryKey | |
public Column getColumn(Column.Name pName)
Returns the column with the given name or null, if no such column exists.
public Iterator getColumns()
Returns the table columns.
- Specified by:
- getColumns in interface Table
- Overrides:
- getColumns in interface TableImpl
public DeleteStatement getDeleteStatement()
Returns an UPDATE statement for updating a column in the table. In other words: If the table FOO has the primary key columns A and B, then the statementDELETE FROM FOO WHERE A = ? AND B = ?will be returned.
- Specified by:
- getDeleteStatement in interface Table
- Overrides:
- getDeleteStatement in interface TableImpl
- See Also:
SQLFactory.newDeleteStatement()
public Iterator getForeignKeys()
Returns anIteratorto the foreign keys defined on the table.
- Specified by:
- getForeignKeys in interface Table
- Overrides:
- getForeignKeys in interface TableImpl
public Iterator getIndexes()
Returns anIteratorto the indexes defined on the table. This iterator includes the primary key, if any.
- Specified by:
- getIndexes in interface Table
- Overrides:
- getIndexes in interface TableImpl
public InsertStatement getInsertStatement()
Returns an INSERT statement for filling all the values. In other words: If the table FOO has the columns A, B, and C, then the statementINSERT INTO FOO (A,B,C) VALUES (?, ?, ?)will be returned.
- Specified by:
- getInsertStatement in interface Table
- Overrides:
- getInsertStatement in interface TableImpl
- See Also:
SQLFactory.newInsertStatement()
public Index getPrimaryKey()
Returns the tables primary key, if any, or null, if the table doesn't have a primary key.
- Specified by:
- getPrimaryKey in interface Table
- Overrides:
- getPrimaryKey in interface TableImpl
public UpdateStatement getUpdateStatement()
Returns an UPDATE statement for updating a column in the table. In other words: If the table FOO has the columns A, B, C and D with the primary key columns A and B, then the statementUPDATE FOO SET C = ?, D = ? WHERE A = ? AND B = ?will be returned.
- Specified by:
- getUpdateStatement in interface Table
- Overrides:
- getUpdateStatement in interface TableImpl
- See Also:
SQLFactory.newUpdateStatement()
public ForeignKey newForeignKey(Table pReferencedTable)
Creates a new foreign key referencing the given table.
- Specified by:
- newForeignKey in interface Table
- Overrides:
- newForeignKey in interface TableImpl
public Index newPrimaryKey()
Creates a new primary key on the table.
- Specified by:
- newPrimaryKey in interface Table
- Overrides:
- newPrimaryKey in interface TableImpl