Class DataSource
- java.lang.Object
-
- org.codehaus.cargo.maven3.configuration.DataSource
-
public class DataSource extends Object
Holds configuration data for the<datasource>
tag used to configure the plugin in thepom.xml
file.
-
-
Constructor Summary
Constructors Constructor Description DataSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataSource
createDataSource()
Create the datasource object.Properties
getConnectionProperties()
String
getConnectionType()
String
getDriverClass()
String
getId()
String
getJndiName()
String
getPassword()
String
getTransactionSupport()
String
getUrl()
String
getUsername()
void
setConnectionProperties(Properties connectionProperties)
void
setConnectionType(String connectionType)
void
setDriverClass(String driverClass)
void
setId(String id)
void
setJndiName(String jndiName)
void
setPassword(String password)
void
setTransactionSupport(String transactionSupport)
void
setUrl(String url)
void
setUsername(String username)
-
-
-
Method Detail
-
getConnectionProperties
public Properties getConnectionProperties()
- Returns:
- Extra properties passed to the DataSource.
-
setConnectionProperties
public void setConnectionProperties(Properties connectionProperties)
- Parameters:
connectionProperties
- Extra properties passed to the DataSource.
-
getConnectionType
public String getConnectionType()
- Returns:
- Type of this DataSource, for example
javax.sql.XADataSource
orjavax.sql.Driver
.
-
setConnectionType
public void setConnectionType(String connectionType)
- Parameters:
connectionType
- Type of this DataSource, for examplejavax.sql.XADataSource
orjavax.sql.Driver
.
-
getDriverClass
public String getDriverClass()
- Returns:
- The class name of the Driver.
-
setDriverClass
public void setDriverClass(String driverClass)
- Parameters:
driverClass
- The class name of the Driver.
-
getId
public String getId()
- Returns:
- Id used in configuration files.
-
setId
public void setId(String id)
- Parameters:
id
- Id used in configuration files.
-
getJndiName
public String getJndiName()
- Returns:
- JNDI name where to find this DataSource.
-
setJndiName
public void setJndiName(String jndiName)
- Parameters:
jndiName
- JNDI name where to find this DataSource.
-
getPassword
public String getPassword()
- Returns:
- DataSource password.
-
setPassword
public void setPassword(String password)
- Parameters:
password
- DataSource password.
-
getTransactionSupport
public String getTransactionSupport()
- Returns:
- Transaction support of the datasource ex.
XA_TRANSACTION
-
setTransactionSupport
public void setTransactionSupport(String transactionSupport)
- Parameters:
transactionSupport
- Transaction support of the datasource ex.XA_TRANSACTION
-
getUrl
public String getUrl()
- Returns:
- DataSource connection URL.
-
setUrl
public void setUrl(String url)
- Parameters:
url
- DataSource connection URL.
-
getUsername
public String getUsername()
- Returns:
- DataSource username.
-
setUsername
public void setUsername(String username)
- Parameters:
username
- DataSource username.
-
createDataSource
public DataSource createDataSource()
Create the datasource object.- Returns:
- Cargo resource object.
-
-