Uses of Class
org.apache.empire.db.DBCommandExpr
Packages that use DBCommandExpr
Package
Description
This package contains the core Empire-DB implementation classes.
This package contains classes for exception handling of database related errors.
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 classes necessary to support the H2 database system.
This package contains classes necessary to support the HSQLDB database system.
This package contains classes necessary to support the MySQL database system.
This package contains classes necessary to support the Oracle database system.
This package contains classes necessary to support the PostgreSQL database system.
This package contains classes necessary to support the Microsoft SQL-Server database system.
-
Uses of DBCommandExpr in org.apache.empire.db
Subclasses of DBCommandExpr in org.apache.empire.dbModifier and TypeClassDescriptionclassThis class is used for combining two DBCommandExpr objects to a new single DBCommandExpr This may be used to create "UNION" or "INTERSECT" queriesclassThis abstract class handles the creation of the SQL-Commands.Fields in org.apache.empire.db declared as DBCommandExprModifier and TypeFieldDescriptionprotected final DBCommandExprDBQuery.cmdExprprotected DBCommandExprDBCombinedCmd.leftprotected DBCommandExprDBCombinedCmd.rightMethods in org.apache.empire.db that return DBCommandExprModifier and TypeMethodDescriptionDBCommandExpr.clone()Creates a clone of this class.abstract DBCommandExprDBView.createCommand()Returns the command required to create the view
This is function is only used for the creation of DDL statementsDBQuery.getCommandExpr()returns the underlying command expressionDBCommandExpr.intersect(DBCommandExpr other) Constructs a new DBCombinedCmd object with this object, the key word= "INTERSECT" and the selected DBCommandExpr.DBCommandExpr.limitRows(int numRows) set the maximum number of rows to return when executing a query command A negative value will remove the limit.DBCombinedCmd.orderBy(DBOrderByExpr... exprs) DBCommandExpr.orderBy(DBColumnExpr... exprs) Adds a list of columns to the orderBy clause in ascending orderDBCommandExpr.orderBy(DBColumnExpr expr, boolean desc) Adds an order by with ascending or descending orderDBCommandExpr.orderBy(DBOrderByExpr... exprs) Adds an order by expression the commandDBCommandExpr.orderByUpper(DBColumnExpr... exprs) Adds a list of columns to the orderBy clause in ascending orderDBCommandExpr.orderByUpper(DBColumnExpr expr, boolean desc) Adds a case insensitive order by with ascending or descending orderDBCommandExpr.skipRows(int numRows) sets the offset of the first row to return when executing a query command.DBCommandExpr.union(DBCommandExpr other) Constructs a new DBCombinedCmd object with this object, the key word= "UNION" and the selected DBCommandExpr.DBCommandExpr.unionAll(DBCommandExpr other) Constructs a new DBCombinedCmd object with this object, the key word= "UNION ALL" and the selected DBCommandExpr.Methods in org.apache.empire.db with parameters of type DBCommandExprModifier and TypeMethodDescriptionvoidDBSQLBuilder.append(DBCommandExpr subQueryCmd) protected DataListHeadDBUtils.createDefaultDataListHead(DBCommandExpr cmd, Class<? extends DataListEntry> entryClass) Crates a default DataListHead for a DataListEntry class<T> DBBeanListFactory<T>DBUtils.getCommandBeanListFactory(Class<T> beanType, DBCommandExpr cmd) gets or creates DBBeanListFactory for the given rowsetvoidDBReader.getRecordData(DBCommandExpr cmd) Opens the reader by executing the given SQL command and moves to the first row.
If true is returned data of the row can be accessed through the functions on the RecordData interface.
This function is intended for single row queries and provided for convenience.
However it behaves exacly as calling reader.open() and reader.moveNext()protected voidDBUtils.handleQueryNoResult(DBCommandExpr cmd, Class<?> resultType) Called when a query has no resultDBCommandExpr.intersect(DBCommandExpr other) Constructs a new DBCombinedCmd object with this object, the key word= "INTERSECT" and the selected DBCommandExpr.final voidDBReader.open(DBCommandExpr cmd) Opens the reader by executing the given SQL command.voidDBReader.open(DBCommandExpr cmd, boolean scrollable) Opens the reader by executing the given SQL command.
After the reader is open, the reader's position is before the first record.
Use moveNext or iterator() to step through the rows.
Data of the current row can be accessed through the functions on the RecordData interface.<T> TDBUtils.queryBean(DBCommandExpr cmd, Class<T> beanType) Queries a single Java Bean for a given command<T> TDBUtils.queryBean(DBCommandExpr cmd, DBBeanListFactory<T> factory) queries a single Java Bean for a given command<T> List<T>DBUtils.queryBeanList(DBCommandExpr cmd, Class<T> beanType, Object parent) Queries a list of Java beans for a given command<T> List<T>DBUtils.queryBeanList(DBCommandExpr cmd, Class<T> beanType, DBRowSet rowset, Object parent) Queries a list of Java beans for a given commandfinal <T> List<T>DBUtils.queryBeanList(DBCommandExpr cmd, DBBeanListFactory<T> factory, Object parent) Queries a list of Java beans for a given command<T> List<T>DBUtils.queryBeanList(DBCommandExpr cmd, DBBeanListFactory<T> factory, Object parent, int first, int pageSize) Query a list of simple Java objects (beans)final DataListEntryDBUtils.queryDataEntry(DBCommandExpr cmd) Queries a single DataListEntry itemfinal <T extends DataListEntry>
TDBUtils.queryDataEntry(DBCommandExpr cmd, Class<T> entryClass) Queries a single DataListEntry itemfinal <T extends DataListEntry>
TDBUtils.queryDataEntry(DBCommandExpr cmd, Class<T> entryClass, boolean failOnNoResult) Deprecated.final <T extends DataListEntry>
TDBUtils.queryDataEntry(DBCommandExpr cmd, Class<T> entryClass, DataListHead head) Queries a single DataListEntry itemfinal List<DataListEntry>DBUtils.queryDataList(DBCommandExpr cmd) Queries a list of DataListEntry itemsfinal List<DataListEntry>DBUtils.queryDataList(DBCommandExpr cmd, int first, int maxItems) Queries a list of DataListEntry itemsfinal <T extends DataListEntry>
List<T>DBUtils.queryDataList(DBCommandExpr cmd, Class<T> entryClass) Queries a list of DataListEntry itemsfinal <T extends DataListEntry>
List<T>DBUtils.queryDataList(DBCommandExpr cmd, Class<T> entryClass, int first, int maxItems) Queries a list of DataListEntry itemsfinal <T extends DataListEntry>
List<T>DBUtils.queryDataList(DBCommandExpr cmd, Class<T> entryClass, DataListHead head) Queries a list of DataListEntry items<T extends DataListEntry>
List<T>DBUtils.queryDataList(DBCommandExpr cmd, DataListFactory<T> factory, int first, int pageSize) Executes a query and returns a list of DataListEntry itemsDBUtils.queryObjectList(DBCommandExpr cmd) Returns the result of a query as a list Object-Arrays This function should only be used for small lists.final OptionsDBUtils.queryOptionList(DBCommandExpr cmd) Returns a list of key value pairs from an sql query.final intDBUtils.queryOptionList(DBCommandExpr cmd, Options options) Fills an option list provided with the result from a query.final <T> List<T>DBUtils.querySimpleList(Class<T> c, DBCommandExpr cmd) Returns a one dimensional array from an sql query.final <T> intDBUtils.querySimpleList(Class<T> c, DBCommandExpr cmd, Collection<T> result) Adds the first column of a query result to a collection.DBUtils.querySimpleList(DBCommandExpr cmd) Returns a one dimensional array from an sql query.final intDBUtils.querySingleInt(DBCommandExpr cmd) Returns the value of the first row/column of a sql-query as an int.final intDBUtils.querySingleInt(DBCommandExpr cmd, int defaultValue) Returns the value of the first row/column of a sql-query as an int.final longDBUtils.querySingleLong(DBCommandExpr cmd) Returns the value of the first row/column of a sql-query as a long.final longDBUtils.querySingleLong(DBCommandExpr cmd, long defaultValue) Returns the value of the first row/column of a sql-query as a long.final Object[]DBUtils.querySingleRow(DBCommandExpr cmd) Returns all values of the first row of a sql-query as an array.final Object[]DBUtils.querySingleRow(DBCommandExpr cmd, boolean failOnNoResult) Returns all values of the first row of a sql-query as an array.final StringDBUtils.querySingleString(DBCommandExpr cmd) Returns the value of the first row/column of a sql-query as a string.final StringDBUtils.querySingleString(DBCommandExpr cmd, String defaultValue) Returns the value of the first row/column of a sql-query as a string.final ObjectDBUtils.querySingleValue(DBCommandExpr cmd) Returns the value of the first row/column of a sql-query as an object.final ObjectDBUtils.querySingleValue(DBCommandExpr cmd, boolean failOnNoResult) Returns the value of the first row/column of a sql-query as an object.final <T> TDBUtils.querySingleValue(DBCommandExpr cmd, Class<T> resultType, boolean failOnNoResult) Returns the value of the first row/column of a sql-query as an object.DBCommandExpr.union(DBCommandExpr other) Constructs a new DBCombinedCmd object with this object, the key word= "UNION" and the selected DBCommandExpr.DBCommandExpr.unionAll(DBCommandExpr other) Constructs a new DBCombinedCmd object with this object, the key word= "UNION ALL" and the selected DBCommandExpr.Constructors in org.apache.empire.db with parameters of type DBCommandExprModifierConstructorDescriptionDBCmdQuery(DBCommandExpr cmd, DBDatabase db, DBColumnExpr[] exprList) Creates a new DBCmdQueryObjectDBCombinedCmd(DBCommandExpr left, String keyWord, DBCommandExpr right) Constructs a new DBFuncExpr object and sets the specified parameters to this object.DBQuery(DBCommandExpr cmd) Creates a DBQuery object from a given command object.DBQuery(DBCommandExpr cmd, String alias) Creates a DBQuery object from a given command object.DBQuery(DBCommandExpr cmd, DBColumn keyColumn) Constructs a new DBQuery object initialize the query object.DBQuery(DBCommandExpr cmd, DBColumn[] keyColumns) Constructor initializes the query object.DBQuery(DBCommandExpr cmd, DBColumn[] keyColumns, String alias) Constructor initializes the query object.DBQuery(DBCommandExpr cmd, DBColumn keyColumn, String alias) Constructs a new DBQuery object initialize the query object. -
Uses of DBCommandExpr in org.apache.empire.db.exceptions
Constructors in org.apache.empire.db.exceptions with parameters of type DBCommandExpr -
Uses of DBCommandExpr in org.apache.empire.db.expr.column
Constructors in org.apache.empire.db.expr.column with parameters of type DBCommandExpr -
Uses of DBCommandExpr in org.apache.empire.db.expr.compare
Fields in org.apache.empire.db.expr.compare declared as DBCommandExprConstructors in org.apache.empire.db.expr.compare with parameters of type DBCommandExprModifierConstructorDescriptionConstructs a DBExistsExpr object set the specified parameters to this object.DBExistsExpr(DBCommandExpr cmd, DBCompareExpr compareExpr) Constructs a DBExistsExpr object set the specified parameters to this object. -
Uses of DBCommandExpr in org.apache.empire.db.list
Methods in org.apache.empire.db.list with parameters of type DBCommandExprModifier and TypeMethodDescriptionvoidDBBeanListFactory.prepareQuery(DBCommandExpr cmd, DBContext context) voidDBBeanListFactoryImpl.prepareQuery(DBCommandExpr cmd, DBContext context) -
Uses of DBCommandExpr in org.apache.empire.dbms
Subclasses of DBCommandExpr in org.apache.empire.dbmsModifier and TypeClassDescriptionstatic final classDBMSCommand A Default DBCommand implementation with no additional featuresMethods in org.apache.empire.dbms that return DBCommandExprModifier and TypeMethodDescriptionDBMSHandler.createCombinedCommand(DBCommandExpr left, String keyWord, DBCommandExpr right) This function gives the dbms a chance to provide a custom implementation for a combined command such as UNION or INTERSECTDBMSHandlerBase.createCombinedCommand(DBCommandExpr left, String keyWord, DBCommandExpr right) This function gives the dbms a chance to provide a custom implementation for a combined command such as UNION or INTERSECTMethods in org.apache.empire.dbms with parameters of type DBCommandExprModifier and TypeMethodDescriptionDBMSHandler.createCombinedCommand(DBCommandExpr left, String keyWord, DBCommandExpr right) This function gives the dbms a chance to provide a custom implementation for a combined command such as UNION or INTERSECTDBMSHandlerBase.createCombinedCommand(DBCommandExpr left, String keyWord, DBCommandExpr right) This function gives the dbms a chance to provide a custom implementation for a combined command such as UNION or INTERSECT -
Uses of DBCommandExpr in org.apache.empire.dbms.h2
Subclasses of DBCommandExpr in org.apache.empire.dbms.h2Modifier and TypeClassDescriptionstatic classDefines the H2 command type. -
Uses of DBCommandExpr in org.apache.empire.dbms.hsql
Subclasses of DBCommandExpr in org.apache.empire.dbms.hsqlModifier and TypeClassDescriptionclassThis class handles the special features of an HSqlDB database. -
Uses of DBCommandExpr in org.apache.empire.dbms.mysql
Subclasses of DBCommandExpr in org.apache.empire.dbms.mysqlModifier and TypeClassDescriptionstatic classDefines the MySQL command type.Methods in org.apache.empire.dbms.mysql that return DBCommandExprModifier and TypeMethodDescriptionDBMSHandlerMySQL.createCombinedCommand(DBCommandExpr left, String keyWord, DBCommandExpr right) Methods in org.apache.empire.dbms.mysql with parameters of type DBCommandExprModifier and TypeMethodDescriptionDBMSHandlerMySQL.createCombinedCommand(DBCommandExpr left, String keyWord, DBCommandExpr right) -
Uses of DBCommandExpr in org.apache.empire.dbms.oracle
Subclasses of DBCommandExpr in org.apache.empire.dbms.oracleModifier and TypeClassDescriptionclassThis class handles the special features of an oracle database. -
Uses of DBCommandExpr in org.apache.empire.dbms.postgresql
Subclasses of DBCommandExpr in org.apache.empire.dbms.postgresql -
Uses of DBCommandExpr in org.apache.empire.dbms.sqlite
Subclasses of DBCommandExpr in org.apache.empire.dbms.sqliteModifier and TypeClassDescriptionstatic classDefines the SQLite command type. -
Uses of DBCommandExpr in org.apache.empire.dbms.sqlserver
Subclasses of DBCommandExpr in org.apache.empire.dbms.sqlserverModifier and TypeClassDescriptionstatic classProvides a DBCommand implementation for Microsoft SQL-Server