|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.radrails.db.core.DatabaseConnection
Attempts to connect to a database.
| Constructor Summary | |
DatabaseConnection()
|
|
| Method Summary | |
abstract java.sql.Connection |
connect(DatabaseDescriptor descriptor)
Gets a connection to a database. |
abstract java.lang.String |
getDefaultPort()
Gets the default port for the specified database connection. |
boolean |
testConnect(DatabaseDescriptor descriptor)
Tests if able to get a connection to a database. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DatabaseConnection()
| Method Detail |
public boolean testConnect(DatabaseDescriptor descriptor)
descriptor - The DatabaseDescriptor to use.
true if a connection could be established,
false otherwise.
public abstract java.sql.Connection connect(DatabaseDescriptor descriptor)
throws java.sql.SQLException,
java.lang.InstantiationException,
java.lang.IllegalAccessException
descriptor - The DatabaseDescriptor to obtain information from.
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.public abstract java.lang.String getDefaultPort()
null if no default is known.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||