Class JdbcH2Helper
java.lang.Object
org.nuiton.topia.persistence.jdbc.JdbcHelper
org.nuiton.topia.persistence.jdbc.JdbcH2Helper
-
Field Summary
Fields inherited from class JdbcHelper
jdbcConfiguration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidBackup database in gzip compressed file.voidclear(boolean dropDatabase) booleanisTableExist(String tableName) booleanisTableExist(String schema, String tableName) Tests if a given table exists.voidRead database from gzip compressed fileMethods inherited from class JdbcHelper
closeQuietly, closeQuietly, closeQuietly, createSchema, getJdbcDriver, openConnection, registerDriver, runSelectOnString, runUpdate
-
Constructor Details
-
JdbcH2Helper
-
-
Method Details
-
isTableExist
-
isTableExist
-
backup
Backup database in gzip compressed file.- Parameters:
file- file to write backupcompress- if true then use gzip to compress file
-
restore
Read database from gzip compressed file- Parameters:
file- the source file to use for restore- Throws:
FileNotFoundException- if file does not exist
-
clear
public void clear(boolean dropDatabase)
-