public class HsqlDataQueryAction extends DataQueryAction
Constructor and Description |
---|
HsqlDataQueryAction()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
This method will handle such staff: Load data into db(create text tables
and set source file location to table) Run sql query against the db
|
void |
close()
Close the underlying database resources and invalidate object.
|
java.sql.ResultSet |
getResultSet()
Method to get result set
|
java.lang.String |
getSQL()
Get sql command
|
void |
setPrintResultset(boolean printResultset)
Method to print out the result set.
|
void |
setSQL(java.lang.String mysql)
Set sql command
|
public HsqlDataQueryAction() throws java.sql.SQLException, java.lang.ClassNotFoundException
java.sql.SQLException
java.lang.ClassNotFoundException
public java.lang.String getSQL()
getSQL
in class DataQueryAction
public void setSQL(java.lang.String mysql)
setSQL
in class DataQueryAction
mysql
- Stringpublic java.sql.ResultSet getResultSet()
getResultSet
in class DataQueryAction
public void close()
public void setPrintResultset(boolean printResultset)
printResultset
- booleanpublic void actionPerformed(java.awt.event.ActionEvent event)
event
- ActionEvent