org.hsqldb.sample
Class Testdb
- java.lang.Object
-
- org.hsqldb.sample.Testdb
-
public class Testdb extends java.lang.ObjectTitle: Testdb Description: simple hello world db example of a standalone persistent db application every time it runs it adds four more rows to sample_table it does a query and prints the results to standard out Author: Karl Meissner karl@meissnersd.com
-
-
Constructor Summary
Constructors Constructor and Description Testdb(java.lang.String db_file_name_prefix)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static voiddump(java.sql.ResultSet rs)static voidmain(java.lang.String[] args)voidquery(java.lang.String expression)voidshutdown()voidupdate(java.lang.String expression)
-
-
-
Constructor Detail
-
Testdb
public Testdb(java.lang.String db_file_name_prefix) throws java.lang.Exception- Throws:
java.lang.Exception
-
-
Method Detail
-
shutdown
public void shutdown() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
query
public void query(java.lang.String expression) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
update
public void update(java.lang.String expression) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
dump
public static void dump(java.sql.ResultSet rs) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
main
public static void main(java.lang.String[] args)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG