OSDN Git Service

Txxxxx
[traindelaybot/source.git] / workspace / .metadata / .plugins / org.eclipse.core.resources / .history / 12 / 007d7e77666b001115b7b82f2f4ce01a
diff --git a/workspace/.metadata/.plugins/org.eclipse.core.resources/.history/12/007d7e77666b001115b7b82f2f4ce01a b/workspace/.metadata/.plugins/org.eclipse.core.resources/.history/12/007d7e77666b001115b7b82f2f4ce01a
deleted file mode 100644 (file)
index 11e9e21..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-package com.yuji.tdb.db;\r
-\r
-import java.util.List;\r
-\r
-import javax.jdo.PersistenceManager;\r
-\r
-public class TrainDao {\r
-       private static TrainDao instance = null;\r
-       private PersistenceManager pm = PMFactory.get().getPersistenceManager();\r
-\r
-       public static TrainDao getInstance() {\r
-               if (instance == null) {\r
-                       instance = new TrainDao();\r
-               }\r
-               return instance;\r
-       }\r
-\r
-       private TrainDao() {\r
-\r
-       }\r
-\r
-       public List<Train> search() {\r
-               String query = "SELECT FROM " + Train.class.getName();\r
-               List<Train> list = (List<Train>) pm.newQuery(query).execute();\r
-               pm.close();\r
-               return list;\r
-       }\r
-\r
-       public void put(String key, String value) {\r
-               KeyValue keyValue = new KeyValue(key, value);\r
-               pm.makePersistent(keyValue);\r
-       }\r
-\r
-       public void put(String key, int value) {\r
-               put(key, String.valueOf(value));\r
-       }\r
-}\r