|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.radrails.db.core.DatabaseConnector
Class provides a method for getting a connection to a database.
| Method Summary | |
java.sql.Connection |
getConnection(java.lang.Class driver,
java.lang.String url,
java.lang.String username,
java.lang.String password)
Gets a connection to a database. |
static DatabaseConnector |
getInstance()
Gets an instance of this class. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static DatabaseConnector getInstance()
public java.sql.Connection getConnection(java.lang.Class driver,
java.lang.String url,
java.lang.String username,
java.lang.String password)
throws java.sql.SQLException,
java.lang.InstantiationException,
java.lang.IllegalAccessException
driver - The driver class to use.url - The URL to use to connect to the database.username - The username to connect with.password - The password to connect with.
java.sql.SQLException - If an error occurs while connecting to the database
java.lang.IllegalAccessException - If an error occurs while getting the driver class.
java.lang.InstantiationException - If the driver class cannot be instantiated.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||