Package | Description |
---|---|
Parsing.Parsers | |
PrologDB |
Modifier and Type | Method and Description |
---|---|
static DBSchema |
DBLineParsers.parseDBaseDecl(java.lang.String line,
int lineno,
java.util.List<java.lang.String> tableNames)
a dbase declaration is on a single line.
|
Modifier and Type | Method and Description |
---|---|
static void |
DBLineParsers.parseSubTableDecl(java.lang.String line,
int lineno,
DBSchema dbs,
java.lang.String filename)
a subtable declaration is on a single line.
|
static void |
DBLineParsers.parseTableDecl(java.lang.String line,
int lineno,
DBSchema dbs,
java.lang.String filename)
a table declaration is on a single line.
|
Modifier and Type | Method and Description |
---|---|
DBSchema |
DBSchema.copy()
copy a database schema.
|
DBSchema |
Table.getDBSchema()
returns the DBSchema of this table.
|
DBSchema |
Table.getDBSchemaEH()
returns the DBSchema of this table.
|
DBSchema |
DB.getSchema()
returns DBSchema that this database instantiates
|
static DBSchema |
DBSchema.readSchema(java.io.File schemafile)
another version of readSchema
|
static DBSchema |
DBSchema.readSchema(java.lang.String schemafile)
reads .ooschema and .schema files; throws Error when an error is
encountered.
|
static DBSchema |
DBSchema.readSchema(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
|
Modifier and Type | Method and Description |
---|---|
SubTableSchema |
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 |
DBSchema.equals(DBSchema dbschema)
two DBSchemas are equal iff (a) they have the same SubTableSchema, (b)
they have the same set of table schemas, and (c) they have the same set
of subtableschemas; if so true is returned.
|
void |
DBSchema.equalsEH(DBSchema dbschema)
two DBSchemas are equal iff (a) they have the same SubTableSchema, (b)
they have the same set of table schemas, and (c) they have the same set
of subtable schemas; if so this method returns.
|
Constructor and Description |
---|
DB(java.lang.String name,
DBSchema schema)
Create an empty database with a given name and DBSchema type
|