org.oddjob.hsql
Class HsqlConnectionType

java.lang.Object
  extended by org.oddjob.hsql.HsqlConnectionType
All Implemented Interfaces:
Serializable, ArooaValue, ValueFactory<Connection>

public class HsqlConnectionType
extends Object
implements ValueFactory<Connection>, Serializable

Description

Definition for a Database connection.

Example

See SQLJob for an example.
See Also:
Serialized Form
Author:
Rob Gordon.

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.oddjob.arooa.types.ValueFactory
ValueFactory.Conversions
 
Field Summary
static String DRIVER
           
 
Constructor Summary
HsqlConnectionType()
           
 
Method Summary
 String getPassword()
          Get the password.
 String getUrl()
          Get the url.
 String getUsername()
          Get the username.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DRIVER

public static final String DRIVER
See Also:
Constant Field Values
Constructor Detail

HsqlConnectionType

public HsqlConnectionType()
Method Detail

toValue

public Connection toValue()
Description copied from interface: ValueFactory
Provide an instance of the type this is a factory for.

Specified by:
toValue in interface ValueFactory<Connection>
Returns:
An instance of the type. May be null.

getPassword

public String getPassword()
Get the password.

Returns:
The password.

setPassword

public void setPassword(String password)
Set the password.

Parameters:
password - The password.

getUrl

public String getUrl()
Get the url.

Returns:
The url.

setUrl

public void setUrl(String url)
Set the url.

Parameters:
url - The url

getUsername

public String getUsername()
Get the username.

Returns:
The username.

setUsername

public void setUsername(String username)
Set the username.

Parameters:
username - The username.

toString

public String toString()
Overrides:
toString in class Object