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.SQLExceptionjava.lang.ClassNotFoundExceptionpublic java.lang.String getSQL()
getSQL in class DataQueryActionpublic void setSQL(java.lang.String mysql)
setSQL in class DataQueryActionmysql - Stringpublic java.sql.ResultSet getResultSet()
getResultSet in class DataQueryActionpublic void close()
public void setPrintResultset(boolean printResultset)
printResultset - booleanpublic void actionPerformed(java.awt.event.ActionEvent event)
event - ActionEvent