Uses of Class
org.apache.empire.db.DBSQLBuilder
Packages that use DBSQLBuilder
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 SQL-generator classes for set expressions used in the set clause.
This package contains classes necessary to support the Apache Derby database system.
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 DBSQLBuilder in org.apache.empire.db
Methods in org.apache.empire.db that return DBSQLBuilderModifier and TypeMethodDescriptionDBSQLBuilder.append(char c) DBSQLBuilder.append(double d) DBSQLBuilder.append(long l) DBSQLBuilder.append(CharSequence sqlLiteral) DBSQLBuilder.append(CharSequence sqlLiteral, int start, int end) DBSQLBuilder.append(DBSqlPhrase phrase) protected DBSQLBuilderDBCombinedCmd.createSQLBuilder(String initalSQL) protected DBSQLBuilderDBCommand.createSQLBuilder(String initalSQL) protected DBSQLBuilderDBCommandExpr.createSQLBuilder(String initalSQL) creates a new DBSQLBuilderMethods in org.apache.empire.db with parameters of type DBSQLBuilderModifier and TypeMethodDescriptionprotected voidDBDDLGenerator.addAlterTableStmt(DBColumn col, DBSQLBuilder sql, DBSQLScript script) protected voidDBDDLGenerator.addCreateIndexStmt(DBIndex index, DBSQLBuilder sql, DBSQLScript script) protected voidDBDDLGenerator.addCreateRelationStmt(DBRelation rel, DBSQLBuilder sql, DBSQLScript script) protected voidDBDDLGenerator.addCreateTableStmt(DBTable table, DBSQLBuilder sql, DBSQLScript script) protected voidDBDDLGenerator.addCreateViewStmt(DBView v, DBSQLBuilder sql, DBSQLScript script) protected voidDBCommand.addDeleteForTable(DBSQLBuilder sql, DBRowSet table) protected voidDBCommand.addDeleteWithJoins(DBSQLBuilder sql, DBRowSet table) protected voidDBCommand.addFrom(DBSQLBuilder sql) protected voidDBCommand.addGrouping(DBSQLBuilder sql) protected voidDBCommandExpr.addListExpr(DBSQLBuilder sql, List<? extends DBExpr> list, long context, String separator) Internally used to build a string from a list of database expressionsprotected voidDBCommand.addOrder(DBSQLBuilder sql) protected voidDBCommand.addSelect(DBSQLBuilder sql) voidDBCmdParam.addSQL(DBSQLBuilder sql, long context) voidDBColumn.addSQL(DBSQLBuilder sql, long context) Adds the colunm name to the SQL-Command.voidDBCommandExpr.addSQL(DBSQLBuilder sql, long context) Creates the SQL-Command.voidDBCommandExpr.DBCmdColumn.addSQL(DBSQLBuilder sql, long context) create the SQL-Command set the expression name to the SQL-CommandvoidDBCommandExpr.DBCmdQuery.addSQL(DBSQLBuilder sql, long context) Creates the SQL-Command adds the select statement into the SQL-Command.abstract voidDBExpr.addSQL(DBSQLBuilder sql, long context) Used to build the SQL command.voidDBGeneratedValue.DBFuncGeneratedValue.addSQL(DBSQLBuilder sql, long context) voidDBGeneratedValue.DBTriggerGeneratedValue.addSQL(DBSQLBuilder sql, long context) voidDBQuery.addSQL(DBSQLBuilder sql, long context) Adds the select SQL Command of this object to the specified StringBuilder object.voidDBTable.addSQL(DBSQLBuilder sql, long context) Adds the table's name to the supplied sql command buffer.voidDBView.addSQL(DBSQLBuilder sql, long context) Creates the SQL-Command adds the alias name to the SQL-Command.final voidDBSQLScript.addStmt(DBSQLBuilder sql) Adds a statement to the script.
The supplied StringBuilder will be reset to a length of 0protected voidDBCommand.addUpdateForTable(DBSQLBuilder sql, DBRowSet table) protected voidDBCommand.addUpdateWithJoins(DBSQLBuilder sql, DBRowSet table) protected final voidDBCommand.addWhere(DBSQLBuilder sql) protected voidDBCommand.addWhere(DBSQLBuilder sql, long context) protected booleanDBDDLGenerator.appendColumnDataType(DataType type, double size, DBTableColumn c, DBSQLBuilder sql) appends the data type of a columnprotected voidDBDDLGenerator.appendColumnDesc(DBTableColumn c, boolean alter, DBSQLBuilder sql) Appends a table column definition to a ddl statementprotected voidDBDDLGenerator.appendElementName(DBSQLBuilder sql, String name) protected voidDBDDLGenerator.appendIndexColumn(DBIndex index, DBColumnExpr idxColumn, DBSQLBuilder sql) Appends an column expression to an indexprotected voidDBDDLGenerator.appendIndexType(DBIndex index, DBSQLBuilder sql) Appends the index type when creating an indexvoidDBDatabase.appendQualifiedName(DBSQLBuilder sql, String name, Boolean quoteName) Adds a full qualified object name including schema prefix and database link postfix (if any).voidDBCombinedCmd.getSelect(DBSQLBuilder sql, int flags) Creates the SQL-Command.voidDBCommand.getSelect(DBSQLBuilder sql, int flags) Creates a select SQL-Statementabstract voidDBCommandExpr.getSelect(DBSQLBuilder sql, int flags) returns an SQL select command -
Uses of DBSQLBuilder in org.apache.empire.db.expr.column
Methods in org.apache.empire.db.expr.column with parameters of type DBSQLBuilderModifier and TypeMethodDescriptionvoidDBDecodeExpr.addDecodeParts(DBSQLBuilder sql) final voidDBAbstractFuncExpr.addSQL(DBSQLBuilder sql, String template, Object[] params, long context) Creates the SQL-Command adds a function to the SQL-Command.voidDBAliasExpr.addSQL(DBSQLBuilder sql, long context) Creates the SQL-Command adds the alias name to the SQL-Command.voidDBCalcExpr.addSQL(DBSQLBuilder sql, long context) Creates the SQL-Command adds the mathematical operations for the specified DBColumnExpr object and value to the.voidDBCaseMapExpr.addSQL(DBSQLBuilder sql, long context) voidDBCaseWhenExpr.addSQL(DBSQLBuilder sql, long context) voidDBCmdResultExpr.addSQL(DBSQLBuilder sql, long context) voidDBCoalesceExpr.addSQL(DBSQLBuilder sql, long context) voidDBConcatExpr.addSQL(DBSQLBuilder sql, long context) Creates the SQL-Command concatenate a specified column with a specified value sets the column with a specified value to the SQL-Command.voidDBConcatFuncExpr.addSQL(DBSQLBuilder sql, long context) voidDBConvertExpr.addSQL(DBSQLBuilder sql, long context) voidDBCountExpr.addSQL(DBSQLBuilder sql, long context) Creates the SQL-Command adds the String "count(*)" to the SQL-Command.voidDBDecodeExpr.addSQL(DBSQLBuilder sql, long context) voidDBFuncExpr.addSQL(DBSQLBuilder sql, long context) Creates the SQL-Command adds a function to the SQL-Command.voidDBParenthesisExpr.addSQL(DBSQLBuilder sql, long context) Creates the SQL-Command adds the alias name to the SQL-Command.voidDBScalarExpr.addSQL(DBSQLBuilder sql, long context) Creates the SQL-Command.voidDBValueExpr.addSQL(DBSQLBuilder sql, long context) Creates the SQL-Command.voidDBVarArgsFuncExpr.addSQL(DBSQLBuilder sql, long context) -
Uses of DBSQLBuilder in org.apache.empire.db.expr.compare
Methods in org.apache.empire.db.expr.compare with parameters of type DBSQLBuilderModifier and TypeMethodDescriptionvoidDBCompareColExpr.addCompareExpr(DBSQLBuilder sql, long context) Add the comparison operator and value to the SQL-Command.voidDBCompareAndOrExpr.addSQL(DBSQLBuilder sql, long context) Creates the SQL-Command sets the specified compare value (the varible boolOP) between the two DBCompareExpr objects.voidDBCompareColExpr.addSQL(DBSQLBuilder sql, long context) Creates the SQL-Command.voidDBCompareNotExpr.addSQL(DBSQLBuilder sql, long context) Creates the SQL-Command sets the specified compare value (the varible boolOP) between the two DBCompareExpr objects.voidDBCompareParenthesisExpr.addSQL(DBSQLBuilder sql, long context) voidDBExistsExpr.addSQL(DBSQLBuilder sql, long context) Creates the SQL-Command. -
Uses of DBSQLBuilder in org.apache.empire.db.expr.join
Methods in org.apache.empire.db.expr.join with parameters of type DBSQLBuilderModifier and TypeMethodDescriptionvoidDBColumnJoinExpr.addSQL(DBSQLBuilder sql, long context) Not allowed, this operation have to be done in the DBCommand object.voidDBCompareJoinExpr.addSQL(DBSQLBuilder sql, long context) voidDBCrossJoinExpr.addSQL(DBSQLBuilder sql, long context) Not allowed, this operation have to be done in the DBCommand object. -
Uses of DBSQLBuilder in org.apache.empire.db.expr.order
Methods in org.apache.empire.db.expr.order with parameters of type DBSQLBuilderModifier and TypeMethodDescriptionvoidDBOrderByExpr.addSQL(DBSQLBuilder sql, long context) Adds a column expression to the orderBy clause followed by the desc keyword if the order should be descending -
Uses of DBSQLBuilder in org.apache.empire.db.expr.set
Methods in org.apache.empire.db.expr.set with parameters of type DBSQLBuilderModifier and TypeMethodDescriptionvoidDBSetExpr.addSQL(DBSQLBuilder sql, long context) Creates the SQL-Command. -
Uses of DBSQLBuilder in org.apache.empire.dbms
Subclasses of DBSQLBuilder in org.apache.empire.dbmsModifier and TypeClassDescriptionstatic final classDBMSBuilder A Default DBSQLBuilder implementation with no additional featuresMethods in org.apache.empire.dbms that return DBSQLBuilderModifier and TypeMethodDescriptionDBMSHandler.createSQLBuilder()This function creates a DBSQLBuilder for this DBMSDBMSHandlerBase.createSQLBuilder()This function creates a DBSQLBuilder for this DBMSMethods in org.apache.empire.dbms with parameters of type DBSQLBuilderModifier and TypeMethodDescriptionvoidDBMSHandler.appendObjectName(DBSQLBuilder sql, String name, Boolean useQuotes) Appends a table, view or column name to an SQL phrase.voidDBMSHandlerBase.appendObjectName(DBSQLBuilder sql, String name, Boolean useQuotes) Appends a table, view or column name to an SQL phrase. -
Uses of DBSQLBuilder in org.apache.empire.dbms.derby
Methods in org.apache.empire.dbms.derby with parameters of type DBSQLBuilderModifier and TypeMethodDescriptionprotected booleanDerbyDDLGenerator.appendColumnDataType(DataType type, double size, DBTableColumn c, DBSQLBuilder sql) protected voidDerbyDDLGenerator.appendColumnDesc(DBTableColumn c, boolean alter, DBSQLBuilder sql) -
Uses of DBSQLBuilder in org.apache.empire.dbms.h2
Methods in org.apache.empire.dbms.h2 with parameters of type DBSQLBuilderModifier and TypeMethodDescriptionprotected booleanH2DDLGenerator.appendColumnDataType(DataType type, double size, DBTableColumn c, DBSQLBuilder sql) voidDBMSHandlerH2.DBCommandH2.getSelect(DBSQLBuilder sql, int flags) -
Uses of DBSQLBuilder in org.apache.empire.dbms.hsql
Methods in org.apache.empire.dbms.hsql with parameters of type DBSQLBuilderModifier and TypeMethodDescriptionprotected voidDBCommandHSql.addUpdateWithJoins(DBSQLBuilder sql, DBRowSet table) voidDBCommandHSql.getSelect(DBSQLBuilder sql, int flags) -
Uses of DBSQLBuilder in org.apache.empire.dbms.mysql
Subclasses of DBSQLBuilder in org.apache.empire.dbms.mysqlModifier and TypeClassDescriptionstatic classProvides a DBSQLBuilder implementation for MySQLMethods in org.apache.empire.dbms.mysql that return DBSQLBuilderModifier and TypeMethodDescriptionDBMSHandlerMySQL.createSQLBuilder()Creates a new MySQL SQL-Builder.Methods in org.apache.empire.dbms.mysql with parameters of type DBSQLBuilderModifier and TypeMethodDescriptionprotected voidDBMSHandlerMySQL.DBCommandMySQL.addDeleteWithJoins(DBSQLBuilder sql, DBRowSet table) protected booleanMySQLDDLGenerator.appendColumnDataType(DataType type, double size, DBTableColumn c, DBSQLBuilder sql) voidDBMSHandlerMySQL.DBCommandMySQL.getSelect(DBSQLBuilder sql, int flags) -
Uses of DBSQLBuilder in org.apache.empire.dbms.oracle
Methods in org.apache.empire.dbms.oracle with parameters of type DBSQLBuilderModifier and TypeMethodDescriptionprotected voidOracleDDLGenerator.addCreateIndexStmt(DBIndex index, DBSQLBuilder sql, DBSQLScript script) protected voidOracleDDLGenerator.addCreateTableStmt(DBTable table, DBSQLBuilder sql, DBSQLScript script) protected voidOracleDDLGenerator.addCreateViewStmt(DBView v, DBSQLBuilder sql, DBSQLScript script) protected voidDBCommandOracle.addDeleteForTable(DBSQLBuilder sql, DBRowSet table) protected voidDBCommandOracle.addDeleteWithJoins(DBSQLBuilder sql, DBRowSet table) voidOracleRowNumExpr.addSQL(DBSQLBuilder sql, long context) Creates the SQL-Command.protected voidDBCommandOracle.addUpdateForTable(DBSQLBuilder sql, DBRowSet table) protected voidDBCommandOracle.addUpdateWithJoins(DBSQLBuilder sql, DBRowSet table) protected booleanOracleDDLGenerator.appendColumnDataType(DataType type, double size, DBTableColumn c, DBSQLBuilder sql) protected voidOracleDDLGenerator.appendColumnDesc(DBTableColumn c, boolean alter, DBSQLBuilder sql) protected voidOracleDDLGenerator.appendIndexColumn(DBIndex index, DBColumnExpr idxColumn, DBSQLBuilder sql) voidDBCommandOracle.getSelect(DBSQLBuilder sql, int flags) Creates an Oracle specific select statement that supports special features of the Oracle DBMS like e.g. -
Uses of DBSQLBuilder in org.apache.empire.dbms.postgresql
Methods in org.apache.empire.dbms.postgresql with parameters of type DBSQLBuilderModifier and TypeMethodDescriptionvoidPostgresAtAt.addSQL(DBSQLBuilder sql, long context) voidPostgresBoolAndOrExpr.addSQL(DBSQLBuilder sql, long context) voidPostgresFuncExpr.addSQL(DBSQLBuilder sql, long context) Creates the SQL-Command adds a function to the SQL-Command.voidPostgresIntervalExpr.addSQL(DBSQLBuilder sql, long context) protected voidDBCommandPostgres.addUpdateWithJoins(DBSQLBuilder sql, DBRowSet table) protected booleanPostgresDDLGenerator.appendColumnDataType(DataType type, double size, DBTableColumn c, DBSQLBuilder sql) protected voidPostgresDDLGenerator.appendColumnDesc(DBTableColumn c, boolean alter, DBSQLBuilder sql) voidDBCommandPostgres.getSelect(DBSQLBuilder sql, int flags) -
Uses of DBSQLBuilder in org.apache.empire.dbms.sqlserver
Subclasses of DBSQLBuilder in org.apache.empire.dbms.sqlserverModifier and TypeClassDescriptionstatic classProvides a DBSQLBuilder implementation for Microsoft SQL-ServerMethods in org.apache.empire.dbms.sqlserver that return DBSQLBuilderModifier and TypeMethodDescriptionDBMSHandlerMSSQL.createSQLBuilder()Creates a new Microsoft SQL-Server SQL-Builder.Methods in org.apache.empire.dbms.sqlserver with parameters of type DBSQLBuilderModifier and TypeMethodDescriptionprotected voidMSSqlDDLGenerator.addCreateIndexStmt(DBIndex index, DBSQLBuilder sql, DBSQLScript script) protected voidMSSqlDDLGenerator.addCreateViewStmt(DBView v, DBSQLBuilder sql, DBSQLScript script) protected voidDBMSHandlerMSSQL.DBCommandMSSQL.addSelect(DBSQLBuilder sql) protected booleanMSSqlDDLGenerator.appendColumnDataType(DataType type, double size, DBTableColumn c, DBSQLBuilder sql) protected voidMSSqlDDLGenerator.appendIndexType(DBIndex index, DBSQLBuilder sql) voidDBMSHandlerMSSQL.DBCommandMSSQL.getSelect(DBSQLBuilder sql, int flags)