1 23 package com.lutris.appserver.server.sql.oracle; 24 25 import java.sql.SQLException ; 26 import com.lutris.appserver.server.sql.ConnectionAllocator; 27 import com.lutris.appserver.server.sql.DBQuery; 28 import com.lutris.appserver.server.sql.DBTransaction; 29 import com.lutris.appserver.server.sql.ObjectIdAllocator; 30 import com.lutris.appserver.server.sql.standard.StandardLogicalDatabase; 31 import com.lutris.appserver.server.sql.DatabaseManagerConfiguration; 32 import com.lutris.util.Config; 33 import com.lutris.util.ConfigException; 34 35 43 public class OracleLogicalDatabase extends StandardLogicalDatabase { 44 45 59 public OracleLogicalDatabase(String dbName, Config dbConfig) 60 throws ConfigException, SQLException { 61 super.init(dbName, dbConfig); 62 } 63 64 80 public OracleLogicalDatabase(String dbName, Config dbConfig, DatabaseManagerConfiguration dbManagerConf) 81 throws ConfigException, SQLException { 82 super.init(dbName, dbConfig, dbManagerConf); 83 } 84 85 92 public OracleLogicalDatabase() { 93 super(); 94 } 95 96 106 public ConnectionAllocator loadConnectionAllocator(Config connectionConfig) 107 throws ConfigException { 108 return new OracleConnectionAllocator(this, connectionConfig); 109 } 110 111 121 public ObjectIdAllocator loadObjectIdAllocator(Config objIdConfig) 122 throws ConfigException { 123 return new OracleObjectIdAllocator(this, objIdConfig); 124 } 125 126 133 public DBTransaction createTransaction() 134 throws SQLException { 135 return new OracleDBTransaction((OracleDBConnection) connectionAllocator.allocate()); 136 } 137 138 145 public DBQuery createQuery() 146 throws SQLException { 147 return new OracleDBQuery(connectionAllocator.allocate()); 148 } 149 150 155 public String getType() { 156 return "Oracle"; 157 } 158 } 159 | Popular Tags |