| Package | Description |
|---|---|
| com.feedzai.commons.sql.abstraction.ddl |
Contains classes that aid on DDL creation.
|
| com.feedzai.commons.sql.abstraction.engine |
Contains the database engine core.
|
| com.feedzai.commons.sql.abstraction.engine.impl |
Database specific implementations.
|
| Modifier and Type | Method and Description |
|---|---|
DbEntity |
DbEntity.addColumn(Collection<DbColumn> dbColumn)
Adds the columns to the entity.
|
DbEntity |
DbEntity.addColumn(DbColumn dbColumn)
Adds a column to the entity.
|
DbEntity |
DbEntity.addColumn(String name,
DbColumnType type,
boolean autoInc,
DbColumnConstraint... constraints)
Adds a column to the entity.
|
DbEntity |
DbEntity.addColumn(String name,
DbColumnType type,
DbColumnConstraint... constraints)
Adds a column to the entity.
|
DbEntity |
DbEntity.addColumn(String name,
DbColumnType type,
Integer size,
boolean autoInc,
DbColumnConstraint... constraints)
Adds a column to the entity.
|
DbEntity |
DbEntity.addColumn(String name,
DbColumnType type,
Integer size,
DbColumnConstraint... constraints)
Adds a column to the entity.
|
DbEntity |
DbEntity.addColumn(String name,
DbColumnType type,
K defaultValue,
DbColumnConstraint... constraints)
Adds a column to the entity.
|
DbEntity |
DbEntity.addFk(DbFk... fks)
Adds the FKs.
|
DbEntity |
DbEntity.addFks(Collection<DbFk> fks)
Adds the FKs.
|
DbEntity |
DbEntity.addIndex(boolean unique,
String... columns)
Adds an index.
|
DbEntity |
DbEntity.addIndex(Collection<String> columns)
Adds an index.
|
DbEntity |
DbEntity.addIndex(DbIndex index)
Adds an index.
|
DbEntity |
DbEntity.addIndex(String... columns)
Adds an index.
|
DbEntity |
DbEntity.setName(String name)
Sets the entity name.
|
DbEntity |
DbEntity.setPkFields(String... pkFields)
Sets the PK fields.
|
| Modifier and Type | Method and Description |
|---|---|
DbEntity |
MappedEntity.getEntity() |
DbEntity |
DatabaseEngineImpl.removeEntity(String name) |
DbEntity |
DatabaseEngine.removeEntity(String name)
Removes the entity given the name.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
DatabaseEngineImpl.addColumn(DbEntity entity,
DbColumn... columns)
Adds the column to an existent table.
|
void |
DatabaseEngineImpl.addEntity(DbEntity entity)
Adds an entity to the engine.
|
void |
DatabaseEngine.addEntity(DbEntity entity)
Adds an entity to the engine.
|
protected abstract void |
DatabaseEngineImpl.addFks(DbEntity entity)
Adds the FKs.
|
protected abstract void |
DatabaseEngineImpl.addIndexes(DbEntity entity)
Add the desired indexes.
|
protected abstract void |
DatabaseEngineImpl.addPrimaryKey(DbEntity entity)
Add a primary key to the entity.
|
protected abstract void |
DatabaseEngineImpl.addSequences(DbEntity entity)
Adds the necessary sequences.
|
protected abstract MappedEntity |
DatabaseEngineImpl.createPreparedStatementForInserts(DbEntity entity)
Creates and gets the prepared statement that will be used for insertions.
|
protected abstract void |
DatabaseEngineImpl.createTable(DbEntity entity)
Creates the table.
|
protected abstract void |
DatabaseEngineImpl.dropColumn(DbEntity entity,
String... columns)
Drops the column.
|
void |
DatabaseEngineImpl.dropEntity(DbEntity entity)
Drops everything that belongs to the entity.
|
protected abstract void |
DatabaseEngineImpl.dropSequences(DbEntity entity)
Drops the sequences of the entity.
|
protected abstract void |
DatabaseEngineImpl.dropTable(DbEntity entity)
Drops the table.
|
protected abstract int |
DatabaseEngineImpl.entityToPreparedStatement(DbEntity entity,
PreparedStatement ps,
EntityEntry entry,
boolean useAutoIncs)
Translates the given entry entity to the prepared statement.
|
MappedEntity |
MappedEntity.setEntity(DbEntity entity)
Sets the entity.
|
void |
DatabaseEngineImpl.updateEntity(DbEntity entity)
Updates an entity in the engine.
|
void |
DatabaseEngine.updateEntity(DbEntity entity)
Updates an entity in the engine.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
OracleEngine.addColumn(DbEntity entity,
DbColumn... columns) |
protected void |
SqlServerEngine.addColumn(DbEntity entity,
DbColumn... columns) |
protected void |
DB2Engine.addColumn(DbEntity entity,
DbColumn... columns) |
protected void |
H2Engine.addColumn(DbEntity entity,
DbColumn... columns) |
protected void |
PostgreSqlEngine.addColumn(DbEntity entity,
DbColumn... columns) |
protected void |
MySqlEngine.addColumn(DbEntity entity,
DbColumn... columns) |
protected void |
OracleEngine.addFks(DbEntity entity) |
protected void |
SqlServerEngine.addFks(DbEntity entity) |
protected void |
DB2Engine.addFks(DbEntity entity) |
protected void |
H2Engine.addFks(DbEntity entity) |
protected void |
PostgreSqlEngine.addFks(DbEntity entity) |
protected void |
MySqlEngine.addFks(DbEntity entity) |
protected void |
OracleEngine.addIndexes(DbEntity entity) |
protected void |
SqlServerEngine.addIndexes(DbEntity entity) |
protected void |
DB2Engine.addIndexes(DbEntity entity) |
protected void |
H2Engine.addIndexes(DbEntity entity) |
protected void |
PostgreSqlEngine.addIndexes(DbEntity entity) |
protected void |
MySqlEngine.addIndexes(DbEntity entity) |
protected void |
OracleEngine.addPrimaryKey(DbEntity entity) |
protected void |
SqlServerEngine.addPrimaryKey(DbEntity entity) |
protected void |
DB2Engine.addPrimaryKey(DbEntity entity) |
protected void |
H2Engine.addPrimaryKey(DbEntity entity) |
protected void |
PostgreSqlEngine.addPrimaryKey(DbEntity entity) |
protected void |
MySqlEngine.addPrimaryKey(DbEntity entity) |
protected void |
OracleEngine.addSequences(DbEntity entity) |
protected void |
SqlServerEngine.addSequences(DbEntity entity) |
protected void |
DB2Engine.addSequences(DbEntity entity) |
protected void |
H2Engine.addSequences(DbEntity entity) |
protected void |
PostgreSqlEngine.addSequences(DbEntity entity) |
protected void |
MySqlEngine.addSequences(DbEntity entity) |
protected MappedEntity |
OracleEngine.createPreparedStatementForInserts(DbEntity entity) |
protected MappedEntity |
SqlServerEngine.createPreparedStatementForInserts(DbEntity entity) |
protected MappedEntity |
DB2Engine.createPreparedStatementForInserts(DbEntity entity) |
protected MappedEntity |
H2Engine.createPreparedStatementForInserts(DbEntity entity) |
protected MappedEntity |
PostgreSqlEngine.createPreparedStatementForInserts(DbEntity entity) |
protected MappedEntity |
MySqlEngine.createPreparedStatementForInserts(DbEntity entity) |
protected void |
OracleEngine.createTable(DbEntity entity) |
protected void |
SqlServerEngine.createTable(DbEntity entity) |
protected void |
DB2Engine.createTable(DbEntity entity) |
protected void |
H2Engine.createTable(DbEntity entity) |
protected void |
PostgreSqlEngine.createTable(DbEntity entity) |
protected void |
MySqlEngine.createTable(DbEntity entity) |
protected void |
OracleEngine.dropColumn(DbEntity entity,
String... columns) |
protected void |
SqlServerEngine.dropColumn(DbEntity entity,
String... columns) |
protected void |
DB2Engine.dropColumn(DbEntity entity,
String... columns) |
protected void |
H2Engine.dropColumn(DbEntity entity,
String... columns) |
protected void |
PostgreSqlEngine.dropColumn(DbEntity entity,
String... columns) |
protected void |
MySqlEngine.dropColumn(DbEntity entity,
String... columns) |
protected void |
SqlServerEngine.dropReferringFks(DbEntity entity) |
protected void |
MySqlEngine.dropReferringFks(DbEntity entity) |
protected void |
OracleEngine.dropSequences(DbEntity entity) |
protected void |
SqlServerEngine.dropSequences(DbEntity entity) |
protected void |
DB2Engine.dropSequences(DbEntity entity) |
protected void |
H2Engine.dropSequences(DbEntity entity) |
protected void |
PostgreSqlEngine.dropSequences(DbEntity entity) |
protected void |
MySqlEngine.dropSequences(DbEntity entity) |
protected void |
OracleEngine.dropTable(DbEntity entity) |
protected void |
SqlServerEngine.dropTable(DbEntity entity) |
protected void |
DB2Engine.dropTable(DbEntity entity) |
protected void |
H2Engine.dropTable(DbEntity entity) |
protected void |
PostgreSqlEngine.dropTable(DbEntity entity) |
protected void |
MySqlEngine.dropTable(DbEntity entity) |
protected int |
OracleEngine.entityToPreparedStatement(DbEntity entity,
PreparedStatement ps,
EntityEntry entry,
boolean useAutoInc) |
protected int |
SqlServerEngine.entityToPreparedStatement(DbEntity entity,
PreparedStatement ps,
EntityEntry entry,
boolean useAutoInc) |
protected int |
DB2Engine.entityToPreparedStatement(DbEntity entity,
PreparedStatement ps,
EntityEntry entry,
boolean useAutoInc) |
protected int |
H2Engine.entityToPreparedStatement(DbEntity entity,
PreparedStatement ps,
EntityEntry entry,
boolean useAutoInc) |
protected int |
PostgreSqlEngine.entityToPreparedStatement(DbEntity entity,
PreparedStatement ps,
EntityEntry entry,
boolean useAutoInc) |
protected int |
MySqlEngine.entityToPreparedStatement(DbEntity entity,
PreparedStatement ps,
EntityEntry entry,
boolean useAutoInc) |
void |
DB2Engine.updateEntity(DbEntity entity) |
Copyright © 2013. All Rights Reserved.