|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrabbit.filter.DataSourceHelper
public class DataSourceHelper
A helper class for dealing with DataSource:s
| Constructor Summary | |
|---|---|
DataSourceHelper(SProperties props,
java.lang.String defaultSelect)
Create a new DataSourceHelper |
|
| Method Summary | |
|---|---|
java.sql.Connection |
getConnection()
Get a database connection |
java.lang.String |
getSelect()
Get the select statement for this helper. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataSourceHelper(SProperties props,
java.lang.String defaultSelect)
throws javax.naming.NamingException
props - the properties to read configuration fromdefaultSelect - the default sql statement to use if not configured
javax.naming.NamingException - if the DataSource can not be found| Method Detail |
|---|
public java.sql.Connection getConnection()
throws java.sql.SQLException
java.sql.SQLException - if the database connection can not be establishedpublic java.lang.String getSelect()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||