public class SubTableSchema
extends java.lang.Object
Constructor and Description |
---|
SubTableSchema(TableSchema supr)
create new SubTable object for parent schema supr
|
SubTableSchema(TableSchema supr,
java.util.List<TableSchema> subs)
create subTableSchema declaration for parent TableSchema supr with
subtable Schemas subs
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(TableSchema s)
does this subtable schema include TableSchema s1 as subtable?
|
SubTableSchema |
copy(DBSchema newSchema)
copy SubTableSchema by creating a new, pristine version that literally
replicates the data, but is specific to a new database schema.
|
boolean |
equals(SubTableSchema ts)
two SubTableSchema objects are equal iff they both reference the same
superTable, and this.subtables \subsetof ts.subtables, and vice versa
|
void |
equalsEH(SubTableSchema ts)
two SubTableSchema objects are equal iff they both reference the same
superTable, and this.subtables \subsetof ts.subtables, and vice versa
if unequal, Error is thrown with a reason
|
java.lang.String |
getName()
return name of super Table
|
java.util.List<TableSchema> |
getSubTableSchemas() |
TableSchema |
getSuper() |
void |
print(java.io.PrintStream out)
print standard string declaration of SubTableSchema to PrintStream out
|
java.lang.String |
toString()
produce standard string representation of a SubTableSchema declaration
|
public SubTableSchema(TableSchema supr)
supr
- is Table object of parent schemapublic SubTableSchema(TableSchema supr, java.util.List<TableSchema> subs)
supr
- TableSchema of parent tablesubs
- list of TableSchemas of children tablespublic java.util.List<TableSchema> getSubTableSchemas()
public java.lang.String getName()
public TableSchema getSuper()
public boolean contains(TableSchema s)
s
- TableSchema of interestpublic SubTableSchema copy(DBSchema newSchema)
newSchema
- a DBSchema for cloning a subtable schema declpublic boolean equals(SubTableSchema ts)
ts
- -- SubTableSchema to compare withpublic void equalsEH(SubTableSchema ts)
ts
- -- SubTableSchema to compare withpublic java.lang.String toString()
toString
in class java.lang.Object
public void print(java.io.PrintStream out)
out
- is output PrintStream