From 8536d9d78d4be943dbb2cd89ec62e616a1c95a69 Mon Sep 17 00:00:00 2001 From: magenoxx Date: Wed, 25 Jan 2012 18:09:42 +0400 Subject: [PATCH] minor change in EntityManager --- Mage.Common/src/mage/db/EntityManager.java | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/Mage.Common/src/mage/db/EntityManager.java b/Mage.Common/src/mage/db/EntityManager.java index 44c6016133..fea5b8bf2e 100644 --- a/Mage.Common/src/mage/db/EntityManager.java +++ b/Mage.Common/src/mage/db/EntityManager.java @@ -8,16 +8,15 @@ import java.sql.*; /** * @author noxx */ -public class EntityManager { +public enum EntityManager { + + instance; private static final Logger log = Logger.getLogger(EntityManager.class); - private static final EntityManager instance; - private static final String MAGE_JDBC_URL = "jdbc:sqlite:db/mage.db"; static { - instance = new EntityManager(); try { init(); } catch (Exception e) { @@ -145,11 +144,6 @@ public class EntityManager { log.debug("[DBTest] checking test user [ERROR]"); log.debug("[DBTest] couldn't find test user"); } - - while (rs.next()) { - System.out.println("user = " + rs.getString("login")); - System.out.println("password = " + rs.getString("password")); - } } public static void main(String[] args) throws Exception {