Interface DatabaseConnectionBuilder
- 
 public interface DatabaseConnectionBuilder
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description DatabaseConnectionconnect(Credential credential)Connect to a database using a credential.DatabaseConnectionBuildersetErrorLogger(DatabaseErrorLogger errorLogger)Set a post-DatabaseErrorLogger, which is executed after an SQL statement failed.DatabaseConnectionBuildersetPLSQLJobContext(boolean enable)DatabaseConnectionBuildersetPostLogger(DatabaseLogger postLogger)Set a post-DatabaseLogger, which is executed after an SQL statement is executed.DatabaseConnectionBuildersetPreLogger(DatabaseLogger preLogger)Set a pre-DatabaseLogger, which is executed before an SQL statement is executed.
 
- 
- 
- 
Method Detail- 
connectDatabaseConnection connect(Credential credential) throws SQLException Connect to a database using a credential.- Parameters:
- credential- The (JDBC) credentials to use to connect to the database.
- Returns:
- A database connection.
- Throws:
- SQLException
- See Also:
- for an example
 
 - 
setPLSQLJobContextDatabaseConnectionBuilder setPLSQLJobContext(boolean enable) - Parameters:
- enable- Should the current process ID be set in the PL/SQL API? (On Oracle only, because the PL/SQL API can only be available on Oracle).
- Returns:
- this
 
 - 
setPostLoggerDatabaseConnectionBuilder setPostLogger(DatabaseLogger postLogger) Set a post-DatabaseLogger, which is executed after an SQL statement is executed.- Parameters:
- postLogger-
- Returns:
- this
- See Also:
- for an example
 
 - 
setPreLoggerDatabaseConnectionBuilder setPreLogger(DatabaseLogger preLogger) Set a pre-DatabaseLogger, which is executed before an SQL statement is executed.- Parameters:
- preLogger-
- Returns:
- set
- See Also:
- for an example
 
 - 
setErrorLoggerDatabaseConnectionBuilder setErrorLogger(DatabaseErrorLogger errorLogger) Set a post-DatabaseErrorLogger, which is executed after an SQL statement failed.- Parameters:
- errorLogger-
- Returns:
- this
- See Also:
- for an example
 
 
- 
 
-