public class ConnectionType extends Object implements ValueFactory<Connection>, Serializable
SQLJob
for an example.ValueFactory.Conversions
Constructor and Description |
---|
ConnectionType() |
Modifier and Type | Method and Description |
---|---|
ClassLoader |
getClassLoader() |
String |
getDriver()
Get this connections driver class name.
|
String |
getPassword()
Get the password.
|
String |
getUrl()
Get the url.
|
String |
getUsername()
Get the username.
|
void |
setClassLoader(ClassLoader classLoader) |
void |
setDriver(String driver)
Set this connections dirver class name.
|
void |
setPassword(String password)
Set the password.
|
void |
setUrl(String url)
Set the url.
|
void |
setUsername(String username)
Set the username.
|
String |
toString() |
Connection |
toValue()
Provide an instance of the type this is a factory for.
|
public Connection toValue() throws ArooaConversionException
ValueFactory
toValue
in interface ValueFactory<Connection>
ArooaConversionException
- If unable to provide a value.public String getDriver()
public void setDriver(String driver)
driver
- The driver class name.public String getPassword()
public void setPassword(String password)
password
- The password.public String getUrl()
public void setUrl(String url)
url
- The urlpublic String getUsername()
public void setUsername(String username)
username
- The username.public ClassLoader getClassLoader()
@Inject public void setClassLoader(ClassLoader classLoader)