Package | Description |
---|---|
org.apache.empire.db |
This package contains the core Empire-DB implementation classes.
|
org.apache.empire.db.validation | |
org.apache.empire.dbms.oracle |
This package contains classes necessary to support the Oracle database system.
|
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 |
DBExpressionIndex
This class handles the primary key for the tables.
|
Modifier and Type | Method and Description |
---|---|
DBIndex |
DBTable.addIndex(DBIndex index)
Adds an index.
|
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.
|
DBIndex |
DBTable.checkUniqueConstraints(DBRecordBase record)
Checks weather a unique constraint is violated when inserting or updating a record.
|
DBIndex |
DBTable.getPrimaryKey()
Returns the primary key.
|
Modifier and Type | Method and Description |
---|---|
List<DBIndex> |
DBTable.getIndexes()
Returns the list of indexes (except the primary key).
|
Modifier and Type | Method and Description |
---|---|
protected void |
DBDDLGenerator.addCreateIndexStmt(DBIndex index,
DBSQLBuilder sql,
DBSQLScript script) |
DBIndex |
DBTable.addIndex(DBIndex index)
Adds an index.
|
protected void |
DBDDLGenerator.createIndex(DBTable t,
DBIndex idx,
DBSQLScript script)
Appends the DDL-Script for creating a single index to an SQL-Script
|
protected void |
DBDDLGenerator.createTableIndexes(DBTable t,
DBIndex pk,
DBSQLScript script)
Appends the DDL-Script for creating all indexes of table (except the primary key) to an SQL-Script
|
void |
DBTable.removeIndex(DBIndex index)
removes an index.
|
Modifier and Type | Method and Description |
---|---|
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 | Method and Description |
---|---|
void |
DBCommandOracle.setOptimizerIndexHint(DBIndex index) |
Modifier and Type | Method and Description |
---|---|
protected void |
MSSqlDDLGenerator.addCreateIndexStmt(DBIndex index,
DBSQLBuilder sql,
DBSQLScript script) |
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.