|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eobjects.metamodel.schema.AbstractSchema
public abstract class AbstractSchema
Abstract implementation of the Schema interface. Implements most
common and trivial methods.
| Constructor Summary | |
|---|---|
AbstractSchema()
|
|
| Method Summary | |
|---|---|
int |
compareTo(Schema that)
|
boolean |
equals(Object obj)
|
String |
getQualifiedLabel()
Gets a qualified label for later lookup. |
String |
getQuotedName()
Gets the name, including optional quotes, of this structure. |
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(TableType type)
Gets all tables in this Schema of a particular type. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eobjects.metamodel.schema.Schema |
|---|
getName, getTables |
| Methods inherited from interface org.eobjects.metamodel.schema.NamedStructure |
|---|
getQuote |
| Constructor Detail |
|---|
public AbstractSchema()
| Method Detail |
|---|
public final String getQuotedName()
NamedStructure
getQuotedName in interface NamedStructurepublic Relationship[] getRelationships()
Schema
getRelationships in interface Schema
public Table getTable(int index)
throws IndexOutOfBoundsException
SchemaSchema.getTableCount() to get the (0-based)
index range
getTable in interface Schemaindex - the index of the table
IndexOutOfBoundsException - if the index is out of bounds (index >= table count)public final String getQualifiedLabel()
NamedStructure
getQualifiedLabel in interface NamedStructurepublic final int getTableCount(TableType type)
Schema
getTableCount in interface Schematype - the TableType to use for searching and matching.
public final int getRelationshipCount()
Schema
getRelationshipCount in interface Schemapublic final int getTableCount()
Schema
getTableCount in interface Schemapublic final Table[] getTables(TableType type)
Schema
getTables in interface Schematype - the TableType to use for searching and matching.
public final Table getTableByName(String tableName)
Schema
getTableByName in interface SchematableName - the name of the table to retrieve
public final String[] getTableNames()
Schema
getTableNames in interface Schemapublic final String toString()
toString in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic final int compareTo(Schema that)
compareTo in interface Comparable<Schema>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||