org.eobjects.metamodel.schema
Class CompositeSchema

java.lang.Object
  extended by org.eobjects.metamodel.schema.AbstractSchema
      extended by org.eobjects.metamodel.schema.CompositeSchema
All Implemented Interfaces:
Serializable, Comparable<Schema>, NamedStructure, Schema, HasName

public class CompositeSchema
extends AbstractSchema

A composite schema, comprising tables from several DataContexts.

Author:
Kasper Sørensen
See Also:
Serialized Form

Constructor Summary
CompositeSchema(String name, Collection<? extends Schema> delegates)
           
 
Method Summary
 String getName()
          Gets the name of this Schema
 String getQuote()
          Gets an optional quote string that is used to enclose the name of this structure.
 Relationship[] getRelationships()
          Gets all relationships to and from this Schema.
 Table[] getTables()
          Gets all tables in this Schema.
 
Methods inherited from class org.eobjects.metamodel.schema.AbstractSchema
compareTo, equals, getQualifiedLabel, getQuotedName, getRelationshipCount, getTable, getTableByName, getTableCount, getTableCount, getTableNames, getTables, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompositeSchema

public CompositeSchema(String name,
                       Collection<? extends Schema> delegates)
Method Detail

getRelationships

public Relationship[] getRelationships()
Description copied from interface: Schema
Gets all relationships to and from this Schema.

Specified by:
getRelationships in interface Schema
Overrides:
getRelationships in class AbstractSchema
Returns:
an array of relationships.

getTables

public Table[] getTables()
Description copied from interface: Schema
Gets all tables in this Schema.

Returns:
the tables that reside in the schema

getName

public String getName()
Description copied from interface: Schema
Gets the name of this Schema

Returns:
the name of this Schema

getQuote

public String getQuote()
Description copied from interface: NamedStructure
Gets an optional quote string that is used to enclose the name of this structure.

Returns:
A quote string used to enclose the name or null if none exists.


Copyright © 2007-2013. All Rights Reserved.