Package org.jboss.jca.common.metadata.ds
Class DataSourceAbstractImpl
- java.lang.Object
-
- org.jboss.jca.common.metadata.ds.DataSourceAbstractImpl
-
- All Implemented Interfaces:
Serializable,CommonDataSource,JCAMetadata,ValidatableMetadata
- Direct Known Subclasses:
DataSourceImpl,XADataSourceImpl
public abstract class DataSourceAbstractImpl extends Object implements CommonDataSource
A DataSourceAbstractImpl.- Author:
- Stefano Maestri
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static CommonBundlebundleThe bundleprotected BooleanconnectableConnectableprotected StringdriverDriverprotected Booleanenabledenabledprotected BooleanenlistmentTraceEnlistment traceprotected StringjndiNamejndiNameprotected StringmcpMCPprotected StringnewConnectionSqlNew connection SQLprotected StringpoolNamepoolNameprotected DsSecuritysecuritysecurityprotected Booleanspyspyprotected Statementstatementstatementprotected TimeOuttimeOuttimeOutprotected BooleantrackingTrackingprotected TransactionIsolationtransactionIsolationtransactionIsolationprotected StringurlDelimiterurlDelimiterprotected StringurlSelectorStrategyClassNameurlSelectorStrategyClassNameprotected BooleanuseCcmuse-ccmprotected BooleanuseJavaContextuseJavaContextprotected Validationvalidationvalidation
-
Constructor Summary
Constructors Modifier Constructor Description protectedDataSourceAbstractImpl(TransactionIsolation transactionIsolation, TimeOut timeOut, DsSecurity security, Statement statement, Validation validation, String urlDelimiter, String urlSelectorStrategyClassName, Boolean useJavaContext, String poolName, Boolean enabled, String jndiName, Boolean spy, Boolean useCcm, String driver, String newConnectionSql, Boolean connectable, Boolean tracking, String mcp, Boolean enlistmentTrace)Create a new DataSourceAbstractImpl.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetDriver()StringgetJndiName()StringgetMcp()StringgetNewConnectionSql()StringgetPoolName()DsSecuritygetSecurity()StatementgetStatement()TimeOutgetTimeOut()TransactionIsolationgetTransactionIsolation()StringgetUrlDelimiter()StringgetUrlSelectorStrategyClassName()ValidationgetValidation()inthashCode()BooleanisConnectable()BooleanisEnabled()BooleanisEnlistmentTrace()BooleanisSpy()BooleanisTracking()BooleanisUseCcm()BooleanisUseJavaContext()protected voidpartialCommonValidation()Partial validation for common fields defined in this abstract classvoidsetEnabled(Boolean enabled)abstract StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jboss.jca.common.api.metadata.ValidatableMetadata
validate
-
-
-
-
Field Detail
-
bundle
protected static CommonBundle bundle
The bundle
-
transactionIsolation
protected TransactionIsolation transactionIsolation
transactionIsolation
-
timeOut
protected TimeOut timeOut
timeOut
-
security
protected DsSecurity security
security
-
statement
protected Statement statement
statement
-
validation
protected Validation validation
validation
-
urlDelimiter
protected String urlDelimiter
urlDelimiter
-
urlSelectorStrategyClassName
protected String urlSelectorStrategyClassName
urlSelectorStrategyClassName
-
useJavaContext
protected Boolean useJavaContext
useJavaContext
-
poolName
protected String poolName
poolName
-
enabled
protected Boolean enabled
enabled
-
jndiName
protected String jndiName
jndiName
-
spy
protected Boolean spy
spy
-
useCcm
protected Boolean useCcm
use-ccm
-
driver
protected String driver
Driver
-
newConnectionSql
protected String newConnectionSql
New connection SQL
-
connectable
protected Boolean connectable
Connectable
-
tracking
protected Boolean tracking
Tracking
-
mcp
protected String mcp
MCP
-
enlistmentTrace
protected Boolean enlistmentTrace
Enlistment trace
-
-
Constructor Detail
-
DataSourceAbstractImpl
protected DataSourceAbstractImpl(TransactionIsolation transactionIsolation, TimeOut timeOut, DsSecurity security, Statement statement, Validation validation, String urlDelimiter, String urlSelectorStrategyClassName, Boolean useJavaContext, String poolName, Boolean enabled, String jndiName, Boolean spy, Boolean useCcm, String driver, String newConnectionSql, Boolean connectable, Boolean tracking, String mcp, Boolean enlistmentTrace) throws ValidateException
Create a new DataSourceAbstractImpl.- Parameters:
transactionIsolation- transactionIsolationtimeOut- timeOutsecurity- securitystatement- statementvalidation- validationurlDelimiter- urlDelimiterurlSelectorStrategyClassName- urlSelectorStrategyClassNameuseJavaContext- useJavaContextpoolName- poolNameenabled- enabledjndiName- jndiNamespy- spyuseCcm- useCcmdriver- drivernewConnectionSql- newConnectionSqlconnectable- connectabletracking- trackingmcp- mcpenlistmentTrace- enlistmentTrace- Throws:
ValidateException- ValidateException
-
-
Method Detail
-
getTransactionIsolation
public TransactionIsolation getTransactionIsolation()
- Specified by:
getTransactionIsolationin interfaceCommonDataSource
-
getTimeOut
public TimeOut getTimeOut()
- Specified by:
getTimeOutin interfaceCommonDataSource
-
getSecurity
public DsSecurity getSecurity()
- Specified by:
getSecurityin interfaceCommonDataSource
-
getValidation
public Validation getValidation()
- Specified by:
getValidationin interfaceCommonDataSource
-
getStatement
public Statement getStatement()
-
getUrlDelimiter
public String getUrlDelimiter()
-
getUrlSelectorStrategyClassName
public String getUrlSelectorStrategyClassName()
-
isUseJavaContext
public Boolean isUseJavaContext()
- Specified by:
isUseJavaContextin interfaceCommonDataSource
-
getPoolName
public String getPoolName()
- Specified by:
getPoolNamein interfaceCommonDataSource
-
isEnabled
public Boolean isEnabled()
- Specified by:
isEnabledin interfaceCommonDataSource
-
getJndiName
public String getJndiName()
- Specified by:
getJndiNamein interfaceCommonDataSource
-
isSpy
public Boolean isSpy()
- Specified by:
isSpyin interfaceCommonDataSource
-
isUseCcm
public Boolean isUseCcm()
- Specified by:
isUseCcmin interfaceCommonDataSource
-
getDriver
public String getDriver()
- Specified by:
getDriverin interfaceCommonDataSource
-
getNewConnectionSql
public String getNewConnectionSql()
-
isConnectable
public Boolean isConnectable()
-
isTracking
public Boolean isTracking()
-
getMcp
public String getMcp()
- Specified by:
getMcpin interfaceCommonDataSource
-
isEnlistmentTrace
public Boolean isEnlistmentTrace()
- Specified by:
isEnlistmentTracein interfaceCommonDataSource
-
setEnabled
public void setEnabled(Boolean enabled)
- Specified by:
setEnabledin interfaceCommonDataSource
-
partialCommonValidation
protected void partialCommonValidation() throws ValidateExceptionPartial validation for common fields defined in this abstract class- Throws:
ValidateException- ValidateException
-
-