public class AddDataSource extends Object implements org.jboss.creaper.core.online.OnlineCommand, org.jboss.creaper.core.offline.OfflineCommand
A generic command for creating new datasource. For well-known databases, it's preferred to use the subclasses, because they apply some common configuration. This class is supposed to be used for unknown databases or when absolute control is desired.
Note that the datasources are always created as disabled, unless AddDataSource.Builder.enableAfterCreate()
is used!
| Modifier and Type | Class and Description |
|---|---|
static class |
AddDataSource.Builder
Builder for configuration attributes of a datasource.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AddDataSource(AddDataSource.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(org.jboss.creaper.core.offline.OfflineCommandContext ctx) |
void |
apply(org.jboss.creaper.core.online.OnlineCommandContext ctx) |
protected void |
modifyIfNeeded(org.jboss.creaper.core.ManagementVersion serverVersion) |
String |
toString() |
protected Integer allocationRetry
protected Integer allocationRetryWaitMillis
protected Boolean allowMultipleUsers
protected Boolean backgroundValidation
protected Integer backgroundValidationMillis
protected Integer blockingTimeoutMillis
protected String checkValidConnectionSql
protected Boolean connectable
protected String datasourceClass
protected String driverClass
protected String driverName
protected String exceptionSorterClass
protected Integer idleTimeoutMinutes
protected Boolean jta
protected Integer maxPoolSize
protected Integer minPoolSize
protected String newConnectionSql
protected String password
protected PoolFlushStrategy flushStrategy
protected Boolean prefill
protected Integer preparedStatementCacheSize
protected Integer queryTimeout
protected String reauthPluginClass
protected String securityDomain
protected Boolean setTxQueryTimeout
protected Boolean sharePreparedStatements
protected Boolean spy
protected String staleConnectionCheckerClass
protected Boolean statisticsEnabled
protected TrackStatementType trackStatements
protected TransactionIsolation transactionIsolation
protected String urlDelimiter
protected String urlSelectorStrategyClass
protected Boolean useCcm
protected Boolean useFastFailAllocation
protected Boolean useJavaContext
protected Boolean useStrictMinPoolSize
protected Integer useTryLock
protected String username
protected Boolean validateOnMatch
protected String validConnectionCheckerClass
protected AddDataSource(AddDataSource.Builder builder)
public final void apply(org.jboss.creaper.core.online.OnlineCommandContext ctx)
throws IOException,
org.jboss.creaper.core.CommandFailedException
apply in interface org.jboss.creaper.core.online.OnlineCommandIOExceptionorg.jboss.creaper.core.CommandFailedExceptionpublic final void apply(org.jboss.creaper.core.offline.OfflineCommandContext ctx)
throws org.jboss.creaper.core.CommandFailedException,
IOException
apply in interface org.jboss.creaper.core.offline.OfflineCommandorg.jboss.creaper.core.CommandFailedExceptionIOExceptionprotected void modifyIfNeeded(org.jboss.creaper.core.ManagementVersion serverVersion)
Copyright © 2015. All rights reserved.