| Constructor and Description |
|---|
DBLineParsers() |
| Modifier and Type | Method and Description |
|---|---|
static DBSchema |
parseDBaseDecl(java.lang.String line,
int lineno,
java.util.List<java.lang.String> tableNames)
a dbase declaration is on a single line.
|
static void |
parseSubTableDecl(java.lang.String line,
int lineno,
DBSchema dbs,
java.lang.String filename)
a subtable declaration is on a single line.
|
static TableSchema |
parseTableDecl(LineToParse l)
a table declaration is on a single line.
|
static void |
parseTableDecl(java.lang.String line,
int lineno,
DBSchema dbs,
java.lang.String filename)
a table declaration is on a single line.
|
protected static void |
parseTupleDecl(java.lang.String line,
int lineno,
DB db,
java.lang.String fileName)
parses a line at lineno, expecting to parse a legal prolog tuple
declaration.
|
public static DBSchema parseDBaseDecl(java.lang.String line, int lineno, java.util.List<java.lang.String> tableNames)
line - -- a stringlineno - -- the line number associated with this linetableNames - -- an empty list which is to be filled with table names
and returnedpublic static void parseSubTableDecl(java.lang.String line,
int lineno,
DBSchema dbs,
java.lang.String filename)
line - to parselineno - of linedbs - to add subtable definitionfilename - name of file from which this line was takenpublic static void parseTableDecl(java.lang.String line,
int lineno,
DBSchema dbs,
java.lang.String filename)
line - to parselineno - of linedbs - to add table declarationfilename - name of file from which this line was readpublic static TableSchema parseTableDecl(LineToParse l)
l - -- LineToParseprotected static void parseTupleDecl(java.lang.String line,
int lineno,
DB db,
java.lang.String fileName)
line - to parselineno - line number of the linedb - database in which to insertfileName - name of file from which this line was read