JdbcH2Helper out of the hibernate session@Deprecated public class TopiaH2Util extends Object
| Modifier and Type | Field and Description |
|---|---|
protected TopiaFiresSupport |
firesSupport
Deprecated.
|
protected TopiaSqlSupport |
sqlSupport
Deprecated.
|
| Constructor and Description |
|---|
TopiaH2Util(TopiaSqlSupport context,
TopiaFiresSupport firesSupport)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
backup(File file,
boolean compress)
Deprecated.
Backup database in gzip compressed file.
|
void |
restore(File file)
Deprecated.
Read database from gzip compressed file
Only work for h2 database
|
protected TopiaFiresSupport firesSupport
protected TopiaSqlSupport sqlSupport
public TopiaH2Util(TopiaSqlSupport context, TopiaFiresSupport firesSupport)
public void backup(File file, boolean compress) throws TopiaException
file - file to write backupcompress - if true then use gzip to compress fileTopiaExceptionpublic void restore(File file) throws TopiaException
file - the source file to use for restoreTopiaExceptionCopyright © 2004–2018 CodeLutin. All rights reserved.