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.validation | |
org.apache.empire.dbms | |
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.
|
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.
|
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 DBColumn[] |
DBQuery.keyColumns |
protected DBColumn |
DBView.DBViewColumn.sourceColumn |
protected DBColumn |
DBRowSet.timestampColumn |
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 |
---|---|
DBColumn |
DBRowSet.getColumn(int iColumn)
Returns a DBColumn object by a specified index value.
|
DBColumn |
DBRecordBase.getColumn(int index)
Implements the Record Interface getColumn method.
|
DBColumn |
DBIndex.getColumn(int index)
Returns the columns belonging to this index.
|
DBColumn |
DBRowSet.getColumn(String name)
Gets the column Expression with a particular name.
|
DBColumn[] |
DBIndex.getColumns()
Returns the columns belonging to this index.
|
DBColumn[] |
DBView.getKeyColumns()
Returns an array of all key columns.
|
DBColumn[] |
DBTable.getKeyColumns()
Returns an array of all primary key columns.
|
abstract DBColumn[] |
DBRowSet.getKeyColumns() |
DBColumn[] |
DBQuery.getKeyColumns()
return query key columns
|
DBColumn[] |
DBCommandExpr.DBCmdQuery.getKeyColumns()
Prints the error message: ERR_NOTSUPPORTED.
|
abstract DBColumn |
DBColumnExpr.getSourceColumn()
Returns the underlying physical column which was used for this expression
For functions involving none or more than one physical column this function return the first one
|
DBColumn |
DBColumn.getSourceColumn()
Returns itself as the source column.
|
DBColumn |
DBRowSet.getTimestampColumn() |
DBColumn |
DBQuery.DBQueryExprColumn.getUpdateColumn() |
abstract DBColumn |
DBColumnExpr.getUpdateColumn()
Returns the underlying physical column which may be used for updates.
|
DBColumn |
DBColumn.getUpdateColumn()
Returns itself as the update column.
|
static DBColumn[] |
DBRowSet.key(DBColumn... parts)
varArgs to Array
|
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. for cmd.select()).
|
Modifier and Type | Method and Description |
---|---|
protected void |
DBDDLGenerator.addAlterTableStmt(DBColumn col,
DBSQLBuilder 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.
|
DBIndex |
DBTable.addIndex(String name,
DBIndex.DBIndexType type,
DBColumn... columns)
Adds an index.
|
protected boolean |
DBQuery.addJoinRestriction(DBCommand cmd,
DBColumn updCol,
DBColumn joinCol,
DBColumn[] keyColumns,
Object[] key,
DBRecordBase record)
Adds join restrictions to the supplied command object.
|
protected boolean |
DBQuery.addJoinRestriction(DBCommand cmd,
DBColumn updCol,
DBColumn joinCol,
DBColumn[] keyColumns,
Object[] key,
DBRecordBase record)
Adds join restrictions to the supplied command object.
|
protected boolean |
DBRecordBase.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.compareColumns(DBColumn[] columns)
checks whether the columns of this index match the supplied columns
|
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 |
DBQuery.getColumnIndex(DBColumn column) |
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.
|
Options |
DBRecordBase.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
|
protected boolean |
DBRecordBase.isColumn(int index,
DBColumn... column)
helper function to check if a given field index corresponds to one of the given columns
|
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
|
DBCommand |
DBCommand.join(DBColumn[] left,
DBColumn[] right,
DBJoinType joinType,
DBCompareExpr... addlConstraints)
Multi-Column version of column based join expression
|
DBCommand |
DBCommand.join(DBColumn[] left,
DBColumn[] right,
DBJoinType joinType,
DBCompareExpr... addlConstraints)
Multi-Column version of column based join expression
|
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.
|
static DBColumn[] |
DBRowSet.key(DBColumn... parts)
varArgs to Array
|
DBRecordBean |
DBRecordBean.read(DBContext context,
DBRowSet rowset,
Object[] key,
DBRowSet.PartialMode mode,
DBColumn... columns)
Reads a record partially i.e. not with all but just some selected fields
There are two modes:
1.
|
DBRecord |
DBRecord.read(Object[] key,
DBRowSet.PartialMode mode,
DBColumn... columns)
Reads a record partially i.e. not with all but just some selected fields
There are two modes:
1.
|
void |
DBRowSet.readRecord(DBRecordBase record,
DBCompareExpr whereConstraints,
DBRowSet.PartialMode mode,
DBColumn... columns)
Reads the partial record for a given primary key from the database
|
boolean |
DBCommand.removeJoinsOn(DBColumn column)
removes all joins to a given column
|
void |
DBRecordBase.setParentRecord(DBColumn parentIdColumn,
DBRecordBase record)
For DBMS with IDENTITY-columns defer setting the parent-id until the record is inserted
The parent record must have a one-column primary key
|
void |
DBTable.setPrimaryKey(DBColumn... columns)
Sets the primary key.
|
void |
DBRowSet.setTimestampColumn(DBColumn timestampColumn) |
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,
DBIndex.DBIndexType 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.
|
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.
|
Modifier and Type | Method and Description |
---|---|
DBColumn |
DBVarArgsFuncExpr.getSourceColumn() |
DBColumn |
DBValueExpr.getSourceColumn()
Returns the expression the source column.
|
DBColumn |
DBScalarExpr.getSourceColumn()
Returns the expression the source column.
|
DBColumn |
DBParenthesisExpr.getSourceColumn()
Returns the expression the source column.
|
DBColumn |
DBCountExpr.getSourceColumn()
Returns the expression the source column.
|
DBColumn |
DBConcatExpr.getSourceColumn() |
DBColumn |
DBCmdResultExpr.getSourceColumn() |
DBColumn |
DBCaseWhenExpr.getSourceColumn() |
DBColumn |
DBCaseExpr.getSourceColumn() |
DBColumn |
DBCalcExpr.getSourceColumn()
Returns the expression the source column.
|
DBColumn |
DBAliasExpr.getSourceColumn()
Returns the expression the source column.
|
DBColumn |
DBAbstractFuncExpr.getSourceColumn()
Returns the expression the source column.
|
DBColumn |
DBVarArgsFuncExpr.getUpdateColumn() |
DBColumn |
DBValueExpr.getUpdateColumn()
Returns the expression the update column.
|
DBColumn |
DBScalarExpr.getUpdateColumn()
Returns null.
|
DBColumn |
DBParenthesisExpr.getUpdateColumn()
Returns the DBColunm object.
|
DBColumn |
DBDecodeExpr.getUpdateColumn() |
DBColumn |
DBCountExpr.getUpdateColumn()
Returns null.
|
DBColumn |
DBConcatFuncExpr.getUpdateColumn() |
DBColumn |
DBConcatExpr.getUpdateColumn() |
DBColumn |
DBCmdResultExpr.getUpdateColumn() |
DBColumn |
DBCaseWhenExpr.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 |
DBVarArgsFuncExpr.addReferencedColumns(Set<DBColumn> list) |
void |
DBValueExpr.addReferencedColumns(Set<DBColumn> list) |
void |
DBScalarExpr.addReferencedColumns(Set<DBColumn> list) |
void |
DBParenthesisExpr.addReferencedColumns(Set<DBColumn> list) |
void |
DBFuncExpr.addReferencedColumns(Set<DBColumn> list) |
void |
DBDecodeExpr.addReferencedColumns(Set<DBColumn> list) |
void |
DBCountExpr.addReferencedColumns(Set<DBColumn> list) |
void |
DBConcatExpr.addReferencedColumns(Set<DBColumn> list) |
void |
DBCoalesceExpr.addReferencedColumns(Set<DBColumn> list) |
void |
DBCmdResultExpr.addReferencedColumns(Set<DBColumn> list) |
void |
DBCaseWhenExpr.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) |
Modifier and Type | Method and Description |
---|---|
void |
DBExistsExpr.addReferencedColumns(Set<DBColumn> list) |
void |
DBCompareParenthesisExpr.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 |
---|---|
abstract boolean |
DBJoinExpr.isJoinOn(DBColumn column)
returns true if this join is using the given column or false otherwise
|
boolean |
DBCrossJoinExpr.isJoinOn(DBColumn column)
returns true if this join is using the given column or false otherwise
|
boolean |
DBColumnJoinExpr.isJoinOn(DBColumn column)
returns true if this join is using the given column or false otherwise
|
Modifier and Type | Method and Description |
---|---|
void |
DBCrossJoinExpr.addReferencedColumns(Set<DBColumn> list) |
void |
DBColumnJoinExpr.addReferencedColumns(Set<DBColumn> list) |
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 |
---|---|
protected DBColumn |
DBModelParser.addColumn(DBRowSet t,
ResultSet rs) |
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.checkColumn(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
|
void |
DBModelErrorLogger.primaryKeyMismatch(DBIndex primaryKey,
DBColumn[] tableKey) |
void |
DBModelErrorHandler.primaryKeyMismatch(DBIndex primaryKey,
DBColumn[] tableKey)
This method is called when the primary key of the Empire-db definition
does not match the primary key of the existing table
|
Modifier and Type | Field and Description |
---|---|
DBColumn |
DBMSHandlerBase.DBSeqTable.C_SEQNAME |
DBColumn |
DBMSHandlerBase.DBSeqTable.C_SEQVALUE |
DBColumn |
DBMSHandlerBase.DBSeqTable.C_TIMESTAMP |
Modifier and Type | Method and Description |
---|---|
DBColumn |
OracleRowNumExpr.getSourceColumn()
Returns null.
|
DBColumn |
OracleRowNumExpr.getUpdateColumn()
Returns null.
|
Modifier and Type | Method and Description |
---|---|
protected void |
OracleDBModelChecker.checkBoolColumn(DBColumn column,
DBColumn remoteColumn,
DBModelErrorHandler handler) |
protected void |
OracleDBModelChecker.checkColumnType(DBColumn column,
DBColumn remoteColumn,
DBModelErrorHandler handler) |
Modifier and Type | Method and Description |
---|---|
void |
OracleRowNumExpr.addReferencedColumns(Set<DBColumn> list) |
Modifier and Type | Method and Description |
---|---|
DBColumn |
PostgresBoolAndOrExpr.getSourceColumn() |
DBColumn |
PostgresBoolAndOrExpr.getUpdateColumn() |
Modifier and Type | Method and Description |
---|---|
void |
PostgresFuncExpr.addReferencedColumns(Set<DBColumn> list) |
void |
PostgresBoolAndOrExpr.addReferencedColumns(Set<DBColumn> list) |
void |
PostgresAtAt.addReferencedColumns(Set<DBColumn> list) |
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.