Package org.pentaho.di.core.database
Class ConnectionPoolUtil
java.lang.Object
org.pentaho.di.core.database.ConnectionPoolUtil
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final int
static final int
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static String
buildPoolName
(DatabaseMeta dbMeta, String partitionId) static Connection
getConnection
(LogChannelInterface log, DatabaseMeta dbMeta, String partitionId) Deprecated.(Please use on init the step and then just get the connection when needed)static DataSource
getDataSource
(LogChannelInterface log, DatabaseMeta dbMeta, String partitionId) static String
getDataSourceName
(DatabaseMeta dbMeta, String partitionId) static boolean
hasOldConfig
(DatabaseMeta dbMeta, String partitionId) static DataSource
removeDataSource
(String name)
-
Field Details
-
DEFAULT_AUTO_COMMIT
- See Also:
-
DEFAULT_READ_ONLY
- See Also:
-
DEFAULT_TRANSACTION_ISOLATION
- See Also:
-
DEFAULT_CATALOG
- See Also:
-
INITIAL_SIZE
- See Also:
-
MAX_ACTIVE
- See Also:
-
MAX_IDLE
- See Also:
-
MIN_IDLE
- See Also:
-
MAX_WAIT
- See Also:
-
VALIDATION_QUERY
- See Also:
-
TEST_ON_BORROW
- See Also:
-
TEST_ON_RETURN
- See Also:
-
TEST_WHILE_IDLE
- See Also:
-
TIME_BETWEEN_EVICTION_RUNS_MILLIS
- See Also:
-
POOL_PREPARED_STATEMENTS
- See Also:
-
MAX_OPEN_PREPARED_STATEMENTS
- See Also:
-
ACCESS_TO_UNDERLYING_CONNECTION_ALLOWED
- See Also:
-
REMOVE_ABANDONED
- See Also:
-
REMOVE_ABANDONED_TIMEOUT
- See Also:
-
LOG_ABANDONED
- See Also:
-
defaultInitialNrOfConnections
public static final int defaultInitialNrOfConnections- See Also:
-
defaultMaximumNrOfConnections
public static final int defaultMaximumNrOfConnections- See Also:
-
-
Constructor Details
-
ConnectionPoolUtil
public ConnectionPoolUtil()
-
-
Method Details
-
getDataSource
public static DataSource getDataSource(LogChannelInterface log, DatabaseMeta dbMeta, String partitionId) throws KettleDatabaseException - Throws:
KettleDatabaseException
-
removeDataSource
-
getConnection
@Deprecated public static Connection getConnection(LogChannelInterface log, DatabaseMeta dbMeta, String partitionId) throws Exception Deprecated.(Please use on init the step and then just get the connection when needed)- Throws:
Exception
-
getDataSourceName
-
buildPoolName
-
hasOldConfig
-