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.expr.order | |
org.apache.empire.db.list | |
org.apache.empire.dbms | |
org.apache.empire.dbms.derby |
This package contains classes necessary to support the Apache Derby database system.
|
org.apache.empire.dbms.h2 |
This package contains classes necessary to support the H2 database system.
|
org.apache.empire.dbms.hsql |
This package contains classes necessary to support the HSQLDB database system.
|
org.apache.empire.dbms.mysql |
This package contains classes necessary to support the MySQL database system.
|
org.apache.empire.dbms.oracle |
This package contains classes necessary to support the Oracle database system.
|
org.apache.empire.dbms.postgresql |
This package contains classes necessary to support the PostgreSQL database system.
|
org.apache.empire.dbms.sqlite | |
org.apache.empire.dbms.sqlserver |
This package contains classes necessary to support the Microsoft SQL-Server database system.
|
Modifier and Type | Class and Description |
---|---|
class |
DBColumn
This is the base class for all database columns that have a physical representation.
|
protected static class |
DBCommandExpr.DBCmdColumn
This class wraps a column of sql command in a special command column object.
|
protected static class |
DBQuery.DBQueryExprColumn
DBQueryExprColumn
|
class |
DBQueryColumn |
class |
DBTableColumn
This class represent one column of a table.
|
static class |
DBView.DBViewColumn
DBViewColumn
|
Modifier and Type | Field and Description |
---|---|
protected DBColumnExpr |
DBView.DBViewColumn.expr |
protected DBColumnExpr |
DBQueryColumn.expr |
Modifier and Type | Field and Description |
---|---|
protected List<DBColumnExpr> |
DBCommand.groupBy |
protected List<DBColumnExpr> |
DBCommand.select |
Modifier and Type | Method and Description |
---|---|
<T extends DBColumnExpr> |
DBColumnExpr.setAttribute(String name,
Object value)
Sets the value of a column attribute.
|
<T extends DBColumnExpr> |
DBColumnExpr.setBeanPropertyName(String propertyName)
Sets the Java bean property name for this column.
|
<T extends DBColumnExpr> |
DBColumnExpr.setControlType(String controlType)
Sets the controlType attribute.
|
<T extends DBColumnExpr> |
DBColumnExpr.setOptions(Options options)
Sets the options for this column indicating all valid values.
|
<T extends DBColumnExpr> |
DBColumnExpr.setTitle(String title)
Sets the title attribute.
|
Modifier and Type | Method and Description |
---|---|
DBColumnExpr |
DBColumnExpr.abs()
Creates and returns a sql-expression for the absolute abs() function.
|
DBColumnExpr |
DBColumnExpr.aggregate(String template,
DataType returnType,
Object... params)
Creates and returns a function from an sql template
The template may consist of the following placeholders:
?
|
DBColumnExpr |
DBColumnExpr.append(Object value)
Creates a new DBConcatExpr object with the specified value.
|
DBColumnExpr |
DBColumnExpr.as(DBColumn column)
creates a new DBAliasExpr which renames the current expression to the name of the supplied column.
|
DBColumnExpr |
DBColumnExpr.as(String alias)
creates a new DBAliasExpr which renames the current expression to the supplied name.
|
DBColumnExpr |
DBColumnExpr.avg()
Creates and returns an aggregation function object
which returns the average value for the current expression over a group of rows.
|
DBColumnExpr |
DBColumnExpr.ceiling()
Create and returns an expression for the SQL-function ceil()
|
DBColumnExpr |
DBColumnExpr.coalesce(Object nullValue)
Creates a sql-expression for the nvl() or coalesce() function.
|
DBColumnExpr |
DBColumnExpr.concat(DBColumnExpr... concatExprs)
concatenates a list of expressions to the current column
|
DBColumnExpr |
DBColumnExpr.concat(String separator,
DBColumnExpr... concatExprs)
concatenates a list of expressions to the current column
|
DBColumnExpr |
DBColumnExpr.convertTo(DataType dataType)
Creates and returns a new DBFuncExpr object that will
convert the current column to the destination data type specified.
|
DBColumnExpr |
DBColumnExpr.convertTo(DataType dataType,
Object format)
Creates a new DBFuncExpr object that will convert
the current column to the destination data type specified.
|
DBColumnExpr |
DBRowSet.count()
Returns a new DBCountExpr object.
|
DBColumnExpr |
DBColumnExpr.count()
Creates and returns an expression for the SQL "count()" function
which returns the number of rows in the result set.
|
DBColumnExpr |
DBColumnExpr.countDistinct()
Creates and returns an expression for the SQL "count()" function
which returns the number of unique values in the result set.
|
DBColumnExpr |
DBColumnExpr.day()
Creates and returns an function object that
calculates the day of a date value.
|
DBColumnExpr |
DBColumnExpr.decode(Map<?,?> valueMap,
Object otherwise)
Creates and returns a sql-expression that compares the current column expression with
a list of values and returns the corresponding alternative value.
|
DBColumnExpr |
DBColumnExpr.decode(Object key1,
Object value1,
Object otherwise) |
DBColumnExpr |
DBColumnExpr.decode(Object key1,
Object value1,
Object key2,
Object value2,
Object otherwise) |
DBColumnExpr |
DBColumnExpr.decode(Object key1,
Object value1,
Object key2,
Object value2,
Object key3,
Object value3,
Object otherwise) |
DBColumnExpr |
DBColumnExpr.decode(Options options) |
DBColumnExpr |
DBColumnExpr.decode(Options options,
Object otherwise) |
DBColumnExpr |
DBColumn.decodeEnum()
Creates and returns a sql-expression that maps enum values by name or ordinal to their string representation
|
DBColumnExpr |
DBColumnExpr.decodeEnum(Class<? extends Enum<?>> enumType,
String otherwise)
Creates and returns a sql-expression that maps enum values by name or ordinal to their string representation
|
DBColumnExpr |
DBColumn.decodeSort(boolean defaultToEnd)
Creates and returns a sql-expression that maps enum values from name to ordinal
|
DBColumnExpr |
DBColumnExpr.decodeSort(Class<? extends Enum<?>> enumType,
boolean defaultToEnd)
Creates and returns a sql-expression that maps enum values from name to ordinal
This is useful for sorting.
|
DBColumnExpr |
DBColumnExpr.floor()
Create and returns an expression for the SQL-function floor()
|
DBColumnExpr |
DBColumnExpr.format(String format)
Formats a column-expression using a format string
This function is intended for formatting numbers.
|
DBColumnExpr |
DBColumnExpr.function(String template,
DataType returnType,
Object... params)
Creates and returns a function from an sql template
The template may consist of the following placeholders:
?
|
protected DBColumnExpr |
DBCommandExpr.getCmdColumn(DBColumnExpr col)
wraps a column expression such that is specific for to this command and detached from its source.
|
DBColumnExpr |
DBReader.getColumn(int iColumn)
Get the column Expression at position
|
protected DBColumnExpr |
DBRowSet.getColumnExprAt(int index)
Returns the column expression at a given column index
Allow overrides in derived classes
|
protected DBColumnExpr |
DBQuery.getColumnExprAt(int index) |
protected DBColumnExpr[] |
DBReader.getColumnExprList()
Access the column expression list
|
DBColumnExpr |
DBQueryColumn.getExpr() |
protected DBColumnExpr |
DBColumnExpr.getExprFromPhrase(DBSqlPhrase phrase,
Object[] params) |
protected DBColumnExpr |
DBColumnExpr.getExprFromPhrase(DBSqlPhrase phrase,
Object[] params,
DataType dataType)
Creates a new DBFuncExpr from a given SQL-PRHASE and
optional additional parameters.
|
abstract DBColumnExpr[] |
DBCommandExpr.getSelectExprList()
Returns the list of all select expressions as an array
Used internally only
|
DBColumnExpr[] |
DBCommand.getSelectExprList()
Returns an array of all select expressions
|
DBColumnExpr[] |
DBCombinedCmd.getSelectExprList()
Calls the method dbDBCommandExpr.getSelectExprList from the private variable 'left'.
|
DBColumnExpr |
DBView.DBViewColumn.getSourceColumnExpr() |
DBColumnExpr |
DBColumnExpr.indexOf(Object str)
Creates and returns a sql-expression that returns the position of a string in the current column expression.
|
DBColumnExpr |
DBColumnExpr.indexOf(Object str,
DBExpr fromPos)
Creates and returns a sql-expression that returns the position of a string in the current column expression.
|
DBColumnExpr |
DBColumnExpr.indexOf(Object str,
int fromPos)
Overloaded.
|
DBColumnExpr |
DBColumnExpr.length()
Creates and returns a sql-expression that returns the string length of this expression.
|
DBColumnExpr |
DBColumnExpr.lower()
Creates and returns a function object which
converts the current expression to lower case.
|
DBColumnExpr |
DBColumnExpr.max()
Creates and returns an aggregation function object
which returns the maximum value for the current expression over a group of rows.
|
DBColumnExpr |
DBColumnExpr.min()
Creates and returns an aggregation function object
which returns the minimum value for the current expression over a group of rows.
|
DBColumnExpr |
DBColumnExpr.modulo(Object divisor)
Creates a sql-expression for the modulo or mod() function.
|
DBColumnExpr |
DBColumnExpr.month()
Creates and returns an function object that
calculates the month of a date value.
|
DBColumnExpr |
DBColumnExpr.nvl(Object nullValue)
Deprecated.
Outdated oracle syntax - use coalesce instead
|
DBColumnExpr |
DBColumnExpr.parenthesis()
Creates and returns a function object which
encloses the current expression in parenthesis.
|
DBColumnExpr |
DBColumnExpr.qualified()
returns an expression that renames the column with its alias name
|
DBColumnExpr |
DBColumn.qualified()
returns an expression that renames the column with its alias name
|
DBColumnExpr |
DBColumn.reference()
Returns a reference expression for this column
This can be used to reference a parent column in a subquery
|
DBColumnExpr |
DBColumnExpr.replace(Object match,
Object replace)
Creates and returns a sql-expression for the replace(...) function.
|
DBColumnExpr |
DBCommandExpr.result()
Returns a ColumnExpr for the result of the query
If the command must have exactly one select column otherwise a NotSupportedException is thrown;
|
DBColumnExpr |
DBColumnExpr.reverse()
Creates and returns a sql-expression for the reverse(...) function.
|
DBColumnExpr |
DBColumnExpr.round(int decimals)
Creates and returns an function object that
rounds a number espression with the given decimals.
|
DBColumnExpr |
DBColumnExpr.stringAgg(String separator)
Creates and returns string aggregation expression
|
DBColumnExpr |
DBColumnExpr.stringAgg(String separator,
DBOrderByExpr orderBy)
Creates and returns string aggregation expression
|
DBColumnExpr |
DBColumnExpr.substring(DBExpr pos)
Creates and returns a sql-expression for the substring(...) function.
|
DBColumnExpr |
DBColumnExpr.substring(DBExpr pos,
DBExpr count)
Creates and returns a sql-expression for the substring(...) function.
|
DBColumnExpr |
DBColumnExpr.substring(DBExpr pos,
int count)
Overloaded.
|
DBColumnExpr |
DBColumnExpr.substring(int pos)
Overloaded.
|
DBColumnExpr |
DBColumnExpr.substring(int pos,
DBExpr count)
Overloaded.
|
DBColumnExpr |
DBColumnExpr.substring(int pos,
int count)
Overloaded.
|
DBColumnExpr |
DBColumnExpr.sum()
Creates and returns an aggregation function object
which calculates the sum for the current expression over a group of rows.
|
DBColumnExpr |
DBColumnExpr.toChar()
Creates a new DBFuncExpr object (to_char SQL statement)
with the parameters prefix = "to_char(" and postfix = ")"
|
DBColumnExpr |
DBColumnExpr.toChar(String format)
Creates a new DBFuncExpr object (to_char SQL statement)
with the parameters prefix = "to_char(" and postfix = ", *
'"+format+"')"
|
DBColumnExpr |
DBColumnExpr.trim()
Creates and returns a sql-expression for the trim() function.
|
DBColumnExpr |
DBColumnExpr.trimLeft()
Creates and returns a sql-expression for the ltrim() function.
|
DBColumnExpr |
DBColumnExpr.trimRight()
Creates and returns a sql-expression for the rtrim() function.
|
DBColumnExpr |
DBColumnExpr.trunc(int decimals)
Creates and returns an function object that
truncates a number espression with the given decimals.
|
DBColumnExpr |
DBColumnExpr.upper()
Creates and returns a function object which
converts the current expression to upper case.
|
DBColumnExpr |
DBColumnExpr.year()
Creates and returns an function object that
calculates the year of a date value.
|
Modifier and Type | Method and Description |
---|---|
List<DBColumnExpr> |
DBCommand.getGroupBy()
Returns a copy of the defined where clauses.
|
abstract List<DBColumnExpr> |
DBCommandExpr.getSelectExpressions()
returns a list of expressions for the SELECT part of the sql statement
|
List<DBColumnExpr> |
DBCommand.getSelectExpressions()
Returns all select expressions as unmodifiable list
|
List<DBColumnExpr> |
DBCombinedCmd.getSelectExpressions()
Returns all select expressions as unmodifiable list
|
Modifier and Type | Method and Description |
---|---|
protected DBView.DBViewColumn |
DBView.addColumn(String columnName,
DBColumnExpr columnExpr)
Adds a column to the view.
|
DBCmdParam |
DBCommand.addParam(DBColumnExpr colExpr,
Object value)
Adds an command parameter which will be used in a prepared statement.
|
DBCaseExpr |
DBDatabase.caseMap(DBColumnExpr column,
Map<? extends Object,? extends Object> valueMap,
Object elseValue)
Creates a SQL case expression
in the form "case [Expr] when [mapKey] then [mapValue] else [elseValue] end"
|
DBCaseExpr |
DBDatabase.caseMap(DBColumnExpr column,
Object cmpValue,
Object trueValue,
Object falseValue)
Creates a SQL case expression
in the form "case [Expr] when [compareValue] then [trueValue] else [elseValue] end"
|
DBCaseExpr |
DBDatabase.caseMap(DBColumnExpr column,
Options options,
Object elseValue)
Creates a SQL case expression
in the form "case [Expr] when [optionValue] then [optionText] else [elseValue] end"
|
DBCaseExpr |
DBDatabase.caseWhenNull(DBColumnExpr column,
Object trueValue,
Object falseValue)
Creates a SQL case expression that check whether a column or column expression is null
"case when [condition] is null then [trueValue] else [falseValue] end"
This is a helper function to simplify client usage
|
DBQueryColumn |
DBQuery.column(DBColumnExpr expr)
This is a convenience shortcut for findQueryColumn
|
DBColumnExpr |
DBColumnExpr.concat(DBColumnExpr... concatExprs)
concatenates a list of expressions to the current column
|
DBColumnExpr |
DBColumnExpr.concat(String separator,
DBColumnExpr... concatExprs)
concatenates a list of expressions to the current column
|
protected DBQueryColumn |
DBQuery.createQueryColumn(DBColumnExpr expr,
int index)
factory method for column expressions in order to allow overrides
|
DBQueryColumn |
DBQuery.findColumn(DBColumnExpr expr)
This function provides the query column object for a particular query command expression
|
protected DBCompareExpr |
DBCommand.findConstraintOn(List<DBCompareExpr> list,
DBColumnExpr colExpr)
finds a constraint on a particular column to the 'where' or 'having' collections
|
DBView.DBViewColumn |
DBView.findViewColumn(DBColumnExpr expr)
This function searchs for equal columns given by the specified DBColumnExpr object.
|
protected DBColumnExpr |
DBCommandExpr.getCmdColumn(DBColumnExpr col)
wraps a column expression such that is specific for to this command and detached from its source.
|
Class<?> |
DBDatabase.getColumnJavaType(DBColumnExpr expr)
Returns the java class type for a given dataType
|
protected String |
DBCommandExpr.getInsertInto(DBTable table,
DBColumnExpr[] select,
List<DBColumnExpr> columns)
Create the insert into SQL-Command which copies data
from a select statement to a destination table.
|
DBCommand |
DBCommand.groupBy(DBColumnExpr... exprs)
Adds a list of columns to the Group By clause of an sql statement.
|
DBCommand |
DBCommand.groupBy(DBColumnExpr columnExpr)
Adds a column expression to the Group By clause of an sql statement.
|
boolean |
DBCommand.hasHavingConstraintOn(DBColumnExpr col)
Checks whether the command has a constraint on a particular column expression
|
abstract boolean |
DBCommandExpr.hasSelectExpr(DBColumnExpr expr)
returns whether or not the command has a specific select expression
|
boolean |
DBCommand.hasSelectExpr(DBColumnExpr expr)
returns whether or not the command has a specific select expression
|
boolean |
DBCombinedCmd.hasSelectExpr(DBColumnExpr expr)
returns whether or not the command has a specific select expression
|
boolean |
DBCommand.hasWhereConstraintOn(DBColumnExpr col)
Checks whether the command has a constraint on a particular column expression
|
protected void |
DBReader.init(DBDatabase db,
DBColumnExpr[] columns,
ResultSet rset)
Initialize the reader from an open JDBC-ResultSet
|
DBCommand |
DBCommand.join(DBColumnExpr left,
DBColumn right,
DBCompareExpr... addlConstraints)
Adds an inner join based on two columns to the list of join expressions.
|
DBCommand |
DBCommand.join(DBColumnExpr left,
DBColumn right,
DBJoinType joinType,
DBCompareExpr... addlConstraints)
Adds a join based on two columns to the list of join expressions.
|
DBCommand |
DBCommand.joinLeft(DBColumnExpr left,
DBColumn right,
DBCompareExpr... addlConstraints)
Adds a left join based on two columns to the list of join expressions.
|
DBCommand |
DBCommand.joinRight(DBColumnExpr left,
DBColumn right,
DBCompareExpr... addlConstraints)
Adds a right join based on two columns to the list of join expressions.
|
DBColumnJoinExpr |
DBColumnExpr.on(DBColumnExpr joinWith)
create a join expression for DBCommand.join()
|
DBCommandExpr |
DBCommandExpr.orderBy(DBColumnExpr... exprs)
Adds a list of columns to the orderBy clause in ascending order
|
DBCommand |
DBCommand.orderBy(DBColumnExpr... exprs)
Overridden to change return type from DBCommandExpr to DBCommand
|
DBCommandExpr |
DBCommandExpr.orderBy(DBColumnExpr expr,
boolean desc)
Adds an order by with ascending or descending order
|
DBCommand |
DBCommand.orderBy(DBColumnExpr expr,
boolean desc)
Overridden to change return type from DBCommandExpr to DBCommand
|
protected DBCompareExpr |
DBCommand.removeConstraintOn(List<DBCompareExpr> list,
DBColumnExpr colExpr)
removes a constraint on a particular column to the 'where' or 'having' collections
|
DBCompareExpr |
DBCommand.removeHavingConstraintOn(DBColumnExpr col)
removes a constraint on a particular column from the having clause
|
void |
DBCommand.removeSelect(DBColumnExpr... exprs)
removes one or more expressions from the Select expression list
|
DBCompareExpr |
DBCommand.removeWhereConstraintOn(DBColumnExpr col)
removes a constraint on a particular column from the where clause
|
void |
DBCommand.replaceSelect(DBColumnExpr replExpr,
DBColumnExpr replWith)
replaces a select expression with another or removes a select expression
In order to remove the expression, set the replWith parameter to null
If the replace expression is not found, an ItemNotFoundException is thrown
|
DBCommand |
DBCommand.select(DBColumnExpr... exprs)
Adds a list of columns to the select phrase of an sql statement.
|
DBCommand |
DBCommand.select(DBColumnExpr expr)
Adds a DBColumnExpr object to the Select collection
|
DBCommand |
DBCommand.selectQualified(DBColumnExpr... columns)
Adds a list of columns with their qualified name to the select phrase of an sql statement.
|
protected boolean |
DBCommand.useCmdParam(DBColumnExpr col,
Object value)
returns true if a cmdParam should be used for the given column or false otherwise
|
Modifier and Type | Method and Description |
---|---|
protected <T> DBBeanListFactory<T> |
DBUtils.createDefaultBeanListFactory(Class<T> beanType,
Column[] keyColumns,
List<? extends DBColumnExpr> selectColumns)
Crates a default DBBeanListFactory for Java bean class
The DBRecord class must provide
either a standard construtor with correspondig property set fundtions
or a constructor using the fields of the query
|
protected String |
DBCommandExpr.getInsertInto(DBTable table,
DBColumnExpr[] select,
List<DBColumnExpr> columns)
Create the insert into SQL-Command which copies data
from a select statement to a destination table.
|
String |
DBCommandExpr.getInsertInto(DBTable table,
List<DBColumnExpr> columns)
Create the insert into SQL-Command which copies
data from a select statement to a destination table.
|
DBCommand |
DBCommand.groupBy(Collection<? extends DBColumnExpr> columns)
Adds a collection of columns to the Group By clause of an sql statement.
|
DBCommand |
DBCommand.select(Collection<? extends DBColumnExpr> columns)
Adds a collection of columns to the select phrase of an sql statement.
|
DBCommand |
DBCommand.selectQualified(Collection<? extends DBColumnExpr> columns)
Adds a collection of columns to the select phrase of an sql statement.
|
Constructor and Description |
---|
DBCmdColumn(DBRowSet query,
DBColumnExpr expr)
Constructs a new DBCmdColumn object
|
DBCmdQuery(DBCommandExpr cmd,
DBDatabase db,
DBColumnExpr[] exprList)
Creates a new DBCmdQueryObject
|
DBQueryColumn(DBQuery query,
String name,
DBColumnExpr expr)
Constructs a DBQueryColumn object set the specified parameters to this object.
|
DBQueryExprColumn(DBQuery q,
String name,
DBColumnExpr expr) |
DBViewColumn(DBView view,
String name,
DBColumnExpr expr,
double size)
Constructs a DBViewColumn object set the specified parameters to this object.
|
Modifier and Type | Class and Description |
---|---|
class |
DBAbstractFuncExpr
This implements some basic functionality for SQL functions based on a column expression
|
class |
DBAliasExpr
This class allows column renaming in SQL.
|
class |
DBCalcExpr
This class is used for performing calculations in SQL
It handles the mathematical operations ("+", "-", "*", "/") for the current column. |
class |
DBCaseExpr
This class represents a SQL case expression
like "case when ?
|
class |
DBCaseMapExpr
This class is used to create a SQL CASE constraint in the form of
case {expr} when {value1} then {result1}
when {value2} then {result2}
...
|
class |
DBCaseWhenExpr
This class is used to create a SQL CASE constraint in the form of
case when {cond1} then {result1}
when {cond2} then {result2}
...
|
class |
DBCmdResultExpr |
class |
DBCoalesceExpr |
class |
DBConcatExpr
This class is used for performing string concatenation in SQL
There is no need to explicitly create instances of this class. |
class |
DBConcatFuncExpr
DBConcatExpression
|
class |
DBConvertExpr
This class is used to convert a value to a different data type.
|
class |
DBCountExpr
This class is used to add the "count" statement to the SQL-Command.
|
class |
DBDecodeExpr
This class is used to decode a set of keys to the corresponding target values.
|
class |
DBFuncExpr
This class is used for performing various SQL functions on a column or column expression.
|
class |
DBParenthesisExpr
This class allows column renaming in SQL.
|
class |
DBScalarExpr
This class is used for declaring scalar functions in SQL (like e.g. random).
|
class |
DBValueExpr
This class is used for declaring constant values in SQL.
|
class |
DBVarArgsFuncExpr |
Modifier and Type | Field and Description |
---|---|
protected DBColumnExpr |
DBAbstractFuncExpr.expr |
protected DBColumnExpr |
DBConcatExpr.left |
Modifier and Type | Method and Description |
---|---|
protected DBColumnExpr |
DBCaseExpr.getSourceColumnExpr(Collection<?> values,
Object elseValue) |
DBColumnExpr |
DBParenthesisExpr.unwrap()
Returns the underlying column expression.
|
DBColumnExpr |
DBCoalesceExpr.unwrap() |
DBColumnExpr |
DBAliasExpr.unwrap()
Returns the underlying column expression.
|
Constructor and Description |
---|
DBAbstractFuncExpr(DBColumnExpr expr,
boolean isAggregate,
DataType dataType)
Constructs a new DBFuncExpr object set the specified parameters to this object.
|
DBAliasExpr(DBColumnExpr expr,
String alias)
Constructs a DBAliasExpr object combine the DBColumnExpr object with the alias name.
|
DBCalcExpr(DBColumnExpr expr,
String op,
Object value)
Constructs a DBCalcExpr object Sets the mathematical operations ("+", "-", "*", "/")
for the specified DBColumnExpr object and value. |
DBCaseExpr(DBColumnExpr caseExpr) |
DBCaseMapExpr(DBColumnExpr caseExpr,
Map<? extends Object,? extends Object> valueMap,
Object elseValue)
constructs a DBCaseSelectExpr expr
|
DBCaseMapExpr(DBColumnExpr caseExpr,
Object cmpVal,
Object trueValue,
Object elseValue) |
DBCaseMapExpr(DBColumnExpr caseExpr,
Object cmpVal1,
Object trueValue1,
Object cmpVal2,
Object trueValue2,
Object elseValue) |
DBCoalesceExpr(DBColumnExpr expr,
Object nullValue) |
DBConcatExpr(DBColumnExpr left,
Object right)
Constructs a new DBConcatExpr object set the specified parameters to this object.
|
DBConcatFuncExpr(DBColumnExpr first,
DBColumnExpr... others)
create concat expression
|
DBConcatFuncExpr(DBColumnExpr first,
DBColumnExpr... others)
create concat expression
|
DBConcatFuncExpr(DBColumnExpr first,
String separator,
DBColumnExpr... others)
create concat expression
|
DBConcatFuncExpr(DBColumnExpr first,
String separator,
DBColumnExpr... others)
create concat expression
|
DBConvertExpr(DBColumnExpr expr,
DataType dataType,
Object format)
Constructs a DBDecodeExpr
|
DBCountExpr(DBColumnExpr expr,
boolean distinct)
Constructs a DBCountExpr.
|
DBDecodeExpr(DBColumnExpr expr,
Map<?,?> valueMap,
Object elseExpr,
DataType dataType)
Constructs a DBDecodeExpr
|
DBFuncExpr(DBColumnExpr expr,
DBSqlPhrase phrase,
Object[] params,
DataType dataType)
Constructs a new DBFuncExpr object set the specified parameters to this object.
|
DBFuncExpr(DBColumnExpr expr,
String template,
Object[] params,
boolean isAggregate,
DataType dataType)
Constructs a new DBFuncExpr object set the specified parameters to this object.
|
DBParenthesisExpr(DBColumnExpr expr)
Constructs a DBAliasExpr object combine the DBColumnExpr object with the alias name.
|
DBVarArgsFuncExpr(DBDatabase db,
DataType dataType,
String template,
DBColumnExpr... cols) |
Modifier and Type | Field and Description |
---|---|
protected DBColumnExpr |
DBCompareColExpr.expr |
Modifier and Type | Method and Description |
---|---|
DBColumnExpr |
DBCompareColExpr.getColumnExpr()
Gets the DBColumnExpr object
|
Modifier and Type | Method and Description |
---|---|
boolean |
DBExistsExpr.isConstraintOn(DBColumnExpr colExpr)
Returns whether the constraint is on the given column
|
boolean |
DBCompareParenthesisExpr.isConstraintOn(DBColumnExpr colExpr) |
boolean |
DBCompareNotExpr.isConstraintOn(DBColumnExpr colExpr)
Returns whether the constraint is on the given column
|
abstract boolean |
DBCompareExpr.isConstraintOn(DBColumnExpr colExpr) |
boolean |
DBCompareColExpr.isConstraintOn(DBColumnExpr colExpr)
Returns whether the constraint is on the given column
|
boolean |
DBCompareAndOrExpr.isConstraintOn(DBColumnExpr colExpr)
Returns whether the constraint is on the given column
|
Constructor and Description |
---|
DBCompareColExpr(DBColumnExpr expr,
DBCmpType op,
Object value)
Constructs a DBCompareColExpr object set the specified parameters to this object.
|
Modifier and Type | Field and Description |
---|---|
protected DBColumnExpr |
DBColumnJoinExpr.left |
protected DBColumnExpr |
DBColumnJoinExpr.right |
Modifier and Type | Method and Description |
---|---|
DBColumnExpr |
DBColumnJoinExpr.getLeft()
returns the left join expression
|
DBColumnExpr |
DBColumnJoinExpr.getRight()
returns the right join expression
|
Modifier and Type | Method and Description |
---|---|
DBColumnJoinExpr |
DBColumnJoinExpr.and(DBColumnExpr c1,
DBColumnExpr c2)
This function adds an additional constraint to the join.
|
Constructor and Description |
---|
DBColumnJoinExpr(DBColumnExpr left,
DBColumnExpr right,
DBJoinType type) |
DBColumnJoinExpr(DBColumnExpr left,
DBColumnExpr right,
DBJoinType type,
DBCompareExpr addlConstraint)
Constructs a join expression based on two columns or column expressions
|
Modifier and Type | Field and Description |
---|---|
protected DBColumnExpr |
DBOrderByExpr.expr |
Modifier and Type | Method and Description |
---|---|
DBColumnExpr |
DBOrderByExpr.getColumn() |
Constructor and Description |
---|
DBOrderByExpr(DBColumnExpr expr,
boolean desc)
Construct a new DBOrderByInfo object set the specified
parameters to this object.
|
Modifier and Type | Field and Description |
---|---|
protected List<? extends DBColumnExpr> |
DBBeanListFactoryImpl.constructorParams |
protected List<? extends DBColumnExpr> |
DBBeanListFactoryImpl.setterColumns |
Modifier and Type | Method and Description |
---|---|
protected static <T> Constructor<T> |
DBBeanListFactoryImpl.findBeanConstructor(Class<T> beanType,
List<? extends DBColumnExpr> params)
Finds a suitable constructor for the beanClass
|
Constructor and Description |
---|
DBBeanListFactoryImpl(Class<T> beanType,
Column[] keyColumns,
List<? extends DBColumnExpr> selectColumns)
Constructs a DBRecordListFactoryImpl based on an DBRecord class
|
DBBeanListFactoryImpl(Class<T> beanType,
List<? extends DBColumnExpr> selectColumns)
Constructs a DBRecordListFactoryImpl based on an DBRecord class
|
DBBeanListFactoryImpl(Class<T> beanType,
List<? extends DBColumnExpr> keyColumns,
List<? extends DBColumnExpr> selectColumns)
Constructs a DBRecordListFactoryImpl based on an DBRecord class
|
DBBeanListFactoryImpl(Class<T> beanType,
List<? extends DBColumnExpr> keyColumns,
List<? extends DBColumnExpr> selectColumns)
Constructs a DBRecordListFactoryImpl based on an DBRecord class
|
DBBeanListFactoryImpl(Constructor<T> constructor,
List<? extends DBColumnExpr> constructorParams,
List<? extends DBColumnExpr> setterColumns)
Constructs a DBRecordListFactoryImpl based on an DBRecord constructor
|
DBBeanListFactoryImpl(Constructor<T> constructor,
List<? extends DBColumnExpr> constructorParams,
List<? extends DBColumnExpr> setterColumns)
Constructs a DBRecordListFactoryImpl based on an DBRecord constructor
|
Modifier and Type | Method and Description |
---|---|
abstract DBColumnExpr |
DBMSHandlerBase.getNextSequenceValueExpr(DBTableColumn column)
Returns an expression for creating a sequence value.
|
Modifier and Type | Method and Description |
---|---|
DBColumnExpr |
DBMSHandlerDerby.getNextSequenceValueExpr(DBTableColumn column) |
Modifier and Type | Method and Description |
---|---|
DBColumnExpr |
DBMSHandlerH2.getNextSequenceValueExpr(DBTableColumn column) |
Modifier and Type | Method and Description |
---|---|
DBColumnExpr |
DBMSHandlerHSql.getNextSequenceValueExpr(DBTableColumn column) |
Modifier and Type | Method and Description |
---|---|
DBColumnExpr |
DBMSHandlerMySQL.getNextSequenceValueExpr(DBTableColumn column) |
Modifier and Type | Class and Description |
---|---|
class |
OracleRowNumExpr
implements a column expression for the Oracle rownum function
|
Modifier and Type | Method and Description |
---|---|
DBColumnExpr |
DBMSHandlerOracle.getNextSequenceValueExpr(DBTableColumn column) |
Modifier and Type | Class and Description |
---|---|
class |
PostgresBoolAndOrExpr |
class |
PostgresFuncExpr |
class |
PostgresIntervalExpr |
Modifier and Type | Method and Description |
---|---|
DBColumnExpr |
DBMSHandlerPostgreSQL.getNextSequenceValueExpr(DBTableColumn column) |
DBColumnExpr |
DBCommandPostgres.pgAge(DBColumnExpr expr)
See https://www.postgresql.org/docs/current/functions-datetime.html
|
DBColumnExpr |
DBCommandPostgres.pgAge(DBColumnExpr expr1,
DBColumnExpr expr2)
See https://www.postgresql.org/docs/current/functions-datetime.html
|
DBColumnExpr |
DBCommandPostgres.pgBoolAnd(DBCompareExpr cmpExpr)
See https://www.postgresql.org/docs/current/textsearch-controls.html
|
DBColumnExpr |
DBCommandPostgres.pgBoolOr(DBCompareExpr cmpExpr)
See https://www.postgresql.org/docs/current/textsearch-controls.html
|
DBColumnExpr |
DBCommandPostgres.pgExtract(PostgresExtractField field,
DBColumnExpr expr)
See https://www.postgresql.org/docs/current/functions-datetime.html
|
DBColumnExpr |
DBCommandPostgres.pgPlaintoTsquery(DBColumnExpr expr)
See https://www.postgresql.org/docs/current/textsearch-controls.html
|
DBColumnExpr |
DBCommandPostgres.pgToTsquery(DBColumnExpr expr)
See https://www.postgresql.org/docs/current/textsearch-controls.html
|
DBColumnExpr |
DBCommandPostgres.pgToTsvector(DBColumnExpr expr)
See https://www.postgresql.org/docs/current/textsearch-controls.html
|
DBColumnExpr |
DBCommandPostgres.pgWebsearchToTsquery(DBColumnExpr expr)
See https://www.postgresql.org/docs/current/textsearch-controls.html
|
Modifier and Type | Method and Description |
---|---|
boolean |
PostgresAtAt.isConstraintOn(DBColumnExpr colExpr) |
DBColumnExpr |
DBCommandPostgres.pgAge(DBColumnExpr expr)
See https://www.postgresql.org/docs/current/functions-datetime.html
|
DBColumnExpr |
DBCommandPostgres.pgAge(DBColumnExpr expr1,
DBColumnExpr expr2)
See https://www.postgresql.org/docs/current/functions-datetime.html
|
PostgresAtAt |
DBCommandPostgres.pgCompareAtAt(DBColumnExpr left,
DBColumnExpr right)
See https://www.postgresql.org/docs/current/textsearch-controls.html
|
DBColumnExpr |
DBCommandPostgres.pgExtract(PostgresExtractField field,
DBColumnExpr expr)
See https://www.postgresql.org/docs/current/functions-datetime.html
|
DBColumnExpr |
DBCommandPostgres.pgPlaintoTsquery(DBColumnExpr expr)
See https://www.postgresql.org/docs/current/textsearch-controls.html
|
DBColumnExpr |
DBCommandPostgres.pgToTsquery(DBColumnExpr expr)
See https://www.postgresql.org/docs/current/textsearch-controls.html
|
DBColumnExpr |
DBCommandPostgres.pgToTsvector(DBColumnExpr expr)
See https://www.postgresql.org/docs/current/textsearch-controls.html
|
DBColumnExpr |
DBCommandPostgres.pgWebsearchToTsquery(DBColumnExpr expr)
See https://www.postgresql.org/docs/current/textsearch-controls.html
|
Constructor and Description |
---|
PostgresAtAt(DBColumnExpr left,
DBColumnExpr right) |
PostgresFuncExpr(DBColumnExpr expr,
PostgresSqlPhrase phrase,
Object[] params,
DataType dataType) |
Modifier and Type | Method and Description |
---|---|
DBColumnExpr |
DBMSHandlerSQLite.getNextSequenceValueExpr(DBTableColumn column) |
Modifier and Type | Method and Description |
---|---|
DBColumnExpr |
DBMSHandlerMSSQL.getNextSequenceValueExpr(DBTableColumn column) |
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.