Package marauroa.server.db

Examples of marauroa.server.db.JDBCSQLHelper


  }
 
  private void initializeDatabaseSchema() {
    final DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      new JDBCSQLHelper(transaction).runDBScript("marauroa/server/marauroa_init.sql");
      new UpdateScript().update(transaction);
      TransactionPool.get().commit(transaction);
    } catch (SQLException e) {
      logger.error(e, e);
      TransactionPool.get().rollback(transaction);
View Full Code Here


    transactionPool = TransactionPool.get();
    world = BareRPWorld.get();

    DBTransaction transaction = transactionPool.beginWork();
    try {
      JDBCSQLHelper sql = new JDBCSQLHelper(transaction);
      sql.runDBScript("marauroa/test/clear.sql");
      sql.runDBScript("marauroa/server/marauroa_init.sql");
      transactionPool.commit(transaction);
    } catch (SQLException e) {
      transactionPool.rollback(transaction);     
      e.printStackTrace();
      TestHelper.fail();
View Full Code Here

    transactionPool = TransactionPool.get();
    world = BareRPWorld.get();

    DBTransaction transaction = transactionPool.beginWork();
    try {
      JDBCSQLHelper sql = new JDBCSQLHelper(transaction);
      sql.runDBScript("marauroa/test/clear.sql");
      sql.runDBScript("marauroa/server/marauroa_init.sql");
      transactionPool.commit(transaction);
    } catch (SQLException e) {
      transactionPool.rollback(transaction);
      e.printStackTrace();
      TestHelper.fail();
View Full Code Here

   *
   * @param transaction   DBTransaction
   * @throws SQLException in case of an unexpected database error
   */
  private void createTablesUnlessTheyAlreadyExist(final DBTransaction transaction) {
    new JDBCSQLHelper(transaction).runDBScript("games/stendhal/server/stendhal_init.sql");
  }
View Full Code Here

TOP

Related Classes of marauroa.server.db.JDBCSQLHelper

Copyright © 2018 www.massapicom. 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.