public class SubTableSchema
extends java.lang.Object
Constructor and Description |
---|
SubTableSchema(TableSchema supr)
create new SubTable object for dbSchema schema supr
|
SubTableSchema(TableSchema supr,
java.util.List<TableSchema> subs)
create subTableSchema declaration for dbSchema TableSchema supr with
subtable Schemas subs
|
Modifier and Type | Method and Description |
---|---|
void |
addSubTableSchema(TableSchema sub)
adds SubTableSchema sub
|
void |
addSubTableSchemas(TableSchema... tschemas)
adding table schemas in bulk as subtables
|
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 SubTableSchema of super Table
|
TableSchema |
getSubTableSchema(java.lang.String name)
return tableschema with given SubTableSchema from 'this'
|
java.util.List<TableSchema> |
getSubTableSchemas() |
TableSchema |
getSuper() |
void |
print()
print to Standard out
|
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 dbSchema schemapublic SubTableSchema(TableSchema supr, java.util.List<TableSchema> subs)
supr
- TableSchema of dbSchema 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 void addSubTableSchema(TableSchema sub)
sub
- -- SubTableSchema to addpublic void addSubTableSchemas(TableSchema... tschemas)
tschemas
- -- list of table schemas that are subtables of 'this'public TableSchema getSubTableSchema(java.lang.String name)
name
- -- SubTableSchema of table schemapublic 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 PrintStreampublic void print()