| Package | Description |
|---|---|
| com.feedzai.commons.sql.abstraction.batch |
Contains a batch to periodically flushes to the database.
|
| com.feedzai.commons.sql.abstraction.batch.impl | |
| com.feedzai.commons.sql.abstraction.engine |
Contains the database engine core.
|
| com.feedzai.commons.sql.abstraction.engine.impl |
Database specific implementations.
|
| com.feedzai.commons.sql.abstraction.engine.pool |
Implementation of database engine pool.
|
| Modifier and Type | Field and Description |
|---|---|
protected DatabaseEngine |
AbstractBatch.de
The database engine.
|
| Modifier and Type | Method and Description |
|---|---|
static DefaultBatch |
DefaultBatch.create(DatabaseEngine de,
String name,
int batchSize,
long batchTimeout,
long maxAwaitTimeShutdown)
Deprecated.
Creates a new instance of
DefaultBatch. |
static DefaultBatch |
DefaultBatch.create(DatabaseEngine de,
String name,
int batchSize,
long batchTimeout,
long maxAwaitTimeShutdown,
BatchListener listener)
Deprecated.
Creates a new instance of
DefaultBatch with a BatchListener. |
static DefaultBatch |
DefaultBatch.create(DatabaseEngine de,
String name,
int batchSize,
long batchTimeout,
long maxAwaitTimeShutdown,
BatchListener listener,
int maxFlushRetries,
long flushRetryDelay)
Deprecated.
Creates a new instance of
DefaultBatch with a BatchListener. |
static DefaultBatch |
DefaultBatch.create(DatabaseEngine de,
String name,
int batchSize,
long batchTimeout,
long maxAwaitTimeShutdown,
BatchListener listener,
int maxFlushRetries,
long flushRetryDelay,
org.slf4j.Logger confidentialLogger)
Deprecated.
Creates a new instance of
DefaultBatch with a BatchListener. |
static DefaultBatch |
DefaultBatch.create(DatabaseEngine de,
String name,
int batchSize,
long batchTimeout,
long maxAwaitTimeShutdown,
BatchListener listener,
org.slf4j.Logger confidentialLogger)
Deprecated.
|
static DefaultBatch |
DefaultBatch.create(DatabaseEngine de,
String name,
int batchSize,
long batchTimeout,
long maxAwaitTimeShutdown,
FailureListener listener)
Deprecated.
|
static DefaultBatch |
DefaultBatch.create(DatabaseEngine de,
String name,
int batchSize,
long batchTimeout,
long maxAwaitTimeShutdown,
FailureListener listener,
int maxFlushRetries,
long flushRetryDelay)
Deprecated.
|
protected void |
AbstractPdbBatch.processBatch(DatabaseEngine de,
List<BatchEntry> batchEntries)
Processes all batch entries.
|
| Constructor and Description |
|---|
AbstractBatch(DatabaseEngine de,
BatchConfig<?> config)
Creates a new instance of
AbstractBatch. |
AbstractBatch(DatabaseEngine de,
int batchSize,
long batchTimeout,
long maxAwaitTimeShutdown)
Deprecated.
Use
AbstractBatch(DatabaseEngine, BatchConfig) instead. |
AbstractBatch(DatabaseEngine de,
String name,
int batchSize,
long batchTimeout,
long maxAwaitTimeShutdown)
Deprecated.
Use
AbstractBatch(DatabaseEngine, BatchConfig) instead. |
AbstractBatch(DatabaseEngine de,
String name,
int batchSize,
long batchTimeout,
long maxAwaitTimeShutdown,
BatchListener batchListener)
Deprecated.
Use
AbstractBatch(DatabaseEngine, BatchConfig) instead. |
AbstractBatch(DatabaseEngine de,
String name,
int batchSize,
long batchTimeout,
long maxAwaitTimeShutdown,
BatchListener batchListener,
int maxFlushRetries,
long flushRetryDelay)
Deprecated.
Use
AbstractBatch(DatabaseEngine, BatchConfig) instead. |
AbstractBatch(DatabaseEngine de,
String name,
int batchSize,
long batchTimeout,
long maxAwaitTimeShutdown,
BatchListener batchListener,
int maxFlushRetries,
long flushRetryDelay,
org.slf4j.Logger confidentialLogger)
Deprecated.
Use
AbstractBatch(DatabaseEngine, BatchConfig) instead. |
AbstractBatch(DatabaseEngine de,
String name,
int batchSize,
long batchTimeout,
long maxAwaitTimeShutdown,
FailureListener failureListener)
Deprecated.
Use
AbstractBatch(DatabaseEngine, BatchConfig) instead. |
AbstractBatch(DatabaseEngine de,
String name,
int batchSize,
long batchTimeout,
long maxAwaitTimeShutdown,
FailureListener failureListener,
int maxFlushRetries,
long flushRetryDelay)
Deprecated.
Use
AbstractBatch(DatabaseEngine, BatchConfig) instead. |
DefaultBatch(DatabaseEngine de,
String name,
int batchSize,
long batchTimeout,
long maxAwaitTimeShutdown)
Deprecated.
Creates a new instance of
DefaultBatch. |
DefaultBatch(DatabaseEngine de,
String name,
int batchSize,
long batchTimeout,
long maxAwaitTimeShutdown,
BatchListener listener,
int maxFlushRetries,
long flushRetryDelay)
Deprecated.
Creates a new instance of
DefaultBatch. |
DefaultBatch(DatabaseEngine de,
String name,
int batchSize,
long batchTimeout,
long maxAwaitTimeShutdown,
BatchListener listener,
int maxFlushRetries,
long flushRetryDelay,
org.slf4j.Logger confidentialLogger)
Deprecated.
Creates a new instance of
DefaultBatch. |
| Constructor and Description |
|---|
DefaultBatch(DatabaseEngine de,
DefaultBatchConfig config)
Creates a new instance of
DefaultBatch. |
MultithreadedBatch(DatabaseEngine dbEngine,
MultithreadedBatchConfig batchConfig)
Creates a new instance of
MultithreadedBatch. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractDatabaseEngine
Provides a set of functions to interact with the database.
|
| Modifier and Type | Method and Description |
|---|---|
DatabaseEngine |
AbstractDatabaseEngine.duplicate(Properties mergeProperties,
boolean copyEntities)
Duplicates a connection.
|
DatabaseEngine |
DatabaseEngine.duplicate(Properties mergeProperties,
boolean copyEntities)
Duplicates a connection.
|
static DatabaseEngine |
DatabaseFactory.getConnection(Properties p)
Gets a database connection from the specified properties.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CockroachDBEngine
CockroachDB specific database implementation.
|
class |
DB2Engine
DB2 specific database implementation.
|
class |
H2Engine
Deprecated.
|
class |
H2EngineV2
H2 specific database implementation.
|
class |
MySqlEngine
MySQL specific database implementation.
|
class |
OracleEngine
Oracle specific database implementation.
|
class |
PostgreSqlEngine
PostgreSQL specific database implementation.
|
class |
SqlServerEngine
SQLServer specific database implementation.
|
| Modifier and Type | Method and Description |
|---|---|
DatabaseEngine |
DatabaseEnginePool.borrow()
Borrows a database engine from the pool.
|
DatabaseEngine |
DatabaseEnginePool.borrow(long borrowMaxWaitMillis)
Borrows a database engine from the pool.
|
| Modifier and Type | Method and Description |
|---|---|
static DatabaseEnginePool |
DatabaseEnginePool.getConnectionPool(Map<String,String> properties,
Consumer<DatabaseEngine> engineModifier)
Creates a new
DatabaseEnginePool. |
static DatabaseEnginePool |
DatabaseEnginePool.getConnectionPool(PdbProperties properties,
Consumer<DatabaseEngine> engineModifier)
Creates a new
DatabaseEnginePool. |
static DatabaseEnginePool |
DatabaseEnginePool.getConnectionPool(Properties properties,
Consumer<DatabaseEngine> engineModifier)
Creates a new
DatabaseEnginePool. |
Copyright © 2023 Feedzai. All rights reserved.