|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Table
Database table
Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.jpt.jpa.db.DatabaseObject |
|---|
DEFAULT_COMPARATOR, IDENTIFIER_TRANSFORMER, NAME_TRANSFORMER |
| Method Summary | |
|---|---|
Column |
getColumnForIdentifier(java.lang.String identifier)
Return the column for the specified identifier. |
Column |
getColumnNamed(java.lang.String name)
Return the column with the specified name. |
java.lang.Iterable<Column> |
getColumns()
Return the table's columns. |
int |
getColumnsSize()
Return the number of columns the table contains. |
java.lang.Iterable<ForeignKey> |
getForeignKeys()
Return the table's foreign keys. |
int |
getForeignKeysSize()
Return the number of foreign keys the table contains. |
ForeignKey |
getJoinTableNonOwningForeignKey()
Assuming the table is a join table, return the foreign key to the non-owning table. |
ForeignKey |
getJoinTableOwningForeignKey()
Assuming the table is a join table, return the foreign key to the owning table. |
Column |
getPrimaryKeyColumn()
Return the table's single primary key column. |
java.lang.Iterable<Column> |
getPrimaryKeyColumns()
Return the table's primary key columns. |
int |
getPrimaryKeyColumnsSize()
Return the number of primary key columns the table contains. |
Schema |
getSchema()
Return the table's schema. |
java.lang.Iterable<java.lang.String> |
getSortedColumnIdentifiers()
Return the table's column identifers, sorted by name. |
boolean |
isPossibleJoinTable()
Return whether the table is possibly a join table (i.e. |
boolean |
joinTableNameIsDefault()
Assuming the table is a join table, return whether its name matches the JPA default (i.e. |
| Methods inherited from interface org.eclipse.jpt.jpa.db.DatabaseObject |
|---|
getConnectionProfile, getDatabase, getIdentifier, getIdentifier, getName |
| Method Detail |
|---|
Schema getSchema()
java.lang.Iterable<Column> getColumns()
int getColumnsSize()
Column getColumnNamed(java.lang.String name)
getColumnForIdentifier(String)java.lang.Iterable<java.lang.String> getSortedColumnIdentifiers()
getColumnForIdentifier(String)Column getColumnForIdentifier(java.lang.String identifier)
getColumnNamed(String),
getSortedColumnIdentifiers()java.lang.Iterable<Column> getPrimaryKeyColumns()
int getPrimaryKeyColumnsSize()
Column getPrimaryKeyColumn()
IllegalStateException if the table has more than one primary key column.
java.lang.Iterable<ForeignKey> getForeignKeys()
int getForeignKeysSize()
boolean isPossibleJoinTable()
ForeignKey getJoinTableOwningForeignKey()
isPossibleJoinTable()ForeignKey getJoinTableNonOwningForeignKey()
isPossibleJoinTable()boolean joinTableNameIsDefault()
"OWNINGTABLE_NONOWNINGTABLE").
isPossibleJoinTable()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||