|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DatabaseServer
This interface represents a database server and exposes methods for
inspecting the servers characteristics and establishing a
DatabaseConnection to it.
| Method Summary | |
|---|---|
DatabaseConnection |
connect(DataSourceFactory dataSourceFactory)
Created a new DataSource to this server and returns it wrapped in a DatabaseConnection |
DatabaseServerType |
getServerType()
|
void |
setConnectionProperty(String key,
String value)
Sets a property to be passed in when creating a database connection. |
void |
testConnection()
Tries to create a new database connection and immediately close it. |
| Method Detail |
|---|
DatabaseServerType getServerType()
void setConnectionProperty(String key,
String value)
key - Name of the JDBC connection propertyvalue - Value for the JDBC connection propertyDatabaseConnection connect(DataSourceFactory dataSourceFactory)
dataSourceFactory - Factory to use when creating the DataSource
void testConnection()
throws SQLException
SQLException - In case there was an error connecting to the database server
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||