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.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DBDDLGenerator.addAlterTableStmt(DBColumn col,
StringBuilder sql,
DBSQLScript script) |
protected void |
DBDDLGenerator.addCreateIndexStmt(DBIndex index,
StringBuilder sql,
DBSQLScript script) |
protected void |
DBDDLGenerator.addCreateRelationStmt(DBRelation rel,
StringBuilder sql,
DBSQLScript script) |
protected void |
DBDDLGenerator.addCreateTableStmt(DBTable table,
StringBuilder sql,
DBSQLScript script) |
protected void |
DBDDLGenerator.addCreateViewStmt(DBView v,
StringBuilder sql,
DBSQLScript script) |
void |
DBDatabaseDriver.addEnableRelationStmt(DBRelation r,
boolean enable,
DBSQLScript script)
Appends a statement to enable or disable a foreign key relation.
The default is to drop or create the relation Override this method to provide different behavior for your database. |
protected void |
DBDDLGenerator.alterTable(DBTableColumn col,
DBCmdType type,
DBSQLScript script)
Appends the DDL-Script for altering a table to an SQL-Script
|
protected void |
DBDDLGenerator.createDatabase(DBDatabase db,
DBSQLScript script)
Appends the DDL-Script for creating the given database to an SQL-Script
This includes the generation of all tables, views and relations. |
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.createRelation(DBRelation r,
DBSQLScript script)
Appends the DDL-Script for creating the given foreign-key relation to an SQL-Script
|
protected void |
DBDDLGenerator.createTable(DBTable t,
DBSQLScript script)
Appends the DDL-Script for creating the given table 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
|
protected void |
DBDDLGenerator.createView(DBView v,
DBSQLScript script)
Appends the DDL-Script for creating the given view to an SQL-Script
|
protected void |
DBDDLGenerator.dropDatabase(DBDatabase db,
DBSQLScript script)
Appends the DDL-Script for dropping a database to the given script object
|
protected void |
DBDDLGenerator.dropObject(String name,
String objType,
DBSQLScript script)
Appends the DDL-Script for dropping a database object to an SQL-Script
|
void |
DBDatabase.getCreateDDLScript(DBDatabaseDriver driver,
DBSQLScript script)
Creates a DDL Script for creating all database objects on the target database.
This function may be called even if the database has not been previously opened. |
void |
DBDDLGenerator.getDDLScript(DBCmdType type,
DBObject dbo,
DBSQLScript script)
Appends the required DLL commands to create, drop or alter an object to the supplied DBDQLScript.
|
void |
DBDatabaseDriver.getDDLScript(DBCmdType type,
DBObject dbo,
DBSQLScript script)
Appends the required DLL commands to create, drop or alter an object to the supplied DBDQLScript.
|
Modifier and Type | Method and Description |
---|---|
void |
DBDatabaseDriverDerby.getDDLScript(DBCmdType type,
DBObject dbo,
DBSQLScript script) |
Modifier and Type | Method and Description |
---|---|
void |
DBDatabaseDriverH2.getDDLScript(DBCmdType type,
DBObject dbo,
DBSQLScript script) |
Modifier and Type | Method and Description |
---|---|
protected void |
HSqlDDLGenerator.createDatabase(DBDatabase db,
DBSQLScript script) |
protected void |
HSqlDDLGenerator.createSequence(DBDatabase db,
DBTableColumn c,
DBSQLScript script)
Appends the DDL-Script for creating a sequence to an SQL-Script
|
void |
DBDatabaseDriverHSql.getDDLScript(DBCmdType type,
DBObject dbo,
DBSQLScript script) |
Modifier and Type | Method and Description |
---|---|
protected void |
MySQLDDLGenerator.createDatabase(DBDatabase db,
DBSQLScript script) |
protected void |
MySQLDDLGenerator.createTable(DBTable t,
DBSQLScript script)
Appends the DDL-Script for creating the given table to an SQL-Script
|
void |
DBDatabaseDriverMySQL.getDDLScript(DBCmdType type,
DBObject dbo,
DBSQLScript script) |
Modifier and Type | Method and Description |
---|---|
void |
DBDatabaseDriverOracle.addEnableRelationStmt(DBRelation r,
boolean enable,
DBSQLScript script) |
protected void |
OracleDDLGenerator.createComment(DBDatabase db,
String type,
DBExpr expr,
String comment,
DBSQLScript script) |
protected void |
OracleDDLGenerator.createDatabase(DBDatabase db,
DBSQLScript script) |
protected void |
OracleDDLGenerator.createSequence(DBDatabase db,
DBTableColumn c,
DBSQLScript script)
Returns true if the sequence has been created successfully.
|
protected void |
OracleDDLGenerator.createTable(DBTable t,
DBSQLScript script) |
protected void |
OracleDDLGenerator.dropDatabase(DBDatabase db,
DBSQLScript script) |
void |
DBDatabaseDriverOracle.getDDLScript(DBCmdType type,
DBObject dbo,
DBSQLScript script) |
Modifier and Type | Method and Description |
---|---|
protected void |
PostgreDDLGenerator.createDatabase(DBDatabase db,
DBSQLScript script) |
protected void |
PostgreDDLGenerator.createSequence(DBDatabase db,
DBTableColumn c,
DBSQLScript script)
Appends the DDL-Script for creating a sequence to an SQL-Script
|
void |
DBDatabaseDriverPostgreSQL.getDDLScript(DBCmdType type,
DBObject dbo,
DBSQLScript script) |
Modifier and Type | Method and Description |
---|---|
protected void |
SQLiteDDLGenerator.createRelation(DBRelation r,
DBSQLScript script) |
protected void |
SQLiteDDLGenerator.createTable(DBTable t,
DBSQLScript script) |
void |
DBDatabaseDriverSQLite.getDDLScript(DBCmdType type,
DBObject dbo,
DBSQLScript script) |
Modifier and Type | Method and Description |
---|---|
void |
DBDatabaseDriverMSSQL.addEnableRelationStmt(DBRelation r,
boolean enable,
DBSQLScript script) |
protected void |
MSSqlDDLGenerator.createDatabase(DBDatabase db,
DBSQLScript script) |
void |
DBDatabaseDriverMSSQL.getDDLScript(DBCmdType type,
DBObject dbo,
DBSQLScript script) |
Copyright © 2008–2015 Apache Software Foundation. All rights reserved.