|
|||||||||
| Home >> All >> org >> [ hsqldb overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.hsqldb
Class Parser

java.lang.Objectorg.hsqldb.Parser
- class Parser
- extends java.lang.Object
Class declaration
- Version:
- 1.7.0
| Field Summary | |
private Session |
cSession
|
private Database |
dDatabase
|
private int |
iToken
|
private int |
iType
|
private java.lang.Object |
oData
|
private static boolean |
sql_enforce_size
|
private java.lang.String |
sTable
|
private java.lang.String |
sToken
|
private Tokenizer |
tTokenizer
|
| Constructor Summary | |
(package private) |
Parser(Database db,
Tokenizer t,
Session session)
Constructor declaration |
| Method Summary | |
private Expression |
addCondition(Expression e1,
Expression e2)
Method declaration |
private Expression |
doOrderGroup(Expression e,
java.util.Vector vcolumn)
Description of the Method |
(package private) static java.lang.Object |
enforceSize(java.lang.Object obj,
int type,
int size,
boolean pad)
Check an object for type CHAR and VARCHAR and truncate/pad based on the size |
private java.lang.Object |
getValue(int type)
Method declaration |
(package private) void |
logTableDDL(Table t)
Logs the DDL for a table created with INTO. |
(package private) static java.lang.String |
padOrTrunc(java.lang.String s,
int len,
boolean pad)
Pad or truncate a string to len size |
private Expression |
parseExpression()
Method declaration |
private Expression |
parseOuterJoinCondition()
parses the expression that can be used behind a [..] JOIN table ON (exp). |
(package private) Select |
parseSelect()
Method declaration |
private TableFilter |
parseTableFilter(boolean outerjoin)
Method declaration |
(package private) Result |
processCall()
Method declaration |
(package private) Result |
processDelete()
Method declaration |
(package private) Result |
processInsert()
Method declaration |
(package private) Result |
processSelect()
Method declaration |
(package private) Result |
processUpdate()
Method declaration |
private void |
read()
Method declaration |
private Expression |
readAnd()
Method declaration |
private Expression |
readConcat()
Method declaration |
private Expression |
readCondition()
Method declaration |
private Expression |
readFactor()
Method declaration |
private Expression |
readOr()
Method declaration |
private Expression |
readSum()
Method declaration |
private Expression |
readTerm()
Method declaration |
private void |
readThis(int type)
Method declaration |
(package private) static void |
setEnforceSize(boolean value)
Sets the enforceSize attribute of the Parser class |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
dDatabase
private Database dDatabase
tTokenizer
private Tokenizer tTokenizer
cSession
private Session cSession
sTable
private java.lang.String sTable
sToken
private java.lang.String sToken
oData
private java.lang.Object oData
iType
private int iType
iToken
private int iToken
sql_enforce_size
private static boolean sql_enforce_size
| Constructor Detail |
Parser
Parser(Database db, Tokenizer t, Session session)
- Constructor declaration
| Method Detail |
setEnforceSize
static void setEnforceSize(boolean value)
- Sets the enforceSize attribute of the Parser class
processSelect
Result processSelect() throws java.sql.SQLException
- Method declaration
logTableDDL
void logTableDDL(Table t) throws java.sql.SQLException
- Logs the DDL for a table created with INTO.
Uses three dummy arguments for getTableDDL() as the new table has no
FK constraints.
processCall
Result processCall() throws java.sql.SQLException
- Method declaration
processUpdate
Result processUpdate() throws java.sql.SQLException
- Method declaration
processDelete
Result processDelete() throws java.sql.SQLException
- Method declaration
processInsert
Result processInsert() throws java.sql.SQLException
- Method declaration
enforceSize
static java.lang.Object enforceSize(java.lang.Object obj, int type, int size, boolean pad)
- Check an object for type CHAR and VARCHAR and truncate/pad based on
the size
padOrTrunc
static java.lang.String padOrTrunc(java.lang.String s, int len, boolean pad)
- Pad or truncate a string to len size
parseSelect
Select parseSelect() throws java.sql.SQLException
- Method declaration
doOrderGroup
private Expression doOrderGroup(Expression e, java.util.Vector vcolumn) throws java.sql.SQLException
- Description of the Method
parseTableFilter
private TableFilter parseTableFilter(boolean outerjoin) throws java.sql.SQLException
- Method declaration
addCondition
private Expression addCondition(Expression e1, Expression e2)
- Method declaration
getValue
private java.lang.Object getValue(int type) throws java.sql.SQLException
- Method declaration
parseOuterJoinCondition
private Expression parseOuterJoinCondition() throws java.sql.SQLException
- parses the expression that can be used behind a
[..] JOIN table ON (exp).
This expression should always be in the form "tab.col=tab2.col"
with optional brackets (to support automated query tools).
this method is used from the parseSelect method
parseExpression
private Expression parseExpression() throws java.sql.SQLException
- Method declaration
readOr
private Expression readOr() throws java.sql.SQLException
- Method declaration
readAnd
private Expression readAnd() throws java.sql.SQLException
- Method declaration
readCondition
private Expression readCondition() throws java.sql.SQLException
- Method declaration
readThis
private void readThis(int type)
throws java.sql.SQLException
- Method declaration
readConcat
private Expression readConcat() throws java.sql.SQLException
- Method declaration
readSum
private Expression readSum() throws java.sql.SQLException
- Method declaration
readFactor
private Expression readFactor() throws java.sql.SQLException
- Method declaration
readTerm
private Expression readTerm() throws java.sql.SQLException
- Method declaration
read
private void read()
throws java.sql.SQLException
- Method declaration
|
|||||||||
| Home >> All >> org >> [ hsqldb overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.hsqldb.Parser