Package org.apache.empire.db.expr.join
Class DBCompareJoinExpr
java.lang.Object
org.apache.empire.db.DBObject
org.apache.empire.db.DBExpr
org.apache.empire.db.expr.join.DBJoinExpr
org.apache.empire.db.expr.join.DBColumnJoinExpr
org.apache.empire.db.expr.join.DBCompareJoinExpr
- All Implemented Interfaces:
DBPreparable
This class is used for building a join expression of an SQL statement.
There is no need to explicitly create instances of this class.
Instead use @link DBCommand.join(DBRowSet, DBCompareExpr, DBJoinType)
-
Field Summary
FieldsFields inherited from class org.apache.empire.db.expr.join.DBColumnJoinExpr
compExpr, left, rightFields inherited from class org.apache.empire.db.expr.join.DBJoinExpr
typeFields inherited from class org.apache.empire.db.DBExpr
CTX_ALIAS, CTX_ALL, CTX_DEFAULT, CTX_FULLNAME, CTX_NAME, CTX_NOPARENTHESIS, CTX_VALUE -
Constructor Summary
ConstructorsConstructorDescriptionDBCompareJoinExpr(DBRowSet rset, DBCompareExpr cmp, DBJoinType joinType) Constructs a new DBJoinExprEx -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSQL(DBSQLBuilder sql, long context) Not allowed, this operation have to be done in the DBCommand object.Copy CommandvoidprepareParams(DBCommand cmd, DBExpr parent) Prepares an expression for a query This function is called by DBCommand in order to add values as query parameters instead of being literally included in the sql statement Please Note: This function is internally called.Methods inherited from class org.apache.empire.db.expr.join.DBColumnJoinExpr
addReferencedColumns, and, and, equals, getDatabase, getLeft, getLeftTable, getOuterTable, getRight, getRightTable, getWhere, isJoinOn, isJoinOn, reverse, toString, whereMethods inherited from class org.apache.empire.db.expr.join.DBJoinExpr
getType, setTypeMethods inherited from class org.apache.empire.db.DBObject
checkParamNull
-
Field Details
-
cmp
-
-
Constructor Details
-
DBCompareJoinExpr
Constructs a new DBJoinExprEx- Parameters:
rset- the rowsetcmp- the compare expressionjoinType- the join type
-
-
Method Details
-
prepareParams
Description copied from interface:DBPreparablePrepares an expression for a query This function is called by DBCommand in order to add values as query parameters instead of being literally included in the sql statement Please Note: This function is internally called. Do not call yourself!- Specified by:
prepareParamsin interfaceDBPreparable- Overrides:
prepareParamsin classDBColumnJoinExpr- Parameters:
cmd- the command to which to add the parametersparent- the parent expression holding the value
-
copy
Copy Command- Overrides:
copyin classDBColumnJoinExpr- Parameters:
newCmd- the new command object- Returns:
- the join expression
-
getJoinConstraint
-
addSQL
Description copied from class:DBColumnJoinExprNot allowed, this operation have to be done in the DBCommand object.- Overrides:
addSQLin classDBColumnJoinExpr- Parameters:
sql- the string buffer used to build the sql commandcontext- context flag for this SQL-Command (see CTX_??? constants).
-