|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Schema
Represents a schema and it's metadata description. Schemas represent a collection of tables.
DataContext,
Table| Method Summary | |
|---|---|
String |
getName()
Gets the name of this Schema |
int |
getRelationshipCount()
Gets the number of relationships to and from this Schema. |
Relationship[] |
getRelationships()
Gets all relationships to and from this Schema. |
Table |
getTable(int index)
Gets a table by index. |
Table |
getTableByName(String tableName)
Convenience method for retrieving a table by it's name. |
int |
getTableCount()
Gets the number of tables that reside in this schema. |
int |
getTableCount(TableType type)
Gets the number of tables in this Schema that comply to a given TableType. |
String[] |
getTableNames()
Gets the names of the tables that reside in this Schema. |
Table[] |
getTables()
Gets all tables in this Schema. |
Table[] |
getTables(TableType type)
Gets all tables in this Schema of a particular type. |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface org.eobjects.metamodel.schema.NamedStructure |
|---|
getQualifiedLabel, getQuote, getQuotedName |
| Method Detail |
|---|
String getName()
getName in interface HasNamegetName in interface NamedStructureint getTableCount()
int getTableCount(TableType type)
type - the TableType to use for searching and matching.
String[] getTableNames()
Table[] getTables()
Table[] getTables(TableType type)
type - the TableType to use for searching and matching.
Table getTable(int index)
throws IndexOutOfBoundsException
getTableCount() to get the (0-based)
index range
index - the index of the table
IndexOutOfBoundsException - if the index is out of bounds (index >= table count)Table getTableByName(String tableName)
tableName - the name of the table to retrieve
Relationship[] getRelationships()
int getRelationshipCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||