|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IConnectionProvider
Provides JDBC connections.
| Method Summary | |
|---|---|
java.sql.Connection |
getConnection()
Returns a JDBC connection by default. |
java.sql.Connection |
getConnection(java.lang.String dataSourceName)
Returns a JDBC connection from a identifier. |
void |
setDefaultDataSource(java.lang.String dataSourceName)
Sets the datasource name used when using getConnection(). |
void |
setPassword(java.lang.String password)
Sets password used to create connection. |
void |
setUser(java.lang.String user)
Sets the user used to craete the connection. |
| Method Detail |
|---|
java.sql.Connection getConnection()
throws java.sql.SQLException
java.sql.SQLException - If there are problem obtaining the connetion
java.sql.Connection getConnection(java.lang.String dataSourceName)
throws java.sql.SQLException
dataSourceName - Name of data source from what I obtain the connection
java.sql.SQLException - If there are problem obtaining the connetionvoid setPassword(java.lang.String password)
*
Must to call to setUser(java.lang.String) too. Although set user and password
is not mandatory.
void setDefaultDataSource(java.lang.String dataSourceName)
getConnection().
void setUser(java.lang.String user)
It is not mandatory to call this method.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||