com.sibvisions.rad.persist.jdbc
Class DBCredentials

java.lang.Object
  extended by com.sibvisions.rad.persist.jdbc.DBCredentials

public class DBCredentials
extends Object

The DBCredentials contains information to establish a database connection.


Constructor Summary
DBCredentials(String pDriver, String pUrl, String pUserName, String pPassword)
          Creates a new instance of DBCredentials.
 
Method Summary
 boolean equals(Object pObject)
          
 String getDriver()
          Gets the JDBC driver name/class.
 String getPassword()
          Gets the password, needed to establish a valid connection.
 String getUrl()
          Gets the connection url.
 String getUserName()
          Gets the username, needed to establish a valid connection.
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DBCredentials

public DBCredentials(String pDriver,
                     String pUrl,
                     String pUserName,
                     String pPassword)
Creates a new instance of DBCredentials.

Parameters:
pDriver - the JDBC driver name/class
pUrl - the connection url
pUserName - the username
pPassword - the password
Method Detail

toString

public String toString()

Overrides:
toString in class Object

equals

public boolean equals(Object pObject)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

getDriver

public String getDriver()
Gets the JDBC driver name/class.

Returns:
the full qualified name of the JDBC driver class

getUrl

public String getUrl()
Gets the connection url. It contains hostname, port and database name.

Returns:
the connection url

getUserName

public String getUserName()
Gets the username, needed to establish a valid connection.

Returns:
the username

getPassword

public String getPassword()
Gets the password, needed to establish a valid connection.

Returns:
the password


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.