|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.sql.EmbeddedDatabase
public class EmbeddedDatabase
An embedded (no server process, local filesystem) SQL database. Includes methods for creating, deleting, and connecting to it.
Currently the engine used is Hypersonic SQL (HSQLDB). This may change in the future, so shouldn't be depended on.
Copyright 2006 Partner Softare, Inc.
| Constructor Summary | |
|---|---|
EmbeddedDatabase(Path path)
Creates a new embedded database for the given path. |
|
EmbeddedDatabase(java.lang.String pathDescription)
Creates a new embedded database for the given path description. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the database connection and database. |
SqlConnection |
getConnection()
Returns the database connection to the database. |
Path |
getPath()
Returns the path to the database. |
boolean |
isOpen()
Returns true if the database is open (connected). |
void |
open()
Opens the database for reading and writing. |
void |
openReadOnly()
Opens the database for reading only. |
void |
openReadWrite()
Opens the database for reading and writing. |
void |
remove()
Removes the database, including all data and all associated files. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EmbeddedDatabase(java.lang.String pathDescription)
public EmbeddedDatabase(Path path)
| Method Detail |
|---|
public void open()
throws java.sql.SQLException
java.sql.SQLException
public void openReadWrite()
throws java.sql.SQLException
java.sql.SQLException
public void openReadOnly()
throws java.sql.SQLException
java.sql.SQLException
public void close()
throws java.sql.SQLException
java.sql.SQLException
public void remove()
throws java.sql.SQLException,
java.io.IOException
java.sql.SQLException
java.io.IOExceptionpublic SqlConnection getConnection()
open().
public Path getPath()
public boolean isOpen()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||