1 21 22 package org.apache.derby.client.am; 23 24 import org.apache.derby.client.ClientPooledConnection; 25 import org.apache.derby.jdbc.ClientDataSource; 26 import java.sql.SQLException ; 27 import org.apache.derby.jdbc.ClientBaseDataSource; 28 29 36 37 public interface ClientJDBCObjectFactory { 38 39 44 ClientPooledConnection newClientPooledConnection(ClientBaseDataSource ds, 45 LogWriter logWriter,String user,String password) 46 throws SQLException ; 47 48 53 ClientPooledConnection newClientPooledConnection(ClientBaseDataSource ds, 54 LogWriter logWriter,String user,String password,int rmId) 55 throws SQLException ; 56 57 76 CallableStatement newCallableStatement(Agent agent, 77 org.apache.derby.client.am.Connection connection, String sql, 78 int type,int concurrency,int holdability, 79 ClientPooledConnection cpc) throws SqlException; 80 81 86 LogicalConnection newLogicalConnection( 87 org.apache.derby.client.am.Connection physicalConnection, 88 ClientPooledConnection pooledConnection) 89 throws SqlException; 90 91 113 PreparedStatement newPreparedStatement(Agent agent, 114 org.apache.derby.client.am.Connection connection, 115 String sql,Section section,ClientPooledConnection cpc) 116 throws SqlException; 117 118 146 PreparedStatement newPreparedStatement(Agent agent, 147 org.apache.derby.client.am.Connection connection,String sql, 148 int type,int concurrency,int holdability,int autoGeneratedKeys, 149 String [] columnNames,ClientPooledConnection cpc) 150 throws SqlException; 151 152 153 158 org.apache.derby.client.am.Connection newNetConnection( 159 LogWriter netLogWriter, 160 String databaseName,java.util.Properties properties) 161 throws SqlException; 162 163 168 org.apache.derby.client.am.Connection newNetConnection( 169 LogWriter netLogWriter, 170 org.apache.derby.jdbc.ClientBaseDataSource clientDataSource,String user, 171 String password) throws SqlException; 172 173 178 org.apache.derby.client.am.Connection newNetConnection( 179 LogWriter netLogWriter, 180 int driverManagerLoginTimeout,String serverName, 181 int portNumber,String databaseName,java.util.Properties properties) 182 throws SqlException; 183 184 189 org.apache.derby.client.am.Connection newNetConnection( 190 LogWriter netLogWriter, 191 String user,String password, 192 org.apache.derby.jdbc.ClientBaseDataSource dataSource,int rmId, 193 boolean isXAConn) throws SqlException; 194 195 201 org.apache.derby.client.am.Connection newNetConnection( 202 LogWriter netLogWriter,String ipaddr, 203 int portNumber,org.apache.derby.jdbc.ClientBaseDataSource dataSource, 204 boolean isXAConn) throws SqlException; 205 206 227 org.apache.derby.client.am.Connection newNetConnection( 228 LogWriter netLogWriter, 229 String user,String password, 230 org.apache.derby.jdbc.ClientBaseDataSource dataSource,int rmId, 231 boolean isXAConn,ClientPooledConnection cpc) throws SqlException; 232 233 238 ResultSet newNetResultSet(Agent netAgent,MaterialStatement netStatement, 239 Cursor cursor, 240 int qryprctyp, int sqlcsrhld, int qryattscr, int qryattsns, 241 int qryattset,long qryinsid,int actualResultSetType, 242 int actualResultSetConcurrency,int actualResultSetHoldability) 243 throws SqlException; 244 245 251 DatabaseMetaData newNetDatabaseMetaData(Agent netAgent, 252 org.apache.derby.client.am.Connection netConnection); 253 254 263 Statement newStatement(Agent agent, 264 org.apache.derby.client.am.Connection connection) 265 throws SqlException; 266 267 281 Statement newStatement(Agent agent, 282 org.apache.derby.client.am.Connection connection, int type, 283 int concurrency, int holdability, 284 int autoGeneratedKeys, String [] columnNames) 285 throws SqlException; 286 287 295 ColumnMetaData newColumnMetaData(LogWriter logWriter); 296 297 306 ColumnMetaData newColumnMetaData(LogWriter logWriter, int upperBound); 307 308 317 ParameterMetaData newParameterMetaData(ColumnMetaData columnMetaData); 318 } 319 | Popular Tags |