⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 callablestatementwrapper.java

📁 mysql5.0 JDBC 驱动 放在glassfish或者tomcat的lib文件夹下就可以了
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
//			checkAndFireConnectionError(sqlEx);//		}//		//		return null;//	}////	public RowId getRowId(String parameterName) throws SQLException {//		try {//			if (this.wrappedStmt != null) {//				return ((CallableStatement) this.wrappedStmt)//						.getRowId(parameterName);//			} else {//				throw SQLError.createSQLException(//						"No operations allowed after statement closed",//						SQLError.SQL_STATE_GENERAL_ERROR);//			}//		} catch (SQLException sqlEx) {//			checkAndFireConnectionError(sqlEx);//		}//		//		return null;//	}////	public SQLXML getSQLXML(int parameterIndex) throws SQLException {//		try {//			if (this.wrappedStmt != null) {//				return ((CallableStatement) this.wrappedStmt)//						.getSQLXML(parameterIndex);//			} else {//				throw SQLError.createSQLException(//						"No operations allowed after statement closed",//						SQLError.SQL_STATE_GENERAL_ERROR);//			}//		} catch (SQLException sqlEx) {//			checkAndFireConnectionError(sqlEx);//		}//		//		return null;//	}////	public SQLXML getSQLXML(String parameterName) throws SQLException {//		try {//			if (this.wrappedStmt != null) {//				return ((CallableStatement) this.wrappedStmt)//						.getSQLXML(parameterName);//			} else {//				throw SQLError.createSQLException(//						"No operations allowed after statement closed",//						SQLError.SQL_STATE_GENERAL_ERROR);//			}//		} catch (SQLException sqlEx) {//			checkAndFireConnectionError(sqlEx);//		}//		//		return null;//	}////	public void setAsciiStream(String parameterName, InputStream x) throws SQLException {//		try {//			if (this.wrappedStmt != null) {//				((CallableStatement) this.wrappedStmt)//						.setAsciiStream(parameterName, x) ;//			} else {//				throw SQLError.createSQLException(//						"No operations allowed after statement closed",//						SQLError.SQL_STATE_GENERAL_ERROR);//			}//		} catch (SQLException sqlEx) {//			checkAndFireConnectionError(sqlEx);//		}//	}////	public void setAsciiStream(String parameterName, InputStream x, long length) throws SQLException {//		try {//			if (this.wrappedStmt != null) {//				((CallableStatement) this.wrappedStmt)//						.setAsciiStream(parameterName, x, length);//			} else {//				throw SQLError.createSQLException(//						"No operations allowed after statement closed",//						SQLError.SQL_STATE_GENERAL_ERROR);//			}//		} catch (SQLException sqlEx) {//			checkAndFireConnectionError(sqlEx);//		}//	}////	public void setBinaryStream(String parameterName, InputStream x) throws SQLException {//		try {//			if (this.wrappedStmt != null) {//				((CallableStatement) this.wrappedStmt)//						.setBinaryStream(parameterName, x);//			} else {//				throw SQLError.createSQLException(//						"No operations allowed after statement closed",//						SQLError.SQL_STATE_GENERAL_ERROR);//			}//		} catch (SQLException sqlEx) {//			checkAndFireConnectionError(sqlEx);//		}//	}////	public void setBinaryStream(String parameterName, InputStream x, long length) throws SQLException {//		try {//			if (this.wrappedStmt != null) {//				((CallableStatement) this.wrappedStmt)//						.setBinaryStream(parameterName, x, length);//			} else {//				throw SQLError.createSQLException(//						"No operations allowed after statement closed",//						SQLError.SQL_STATE_GENERAL_ERROR);//			}//		} catch (SQLException sqlEx) {//			checkAndFireConnectionError(sqlEx);//		}//	}////	public void setBlob(String parameterName, Blob x) throws SQLException {//		try {//			if (this.wrappedStmt != null) {//				((CallableStatement) this.wrappedStmt)//						.setBlob(parameterName, x);//			} else {//				throw SQLError.createSQLException(//						"No operations allowed after statement closed",//						SQLError.SQL_STATE_GENERAL_ERROR);//			}//		} catch (SQLException sqlEx) {//			checkAndFireConnectionError(sqlEx);//		}//	}////	public void setBlob(String parameterName, InputStream inputStream) throws SQLException {//		try {//			if (this.wrappedStmt != null) {//				((CallableStatement) this.wrappedStmt)//						.setBlob(parameterName, inputStream);//			} else {//				throw SQLError.createSQLException(//						"No operations allowed after statement closed",//						SQLError.SQL_STATE_GENERAL_ERROR);//			}//		} catch (SQLException sqlEx) {//			checkAndFireConnectionError(sqlEx);//		}//	}////	public void setBlob(String parameterName, InputStream inputStream, long length) throws SQLException {//		try {//			if (this.wrappedStmt != null) {//				((CallableStatement) this.wrappedStmt)//						.setBlob(parameterName, inputStream, length);//			} else {//				throw SQLError.createSQLException(//						"No operations allowed after statement closed",//						SQLError.SQL_STATE_GENERAL_ERROR);//			}//		} catch (SQLException sqlEx) {//			checkAndFireConnectionError(sqlEx);//		}//	}////	public void setCharacterStream(String parameterName, Reader reader) throws SQLException {//		try {//			if (this.wrappedStmt != null) {//				((CallableStatement) this.wrappedStmt)//						.setCharacterStream(parameterName, reader);//			} else {//				throw SQLError.createSQLException(//						"No operations allowed after statement closed",//						SQLError.SQL_STATE_GENERAL_ERROR);//			}//		} catch (SQLException sqlEx) {//			checkAndFireConnectionError(sqlEx);//		}//	}////	public void setCharacterStream(String parameterName, Reader reader, long length) throws SQLException {//		try {//			if (this.wrappedStmt != null) {//				((CallableStatement) this.wrappedStmt)//						.setCharacterStream(parameterName, reader, length);//			} else {//				throw SQLError.createSQLException(//						"No operations allowed after statement closed",//						SQLError.SQL_STATE_GENERAL_ERROR);//			}//		} catch (SQLException sqlEx) {//			checkAndFireConnectionError(sqlEx);//		}//	}////	public void setClob(String parameterName, Clob x) throws SQLException {//		try {//			if (this.wrappedStmt != null) {//				((CallableStatement) this.wrappedStmt)//						.setClob(parameterName, x);//			} else {//				throw SQLError.createSQLException(//						"No operations allowed after statement closed",//						SQLError.SQL_STATE_GENERAL_ERROR);//			}//		} catch (SQLException sqlEx) {//			checkAndFireConnectionError(sqlEx);//		}//	}////	public void setClob(String parameterName, Reader reader) throws SQLException {//		try {//			if (this.wrappedStmt != null) {//				((CallableStatement) this.wrappedStmt)//						.setClob(parameterName, reader);//			} else {//				throw SQLError.createSQLException(//						"No operations allowed after statement closed",//						SQLError.SQL_STATE_GENERAL_ERROR);//			}//		} catch (SQLException sqlEx) {//			checkAndFireConnectionError(sqlEx);//		}//	}////	public void setClob(String parameterName, Reader reader, long length) throws SQLException {//		try {//			if (this.wrappedStmt != null) {//				((CallableStatement) this.wrappedStmt)//						.setClob(parameterName, reader, length);//			} else {//				throw SQLError.createSQLException(//						"No operations allowed after statement closed",//						SQLError.SQL_STATE_GENERAL_ERROR);//			}//		} catch (SQLException sqlEx) {//			checkAndFireConnectionError(sqlEx);//		}//	}////	public void setNCharacterStream(String parameterName, Reader value) throws SQLException {//		try {//			if (this.wrappedStmt != null) {//				((CallableStatement) this.wrappedStmt)//						.setNCharacterStream(parameterName, value);//			} else {//				throw SQLError.createSQLException(//						"No operations allowed after statement closed",//						SQLError.SQL_STATE_GENERAL_ERROR);//			}//		} catch (SQLException sqlEx) {//			checkAndFireConnectionError(sqlEx);//		}//	}////	public void setNCharacterStream(String parameterName, Reader value, long length) throws SQLException {//		try {//			if (this.wrappedStmt != null) {//				((CallableStatement) this.wrappedStmt)//						.setNCharacterStream(parameterName, value, length);//			} else {//				throw SQLError.createSQLException(//						"No operations allowed after statement closed",//						SQLError.SQL_STATE_GENERAL_ERROR);//			}//		} catch (SQLException sqlEx) {//			checkAndFireConnectionError(sqlEx);//		}//	}////	public void setNClob(String parameterName, NClob value) throws SQLException {//		try {//			if (this.wrappedStmt != null) {//				((CallableStatement) this.wrappedStmt)//						.setNClob(parameterName, value);//			} else {//				throw SQLError.createSQLException(//						"No operations allowed after statement closed",//						SQLError.SQL_STATE_GENERAL_ERROR);//			}//		} catch (SQLException sqlEx) {//			checkAndFireConnectionError(sqlEx);//		}//	}////	public void setNClob(String parameterName, Reader reader) throws SQLException {//		try {//			if (this.wrappedStmt != null) {//				((CallableStatement) this.wrappedStmt)//						.setNClob(parameterName, reader);//			} else {//				throw SQLError.createSQLException(//						"No operations allowed after statement closed",//						SQLError.SQL_STATE_GENERAL_ERROR);//			}//		} catch (SQLException sqlEx) {//			checkAndFireConnectionError(sqlEx);//		}//	}////	public void setNClob(String parameterName, Reader reader, long length) throws SQLException {//		try {//			if (this.wrappedStmt != null) {//				((CallableStatement) this.wrappedStmt)//						.setNClob(parameterName, reader, length);//			} else {//				throw SQLError.createSQLException(//						"No operations allowed after statement closed",//						SQLError.SQL_STATE_GENERAL_ERROR);//			}//		} catch (SQLException sqlEx) {//			checkAndFireConnectionError(sqlEx);//		}//	}////	public void setNString(String parameterName, String value) throws SQLException {//		try {//			if (this.wrappedStmt != null) {//				((CallableStatement) this.wrappedStmt)//						.setNString(parameterName, value);//			} else {//				throw SQLError.createSQLException(//						"No operations allowed after statement closed",//						SQLError.SQL_STATE_GENERAL_ERROR);//			}//		} catch (SQLException sqlEx) {//			checkAndFireConnectionError(sqlEx);//		}//	}////	public void setRowId(String parameterName, RowId x) throws SQLException {//		try {//			if (this.wrappedStmt != null) {//				((CallableStatement) this.wrappedStmt)//						.setRowId(parameterName, x);//			} else {//				throw SQLError.createSQLException(//						"No operations allowed after statement closed",//						SQLError.SQL_STATE_GENERAL_ERROR);//			}//		} catch (SQLException sqlEx) {//			checkAndFireConnectionError(sqlEx);//		}//	}////	public void setSQLXML(String parameterName, SQLXML xmlObject) throws SQLException {//		try {//			if (this.wrappedStmt != null) {//				((CallableStatement) this.wrappedStmt)//						.setSQLXML(parameterName, xmlObject);//			} else {//				throw SQLError.createSQLException(//						"No operations allowed after statement closed",//						SQLError.SQL_STATE_GENERAL_ERROR);//			}//		} catch (SQLException sqlEx) {//			checkAndFireConnectionError(sqlEx);//		}//	}////	public void setAsciiStream(int parameterIndex, InputStream x) throws SQLException {//		try {//			if (this.wrappedStmt != null) {//				((CallableStatement) this.wrappedStmt)//						.setAsciiStream(parameterIndex, x);//			} else {//				throw SQLError.createSQLException(//						"No operations allowed after statement closed",//						SQLError.SQL_STATE_GENERAL_ERROR);//			}//		} catch (SQLException sqlEx) {//			checkAndFireConnectionError(sqlEx);//		}//	}////	public void setAsciiStream(int parameterIndex, InputStream x, long length) throws SQLException {//		try {//			if (this.wrappedStmt != null) {//				((CallableStatement) this.wrappedStmt)//						.setAsciiStream(parameterIndex, x, length);//			} else {//				throw SQLError.createSQLException(//						"No operations allowed after statement closed",//						SQLError.SQL_STATE_GENERAL_ERROR);//			}//		} catch (SQLException sqlEx) {//			checkAndFireConnectionError(sqlEx);//		}//	}////	public void setBinaryStream(int parameterIndex, InputStream x) throws SQLException {//		try {//			if (this.wrappedStmt != null) {//				((CallableStatement) this.wrappedStmt)//						.setBinaryStream(parameterIndex, x) ;//			} else {//				throw SQLError.createSQLException(//						"No operations allowed after statement closed",//						SQLError.SQL_STATE_GENERAL_ERROR);//			}//		} catch (SQLException sqlEx) {//			checkAndFireConnectionError(sqlEx);//		}//	}////	public void setBinaryStream(int parameterIndex, InputStream x, long length) throws SQLException {//		try {//			if (this.wrappedStmt != null) {//				((CallableStatement) this.wrappedStmt)//						.setBinaryStream(parameterIndex, x, length);//			} else {//				throw SQLError.createSQLException(//						"No operations allowed after statement closed",//						SQLError.SQL_STATE_GENERAL_ERROR);//			}//		} catch (SQLException sqlEx) {//			checkAndFireConnectionError(sqlEx);//		}//	}////	public void setBlob(int parameterIndex, InputStream inputStream) throws SQLException {//		try {//			if (this.wrappedStmt != null) {//				((CallableStatement) this.wrappedStmt)//						.setBlob(parameterIndex, inputStream);//			} else {//				throw SQLError.createSQLException(//						"No operations allowed after statement closed",//						SQLError.SQL_STATE_GENERAL_ERROR);//			}//		} catch (SQLException sqlEx) {//			checkAndFireConnectionError(sqlEx);//		}//	}////	public void setBlob(int parameterIndex, InputStream inputStream, long length) throws SQLException {//		try {//			if (this.wrappedStmt != null) {//				((CallableStatement) this.wrappedStmt)//						.setBlob(parameterIndex, inputStream, length);//			} else {//				throw SQLError.createSQLException(//						"No operations allowed after statement closed",//						SQLError.SQL_STATE_GENERAL_ERROR);//			}//		} catch (SQLException sqlEx) {//			checkAndFireConnectionError(sqlEx);//		}//	}////	public void setCharacterStream(int parameterIndex, Reader reader) throws SQLException {//		try {//			if (this.wrappedStmt != null) {//				((CallableStatement) this.wrappedStmt)//						.setCharacterStream(parameterIndex, reader);//			} else {//				throw SQLError.createSQLException(//						"No operations allowed after statement closed",//						SQLError.SQL_STATE_GENERAL_ERROR);//			}//		} catch (SQLException sqlEx) {//			checkAndFireConnectionError(sqlEx);//		}//	}////	public void setCharacterStream(int parameterIndex, Reader reader, long length) throws SQLException {//		try {//			if (this.wrappedStmt != null) {//				((CallableStatement) this.wrappedStmt)//						.getCharacterStream(parameterIndex);//			} else {//				throw SQLError.createSQLException(//						"No operations allowed after statement closed",//						SQLError.SQL_STATE_GENERAL_ERROR);//			}//		} catch (SQLException sqlEx) {//			checkAndFireConnectionError(sqlEx);//		}//	}////	public void setClob(int parameterIndex, Reader reader) throws SQLException {//		try {//			if (this.wrappedStmt != null) {//				((CallableStatement) this.wrappedStmt)//						.setClob(parameterIndex, reader);//			} else {//				throw SQLError.createSQLException(//						"No operations allowed after statement closed",//				

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -