public abstract class DBJoinExpr extends DBExpr implements DBPreparable
| Modifier and Type | Field and Description |
|---|---|
protected DBJoinType |
type |
CTX_ALIAS, CTX_ALL, CTX_DEFAULT, CTX_FULLNAME, CTX_NAME, CTX_NOPARENTHESIS, CTX_VALUE| Modifier | Constructor and Description |
|---|---|
protected |
DBJoinExpr(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 |
|---|---|
abstract DBJoinExpr |
copy(DBCommand newCmd)
Copy Command
|
abstract DBRowSet |
getLeftTable()
returns the RowSet on the left of the join
|
abstract DBRowSet |
getOuterTable()
Returns the left table name if the data type= JOIN_LEFT and returns
the right table if the data type= JOIN_RIGHT.
|
abstract DBRowSet |
getRightTable()
returns the RowSet on the right of the join
|
DBJoinType |
getType()
returns the join type for this join
|
abstract boolean |
isJoinOn(DBColumn column)
returns true if this join is using the given column or false otherwise
|
abstract boolean |
isJoinOn(DBRowSet rowset)
returns true if this join is using the given table or view or false otherwise
|
abstract 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
|
addReferencedColumns, addSQLcheckParamNull, getDatabaseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprepareParamsprotected DBJoinType type
protected DBJoinExpr(DBJoinType type)
type - the join type (JOIN_INNER, JOIN_LEFT or JOIN_RIGHT)public DBJoinType getType()
public void setType(DBJoinType type)
type - the join typepublic abstract DBRowSet getLeftTable()
public abstract DBRowSet getRightTable()
public abstract boolean isJoinOn(DBRowSet rowset)
rowset - the rowset to checkpublic abstract boolean isJoinOn(DBColumn column)
column - the column to checkpublic abstract DBRowSet getOuterTable()
public abstract void reverse()
public abstract DBJoinExpr copy(DBCommand newCmd)
newCmd - the new command objectCopyright © 2008–2023 Apache Software Foundation. All rights reserved.