📄 engineconnection.java
字号:
/* Derby - Class org.apache.derby.iapi.jdbc.EngineConnection Copyright 2006 The Apache Software Foundation or its licensors, as applicable. 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. */package org.apache.derby.iapi.jdbc;import java.sql.Connection;import java.sql.PreparedStatement;import java.sql.SQLException;import java.sql.SQLWarning;import org.apache.derby.iapi.reference.SQLState;import org.apache.derby.iapi.sql.execute.ExecutionContext;import org.apache.derby.impl.jdbc.Util;/** * Additional methods the embedded engine exposes on its Connection object * implementations. An internal api only, mainly for the network * server. Allows consistent interaction between EmbedConnections * and BrokeredConnections. * */public interface EngineConnection extends Connection { /** * Set the DRDA identifier for this connection. */ public void setDrdaID(String drdaID); /** * Set the transaction isolation level that will be used for the * next prepare. Used by network server to implement DB2 style * isolation levels. * Note the passed in level using the Derby constants from * ExecutionContext and not the JDBC constants from java.sql.Connection. * @param level Isolation level to change to. level is the DB2 level * specified in the package names which happen to correspond * to our internal levels. If * level == ExecutionContext.UNSPECIFIED_ISOLATION, * the statement won't be prepared with an isolation level. * * */ public void setPrepareIsolation(int level) throws SQLException; /** * Return prepare isolation */ public int getPrepareIsolation() throws SQLException; /** * Prepare a statement with holdability. * Identical to JDBC 3.0 method, to allow holdabilty * to be supported in JDK 1.3 by the network server, * e.g. when the client is jdk 1.4 or above. * Can be removed once JDK 1.3 is no longer supported. */ public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException; /** * Get the holdability of the connection. * Identical to JDBC 3.0 method, to allow holdabilty * to be supported in JDK 1.3 by the network server, * e.g. when the client is jdk 1.4 or above. * Can be removed once JDK 1.3 is no longer supported. */ public int getHoldability() throws SQLException; /** * Add a SQLWarning to this Connection object. * @param newWarning Warning to be added, will be chained to any * existing warnings. */ public void addWarning(SQLWarning newWarning) throws SQLException;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -