| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hsqldb.sample.SqlFileEmbedder
public class SqlFileEmbedder
Sample class which executes SQL files, by embedding SqlFile.
Suitable for using as a template. This class also serves as an example of using RCData to allow your application users to store JDBC access information in a convenient text file.
main(String[]), 
SqlFile, 
RCData| Constructor Summary | |
|---|---|
| SqlFileEmbedder(File rcFile,
                String urlid)Instantiates SqlFileEmbedder object and connects to specified database. | |
| Method Summary | |
|---|---|
|  void | executeFiles(String[] fileStrings)Your own classes can use this method to execute SQL files. | 
|  Connection | getConn()For applications that use a persistent JDBC connection, this class can be used to encapsulate that connection. | 
| static void | main(String[] sa)Run | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public SqlFileEmbedder(File rcFile,
                       String urlid)
                throws Exception
Exception| Method Detail | 
|---|
public Connection getConn()
public static void main(String[] sa)
                 throws Exception
     java SqlFileEmbedder
 to see Syntax message.
Exception
public void executeFiles(String[] fileStrings)
                  throws IOException,
                         org.hsqldb.cmdline.SqlToolError,
                         SQLException
IOException
org.hsqldb.cmdline.SqlToolError
SQLExceptionmain(String[])| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||