public class DBColumnJoinExpr extends DBJoinExpr
| Modifier and Type | Field and Description |
|---|---|
DBCompareExpr |
compExpr |
protected DBColumnExpr |
left |
protected DBColumnExpr |
right |
typeCTX_ALIAS, CTX_ALL, CTX_DEFAULT, CTX_FULLNAME, CTX_NAME, CTX_NOPARENTHESIS, CTX_VALUE| Constructor and Description |
|---|
DBColumnJoinExpr(DBColumnExpr left,
DBColumnExpr right,
DBJoinType type)
Constructs a new DBJoinExpr object initialize this object with
the left and right column and the data type of the join
expression.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addReferencedColumns(Set<DBColumn> list)
Internal function to obtain all DBColumnExpr-objects used by this expression.
|
void |
addSQL(DBSQLBuilder sql,
long context)
Not allowed, this operation have to be done in the DBCommand object.
|
DBColumnJoinExpr |
and(DBColumnExpr c1,
DBColumnExpr c2)
This function adds an additional constraint to the join.
|
DBColumnJoinExpr |
and(DBCompareExpr expr)
This function adds an additional constraint to the join.
|
DBJoinExpr |
copy(DBCommand newCmd)
Copy Command
|
boolean |
equals(Object obj)
Compares two DBJoinExpr objects.
|
DBDatabase |
getDatabase()
Returns the current DBDatabase object.
|
DBColumnExpr |
getLeft()
returns the left join expression
|
DBRowSet |
getLeftTable()
returns the RowSet on the left of the join
|
DBRowSet |
getOuterTable()
Returns the left table name if the data type= JOIN_LEFT and returns
the right table if the data type= JOIN_RIGHT.
|
DBColumnExpr |
getRight()
returns the right join expression
|
DBRowSet |
getRightTable()
returns the RowSet on the right of the join
|
DBCompareExpr |
getWhere()
Returns any additional constraints to the join
|
boolean |
isJoinOn(DBColumn column)
returns true if this join is using the given column or false otherwise
|
boolean |
isJoinOn(DBRowSet rowset)
returns true if this join is using the given table or view or false otherwise
|
void |
prepareCommand(DBCommand cmd)
prepareCommand
|
void |
reverse()
This function swaps the left and the right statements of the join expression.
|
void |
where(DBCompareExpr expr)
This function adds an additional constraint to the join.
|
getType, setTypecheckParamNullprotected DBColumnExpr left
protected DBColumnExpr right
public DBCompareExpr compExpr
public DBColumnJoinExpr(DBColumnExpr left, DBColumnExpr right, DBJoinType type)
left - left valueright - right valuetype - data type (JOIN_INNER, JOIN_LEFT or JOIN_RIGHT)public final DBDatabase getDatabase()
getDatabase in class DBObjectpublic DBColumnExpr getLeft()
public DBColumnExpr getRight()
public DBRowSet getLeftTable()
DBJoinExprgetLeftTable in class DBJoinExprpublic DBRowSet getRightTable()
getRightTable in class DBJoinExprpublic boolean isJoinOn(DBRowSet rowset)
isJoinOn in class DBJoinExprpublic boolean isJoinOn(DBColumn column)
isJoinOn in class DBJoinExprpublic DBRowSet getOuterTable()
getOuterTable in class DBJoinExprpublic void reverse()
reverse in class DBJoinExprpublic void prepareCommand(DBCommand cmd)
prepareCommand in class DBJoinExprpublic DBJoinExpr copy(DBCommand newCmd)
copy in class DBJoinExprnewCmd - the new command objectpublic DBCompareExpr getWhere()
public void where(DBCompareExpr expr)
expr - the compare expressionpublic DBColumnJoinExpr and(DBCompareExpr expr)
expr - the expression to addpublic DBColumnJoinExpr and(DBColumnExpr c1, DBColumnExpr c2)
c1 - the first columnc2 - the second columnpublic void addReferencedColumns(Set<DBColumn> list)
DBExpraddReferencedColumns in class DBExprlist - list to which all used column expressions must be addedDBExpr.addReferencedColumns(Set)public void addSQL(DBSQLBuilder sql, long context)
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.