Class TopiaH2Util

java.lang.Object
org.nuiton.topia.persistence.util.TopiaH2Util

@Deprecated public class TopiaH2Util extends Object
Deprecated.
use JdbcH2Helper out of the hibernate session
Author:
Arnaud Thimel (Code Lutin)
  • Field Details

  • Constructor Details

  • Method Details

    • backup

      public void backup(File file, boolean compress) throws TopiaException
      Deprecated.
      Backup database in gzip compressed file. Note: Only works for h2 database.
      Parameters:
      file - file to write backup
      compress - if true then use gzip to compress file
      Throws:
      TopiaException
    • restore

      public void restore(File file) throws TopiaException
      Deprecated.
      Read database from gzip compressed file Only work for h2 database
      Parameters:
      file - the source file to use for restore
      Throws:
      TopiaException