Examples of MigrationScript


Examples of hidb2.kern.db.MigrationScript

      {
      try
        {
        Class<?> clzz = Class.forName(clzzName);

        MigrationScript ms = (MigrationScript) clzz.newInstance();

        res = ms.migrate(this);

        if (res == C_OK)
          {
          // Update database version
          Statement s = _cnx.createStatement();

          Date today = new Date(System.currentTimeMillis());

          log.info("INSERT INTO T_GENINFO VALUES ( '" + SCHEME_LEVEL + "' , '" + today.toString() + "', '"
              + ms.getInfo() + "')");

          /* boolean b = */s.execute("INSERT INTO T_GENINFO VALUES ( '" + SCHEME_LEVEL + "' , '" + today.toString()
              + "', '" + ms.getInfo() + "')");

          commit();

          s.close();
          }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.