Uses of Class
org.apache.empire.db.expr.compare.DBCompareExpr
Packages that use DBCompareExpr
Package
Description
This package contains the core Empire-DB implementation classes.
This package contains SQL-generator classes for column expressions.
This package contains SQL-generator classes for compare expressions used in the where and having clause.
This package contains SQL-generator classes for join expressions used in the from clause.
This package contains classes necessary to support the Oracle database system.
This package contains classes necessary to support the PostgreSQL database system.
-
Uses of DBCompareExpr in org.apache.empire.db
Fields in org.apache.empire.db with type parameters of type DBCompareExprModifier and TypeFieldDescriptionprotected List<DBCompareExpr>DBCommand.havingprotected List<DBCompareExpr>DBCommand.whereMethods in org.apache.empire.db that return DBCompareExprModifier and TypeMethodDescriptionprotected DBCompareExprDBCommand.findConstraintOn(List<DBCompareExpr> list, DBColumnExpr colExpr) finds a constraint on a particular column to the 'where' or 'having' collectionsprotected DBCompareExprDBRowSet.getKeyConstraints(Object[] key) Set the constraints for a single record from a supplied keyprotected DBCompareExprDBCommand.removeConstraintOn(List<DBCompareExpr> list, DBColumnExpr colExpr) removes a constraint on a particular column to the 'where' or 'having' collectionsDBCommand.removeHavingConstraintOn(DBColumnExpr col) removes a constraint on a particular column from the having clauseDBCommand.removeWhereConstraintOn(DBColumnExpr col) removes a constraint on a particular column from the where clauseMethods in org.apache.empire.db that return types with arguments of type DBCompareExprModifier and TypeMethodDescriptionDBCommand.getHavingConstraints()Returns a copy of the defined having clauses.DBCommand.getWhereConstraints()Returns a copy of the defined where clauses.Methods in org.apache.empire.db with parameters of type DBCompareExprModifier and TypeMethodDescriptionprotected voidDBCommand.appendCompareColExprs(DBRowSet table, DBCompareExpr expr, List<DBCompareColExpr> list) Appends all nested DBCompareColExpr for a particular RowSet to a listDBDatabase.caseWhen(DBCompareExpr condition, Object trueValue, Object falseValue) Creates a SQL case expression in the form "case when [condition] then [trueValue] else [falseValue] end" This is a helper function to simplify client usageDBCommand.having(DBCompareExpr expr) adds a constraint to the having clause.final DBCommandDBCommand.join(DBColumn[] left, DBColumn[] right, DBJoinType joinType, DBCompareExpr... addlConstraints) Multi-Column version of column based join expressionfinal DBCommandDBCommand.join(DBColumnExpr left, DBColumn right, DBJoinType joinType, DBCompareExpr... addlConstraints) Adds a join based on two columns to the list of join expressions.final DBCommandDBCommand.join(DBColumnExpr left, DBColumn right, DBCompareExpr... addlConstraints) Adds an inner join based on two columns to the list of join expressions.final DBCommandDBCommand.join(DBRowSet rowset, DBCompareExpr cmp) Adds an inner join based on a compare expression to the command.final DBCommandDBCommand.join(DBRowSet rowset, DBCompareExpr cmp, DBJoinType joinType) Adds a join based on a compare expression to the command.final DBCommandDBCommand.joinLeft(DBColumnExpr left, DBColumn right, DBCompareExpr... addlConstraints) Adds a left join based on two columns to the list of join expressions.final DBCommandDBCommand.joinRight(DBColumnExpr left, DBColumn right, DBCompareExpr... addlConstraints) Adds a right join based on two columns to the list of join expressions.DBRowSet.on(DBCompareExpr cmp) Creates a join expression based on a compare expressionfinal <T> TDBUtils.queryBean(Class<T> beanType, DBRowSet rowset, DBCompareExpr whereConstraints) Queries a single bean based on a where constraintfinal <T> TDBUtils.queryBean(Class<T> beanType, DBCompareExpr whereConstraints) Queries a single bean based on a where constraintDBRecord.read(DBCompareExpr whereConstraints) Reads a record from the databaseDBRecordBean.read(DBContext context, DBRowSet rowset, DBCompareExpr whereConstraints) Reads a record from the databasevoidDBCommandExpr.DBCmdQuery.readRecord(DBRecordBase record, DBCompareExpr whereConstraints) throws ERR_NOTSUPPORTEDvoidDBQuery.readRecord(DBRecordBase record, DBCompareExpr whereConstraints) Creates a select SQL-Command of the query call the InitRecord method to execute the SQL-Command.voidDBRowSet.readRecord(DBRecordBase record, DBCompareExpr whereConstraints) Reads a record from the databasevoidDBRowSet.readRecord(DBRecordBase record, DBCompareExpr whereConstraints, DBRowSet.PartialMode mode, DBColumn... columns) Reads the partial record for a given primary key from the databaseprotected voidDBCommand.removeCommandParams(DBCompareExpr cmpExpr) internally used to remove the command param used in a constraintprotected booleanDBCommand.removeConstraint(List<DBCompareExpr> list, DBCompareExpr cmpExpr) removes a constraint on a particular column to the 'where' or 'having' collectionsbooleanDBCommand.removeHavingConstraint(DBCompareExpr cmpExpr) removes a constraint on a particular column from the where clausebooleanDBCommand.removeWhereConstraint(DBCompareExpr cmpExpr) removes a constraint on a particular column from the where clauseprotected voidDBCommand.setConstraint(List<DBCompareExpr> list, DBCompareExpr expr) adds a constraint to the 'where' or 'having' collectionsfinal DBCaseExprDBColumnExpr.when(DBCompareExpr compExpr, Object otherwise) Creates and returns a sql-expression for the SQL case-phrase.
The result will be in the form:
"case when [compExpr] then [this] else [otherwise] end"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.final DBCommandDBCommand.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.Method parameters in org.apache.empire.db with type arguments of type DBCompareExprModifier and TypeMethodDescriptionvoidDBCommand.addWhereConstraints(List<DBCompareExpr> constraints) Adds a list of constraints to the command.DBDatabase.caseWhen(Map<DBCompareExpr, ? extends Object> whenMap, Object elseValue) Creates a SQL case expression in the form "case when [mapKey] then [mapValue] else [elseValue] end"protected DBCompareExprDBCommand.findConstraintOn(List<DBCompareExpr> list, DBColumnExpr colExpr) finds a constraint on a particular column to the 'where' or 'having' collectionsprotected voidDBCommand.removeAllCommandParams(List<DBCompareExpr> list) internally used to remove all command params used in a list of constraintsprotected booleanDBCommand.removeConstraint(List<DBCompareExpr> list, DBCompareExpr cmpExpr) removes a constraint on a particular column to the 'where' or 'having' collectionsprotected DBCompareExprDBCommand.removeConstraintOn(List<DBCompareExpr> list, DBColumnExpr colExpr) removes a constraint on a particular column to the 'where' or 'having' collectionsprotected voidDBCommand.setConstraint(List<DBCompareExpr> list, DBCompareExpr expr) adds a constraint to the 'where' or 'having' collections -
Uses of DBCompareExpr in org.apache.empire.db.expr.column
Constructors in org.apache.empire.db.expr.column with parameters of type DBCompareExprModifierConstructorDescriptionDBCaseWhenExpr(DBCompareExpr cmpExpr, Object trueExpr, Object elseValue) Constructor parameters in org.apache.empire.db.expr.column with type arguments of type DBCompareExprModifierConstructorDescriptionDBCaseWhenExpr(DBDatabase db, Map<DBCompareExpr, ? extends Object> whenMap, Object elseValue) Constructs a DBCaseExpr -
Uses of DBCompareExpr in org.apache.empire.db.expr.compare
Subclasses of DBCompareExpr in org.apache.empire.db.expr.compareModifier and TypeClassDescriptionclassThis class is used for combining two filter constraints by and / or operatorclassThis class is used for defining filter constraints based on a column expression in SQLclassThis class is used for defining filter constraints based on a column expression in SQLclassThis class wraps an existing compare expression with parenthesis.classThis class is used for building up the SQL-Command for the EXISTS syntax.Fields in org.apache.empire.db.expr.compare declared as DBCompareExprModifier and TypeFieldDescriptionfinal DBCompareExprDBExistsExpr.compareExprfinal DBCompareExprDBCompareNotExpr.exprprotected final DBCompareExprDBCompareAndOrExpr.leftprotected final DBCompareExprDBCompareAndOrExpr.rightMethods in org.apache.empire.db.expr.compare that return DBCompareExprModifier and TypeMethodDescriptionCopy CommandCopy Commandabstract DBCompareExprinternally used for command cloningCopy CommandCopy CommandDBCompareNotExpr.getExpr()Returns the wrapped expressionDBCompareAndOrExpr.getLeft()DBCompareAndOrExpr.getRight()DBCompareExpr.not()Creates a sql-expression for the not() function.DBCompareAndOrExpr.parenthesis()wraps the current expression with parenthesis.DBCompareParenthesisExpr.unwrap()Methods in org.apache.empire.db.expr.compare with parameters of type DBCompareExprModifier and TypeMethodDescriptionDBCompareExpr.and(DBCompareExpr expr) Creates a new DBCompareAndOrExpr object.booleanDBCompareAndOrExpr.isMutuallyExclusive(DBCompareExpr other) Returns whether the constraint should replace another one or not.booleanDBCompareColExpr.isMutuallyExclusive(DBCompareExpr other) Returns whether the constraint should replace another one or not.abstract booleanDBCompareExpr.isMutuallyExclusive(DBCompareExpr other) booleanDBCompareNotExpr.isMutuallyExclusive(DBCompareExpr other) Returns whether the constraint should replace another one or not.booleanDBCompareParenthesisExpr.isMutuallyExclusive(DBCompareExpr other) booleanDBExistsExpr.isMutuallyExclusive(DBCompareExpr other) Returns wheter the constraint should replace another one or not.DBCompareExpr.or(DBCompareExpr expr) Create a new DBCompareAndOrExpr object.Constructors in org.apache.empire.db.expr.compare with parameters of type DBCompareExprModifierConstructorDescriptionDBCompareAndOrExpr(DBCompareExpr left, DBCompareExpr right, boolean or) Constructs a DBCompareColExpr objectConstructs a DBCompareColExpr objectDBExistsExpr(DBCommandExpr cmd, DBCompareExpr compareExpr) Constructs a DBExistsExpr object set the specified parameters to this object. -
Uses of DBCompareExpr in org.apache.empire.db.expr.join
Fields in org.apache.empire.db.expr.join declared as DBCompareExprModifier and TypeFieldDescriptionprotected final DBCompareExprDBCompareJoinExpr.cmpDBColumnJoinExpr.compExprMethods in org.apache.empire.db.expr.join that return DBCompareExprModifier and TypeMethodDescriptionDBCompareJoinExpr.getJoinConstraint()DBColumnJoinExpr.getWhere()Returns any additional constraints to the joinMethods in org.apache.empire.db.expr.join with parameters of type DBCompareExprModifier and TypeMethodDescriptionDBColumnJoinExpr.and(DBCompareExpr expr) This function adds an additional constraint to the join.voidDBColumnJoinExpr.where(DBCompareExpr expr) This function adds an additional constraint to the join.Constructors in org.apache.empire.db.expr.join with parameters of type DBCompareExprModifierConstructorDescriptionDBColumnJoinExpr(DBColumnExpr left, DBColumnExpr right, DBJoinType type, DBCompareExpr addlConstraint) Constructs a join expression based on two columns or column expressionsDBColumnJoinExpr(DBColumnJoinExpr joinExpr, DBCompareExpr addlConstraint) Copy and concat constructorDBCompareJoinExpr(DBRowSet rset, DBCompareExpr cmp, DBJoinType joinType) Constructs a new DBJoinExprEx -
Uses of DBCompareExpr in org.apache.empire.dbms.oracle
Fields in org.apache.empire.dbms.oracle declared as DBCompareExprModifier and TypeFieldDescriptionprotected DBCompareExprDBCommandOracle.connectByprotected DBCompareExprDBCommandOracle.startWithMethods in org.apache.empire.dbms.oracle with parameters of type DBCompareExprModifier and TypeMethodDescriptionvoidDBCommandOracle.connectByPrior(DBCompareExpr expr) voidDBCommandOracle.startWith(DBCompareExpr expr) -
Uses of DBCompareExpr in org.apache.empire.dbms.postgresql
Subclasses of DBCompareExpr in org.apache.empire.dbms.postgresqlMethods in org.apache.empire.dbms.postgresql that return DBCompareExprMethods in org.apache.empire.dbms.postgresql with parameters of type DBCompareExprModifier and TypeMethodDescriptionprotected voidPostgresBoolAndOrExpr.appendName(StringBuilder buf, DBCompareExpr expr) booleanPostgresAtAt.isMutuallyExclusive(DBCompareExpr other) DBCommandPostgres.pgBoolAnd(DBCompareExpr cmpExpr) See https://www.postgresql.org/docs/current/textsearch-controls.htmlDBCommandPostgres.pgBoolOr(DBCompareExpr cmpExpr) See https://www.postgresql.org/docs/current/textsearch-controls.htmlConstructors in org.apache.empire.dbms.postgresql with parameters of type DBCompareExpr