com.antelmann.sql
Class JDBCResourceBundle
java.lang.Object
java.util.ResourceBundle
java.util.ListResourceBundle
com.antelmann.sql.JDBCResourceBundle
public class JDBCResourceBundle
- extends ListResourceBundle
a ResourceBundle that gets its content from a JDBC source
- Author:
- Holger Antelmann
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
con
protected Connection con
tableName
protected String tableName
keyFieldName
protected String keyFieldName
valueFieldName
protected String valueFieldName
JDBCResourceBundle
public JDBCResourceBundle(Connection con,
String tableName,
String keyFieldName,
String valueFieldName)
throws SQLException,
IOException
- Throws:
SQLException
IOException
refresh
public void refresh()
throws SQLException,
IOException
- refreshes the resources w/ the database content
- Throws:
SQLException
IOException
getConnection
public Connection getConnection()
getContents
protected Object[][] getContents()
- Specified by:
getContents in class ListResourceBundle
(c) 2001-2006 Holger Antelmann - all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads