Class symantec.itools.db.beans.sqleditor.QueryPanel
All Packages Class Hierarchy This Package Previous Next Index
Class symantec.itools.db.beans.sqleditor.QueryPanel
Object
|
+----Component
|
+----Container
|
+----JComponent
|
+----JPanel
|
+----symantec.itools.db.beans.sqleditor.QueryPanel
- public class QueryPanel
- extends JPanel
- implements Runnable, PropertyChangeListener, ActionListener
This class will display the SQL text and buttons to
execute the SQL statement
- Version:
- 1.0 06/15/97
- Author:
- Hristo Tonev
-
PROP_SQL_TEXT
-
-
changeSupport
-
-
resultChangeSupport
-
-
symantec.itools.db.beans.sqleditor.QueryPanel(Connection, String)
-
-
actionPerformed(ActionEvent)
-
-
addPropertyChangeListener(PropertyChangeListener)
- Add a PropertyChangeListener to the listener list.
-
addResultChangeListener(ResultChangeListener)
- Add a ResultChangeListeners to the listener list.
-
createButtonsToolbar()
-
-
createStatement()
-
-
executeStatement()
-
-
firePropertyChange(String, Object, Object)
- Support for reporting bound property changes.
-
fireResultChange(JPanel, int, int)
- Support for reporting a result from a query change.
-
getConnection()
-
-
getSQLText()
-
-
getStatement()
-
-
initializeGUI()
-
-
main(String[])
-
-
makeSQLExceptionPanel(SQLException)
-
-
makeUpdateCountPanel(int)
-
-
processResults()
-
-
propertyChange(PropertyChangeEvent)
-
-
removePropertyChangeListener(PropertyChangeListener)
- Remove a PropertyChangeListener from the listener list.
-
removeResultChangeListener(ResultChangeListener)
- Remove a ResultChangeListener from the listener list.
-
run()
-
-
setConnection(Connection)
-
-
setSQLText(String)
-
-
setStatement(Statement)
-
PROP_SQL_TEXT
public static final java.lang.String PROP_SQL_TEXT
changeSupport
protected java.beans.PropertyChangeSupport changeSupport
resultChangeSupport
protected symantec.itools.db.beans.sqleditor.ResultChangeSupport resultChangeSupport
QueryPanel
public QueryPanel(Connection connection,
String SQLText)
actionPerformed
public void actionPerformed(ActionEvent evt)
addPropertyChangeListener
public synchronized void addPropertyChangeListener(PropertyChangeListener listener)
- Add a PropertyChangeListener to the listener list.
The listener is registered for all properties.
- Parameters:
- listener - The PropertyChangeListener to be added
- Overrides:
- addPropertyChangeListener in class JComponent
addResultChangeListener
public synchronized void addResultChangeListener(ResultChangeListener listener)
- Add a ResultChangeListeners to the listener list.
The listener is registered for all properties.
- Parameters:
- listener - The ResultChangeListener to be added
createButtonsToolbar
protected void createButtonsToolbar()
createStatement
protected synchronized void createStatement() throws SQLException
executeStatement
protected synchronized void executeStatement() throws SQLException
firePropertyChange
protected void firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
- Support for reporting bound property changes. This method can be called
when a bound property has changed and it will send the appropriate
PropertyChangeEvent to any registered PropertyChangeListeners.
- Overrides:
- firePropertyChange in class JComponent
fireResultChange
protected void fireResultChange(JPanel panel,
int type,
int command)
- Support for reporting a result from a query change.
getConnection
public java.sql.Connection getConnection()
getSQLText
public java.lang.String getSQLText()
getStatement
public java.sql.Statement getStatement()
initializeGUI
protected void initializeGUI()
main
public static void main(String[] args)
makeSQLExceptionPanel
protected synchronized com.sun.java.swing.JPanel makeSQLExceptionPanel(SQLException ex)
makeUpdateCountPanel
protected synchronized com.sun.java.swing.JPanel makeUpdateCountPanel(int updateCount)
processResults
protected synchronized void processResults()
propertyChange
public void propertyChange(PropertyChangeEvent evt)
removePropertyChangeListener
public synchronized void removePropertyChangeListener(PropertyChangeListener listener)
- Remove a PropertyChangeListener from the listener list.
This removes a PropertyChangeListener that was registered
for all properties.
- Parameters:
- listener - The PropertyChangeListener to be removed
- Overrides:
- removePropertyChangeListener in class JComponent
removeResultChangeListener
public synchronized void removeResultChangeListener(ResultChangeListener listener)
- Remove a ResultChangeListener from the listener list.
This removes a ResultChangeListener that was registered
for all properties.
- Parameters:
- listener - The ResultChangeListener to be removed
run
public void run()
setConnection
public void setConnection(Connection connection)
setSQLText
public void setSQLText(String newValue)
setStatement
protected void setStatement(Statement statement)
All Packages Class Hierarchy This Package Previous Next Index