|
||||||||||
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,
String defaultSelect)
Create a new DataSourceHelper |
Method Summary | |
---|---|
Connection |
getConnection()
Get a database connection |
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, String defaultSelect) throws NamingException
props
- the properties to read configuration fromdefaultSelect
- the default sql statement to use if not configured
NamingException
- if the DataSource can not be foundMethod Detail |
---|
public Connection getConnection() throws SQLException
SQLException
- if the database connection can not be establishedpublic String getSelect()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |