public class Schema extends Object implements IReplicable<Schema>, IMergeable<Schema>, IResetableExtended
| Constructor and Description |
|---|
Schema() |
| Modifier and Type | Method and Description |
|---|---|
Schema |
add(Table table)
Add a table to the schema.
|
Schema |
copy()
A clone of the object.
|
String |
getAlias()
The schema alias.
|
Table |
getAlias(String alias)
Get a table by its alias.
|
Map<String,Table> |
getAliasToTables()
Gets the alias mapping.
|
String |
getName()
The schema name.
|
Table |
getName(String name)
Get a table by its name.
|
Map<String,Table> |
getNamesToTables()
Gets the name mapping.
|
List<Table> |
getTables()
Get the column set.
|
void |
initialize(IContext context) |
void |
merge(Schema other)
Merge two objects.
|
Schema |
setAlias(String alias)
Set the alias.
|
void |
setAliasToTables(Map<String,Table> aliasToTables)
Set the alias mapping.
|
Schema |
setName(String name)
Sets the schema name.
|
void |
setNamesToTables(Map<String,Table> namesToTables)
Sets the name mapping.
|
Schema |
setTables(List<Table> tables)
Set the tables.
|
public String getAlias()
public Schema setAlias(String alias)
alias - The alias.public String getName()
public Schema setName(String name)
name - The name.public Schema setTables(List<Table> tables)
tables - The tables.public Schema add(Table table) throws SchemaException
table - A table.SchemaException - On repetition errors.public Table getAlias(String alias)
alias - The alias.public Table getName(String name)
name - The name.public Map<String,Table> getAliasToTables()
public void setAliasToTables(Map<String,Table> aliasToTables)
aliasToTables - The mapping.public Map<String,Table> getNamesToTables()
public void setNamesToTables(Map<String,Table> namesToTables)
namesToTables - The mapping.public Schema copy() throws ReplicableException
IReplicablecopy in interface IReplicable<Schema>ReplicableException - On replication errors.public void merge(Schema other) throws MergeableException
IMergeablemerge in interface IMergeable<Schema>other - The object to be merged.MergeableException - On merge error.public void initialize(IContext context)
initialize in interface IResetableExtendedCopyright © 2017. All rights reserved.