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.expr.set |
This package contains SQL-generator classes for set expressions used in the set clause.
|
org.apache.empire.db.oracle |
This package contains classes necessary to support the Oracle database system.
|
org.apache.empire.db.validation |
Modifier and Type | Class and Description |
---|---|
protected static class |
DBCommandExpr.DBCmdColumn
This class wraps a column of sql command in a special command column object.
|
static class |
DBQuery.DBQueryColumn |
class |
DBTableColumn
This class represent one column of a table.
|
static class |
DBView.DBViewColumn |
Modifier and Type | Field and Description |
---|---|
DBColumn |
DBDatabaseDriver.DBSeqTable.C_SEQNAME |
DBColumn |
DBDatabaseDriver.DBSeqTable.C_SEQVALUE |
DBColumn |
DBDatabaseDriver.DBSeqTable.C_TIMESTAMP |
protected DBColumn[] |
DBQuery.keyColumns |
protected DBColumn |
DBRowSet.timestampColumn |
protected DBColumn |
DBView.DBViewColumn.updateColumn |
Modifier and Type | Field and Description |
---|---|
protected Map<DBColumn,DBColumn> |
DBRowSet.columnReferences |
protected Map<DBColumn,DBColumn> |
DBRowSet.columnReferences |
protected List<DBColumn> |
DBRowSet.columns |
Modifier and Type | Method and Description |
---|---|
static DBColumn |
DBColumn.findById(String columnId)
returns a rowset by its identifier
|
DBColumn |
DBRowSet.getColumn(int iColumn)
Returns a DBColumn object by a specified index value.
|
DBColumn |
DBRowSet.getColumn(String name)
Gets the column Expression with a particular name.
|
DBColumn[] |
DBIndex.getColumns()
Returns the columns belonging to this index.
|
DBColumn |
DBRecord.getDBColumn(int index)
Returns the DBColumn for the field at the given index.
|
DBColumn[] |
DBRowSet.getKeyColumns()
Returns an array of all primary key columns.
|
DBColumn[] |
DBQuery.getKeyColumns()
return query key columns
|
DBColumn[] |
DBCommandExpr.DBCmdQuery.getKeyColumns()
Prints the error message: ERR_NOTSUPPORTED.
|
DBColumn |
DBRowSet.getTimestampColumn() |
abstract DBColumn |
DBColumnExpr.getUpdateColumn()
Returns the underlying physical column which may be used for updates.
|
DBColumn |
DBColumn.getUpdateColumn()
Returns this object.
|
Modifier and Type | Method and Description |
---|---|
Map<DBColumn,DBColumn> |
DBRowSet.getColumnReferences()
Returns the a list of column references.
|
Map<DBColumn,DBColumn> |
DBRowSet.getColumnReferences()
Returns the a list of column references.
|
List<DBColumn> |
DBRowSet.getColumns()
Gets all columns of this rowset (e.g.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DBDDLGenerator.addAlterTableStmt(DBColumn col,
StringBuilder sql,
DBSQLScript script) |
protected void |
DBRowSet.addColumnReference(DBColumn source,
DBColumn target)
Adds a column reference to the list of table references.
|
DBIndex |
DBTable.addIndex(String name,
boolean unique,
DBColumn... columns)
Adds an index.
|
protected boolean |
DBQuery.addJoinRestriction(DBCommand upd,
DBColumn updCol,
DBColumn keyCol,
DBColumn[] keyColumns,
DBRecord rec)
Adds join restrictions to the supplied command object.
|
protected boolean |
DBQuery.addJoinRestriction(DBCommand upd,
DBColumn updCol,
DBColumn keyCol,
DBColumn[] keyColumns,
DBRecord rec)
Adds join restrictions to the supplied command object.
|
protected boolean |
DBRecord.allowFieldChange(DBColumn column)
Checks whether or not this field can be changed at all.
|
DBColumnExpr |
DBColumnExpr.as(DBColumn column)
creates a new DBAliasExpr which renames the current expression to the name of the supplied column.
|
boolean |
DBIndex.contains(DBColumn col)
Checks if this index contains the column col
|
boolean |
DBExpressionIndex.contains(DBColumn col)
Checks if this index contains the column col
|
int |
DBRowSet.getColumnIndex(DBColumn column)
Gets the index of a particular column expression.
|
int |
DBIndex.getColumnPos(DBColumn col)
Gets the position of a specified DBColumn object.
|
int |
DBExpressionIndex.getColumnPos(DBColumn col)
Gets the position of a specified DBColumn object.
|
protected DBColumnExpr |
DBColumnExpr.getExprFromPhrase(int phrase,
Object[] params,
DBColumn updateColumn,
boolean isAggregate) |
protected DBColumnExpr |
DBColumnExpr.getExprFromPhrase(int phrase,
Object[] params,
DBColumn updateColumn,
boolean isAggregate,
DataType dataType)
Creates a new DBFuncExpr from a given SQL-PRHASE and
optional additional parameters.
|
Options |
DBRecord.getFieldOptions(DBColumn column)
Gets the possbile Options for a field in the context of the current record.
|
boolean |
DBCommand.hasJoinOn(DBColumn column)
Returns true if the command has a join on the given column or false otherwise.
|
protected boolean |
DBCommand.hasSetExprOn(DBColumn column)
Checks whether a column is in the list of set expressions
|
boolean |
DBRowSet.isColumnReadOnly(DBColumn col)
Checks whether a column is read only or writable.
|
boolean |
DBRowSet.isKeyColumn(DBColumn column)
Checks whether a given column is part of the primary key for this RowSet
|
DBJoinExpr |
DBCommand.join(DBColumnExpr left,
DBColumn right)
Adds an inner join based on two columns to the list of join expressions.
|
boolean |
DBCommand.removeJoinsOn(DBColumn column)
removes all joins to a given column
|
void |
DBRecord.setModified(DBColumn column,
boolean isModified)
Sets the modified state of a column.
This will force the field to be updated in the database, if set to TRUE. |
void |
DBTable.setPrimaryKey(DBColumn... columns)
Sets the primary keys.
|
void |
DBRowSet.setTimestampColumn(DBColumn timestampColumn) |
protected boolean |
DBCommand.useCmdParam(DBColumn col,
Object value)
returns true if a cmdParam should be used for the given column or false otherwise
|
Modifier and Type | Method and Description |
---|---|
void |
DBRowSet.addReferencedColumns(Set<DBColumn> list) |
abstract void |
DBExpr.addReferencedColumns(Set<DBColumn> list)
Internal function to obtain all DBColumnExpr-objects used by this expression.
|
void |
DBCommandExpr.DBCmdQuery.addReferencedColumns(Set<DBColumn> list) |
void |
DBCommand.addReferencedColumns(Set<DBColumn> list)
Adds Columns
|
void |
DBCombinedCmd.addReferencedColumns(Set<DBColumn> list) |
void |
DBColumn.addReferencedColumns(Set<DBColumn> list) |
void |
DBCmdParam.addReferencedColumns(Set<DBColumn> list) |
Constructor and Description |
---|
DBIndex(String name,
int type,
DBColumn[] columns)
Constructs a DBIndex object set the specified parameters to this 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.
|
Modifier and Type | Field and Description |
---|---|
protected DBColumn |
DBAbstractFuncExpr.updateColumn |
Modifier and Type | Method and Description |
---|---|
DBColumn |
DBValueExpr.getUpdateColumn()
Returns null.
|
DBColumn |
DBCountExpr.getUpdateColumn()
Returns null.
|
DBColumn |
DBConcatExpr.getUpdateColumn() |
DBColumn |
DBCaseExpr.getUpdateColumn() |
DBColumn |
DBCalcExpr.getUpdateColumn()
returns null
|
DBColumn |
DBAliasExpr.getUpdateColumn()
Returns the DBColunm object.
|
DBColumn |
DBAbstractFuncExpr.getUpdateColumn()
Returns the DBColunm object.
|
Modifier and Type | Method and Description |
---|---|
void |
DBValueExpr.addReferencedColumns(Set<DBColumn> list) |
void |
DBDecodeExpr.addReferencedColumns(Set<DBColumn> list) |
void |
DBCountExpr.addReferencedColumns(Set<DBColumn> list) |
void |
DBConcatExpr.addReferencedColumns(Set<DBColumn> list) |
void |
DBCaseExpr.addReferencedColumns(Set<DBColumn> list) |
void |
DBCalcExpr.addReferencedColumns(Set<DBColumn> list) |
void |
DBAliasExpr.addReferencedColumns(Set<DBColumn> list) |
void |
DBAbstractFuncExpr.addReferencedColumns(Set<DBColumn> list) |
Constructor and Description |
---|
DBAbstractFuncExpr(DBColumnExpr expr,
DBColumn updateColumn,
boolean isAggregate,
DataType dataType)
Constructs a new DBFuncExpr object set the specified parameters to this object.
|
DBFuncExpr(DBColumnExpr expr,
int phrase,
Object[] params,
DBColumn updateColumn,
boolean isAggregate,
DataType dataType)
Constructs a new DBFuncExpr object set the specified parameters to this object.
|
DBFuncExpr(DBColumnExpr expr,
String template,
Object[] params,
DBColumn updateColumn,
boolean isAggregate,
DataType dataType)
Constructs a new DBFuncExpr object set the specified parameters to this object.
|
Modifier and Type | Method and Description |
---|---|
void |
DBParenthesisExpr.addReferencedColumns(Set<DBColumn> list) |
void |
DBExistsExpr.addReferencedColumns(Set<DBColumn> list) |
void |
DBCompareNotExpr.addReferencedColumns(Set<DBColumn> list) |
void |
DBCompareColExpr.addReferencedColumns(Set<DBColumn> list) |
void |
DBCompareAndOrExpr.addReferencedColumns(Set<DBColumn> list) |
Modifier and Type | Method and Description |
---|---|
boolean |
DBJoinExpr.isJoinOn(DBColumn column)
returns true if this join is using the given column or false otherwise
|
Modifier and Type | Method and Description |
---|---|
void |
DBJoinExpr.addReferencedColumns(Set<DBColumn> list) |
Modifier and Type | Method and Description |
---|---|
DBColumn |
DBOrderByExpr.getColumn() |
Modifier and Type | Method and Description |
---|---|
void |
DBOrderByExpr.addReferencedColumns(Set<DBColumn> list) |
Modifier and Type | Field and Description |
---|---|
DBColumn |
DBSetExpr.column |
Modifier and Type | Method and Description |
---|---|
DBColumn |
DBSetExpr.getColumn() |
Modifier and Type | Method and Description |
---|---|
void |
DBSetExpr.addReferencedColumns(Set<DBColumn> list) |
Constructor and Description |
---|
DBSetExpr(DBColumn expr,
Object value)
Constructs a new DBSetExpr object.
|
Modifier and Type | Method and Description |
---|---|
DBColumn |
OracleRowNumExpr.getUpdateColumn()
Returns null.
|
Modifier and Type | Method and Description |
---|---|
protected void |
OracleDBModelChecker.checkBoolColumn(DBColumn column,
DBColumn remoteColumn,
DBModelErrorHandler handler) |
Modifier and Type | Method and Description |
---|---|
void |
OracleRowNumExpr.addReferencedColumns(Set<DBColumn> list) |
Modifier and Type | Method and Description |
---|---|
protected void |
DBModelChecker.checkAutoIncColumn(DBColumn column,
DBColumn remoteColumn,
DBModelErrorHandler handler) |
protected void |
DBModelChecker.checkBlobColumn(DBColumn column,
DBColumn remoteColumn,
DBModelErrorHandler handler) |
protected void |
DBModelChecker.checkBoolColumn(DBColumn column,
DBColumn remoteColumn,
DBModelErrorHandler handler) |
protected void |
DBModelChecker.checkCharColumn(DBColumn column,
DBColumn remoteColumn,
DBModelErrorHandler handler) |
protected void |
DBModelChecker.checkClobColumn(DBColumn column,
DBColumn remoteColumn,
DBModelErrorHandler handler) |
protected void |
DBModelChecker.checkColumnNullable(DBColumn column,
DBColumn remoteColumn,
DBModelErrorHandler handler) |
protected void |
DBModelChecker.checkColumnSize(DBColumn column,
DBColumn remoteColumn,
DBModelErrorHandler handler) |
protected void |
DBModelChecker.checkColumnType(DBColumn column,
DBColumn remoteColumn,
DBModelErrorHandler handler) |
protected void |
DBModelChecker.checkDateColumn(DBColumn column,
DBColumn remoteColumn,
DBModelErrorHandler handler) |
protected void |
DBModelChecker.checkDecimalColumn(DBColumn column,
DBColumn remoteColumn,
DBModelErrorHandler handler) |
protected void |
DBModelChecker.checkFloatColumn(DBColumn column,
DBColumn remoteColumn,
DBModelErrorHandler handler) |
protected void |
DBModelChecker.checkIntegerColumn(DBColumn column,
DBColumn remoteColumn,
DBModelErrorHandler handler) |
protected void |
DBModelChecker.checkTextColumn(DBColumn column,
DBColumn remoteColumn,
DBModelErrorHandler handler) |
protected void |
DBModelChecker.checkUniqueIdColumn(DBColumn column,
DBColumn remoteColumn,
DBModelErrorHandler handler) |
protected void |
DBModelChecker.checkUnknownColumn(DBColumn column,
DBColumn remoteColumn,
DBModelErrorHandler handler)
empire-db DataType-specific checker
|
void |
DBModelErrorLogger.columnNullableMismatch(DBColumn col,
boolean nullable)
handle columnNullableMismatch errors
|
void |
DBModelErrorHandler.columnNullableMismatch(DBColumn col,
boolean nullable)
This method is called when a NOT NULL constraints of a column in
the Empire-db definition does not match the database.
|
void |
DBModelErrorLogger.columnSizeMismatch(DBColumn col,
int size,
int scale)
handle columnSizeMismatch errors
|
void |
DBModelErrorHandler.columnSizeMismatch(DBColumn col,
int size,
int scale)
This method is called when the size of a column in the Empire-db
definition does not match the database.
|
void |
DBModelErrorLogger.columnTypeMismatch(DBColumn col,
DataType type)
handle columnTypeMismatch errors
|
void |
DBModelErrorHandler.columnTypeMismatch(DBColumn col,
DataType type)
This method is called when the type of a column in the Empire-db
definition does not match the database.
|
void |
DBModelErrorLogger.primaryKeyColumnMissing(DBIndex primaryKey,
DBColumn column)
handle primaryKeyColumnMissing errors
|
void |
DBModelErrorHandler.primaryKeyColumnMissing(DBIndex primaryKey,
DBColumn column)
This method is called when a column in a primary key of the Empire-db definition
is missing in the database
|
Copyright © 2008–2015 Apache Software Foundation. All rights reserved.