org.eobjects.metamodel.schema
Class MutableSchema
java.lang.Object
org.eobjects.metamodel.schema.AbstractSchema
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
| Methods inherited from class org.eobjects.metamodel.schema.AbstractSchema |
compareTo, equals, getQualifiedLabel, getQuotedName, getRelationshipCount, getRelationships, getTable, getTableByName, getTableCount, getTableCount, getTableNames, getTables, hashCode, toString |
MutableSchema
public MutableSchema()
MutableSchema
public MutableSchema(String name)
MutableSchema
public MutableSchema(String name,
MutableTable... tables)
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.