|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.saffron.sql.SqlOperator | +--net.sf.saffron.sql.SqlJoinOperator
SqlJoinOperator
describes the syntax of the SQL
JOIN
operator. Since there is only one such operator, this
class is almost certainly a singleton.
Nested Class Summary | |
static class |
SqlJoinOperator.ConditionType
Enumerates the types of condition in a join expression. |
static class |
SqlJoinOperator.JoinType
Enumerates the types of join. |
Nested classes inherited from class net.sf.saffron.sql.SqlOperator |
SqlOperator.Syntax, SqlOperator.TypeInference |
Field Summary | |
static int |
CONDITION_OPERAND
|
static int |
CONDITION_TYPE_OPERAND
Value must be a SqlLiteral , one of the integer codes for SqlJoinOperator.ConditionType . |
static int |
IS_NATURAL_OPERAND
One of the following: SqlLiteral.True , SqlLiteral.False . |
static int |
LEFT_OPERAND
|
static int |
RIGHT_OPERAND
|
static int |
TYPE_OPERAND
Value must be a SqlLiteral , one of the integer codes for SqlJoinOperator.JoinType . |
Fields inherited from class net.sf.saffron.sql.SqlOperator |
kind, leftPrec, name, rightPrec |
Constructor Summary | |
SqlJoinOperator()
|
Method Summary | |
SqlCall |
createCall(SqlNode[] operands)
Creates a call to this operand with an array of operands. |
SqlCall |
createCall(SqlNode left,
SqlLiteral isNatural,
SqlLiteral joinType,
SqlNode right,
SqlLiteral conditionType,
SqlNode condition)
|
int |
getSyntax()
Returns the syntactic type of this operator, a value from SqlOperator.Syntax . |
(package private) void |
unparse(SqlWriter writer,
SqlNode[] operands,
int leftPrec,
int rightPrec)
Writes a SQL representation of a call to this operator to a writer, including parentheses if the operators on either side are of greater precedence. |
Methods inherited from class net.sf.saffron.sql.SqlOperator |
createCall, createCall, createCall, createCall, getType, getType, isA, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int LEFT_OPERAND
public static final int IS_NATURAL_OPERAND
SqlLiteral.True
, SqlLiteral.False
.
public static final int TYPE_OPERAND
SqlLiteral
, one of the integer codes for SqlJoinOperator.JoinType
.
public static final int RIGHT_OPERAND
public static final int CONDITION_TYPE_OPERAND
SqlLiteral
, one of the integer codes for SqlJoinOperator.ConditionType
.
public static final int CONDITION_OPERAND
Constructor Detail |
public SqlJoinOperator()
Method Detail |
public int getSyntax()
SqlOperator
SqlOperator.Syntax
.
getSyntax
in class SqlOperator
public SqlCall createCall(SqlNode[] operands)
SqlOperator
createCall
in class SqlOperator
public SqlCall createCall(SqlNode left, SqlLiteral isNatural, SqlLiteral joinType, SqlNode right, SqlLiteral conditionType, SqlNode condition)
void unparse(SqlWriter writer, SqlNode[] operands, int leftPrec, int rightPrec)
SqlOperator
unparse
in class SqlOperator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |