|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object query.QueryCheck
class QueryCheck
Uses the catalogs to perform final type checking for query statements.
Constructor Summary | |
---|---|
private |
QueryCheck()
Private constructor (static class). |
Method Summary | |
---|---|
static int |
columnExists(Schema schema,
java.lang.String columnName)
Checks whether a column exists. |
static void |
fileNotExists(java.lang.String fileName)
Checks whether a file name does not exist. |
static void |
indexExists(java.lang.String indexName)
Checks whether an index exists. |
static void |
insertValues(Schema schema,
java.lang.Object[] values)
Checks whether values to insert matches the table schema. |
static void |
predicates(Schema schema,
Predicate[][] preds)
Checks whether selection predicates (in CNF) match the given schema. |
static Schema |
tableExists(java.lang.String tableName)
Checks whether a table exists. |
static int[] |
updateFields(Schema schema,
java.lang.String[] fields)
Checks whether field to update match the table schema. |
static void |
updateValues(Schema schema,
int[] fldnos,
java.lang.Object[] values)
Checks whether values to update matches the table schema. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
private QueryCheck()
Method Detail |
---|
public static void fileNotExists(java.lang.String fileName) throws QueryException
QueryException
public static Schema tableExists(java.lang.String tableName) throws QueryException
QueryException
public static void indexExists(java.lang.String indexName) throws QueryException
QueryException
public static int columnExists(Schema schema, java.lang.String columnName) throws QueryException
QueryException
public static void insertValues(Schema schema, java.lang.Object[] values) throws QueryException
QueryException
- if wrong number of columns or invalid valuespublic static int[] updateFields(Schema schema, java.lang.String[] fields) throws QueryException
QueryException
- if a column name doesn't existpublic static void updateValues(Schema schema, int[] fldnos, java.lang.Object[] values) throws QueryException
QueryException
- if wrong number of columns or invalid valuespublic static void predicates(Schema schema, Predicate[][] preds) throws QueryException
QueryException
- if any predicates are invalid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |