|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdb.OdbHsqldbBridge
public final class OdbHsqldbBridge
Field Summary | |
---|---|
static String |
DBNAME
|
static String |
DIRECTORY_DB_OO
|
static String |
HSQLDB_OPTIONS
|
static Logger |
LOGGER
|
static String |
ODB_PATTERN
|
Method Summary | |
---|---|
protected static void |
compressDatabase(File databaseDir,
String databaseName,
ZipOutputStream odbStream)
|
static void |
copy(InputStream inStream,
OutputStream outStream)
|
static void |
exportDatabase(InputStream odbStream,
File databaseDir,
String databaseName,
File odbOutput)
Export the database in directory in a new odbfile which is created using the pattern argument. |
static InputStream |
getDefaultOdbPattern(Object o)
|
static String |
makeEmbeddedURL(File dbDir,
String dbName)
|
static String |
makeLocalhostURL(String dbName)
|
static String |
makeNetworkURL(String host,
int port,
String dbName)
The host name or adress should begin with /. |
static String |
makeNetworkURL(String host,
String dbName)
The host name or adress should begin with /. |
protected static void |
transferOdbPattern(ZipInputStream inStream,
ZipOutputStream outStream)
Transfer only the files associated with the database in odb format. |
static void |
uncompressDatabase(InputStream odbStream,
File databaseDir,
String databaseName)
Uncompress the database contained in a odb pattern. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DIRECTORY_DB_OO
public static final String DBNAME
public static final String ODB_PATTERN
public static final Logger LOGGER
public static final String HSQLDB_OPTIONS
Method Detail |
---|
public static InputStream getDefaultOdbPattern(Object o)
public static void copy(InputStream inStream, OutputStream outStream) throws IOException
IOException
public static void uncompressDatabase(InputStream odbStream, File databaseDir, String databaseName) throws FileNotFoundException, IOException
odbStream
- the odb patterndatabaseDir
- the extraction directorydatabaseName
- the name of the extracted database.
IOException
FileNotFoundException
protected static void compressDatabase(File databaseDir, String databaseName, ZipOutputStream odbStream) throws IOException
IOException
protected static void transferOdbPattern(ZipInputStream inStream, ZipOutputStream outStream) throws IOException
inStream
- the source (pattern)outStream
- the destinationbuffer
- a reusable buffer
IOException
public static void exportDatabase(InputStream odbStream, File databaseDir, String databaseName, File odbOutput) throws IOException
odbStream
- patterndatabaseDir
- exported database directorydatabaseName
- odbOutput
- new odbfile
IOException
public static final String makeLocalhostURL(String dbName)
public static final String makeEmbeddedURL(File dbDir, String dbName)
public static final String makeNetworkURL(String host, String dbName)
public static final String makeNetworkURL(String host, int port, String dbName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |