| 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.Builder.build()  | 
| Modifier and Type | Method and Description | 
|---|---|
DbEntity | 
MappedEntity.getEntity()
Gets the entity. 
 | 
DbEntity | 
DatabaseEngine.removeEntity(String name)
Removes the entity given the name. 
 | 
DbEntity | 
AbstractDatabaseEngine.removeEntity(String name)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected abstract void | 
AbstractDatabaseEngine.addColumn(DbEntity entity,
         DbColumn... columns)
Adds the column to an existent table. 
 | 
void | 
DatabaseEngine.addEntity(DbEntity entity)
Adds an entity to the engine. 
 | 
void | 
AbstractDatabaseEngine.addEntity(DbEntity entity)
Adds an entity to the engine. 
 | 
protected abstract void | 
AbstractDatabaseEngine.addFks(DbEntity entity)
Adds the FKs. 
 | 
protected abstract void | 
AbstractDatabaseEngine.addIndexes(DbEntity entity)
Add the desired indexes. 
 | 
protected abstract void | 
AbstractDatabaseEngine.addPrimaryKey(DbEntity entity)
Add a primary key to the entity. 
 | 
protected abstract void | 
AbstractDatabaseEngine.addSequences(DbEntity entity)
Adds the necessary sequences. 
 | 
protected abstract MappedEntity | 
AbstractDatabaseEngine.createPreparedStatementForInserts(DbEntity entity)
Creates and gets the prepared statement that will be used for insertions. 
 | 
protected abstract void | 
AbstractDatabaseEngine.createTable(DbEntity entity)
Creates the table. 
 | 
protected abstract void | 
AbstractDatabaseEngine.dropColumn(DbEntity entity,
          String... columns)
Drops the column. 
 | 
void | 
AbstractDatabaseEngine.dropEntity(DbEntity entity)
Drops everything that belongs to the entity. 
 | 
protected abstract void | 
AbstractDatabaseEngine.dropSequences(DbEntity entity)
Drops the sequences of the entity. 
 | 
protected abstract void | 
AbstractDatabaseEngine.dropTable(DbEntity entity)
Drops the table. 
 | 
protected abstract int | 
AbstractDatabaseEngine.entityToPreparedStatement(DbEntity entity,
                         PreparedStatement ps,
                         EntityEntry entry,
                         boolean useAutoIncs)
Translates the given entry entity to the prepared statement. 
 | 
boolean | 
AbstractDatabaseEngine.hasIdentityColumn(DbEntity entity)
Check if the entity has an identity column. 
 | 
MappedEntity | 
MappedEntity.setEntity(DbEntity entity)
Sets the entity. 
 | 
void | 
DatabaseEngine.updateEntity(DbEntity entity)
 Updates an entity in the engine. 
 | 
void | 
AbstractDatabaseEngine.updateEntity(DbEntity entity)
 Updates an entity in the engine. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
MySqlEngine.addColumn(DbEntity entity,
         DbColumn... columns)  | 
protected void | 
DB2Engine.addColumn(DbEntity entity,
         DbColumn... columns)  | 
protected void | 
PostgreSqlEngine.addColumn(DbEntity entity,
         DbColumn... columns)  | 
protected void | 
SqlServerEngine.addColumn(DbEntity entity,
         DbColumn... columns)  | 
protected void | 
H2Engine.addColumn(DbEntity entity,
         DbColumn... columns)  | 
protected void | 
OracleEngine.addColumn(DbEntity entity,
         DbColumn... columns)  | 
