public class Schema extends Object implements Comparable<Schema>, Serializable
Constructor and Description |
---|
Schema()
Default constructor.
|
Schema(DBIdentifier name,
SchemaGroup group) |
Schema(String name,
SchemaGroup group)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Sequence |
addSequence(DBIdentifier name) |
Sequence |
addSequence(String name)
Deprecated.
|
Table |
addTable(DBIdentifier name) |
Table |
addTable(DBIdentifier name,
DBIdentifier validName) |
Table |
addTable(String name)
Deprecated.
|
Table |
addTable(String name,
String validName)
Deprecated.
|
int |
compareTo(Schema other) |
DBIdentifier |
getIdentifier() |
String |
getName()
Deprecated.
|
SchemaGroup |
getSchemaGroup()
Return the schema's group.
|
Sequence |
getSequence(DBIdentifier name) |
Sequence |
getSequence(String name)
Deprecated.
|
Sequence[] |
getSequences()
Return the schema's sequences.
|
Table |
getTable(DBIdentifier name) |
Table |
getTable(String name)
Deprecated.
|
Table[] |
getTables()
Return the schema's tables.
|
Sequence |
importSequence(Sequence seq)
Import a sequence from another schema.
|
Table |
importTable(Table table)
Import a table from another schema.
|
boolean |
removeSequence(Sequence seq)
Remove the given sequence from the schema.
|
boolean |
removeTable(Table tab)
Remove the given table from the schema.
|
void |
setIdentifier(DBIdentifier name) |
void |
setName(String name)
Deprecated.
|
String |
toString() |
public Schema()
@Deprecated public Schema(String name, SchemaGroup group)
name
- the schema name, if anygroup
- the schema's owning grouppublic Schema(DBIdentifier name, SchemaGroup group)
public SchemaGroup getSchemaGroup()
@Deprecated public String getName()
public DBIdentifier getIdentifier()
@Deprecated public void setName(String name)
public void setIdentifier(DBIdentifier name)
public Table[] getTables()
@Deprecated public Table getTable(String name)
public Table getTable(DBIdentifier name)
@Deprecated public Table addTable(String name)
public Table addTable(DBIdentifier name)
@Deprecated public Table addTable(String name, String validName)
public Table addTable(DBIdentifier name, DBIdentifier validName)
public boolean removeTable(Table tab)
public Table importTable(Table table)
public Sequence[] getSequences()
@Deprecated public Sequence getSequence(String name)
public Sequence getSequence(DBIdentifier name)
@Deprecated public Sequence addSequence(String name)
public Sequence addSequence(DBIdentifier name)
public boolean removeSequence(Sequence seq)
public int compareTo(Schema other)
compareTo
in interface Comparable<Schema>
Copyright © 2006–2019 Apache Software Foundation. All rights reserved.