/j2se/LGame-j2se-0.2.6/org/loon/framework/game/simple/extend/db/MDB.java
http://loon-simple.googlecode.com/ · Java · 68 lines · 25 code · 23 blank · 20 comment · 0 complexity · 64524dc5172b51f33db334e2b09b35b5 MD5 · raw file
- package org.loon.framework.game.simple.extend.db;
-
- import java.util.Map;
- import java.util.Set;
-
- /**
- * Copyright 2008
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- *
- * @project loonframework
- * @author chenpeng
- * @email??ceponline@yahoo.com.cn
- * @version 0.1
- */
- public interface MDB {
-
- final static public String TAG_SUFFIX = ".tab";
-
- public void openTable(String tableName, int type);
-
- public void openTable(String tableName);
-
- public Object openTableObject(String tableName, String key, int type);
-
- public Object openTableObject(String tableName, String key);
-
- public Set getTables();
-
- public boolean deleteTable();
-
- public boolean isClose();
-
- public Map getTableList();
-
- public Set getTableKey();
-
- public void insert(String key, Object value);
-
- public void update(String key, Object value);
-
- public Object deleteIndex(long keyIndex);
-
- public Object delete(String key);
-
- public Object deleteTableAndReturn(String key);
-
- public Object select(String key);
-
- public long getKB();
-
- public void begin();
-
- public void begin(String password);
-
- public void end();
-
- }