1 23 package com.lutris.appserver.server.sql; 24 25 import java.sql.SQLException ; 26 import java.util.Date ; 27 import com.lutris.util.Config; 28 import com.lutris.util.ConfigException; 29 30 38 public interface LogicalDatabase { 39 40 48 public void init(String dbName, Config dbConfig) 49 throws ConfigException, SQLException ; 50 51 58 public DBConnection allocateConnection() 59 throws SQLException ; 60 61 68 public ObjectId allocateObjectId() 69 throws ObjectIdException; 70 71 79 public void checkOId(ObjectId oid) throws ObjectIdException; 80 81 88 public DBTransaction createTransaction() 89 throws SQLException ; 90 91 98 public DBQuery createQuery() 99 throws SQLException ; 100 101 105 public void shutdown(); 106 107 115 public String getName(); 116 117 122 public String getType(); 123 124 129 public int getActiveConnectionCount(); 130 131 136 public int getMaxConnectionCount(); 137 138 144 public Date getMaxConnectionCountDate(); 145 146 149 public void resetMaxConnectionCount(); 150 151 156 public long getRequestCount(); 157 } 158 | Popular Tags |