iglu.jdbc
Class SQLComboBoxModel
java.lang.Object
|
+--javax.swing.AbstractListModel
|
+--iglu.jdbc.JDBCComboBoxModel
|
+--iglu.jdbc.SQLComboBoxModel
- All Implemented Interfaces:
- javax.swing.ComboBoxModel, javax.swing.ListModel, java.io.Serializable
- public class SQLComboBoxModel
- extends JDBCComboBoxModel
wrapper for JDBCComboBoxModel to allow let the user pass an sql
statement. Basically a convienence class
- Version:
- 1.0
- Author:
- Travis Bauer trbauer@indiana.edu
- See Also:
- Serialized Form
Field Summary |
protected java.sql.Connection |
sqlConnection
The database connection to use |
protected java.lang.String |
sqlStatement
The Sql statement to execute |
Fields inherited from class javax.swing.AbstractListModel |
listenerList |
Constructor Summary |
SQLComboBoxModel(java.lang.String nsqlStatement,
java.sql.Connection ndbConn,
int[] ndisplayCols)
Create a new comboBox model from the given information |
Method Summary |
protected void |
executeSQL()
Execute the sql statement |
java.sql.ResultSet |
rs()
Get the result set upon which this combo box resides |
Methods inherited from class javax.swing.AbstractListModel |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.ListModel |
addListDataListener, removeListDataListener |
sqlStatement
protected java.lang.String sqlStatement
- The Sql statement to execute
sqlConnection
protected java.sql.Connection sqlConnection
- The database connection to use
SQLComboBoxModel
public SQLComboBoxModel(java.lang.String nsqlStatement,
java.sql.Connection ndbConn,
int[] ndisplayCols)
- Create a new comboBox model from the given information
executeSQL
protected void executeSQL()
- Execute the sql statement
rs
public java.sql.ResultSet rs()
- Get the result set upon which this combo box resides