public class OOSchema extends Schema
finished, name, subtables, tableSchemas
Constructor and Description |
---|
OOSchema(java.lang.String name)
This constructor is used for the incremental construction of dbase or
oodb Schemas.
|
Modifier and Type | Method and Description |
---|---|
OOSchema |
copy()
copyFrom an oodb schema.
|
DBSchema |
finishAndPropagateAttributes()
sets DB Schema ready for instantiation; flattens the schema if not
already flattened.
|
java.lang.String |
getFullName()
full (file) SubTableSchema of a schema is (SubTableSchema).schema.pl
|
void |
print(java.lang.String filename)
general print to file method
calls print(filename,requiredFileEnding) utility method below
|
static OOSchema |
read(java.io.File schemafile)
another version of readSchema
|
static OOSchema |
read(java.lang.String schemafile)
reads .ooschema; throws Error when an error is encountered.
|
static OOSchema |
read(java.lang.String nameOfSchema,
java.lang.String stringDefOfSchema)
used when it is easier to pass in a string declaration of a DBSchema
rather than building it programmatically
|
void |
setFinished()
declare OOschema finished -- can no longer be edited.
|
java.lang.String |
toString() |
add, add, add, add, addIdentifiersToAllNonSubtables, basicVerification, copyFrom, equals, equalsEH, finishedAndIPropagatedAttributesMyself, getName, getSubTableSchema, getSubTableSchema, getSubTableSchemaEH, getSubTableSchemaEH, getSubTableSchemas, getSuperTable, getTableSchema, getTableSchemaEH, getTableSchemas, isFinished, isGEQ, isGEQ, print, print, print, rename, SchemaDeclString, size, toString
public OOSchema(java.lang.String name)
name
- -- name given to schemapublic OOSchema copy()
public java.lang.String getFullName()
getFullName
in class Schema
public void setFinished()
public static OOSchema read(java.lang.String schemafile)
schemafile
- -- SubTableSchema of schema filepublic static OOSchema read(java.io.File schemafile)
schemafile
- -- File to readpublic static OOSchema read(java.lang.String nameOfSchema, java.lang.String stringDefOfSchema)
nameOfSchema
- -- name of pseudo filestringDefOfSchema
- -- string contents (typically multiline) of
pseudo filepublic void print(java.lang.String filename)
Schema
public java.lang.String toString()
public DBSchema finishAndPropagateAttributes()