Package | Description |
---|---|
org.apache.empire.db |
This package contains the core Empire-DB implementation classes.
|
org.apache.empire.db.derby |
This package contains classes necessary to support the Apache Derby database system.
|
org.apache.empire.db.h2 |
This package contains classes necessary to support the H2 database system.
|
org.apache.empire.db.hsql |
This package contains classes necessary to support the HSQLDB database system.
|
org.apache.empire.db.mysql |
This package contains classes necessary to support the MySQL database system.
|
org.apache.empire.db.oracle |
This package contains classes necessary to support the Oracle database system.
|
org.apache.empire.db.postgresql |
This package contains classes necessary to support the PostgreSQL database system.
|
org.apache.empire.db.sqlite | |
org.apache.empire.db.sqlserver |
This package contains classes necessary to support the Microsoft SQL-Server database system.
|
org.apache.empire.db.validation |
Modifier and Type | Method and Description |
---|---|
DBTableColumn |
DBTable.addColumn(String columnName,
DataType type,
double size,
boolean required)
Creates a new table column and adds it to the table's column list
|
DBTableColumn |
DBTable.addColumn(String columnName,
DataType type,
double size,
boolean required,
Class<?> enumType)
Creates a new table column with Enum-Options and adds it to the table's column list
This overload should be used for column containing enum values which have no default value.
|
DBTableColumn |
DBTable.addColumn(String columnName,
DataType type,
double size,
boolean required,
Enum<?> enumValue)
Creates a new table column with Enum-Options and adds it to the table's column list
This overload should be used for column containing enum values which have a default value.
|
DBTableColumn |
DBTable.addColumn(String columnName,
DataType type,
double size,
boolean required,
Object defValue)
Creates a new DBTableColumn object and adds it to the column collection.
|
DBTableColumn |
DBTable.addColumn(String columnName,
DataType type,
double size,
boolean required,
Options options)
Creates a new table column with options and adds it to the table's column list
This overload should be used for column containing enum values which have no default value.
|
DBTableColumn |
DBTable.addColumn(String columnName,
DataType type,
double size,
boolean required,
Options options,
Object defValue)
Creates a new table column with options and adds it to the table's column list
This overload should be used for column containing enum values which have a default value.
|
DBTableColumn |
DBTable.addColumn(String columnName,
DataType type,
double size,
DataMode dataMode)
Deprecated.
|
DBTableColumn |
DBTable.addColumn(String columnName,
DataType type,
double size,
DataMode dataMode,
Object defValue)
Deprecated.
|
DBTableColumn |
DBTable.addTimestampColumn(String columnName)
Adds a timestamp column to the table used for optimistic locking.
|
protected DBTableColumn |
DBTable.crateAndAppendColumn(String columnName,
DataType type,
double size,
boolean required,
Object defValue)
Creates a new Column object and appends it to the column list
|
DBTableColumn |
DBRelation.DBReference.getSourceColumn() |
DBTableColumn |
DBRelation.DBReference.getTargetColumn() |
Modifier and Type | Method and Description |
---|---|
protected DBView.DBViewColumn |
DBView.addColumn(DBTableColumn sourceColumn)
Adds a column to the view based on an existing column in another table or view.
|
protected void |
DBTable.addColumn(DBTableColumn column)
Adds a column to this table's column list.
|
protected void |
DBDDLGenerator.alterTable(DBTableColumn col,
DBCmdType type,
DBSQLScript script)
Appends the DDL-Script for altering a table to an SQL-Script
|
protected boolean |
DBDDLGenerator.appendColumnDataType(DataType type,
double size,
DBTableColumn c,
StringBuilder sql)
appends the data type of a column
|
protected void |
DBDDLGenerator.appendColumnDesc(DBTableColumn c,
boolean alter,
StringBuilder sql)
Appends a table column definition to a ddl statement
|
Object |
DBDatabaseDriver.getColumnAutoValue(DBDatabase db,
DBTableColumn column,
Connection conn)
Returns an auto-generated value for a particular column
|
abstract DBColumnExpr |
DBDatabaseDriver.getNextSequenceValueExpr(DBTableColumn column)
Returns an expression for creating a sequence value.
|
DBRelation.DBReference |
DBTableColumn.referenceOn(DBTableColumn target)
Creates a foreign key relation for this column.
|
Constructor and Description |
---|
DBReference(DBTableColumn sourceColumn,
DBTableColumn targetColumn) |
DBTableColumn(DBTable newTable,
DBTableColumn other)
Clone Constructor - use clone()
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
DerbyDDLGenerator.appendColumnDataType(DataType type,
double size,
DBTableColumn c,
StringBuilder sql) |
protected void |
DerbyDDLGenerator.appendColumnDesc(DBTableColumn c,
boolean alter,
StringBuilder sql) |
DBColumnExpr |
DBDatabaseDriverDerby.getNextSequenceValueExpr(DBTableColumn column) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
H2DDLGenerator.appendColumnDataType(DataType type,
double size,
DBTableColumn c,
StringBuilder sql) |
DBColumnExpr |
DBDatabaseDriverH2.getNextSequenceValueExpr(DBTableColumn column) |
Modifier and Type | Method and Description |
---|---|
protected void |
HSqlDDLGenerator.createSequence(DBDatabase db,
DBTableColumn c,
DBSQLScript script)
Appends the DDL-Script for creating a sequence to an SQL-Script
|
DBColumnExpr |
DBDatabaseDriverHSql.getNextSequenceValueExpr(DBTableColumn column) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
MySQLDDLGenerator.appendColumnDataType(DataType type,
double size,
DBTableColumn c,
StringBuilder sql) |
DBColumnExpr |
DBDatabaseDriverMySQL.getNextSequenceValueExpr(DBTableColumn column) |
Modifier and Type | Field and Description |
---|---|
DBTableColumn |
OracleSYSDatabase.DBColInfo.C_CHAR_LENGTH |
DBTableColumn |
OracleSYSDatabase.DBUserConCol.C_COLUMN_NAME |
DBTableColumn |
OracleSYSDatabase.DBColInfo.C_COLUMN_NAME |
DBTableColumn |
OracleSYSDatabase.DBColComments.C_COLUMN_NAME |
DBTableColumn |
OracleSYSDatabase.DBTabComments.C_COMMENTS |
DBTableColumn |
OracleSYSDatabase.DBColComments.C_COMMENTS |
DBTableColumn |
OracleSYSDatabase.DBConstraints.C_CONSTRAINT_NAME |
DBTableColumn |
OracleSYSDatabase.DBUserConCol.C_CONSTRAINT_NAME |
DBTableColumn |
OracleSYSDatabase.DBConstraints.C_CONSTRAINT_TYPE |
DBTableColumn |
OracleSYSDatabase.DBColInfo.C_DATA_LENGTH |
DBTableColumn |
OracleSYSDatabase.DBColInfo.C_DATA_PRECISION |
DBTableColumn |
OracleSYSDatabase.DBColInfo.C_DATA_SCALE |
DBTableColumn |
OracleSYSDatabase.DBColInfo.C_DATA_TYPE |
DBTableColumn |
OracleSYSDatabase.DBColInfo.C_DATA_TYPE_MOD |
DBTableColumn |
OracleSYSDatabase.DBColInfo.C_DATA_TYPE_OWNER |
DBTableColumn |
OracleSYSDatabase.DBColInfo.C_NULLABLE |
DBTableColumn |
OracleSYSDatabase.DBTabComments.C_OWNER |
DBTableColumn |
OracleSYSDatabase.DBUserConCol.C_OWNER |
DBTableColumn |
OracleSYSDatabase.DBColInfo.C_OWNER |
DBTableColumn |
OracleSYSDatabase.DBColComments.C_OWNER |
DBTableColumn |
OracleSYSDatabase.DBConstraints.C_R_CONSTRAINT_NAME |
DBTableColumn |
OracleSYSDatabase.DBConstraints.C_STATUS |
DBTableColumn |
OracleSYSDatabase.DBTabComments.C_TABLE_NAME |
DBTableColumn |
OracleSYSDatabase.DBConstraints.C_TABLE_NAME |
DBTableColumn |
OracleSYSDatabase.DBUserConCol.C_TABLE_NAME |
DBTableColumn |
OracleSYSDatabase.DBColInfo.C_TABLE_NAME |
DBTableColumn |
OracleSYSDatabase.DBColComments.C_TABLE_NAME |
DBTableColumn |
OracleSYSDatabase.DBTabComments.C_TABLE_TYPE |
Modifier and Type | Method and Description |
---|---|
protected boolean |
OracleDDLGenerator.appendColumnDataType(DataType type,
double size,
DBTableColumn c,
StringBuilder sql) |
protected void |
OracleDDLGenerator.createSequence(DBDatabase db,
DBTableColumn c,
DBSQLScript script)
Returns true if the sequence has been created successfully.
|
DBColumnExpr |
DBDatabaseDriverOracle.getNextSequenceValueExpr(DBTableColumn column) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
PostgreDDLGenerator.appendColumnDataType(DataType type,
double size,
DBTableColumn c,
StringBuilder sql) |
protected void |
PostgreDDLGenerator.appendColumnDesc(DBTableColumn c,
boolean alter,
StringBuilder sql) |
protected void |
PostgreDDLGenerator.createSequence(DBDatabase db,
DBTableColumn c,
DBSQLScript script)
Appends the DDL-Script for creating a sequence to an SQL-Script
|
DBColumnExpr |
DBDatabaseDriverPostgreSQL.getNextSequenceValueExpr(DBTableColumn column) |
Modifier and Type | Method and Description |
---|---|
DBColumnExpr |
DBDatabaseDriverSQLite.getNextSequenceValueExpr(DBTableColumn column) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
MSSqlDDLGenerator.appendColumnDataType(DataType type,
double size,
DBTableColumn c,
StringBuilder sql) |
Object |
DBDatabaseDriverMSSQL.getColumnAutoValue(DBDatabase db,
DBTableColumn column,
Connection conn)
Returns an auto-generated value for a particular column
|
DBColumnExpr |
DBDatabaseDriverMSSQL.getNextSequenceValueExpr(DBTableColumn column) |
Modifier and Type | Method and Description |
---|---|
protected DBTableColumn |
DBModelChecker.addColumn(DBTable t,
ResultSet rs) |
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.