| Package | Description |
|---|---|
| com.feedzai.commons.sql.abstraction.engine |
Contains the database engine core.
|
| com.feedzai.commons.sql.abstraction.engine.impl |
Database specific implementations.
|
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,MappedEntity> |
AbstractDatabaseEngine.entities
Map of entities.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract MappedEntity |
AbstractDatabaseEngine.createPreparedStatementForInserts(DbEntity entity)
Creates and gets the prepared statement that will be used for insertions.
|
MappedEntity |
MappedEntity.setAutoIncColumn(String autoIncColumn)
Sets the auto increment column.
|
MappedEntity |
MappedEntity.setEntity(DbEntity entity)
Sets the entity.
|
MappedEntity |
MappedEntity.setInsert(PreparedStatement insert)
Sets the insert statement.
|
MappedEntity |
MappedEntity.setInsertReturning(PreparedStatement insertReturning)
Sets the insert statement that allows returning the generated keys.
|
MappedEntity |
MappedEntity.setInsertWithAutoInc(PreparedStatement insertWithAutoInc)
Sets the insert statement auto inc columns.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract long |
AbstractDatabaseEngine.doPersist(PreparedStatement ps,
MappedEntity me,
boolean useAutoInc,
int lastBindPosition)
DB engine specific auxiliary method for
AbstractDatabaseEngine.persist(String, EntityEntry, boolean) to effectively perform
the persist action. |
protected PreparedStatement |
AbstractDatabaseEngine.getPreparedStatementForPersist(boolean useAutoInc,
MappedEntity mappedEntity)
Gets the
PreparedStatement to use in a persist operation, depending on whether autoInc is to be used or not. |
| Modifier and Type | Method and Description |
|---|---|
protected MappedEntity |
MySqlEngine.createPreparedStatementForInserts(DbEntity entity) |
protected MappedEntity |
DB2Engine.createPreparedStatementForInserts(DbEntity entity) |
protected MappedEntity |
H2Engine.createPreparedStatementForInserts(DbEntity entity)
Deprecated.
|
protected MappedEntity |
OracleEngine.createPreparedStatementForInserts(DbEntity entity) |
protected MappedEntity |
SqlServerEngine.createPreparedStatementForInserts(DbEntity entity) |
protected MappedEntity |
PostgreSqlEngine.createPreparedStatementForInserts(DbEntity entity) |
| Modifier and Type | Method and Description |
|---|---|
protected long |
MySqlEngine.doPersist(PreparedStatement ps,
MappedEntity me,
boolean useAutoInc,
int lastBindPosition) |
protected long |
DB2Engine.doPersist(PreparedStatement ps,
MappedEntity me,
boolean useAutoInc,
int lastBindPosition) |
protected long |
H2Engine.doPersist(PreparedStatement ps,
MappedEntity me,
boolean useAutoInc,
int lastBindPosition)
Deprecated.
|
protected long |
OracleEngine.doPersist(PreparedStatement ps,
MappedEntity me,
boolean useAutoInc,
int lastBindPosition) |
protected long |
SqlServerEngine.doPersist(PreparedStatement ps,
MappedEntity me,
boolean useAutoInc,
int lastBindPosition) |
protected long |
PostgreSqlEngine.doPersist(PreparedStatement ps,
MappedEntity me,
boolean useAutoInc,
int lastBindPosition) |
protected PreparedStatement |
MySqlEngine.getPreparedStatementForPersist(boolean useAutoInc,
MappedEntity mappedEntity) |
protected PreparedStatement |
H2Engine.getPreparedStatementForPersist(boolean useAutoInc,
MappedEntity mappedEntity)
Deprecated.
|
protected PreparedStatement |
OracleEngine.getPreparedStatementForPersist(boolean useAutoInc,
MappedEntity mappedEntity) |
protected void |
CockroachDBEngine.updatePersistAutoIncSequence(MappedEntity mappedEntity,
long currentAutoIncVal) |
protected void |
PostgreSqlEngine.updatePersistAutoIncSequence(MappedEntity mappedEntity,
long currentAutoIncVal)
Updates the autoInc sequence value after a persist operation.
|
Copyright © 2023 Feedzai. All rights reserved.