Package | Description |
---|---|
org.apache.empire.db |
This package contains the core Empire-DB implementation classes.
|
org.apache.empire.db.expr.column |
This package contains SQL-generator classes for column expressions.
|
org.apache.empire.db.expr.compare |
This package contains SQL-generator classes for compare expressions used in the where and having clause.
|
org.apache.empire.db.expr.join |
This package contains SQL-generator classes for join expressions used in the from clause.
|
org.apache.empire.db.oracle |
This package contains classes necessary to support the Oracle database system.
|
Modifier and Type | Field and Description |
---|---|
protected List<DBCompareExpr> |
DBCommand.having |
protected List<DBCompareExpr> |
DBCommand.where |
Modifier and Type | Method and Description |
---|---|
List<DBCompareExpr> |
DBCommand.getWhereConstraints()
Returns a copy of the defined where clauses.
|
Modifier and Type | Method and Description |
---|---|
DBColumnExpr |
DBDatabase.caseWhen(DBCompareExpr condition,
Object trueValue,
Object falseValue)
Creates a case column expression
"case when
|
void |
DBCommand.having(DBCompareExpr expr)
adds a constraint to the having clause.
|
DBCompareJoinExpr |
DBCommand.join(DBRowSet rowset,
DBCompareExpr cmp)
Adds an inner join based on a compare expression to the command.
|
DBCompareJoinExpr |
DBCommand.join(DBRowSet rowset,
DBCompareExpr cmp,
DBJoinType joinType)
Adds a join based on a compare expression to the command.
|
protected void |
DBCommand.setConstraint(List<DBCompareExpr> list,
DBCompareExpr expr)
adds a constraint to the 'where' or 'having' collections
|
DBCaseExpr |
DBColumnExpr.when(DBCompareExpr compExpr,
Object otherwise)
Creates and returns a sql-expression for the SQL case-phrase.
|
void |
DBCommand.where(DBCompareExpr... exprs)
Adds a list of constraints to the where phrase of the sql statement
If another restriction already exists for the same column it will be replaced.
|
void |
DBCommand.where(DBCompareExpr expr)
Adds a constraint to the where phrase of the sql statement
If another restriction already exists for the same column it will be replaced.
|
Modifier and Type | Method and Description |
---|---|
void |
DBCommand.addWhereConstraints(List<DBCompareExpr> constraints)
Adds a list of constraints to the command.
|
protected void |
DBCommand.removeConstraintOn(List<DBCompareExpr> list,
DBColumnExpr col)
removes a constraint on a particular column to the 'where' or 'having' collections
|
protected void |
DBCommand.setConstraint(List<DBCompareExpr> list,
DBCompareExpr expr)
adds a constraint to the 'where' or 'having' collections
|
Constructor and Description |
---|
DBCaseExpr(DBCompareExpr compExpr,
DBColumnExpr trueExpr,
DBColumnExpr elseExpr)
Constructs a DBCaseExpr
|
Modifier and Type | Class and Description |
---|---|
class |
DBCompareAndOrExpr
This class is used for combining two filter constraints by and / or operator
There is no need to explicitly create instances of this class. |
class |
DBCompareColExpr
This class is used for defining filter constraints based on a column expression in SQL
There is no need to explicitly create instances of this class. |
class |
DBCompareNotExpr
This class is used for defining filter constraints based on a column expression in SQL
There is no need to explicitly create instances of this class. |
class |
DBExistsExpr
This class is used for building up the SQL-Command for the EXISTS syntax.
|
class |
DBParenthesisExpr
This class wraps an existing compare expression with parenthesis.
|
Modifier and Type | Field and Description |
---|---|
DBCompareExpr |
DBExistsExpr.compareExpr |
DBCompareExpr |
DBCompareNotExpr.expr |
protected DBCompareExpr |
DBCompareAndOrExpr.left |
protected DBCompareExpr |
DBCompareAndOrExpr.right |
Modifier and Type | Method and Description |
---|---|
DBCompareExpr |
DBCompareAndOrExpr.getLeft() |
DBCompareExpr |
DBCompareAndOrExpr.getRight() |
DBCompareExpr |
DBCompareExpr.not()
Creates a sql-expression for the not() function.
|
DBCompareExpr |
DBCompareAndOrExpr.parenthesis()
wraps the current expression with parenthesis.
|
Modifier and Type | Method and Description |
---|---|
DBCompareAndOrExpr |
DBCompareExpr.and(DBCompareExpr expr)
Creates a new DBCompareAndOrExpr object.
|
boolean |
DBParenthesisExpr.isMutuallyExclusive(DBCompareExpr other) |
boolean |
DBExistsExpr.isMutuallyExclusive(DBCompareExpr other)
Returns wheter the constraint should replace another one or not.
|
boolean |
DBCompareNotExpr.isMutuallyExclusive(DBCompareExpr other)
Returns wheter the constraint should replace another one or not.
|
abstract boolean |
DBCompareExpr.isMutuallyExclusive(DBCompareExpr other) |
boolean |
DBCompareColExpr.isMutuallyExclusive(DBCompareExpr other)
Returns whether the constraint should replace another one or not.
|
boolean |
DBCompareAndOrExpr.isMutuallyExclusive(DBCompareExpr other)
Returns wheter the constraint should replace another one or not.
|
DBCompareAndOrExpr |
DBCompareExpr.or(DBCompareExpr expr)
Create a new DBCompareAndOrExpr object.
|
Constructor and Description |
---|
DBCompareAndOrExpr(DBCompareExpr left,
DBCompareExpr right,
boolean or)
Constructs a DBCompareColExpr object
|
DBCompareNotExpr(DBCompareExpr expr)
Constructs a DBCompareColExpr object
|
DBExistsExpr(DBCommandExpr cmd,
DBCompareExpr compareExpr)
Constructs a DBExistsExpr object set the specified parameters to this object.
|
DBParenthesisExpr(DBCompareExpr wrap) |
Modifier and Type | Field and Description |
---|---|
protected DBCompareExpr |
DBCompareJoinExpr.cmp |
DBCompareExpr |
DBColumnJoinExpr.compExpr |
Modifier and Type | Method and Description |
---|---|
DBCompareExpr |
DBCompareJoinExpr.getJoinConstraint() |
DBCompareExpr |
DBColumnJoinExpr.getWhere()
Returns any additional constraints to the join
|
Modifier and Type | Method and Description |
---|---|
void |
DBColumnJoinExpr.where(DBCompareExpr expr)
This function adds an additional constraint to the join.
|
Constructor and Description |
---|
DBCompareJoinExpr(DBRowSet rset,
DBCompareExpr cmp,
DBJoinType joinType)
Constructs a new DBJoinExprEx
|
Modifier and Type | Field and Description |
---|---|
protected DBCompareExpr |
DBCommandOracle.connectBy |
protected DBCompareExpr |
DBCommandOracle.startWith |
Modifier and Type | Method and Description |
---|---|
void |
DBCommandOracle.connectByPrior(DBCompareExpr expr) |
void |
DBCommandOracle.startWith(DBCompareExpr expr) |
Copyright © 2008–2018 Apache Software Foundation. All rights reserved.