|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use DBColumnExpr | |
---|---|
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. |
Uses of DBColumnExpr in org.apache.empire.db |
---|
Subclasses of DBColumnExpr in org.apache.empire.db | |
---|---|
class |
DBColumn
This is the base class for all database columns that have a physical representation. |
static class |
DBQuery.DBQueryColumn
|
class |
DBTableColumn
This class represent one column of a table. |
static class |
DBView.DBViewColumn
|
Methods in org.apache.empire.db that return DBColumnExpr | |
---|---|
DBColumnExpr |
DBColumnExpr.abs()
Creates and returns a sql-expression for the absolute abs() function. |
DBColumnExpr |
DBColumnExpr.append(java.lang.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(java.lang.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.coalesce(java.lang.Object nullValue)
Creates a sql-expression for the nvl() or coalesce() function. |
DBColumnExpr |
DBColumnExpr.convertTo(DataType dataType)
Creates and returns a new DBFuncExpr object that will convert the current column to the destination data type specivied. |
DBColumnExpr |
DBColumnExpr.convertTo(DataType dataType,
java.lang.Object format)
Creates a new DBFuncExpr object that will convert the current column to the destination data type specivied. |
DBColumnExpr |
DBRowSet.count()
Returns a new DBCountExpr object. |
DBColumnExpr |
DBColumnExpr.count()
Creates and returns an expresion for the SQL "count()" function which returns the number of rows in the result set. |
DBColumnExpr |
DBColumnExpr.countDistinct()
Creates and returns an expresion 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(java.util.Map valueMap,
java.lang.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(java.lang.Object key1,
java.lang.Object value1,
java.lang.Object otherwise)
|
DBColumnExpr |
DBColumnExpr.decode(java.lang.Object key1,
java.lang.Object value1,
java.lang.Object key2,
java.lang.Object value2,
java.lang.Object otherwise)
|
DBColumnExpr |
DBColumnExpr.decode(java.lang.Object key1,
java.lang.Object value1,
java.lang.Object key2,
java.lang.Object value2,
java.lang.Object key3,
java.lang.Object value3,
java.lang.Object otherwise)
|
DBColumnExpr |
DBColumnExpr.decode(Options options)
|
DBColumnExpr |
DBColumnExpr.decode(Options options,
java.lang.Object otherwise)
|
DBColumnExpr |
DBCommandExpr.getCmdColumn(DBColumnExpr col)
|
DBColumnExpr |
DBCommandExpr.getCmdColumn(int i)
|
DBColumnExpr |
DBReader.getColumnExpr(int iColumn)
Get the column Expression at position |
abstract DBColumnExpr[] |
DBCommandExpr.getSelectExprList()
|
DBColumnExpr[] |
DBCommand.getSelectExprList()
Returns a array of all DBColumnExpr object of the Vector: 'select'. |
DBColumnExpr[] |
DBCombinedCmd.getSelectExprList()
Calls the method dbDBCommandExpr.getSelectExprList from the private variable 'left'. |
DBColumnExpr |
DBView.DBViewColumn.getSourceColumnExpr()
|
DBColumnExpr |
DBColumnExpr.indexOf(java.lang.Object str)
Creates and returns a sql-expression that returns the position of a string in the current column expression. |
DBColumnExpr |
DBColumnExpr.indexOf(java.lang.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(java.lang.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.month()
Creates and returns an function object that calculates the month of a date value. |
DBColumnExpr |
DBColumnExpr.nvl(java.lang.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.replace(java.lang.Object match,
java.lang.Object replace)
Creates and returns a sql-expression for the replace(...) function. |
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.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(java.lang.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. |
Methods in org.apache.empire.db with parameters of type DBColumnExpr | |
---|---|
DBQuery.DBQueryColumn |
DBQuery.findQueryColumn(DBColumnExpr expr)
This function searchs for equal columns given by the specified DBColumnExpr object. |
DBView.DBViewColumn |
DBView.findViewColumn(DBColumnExpr expr)
This function searchs for equal columns given by the specified DBColumnExpr object. |
DBColumnExpr |
DBCommandExpr.getCmdColumn(DBColumnExpr col)
|
void |
DBCommand.groupBy(DBColumnExpr expr)
Adds a column to the group by phrase of an sql statement. |
void |
DBCommand.groupBy(DBColumnExpr[] exprList)
Adds a list columns to the group by phrase of an sql statement. |
void |
DBCommand.groupBy(DBColumnExpr expr1,
DBColumnExpr expr2)
Adds two columns to the group by phrase of an sql statement. |
void |
DBCommand.groupBy(DBColumnExpr expr1,
DBColumnExpr expr2,
DBColumnExpr expr3)
Adds three columns to the group by phrase of an sql statement. |
DBJoinExpr |
DBCommand.join(DBColumnExpr left,
DBColumn right)
Adds an inner join based on two columns to the list of join expressions. |
DBJoinExpr |
DBCommand.join(DBColumnExpr left,
DBColumn right,
DBJoinType joinType)
Adds a join based on two columns to the list of join expressions. |
void |
DBCommandExpr.orderBy(DBColumnExpr expr)
This helper function calls the method orderBy(DBColumnExpr, boolean) and sets the second parameter to false,creates a new DBOrderByInfo object and adds it to the Vector 'orderBy'. |
void |
DBCommandExpr.orderBy(DBColumnExpr expr,
boolean desc)
Creates a new DBOrderByInfo object and add it to the Vector 'orderBy'. |
void |
DBCombinedCmd.orderBy(DBColumnExpr expr,
boolean desc)
This helper function adds the DBColumnExpr objects to the Vector: 'orderBy'. |
void |
DBCommand.select(DBColumnExpr expr)
Adds a DBColumnExpr object to the Vector: 'select'. |
void |
DBCommand.select(DBColumnExpr[] exprList)
This helper function adds an array of DBColumnExpr objects to list of select-columns. |
void |
DBCommand.select(DBColumnExpr expr1,
DBColumnExpr expr2)
This helper function adds two DBColumnExpr objects to the Vector: 'select' |
void |
DBCommand.select(DBColumnExpr expr1,
DBColumnExpr expr2,
DBColumnExpr expr3)
This helper function adds three DBColumnExpr objects to the Vector: 'select'. |
void |
DBCommand.select(DBColumnExpr expr1,
DBColumnExpr expr2,
DBColumnExpr expr3,
DBColumnExpr expr4)
This helper function adds four DBColumnExpr objects to the Vector: 'select'. |
void |
DBCommand.select(DBColumnExpr expr1,
DBColumnExpr expr2,
DBColumnExpr expr3,
DBColumnExpr expr4,
DBColumnExpr expr5)
This helper function adds five DBColumnExpr objects to the Vector: 'select'. |
Method parameters in org.apache.empire.db with type arguments of type DBColumnExpr | |
---|---|
java.lang.String |
DBCommandExpr.getInsertInto(DBTable table,
java.util.List<DBColumnExpr> columns)
Create the insert into SQL-Command which copies data from a select statement to a destination table. |
void |
DBCommand.select(java.util.Collection<DBColumnExpr> columns)
Adds a list of column expression to the select clause |
Constructors in org.apache.empire.db with parameters of type DBColumnExpr | |
---|---|
DBQuery.DBQueryColumn(DBQuery query,
DBColumnExpr expr)
Constructs a DBQueryColumn object set the specified parameters to this object. |
Uses of DBColumnExpr in org.apache.empire.db.expr.column |
---|
Subclasses of DBColumnExpr in org.apache.empire.db.expr.column | |
---|---|
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 is used to add the "case when ? |
class |
DBConcatExpr
This class is used for performing string concatenation in SQL There is no need to explicitly create instances of this class. |
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 |
DBValueExpr
This class is used for declaring constant values in SQL. |
Fields in org.apache.empire.db.expr.column declared as DBColumnExpr | |
---|---|
DBColumnExpr |
DBValueExpr.column
|
Methods in org.apache.empire.db.expr.column that return DBColumnExpr | |
---|---|
DBColumnExpr |
DBAliasExpr.getExpr()
This helper function returns the underlying column expression. |
Constructors in org.apache.empire.db.expr.column with parameters of type DBColumnExpr | |
---|---|
DBAbstractFuncExpr(DBColumnExpr expr,
DBColumn updateColumn,
boolean isAggregate,
DataType dataType)
Constructs a new DBFuncExpr object set the specified parameters to this object. |
|
DBAliasExpr(DBColumnExpr expr,
java.lang.String alias)
Constructs a DBAliasExpr object combine the DBColumnExpr object with the alias name. |
|
DBCalcExpr(DBColumnExpr expr,
java.lang.String op,
java.lang.Object value)
Constructs a DBCalcExpr object Sets the mathematical operations ("+", "-", "*", "/") for the specified DBColumnExpr object and value. |
|
DBCaseExpr(DBCompareExpr compExpr,
DBColumnExpr trueExpr,
DBColumnExpr elseExpr)
Constructs a DBCaseExpr |
|
DBConcatExpr(DBColumnExpr left,
java.lang.Object right)
Constructs a new DBConcatExpr object set the specified parameters to this object. |
|
DBConvertExpr(DBColumnExpr expr,
DataType dataType,
java.lang.Object format)
Constructs a DBDecodeExpr |
|
DBCountExpr(DBColumnExpr expr,
boolean distinct)
Constructs a DBCountExpr. |
|
DBDecodeExpr(DBColumnExpr expr,
java.util.Map<?,?> valueMap,
java.lang.Object elseExpr,
DataType dataType)
Constructs a DBDecodeExpr |
|
DBFuncExpr(DBColumnExpr expr,
int phrase,
java.lang.Object[] params,
DBColumn updateColumn,
boolean isAggregate,
DataType dataType)
Constructs a new DBFuncExpr object set the specified parameters to this object. |
|
DBFuncExpr(DBColumnExpr expr,
java.lang.String template,
java.lang.Object[] params,
DBColumn updateColumn,
boolean isAggregate,
DataType dataType)
Constructs a new DBFuncExpr object set the specified parameters to this object. |
|
DBValueExpr(DBColumnExpr col,
java.lang.Object value)
Construct a new DBValueExpr object set the specified parameters to this object. |
Uses of DBColumnExpr in org.apache.empire.db.expr.compare |
---|
Methods in org.apache.empire.db.expr.compare that return DBColumnExpr | |
---|---|
DBColumnExpr |
DBCompareColExpr.getColumnExpr()
returns the DBColumnExpr object |
Constructors in org.apache.empire.db.expr.compare with parameters of type DBColumnExpr | |
---|---|
DBCompareColExpr(DBColumnExpr expr,
DBCmpType op,
java.lang.Object value)
Constructs a DBCompareColExpr object set the specified parameters to this object. |
Uses of DBColumnExpr in org.apache.empire.db.expr.join |
---|
Methods in org.apache.empire.db.expr.join that return DBColumnExpr | |
---|---|
DBColumnExpr |
DBJoinExpr.getLeft()
|
DBColumnExpr |
DBJoinExpr.getRight()
|
Methods in org.apache.empire.db.expr.join with parameters of type DBColumnExpr | |
---|---|
DBCompareExpr |
DBJoinExpr.and(DBColumnExpr c1,
DBColumnExpr c2)
This function adds an additional constraint to the join. |
Constructors in org.apache.empire.db.expr.join with parameters of type DBColumnExpr | |
---|---|
DBJoinExpr(DBColumnExpr left,
DBColumnExpr right,
DBJoinType type)
Constructs a new DBJoinExpr object initialize this object with the left and right column and the data type of the join expression. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |