|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.util.data.IlvJDBCConnectionParameters
public class IlvJDBCConnectionParameters
A class that holds the parameters of a JDBC connection.
| Constructor Summary | |
|---|---|
IlvJDBCConnectionParameters(String url,
String user,
String passwd,
String driver)
Creates a new set of JDBC connection parameters. |
|
IlvJDBCConnectionParameters(String url,
String user,
String passwd,
String driver,
String driverURL)
Creates a new set of JDBC connection parameters. |
|
| Method Summary | |
|---|---|
static IlvJDBCConnectionParameters |
deserialize(Element element,
String id)
Loads parameters from an DOM element. |
boolean |
equals(Object obj)
|
Connection |
getConnection()
Returns a JDBC connection built with the current parameters. |
String |
getDriverClassName()
Returns the name of the driver class. |
String |
getDriverURL()
Returns the URL string of the driver class. |
String |
getURL()
Returns the database URL. |
String |
getUserName()
Returns the user name. |
String |
getUserPassword()
Returns the password. |
int |
hashCode()
|
String |
serialize(Element element)
Saves the parameters to an DOM element. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvJDBCConnectionParameters(String url,
String user,
String passwd,
String driver)
url - The database URL.user - The user name.passwd - The password.driver - The name of driver class.
public IlvJDBCConnectionParameters(String url,
String user,
String passwd,
String driver,
String driverURL)
url - The database URL.user - The user name.passwd - The password.driver - The name of driver class.driverURL - The URL at which the driver archive can be found| Method Detail |
|---|
public final String getURL()
public final String getUserName()
public final String getUserPassword()
public final String getDriverClassName()
public final String getDriverURL()
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
public Connection getConnection()
throws Exception
Exception - If an error occurred while building the connection.public String serialize(Element element)
element - The DOM element to save the parameters to.
public static IlvJDBCConnectionParameters deserialize(Element element,
String id)
element - The DOM element to read the connection from.id - The identifier of the connection parameters to load.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||