Package marauroa.server.game.db

Examples of marauroa.server.game.db.DatabaseFactory


   * @param args
   */
  public static void main(final String[] args) {
    Log4J.init();
    Configuration.setConfigurationFile("/home/hendrik/workspace/stendhal/server_strato.ini");
    new DatabaseFactory().initializeDatabase()
    String timedate = "2000-01-01";
    if (args.length > 0) {
      timedate = args[0];
    }
    final Analyser analyser = new Analyser();
View Full Code Here


import marauroa.server.game.db.DatabaseFactory;

public class CopyTable {

  public static void main(String[] args) throws SQLException, InterruptedException {
    new DatabaseFactory().initializeDatabase();
    TransactionPool transactionPool = TransactionPool.get();
   
    for (int i = 1122; i < 346000; i++) {
      System.out.println("> " + i);
      String cmd = "INSERT INTO itemlog_new (id, timedate, itemid, source, event, param1, param2, param3, param4)"
View Full Code Here

public class ReadTable {
  private static Logger logger = Logger.getLogger(ReadTable.class);

  public static void main(String[] args) throws SQLException, InterruptedException, IOException {
    new DatabaseFactory().initializeDatabase();
    TransactionPool transactionPool = TransactionPool.get();

    BufferedReader br = new BufferedReader(new FileReader(args[0]));
    String line = br.readLine();
    int i = 0;
View Full Code Here

  private static DailyMonsterQuest dmq;
  private static Engine en;

  @BeforeClass
  public static void setUpBeforeClass() throws Exception {
    new DatabaseFactory().initializeDatabase();
    mayor = SpeakerNPCTestHelper.createSpeakerNPC("Mayor Sakhs");
    NPCList.get().add(mayor);
    dmq = new DailyMonsterQuest();
 
    dmq.addToWorld();
View Full Code Here

public class UpdatePlayerEntitiesTest {

  @BeforeClass
  public static void setUp() throws Exception {
    new DatabaseFactory().initializeDatabase();
  }
View Full Code Here

  private Player killer;
  private StendhalRPZone zone;
 
  @BeforeClass
  public static void setUpBeforeClass() throws Exception {
    new DatabaseFactory().initializeDatabase();
    MockStendlRPWorld.get();
  }
View Full Code Here

* @author hendrik
*/
public class RPObjectDumper {

  public static void main(String[] args) throws SQLException, IOException {
    new DatabaseFactory().initializeDatabase();

    new RPClassGenerator().createRPClasses();

    int objectid = Integer.parseInt(args[0]);
    RPObject object = DAORegister.get().get(RPObjectDAO.class).loadRPObject(objectid);
View Full Code Here

import utilities.RPClass.CreatureTestHelper;

public class AttackWeakestTest {
  @BeforeClass
  public static void setUpBeforeClass() throws Exception {
    new DatabaseFactory().initializeDatabase();
    MockStendlRPWorld.get();
    CreatureTestHelper.generateRPClasses();
  }
View Full Code Here

public class MarketTest {

  @BeforeClass
  public static void beforeClass() {
    Log4J.init();
    new DatabaseFactory().initializeDatabase();
    MockStendlRPWorld.get();
  }
View Full Code Here

 
  @BeforeClass
  public static void beforeClass() {
    Log4J.init();
    MockStendlRPWorld.get();
    new DatabaseFactory().initializeDatabase();
  }
View Full Code Here

TOP

Related Classes of marauroa.server.game.db.DatabaseFactory

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.