public class DBCrossJoinExpr extends DBJoinExpr
Modifier and Type | Field and Description |
---|---|
protected DBRowSet |
left |
protected DBRowSet |
right |
type
CTX_ALIAS, CTX_ALL, CTX_DEFAULT, CTX_FULLNAME, CTX_NAME, CTX_NOPARENTHESIS, CTX_VALUE
Constructor and Description |
---|
DBCrossJoinExpr(DBRowSet left,
DBRowSet right)
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.
|
DBJoinExpr |
copy(DBCommand newCmd)
Copy Command
|
boolean |
equals(Object obj)
Compares two DBJoinExpr objects.
|
DBDatabase |
getDatabase()
Returns the current DBDatabase object.
|
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.
|
DBRowSet |
getRightTable()
returns the RowSet on the right of 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
Nothing to do here
|
void |
reverse()
This function swaps the left and the right statements of the join expression.
|
void |
setType(DBJoinType type)
alters the join type for this join
|
getType
checkParamNull
public final DBDatabase getDatabase()
getDatabase
in class DBObject
public DBRowSet getLeftTable()
getLeftTable
in class DBJoinExpr
public DBRowSet getRightTable()
getRightTable
in class DBJoinExpr
public boolean isJoinOn(DBRowSet rowset)
isJoinOn
in class DBJoinExpr
public boolean isJoinOn(DBColumn column)
isJoinOn
in class DBJoinExpr
public DBRowSet getOuterTable()
getOuterTable
in class DBJoinExpr
public void setType(DBJoinType type)
setType
in class DBJoinExpr
public void reverse()
reverse
in class DBJoinExpr
public void prepareCommand(DBCommand cmd)
prepareCommand
in class DBJoinExpr
public DBJoinExpr copy(DBCommand newCmd)
copy
in class DBJoinExpr
newCmd
- the new command objectpublic void addReferencedColumns(Set<DBColumn> list)
DBExpr
addReferencedColumns
in class DBExpr
list
- 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.