protected void | 
MySqlEngine.addFks(DbEntity entity)  | 
protected void | 
DB2Engine.addFks(DbEntity entity)  | 
protected void | 
PostgreSqlEngine.addFks(DbEntity entity)  | 
protected void | 
SqlServerEngine.addFks(DbEntity entity)  | 
protected void | 
H2Engine.addFks(DbEntity entity)  | 
protected void | 
OracleEngine.addFks(DbEntity entity)  | 
protected void | 
MySqlEngine.addIndexes(DbEntity entity)  | 
protected void | 
DB2Engine.addIndexes(DbEntity entity)  | 
protected void | 
PostgreSqlEngine.addIndexes(DbEntity entity)  | 
protected void | 
SqlServerEngine.addIndexes(DbEntity entity)  | 
protected void | 
H2Engine.addIndexes(DbEntity entity)  | 
protected void | 
OracleEngine.addIndexes(DbEntity entity)  | 
protected void | 
MySqlEngine.addPrimaryKey(DbEntity entity)  | 
protected void | 
DB2Engine.addPrimaryKey(DbEntity entity)  | 
protected void | 
PostgreSqlEngine.addPrimaryKey(DbEntity entity)  | 
protected void | 
SqlServerEngine.addPrimaryKey(DbEntity entity)  | 
protected void | 
H2Engine.addPrimaryKey(DbEntity entity)  | 
protected void | 
OracleEngine.addPrimaryKey(DbEntity entity)  | 
protected void | 
MySqlEngine.addSequences(DbEntity entity)  | 
protected void | 
DB2Engine.addSequences(DbEntity entity)  | 
protected void | 
PostgreSqlEngine.addSequences(DbEntity entity)  | 
protected void | 
SqlServerEngine.addSequences(DbEntity entity)  | 
protected void | 
H2Engine.addSequences(DbEntity entity)  | 
protected void | 
OracleEngine.addSequences(DbEntity entity)  | 
protected MappedEntity | 
MySqlEngine.createPreparedStatementForInserts(DbEntity entity)  | 
protected MappedEntity | 
DB2Engine.createPreparedStatementForInserts(DbEntity entity)  | 
protected MappedEntity | 
PostgreSqlEngine.createPreparedStatementForInserts(DbEntity entity)  | 
protected MappedEntity | 
SqlServerEngine.createPreparedStatementForInserts(DbEntity entity)  | 
protected MappedEntity | 
H2Engine.createPreparedStatementForInserts(DbEntity entity)  | 
protected MappedEntity | 
OracleEngine.createPreparedStatementForInserts(DbEntity entity)  | 
protected void | 
MySqlEngine.createTable(DbEntity entity)  | 
protected void | 
DB2Engine.createTable(DbEntity entity)  | 
protected void | 
PostgreSqlEngine.createTable(DbEntity entity)  | 
protected void | 
SqlServerEngine.createTable(DbEntity entity)  | 
protected void | 
H2Engine.createTable(DbEntity entity)  | 
protected void | 
OracleEngine.createTable(DbEntity entity)  | 
protected void | 
MySqlEngine.dropColumn(DbEntity entity,
          String... columns)  | 
protected void | 
DB2Engine.dropColumn(DbEntity entity,
          String... columns)  | 
protected void | 
PostgreSqlEngine.dropColumn(DbEntity entity,
          String... columns)  | 
protected void | 
SqlServerEngine.dropColumn(DbEntity entity,
          String... columns)  | 
protected void | 
H2Engine.dropColumn(DbEntity entity,
          String... columns)  | 
protected void | 
OracleEngine.dropColumn(DbEntity entity,
          String... columns)  | 
protected void | 
MySqlEngine.dropReferringFks(DbEntity entity)  | 
protected void | 
SqlServerEngine.dropReferringFks(DbEntity entity)  | 
protected void | 
MySqlEngine.dropSequences(DbEntity entity)  | 
protected void | 
DB2Engine.dropSequences(DbEntity entity)  | 
protected void | 
PostgreSqlEngine.dropSequences(DbEntity entity)  | 
protected void | 
SqlServerEngine.dropSequences(DbEntity entity)  | 
protected void | 
H2Engine.dropSequences(DbEntity entity)  | 
protected void | 
OracleEngine.dropSequences(DbEntity entity)  | 
protected void | 
MySqlEngine.dropTable(DbEntity entity)  | 
protected void | 
DB2Engine.dropTable(DbEntity entity)  | 
protected void | 
PostgreSqlEngine.dropTable(DbEntity entity)  | 
protected void | 
SqlServerEngine.dropTable(DbEntity entity)  | 
protected void | 
H2Engine.dropTable(DbEntity entity)  | 
protected void | 
OracleEngine.dropTable(DbEntity entity)  | 
protected int | 
MySqlEngine.entityToPreparedStatement(DbEntity entity,
                         PreparedStatement ps,
                         EntityEntry entry,
                         boolean useAutoInc)  | 
protected int | 
DB2Engine.entityToPreparedStatement(DbEntity entity,
                         PreparedStatement ps,
                         EntityEntry entry,
                         boolean useAutoInc)  | 
protected int | 
PostgreSqlEngine.entityToPreparedStatement(DbEntity entity,
                         PreparedStatement ps,
                         EntityEntry entry,
                         boolean useAutoInc)  | 
protected int | 
SqlServerEngine.entityToPreparedStatement(DbEntity entity,
                         PreparedStatement ps,
                         EntityEntry entry,
                         boolean useAutoInc)  | 
protected int | 
H2Engine.entityToPreparedStatement(DbEntity entity,
                         PreparedStatement ps,
                         EntityEntry entry,
                         boolean useAutoInc)  | 
protected int | 
OracleEngine.entityToPreparedStatement(DbEntity entity,
                         PreparedStatement ps,
                         EntityEntry entry,
                         boolean useAutoInc)  | 
void | 
DB2Engine.updateEntity(DbEntity entity)  | 
Copyright © 2014 Feedzai. All Rights Reserved.