com.cafesoft.core.jdbc
Class StandardConnectionConfig

java.lang.Object
  |
  +--com.cafesoft.core.jdbc.StandardConnectionConfig
All Implemented Interfaces:
ConnectionConfig

public class StandardConnectionConfig
extends Object
implements ConnectionConfig

Standard implementation of the ConnectionConfig interface

Since:
11/4/02

Constructor Summary
StandardConnectionConfig(String url, Driver driver, String user, String password)
          Create a new StandardConnectionConfig object
 
Method Summary
 Driver getDriver()
          Get the database Driver
 String getPassword()
          Get the Password
 String getUrl()
          Get the Url of the database
 String getUser()
          Get the User
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StandardConnectionConfig

public StandardConnectionConfig(String url,
                                Driver driver,
                                String user,
                                String password)
Create a new StandardConnectionConfig object

Parameters:
url - the database url
driver - the database driver
user - the database user
password - the database password
Method Detail

getUrl

public String getUrl()
Get the Url of the database

Specified by:
getUrl in interface ConnectionConfig
Returns:
the database's URL

getDriver

public Driver getDriver()
Get the database Driver

Specified by:
getDriver in interface ConnectionConfig
Returns:
the database Driver

getUser

public String getUser()
Get the User

Specified by:
getUser in interface ConnectionConfig
Returns:
the user used to connect to the database

getPassword

public String getPassword()
Get the Password

Specified by:
getPassword in interface ConnectionConfig
Returns:
the password used to connect to the database

toString

public String toString()
Returns a string representation of the object.

Overrides:
toString in class Object
Returns:
a string representation of the object.


Generated on 8:41:50 AM June 06, 2005, © 1996-2005 Cafésoft LLC. All rights reserved.