org.eobjects.metamodel.schema
Class MutableSchema

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

public class MutableSchema
extends AbstractSchema
implements Serializable, Schema

Represents a schema and it's metadata. Schemas represent a collection of tables.

See Also:
Table, Serialized Form

Constructor Summary
MutableSchema()
           
MutableSchema(String name)
           
MutableSchema(String name, MutableTable... tables)
           
 
Method Summary
 MutableSchema addTable(MutableTable table)
           
 MutableSchema clearTables()
           
 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.
 MutableTable[] getTables()
          Gets all tables in this Schema.
 MutableSchema removeTable(Table table)
           
 MutableSchema setName(String name)
           
 MutableSchema setTables(Collection<? extends MutableTable> tables)
           
 MutableSchema setTables(MutableTable... tables)
           
 
Methods inherited from class org.eobjects.metamodel.schema.AbstractSchema
compareTo, equals, getQualifiedLabel, getQuotedName, getRelationshipCount, getRelationships, getTable, getTableByName, getTableCount, getTableCount, getTableNames, getTables, hashCode, 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
getRelationshipCount, getRelationships, getTable, getTableByName, getTableCount, getTableCount, getTableNames, getTables
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface org.eobjects.metamodel.schema.NamedStructure
getQualifiedLabel, getQuotedName
 

Constructor Detail

MutableSchema

public MutableSchema()

MutableSchema

public MutableSchema(String name)

MutableSchema

public MutableSchema(String name,
                     MutableTable... tables)
Method Detail

getName

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

Specified by:
getName in interface NamedStructure
Specified by:
getName in interface Schema
Specified by:
getName in interface HasName
Returns:
the name of this Schema

setName

public MutableSchema setName(String name)

getTables

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

Specified by:
getTables in interface Schema
Returns:
the tables that reside in the schema

setTables

public MutableSchema setTables(Collection<? extends MutableTable> tables)

setTables

public MutableSchema setTables(MutableTable... tables)

clearTables

public MutableSchema clearTables()

addTable

public MutableSchema addTable(MutableTable table)

removeTable

public MutableSchema removeTable(Table table)

getQuote

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

Specified by:
getQuote in interface NamedStructure
Returns:
A quote string used to enclose the name or null if none exists.


Copyright © 2007-2013. All Rights Reserved.