📄 jdbc4callablestatementwrapper.java
字号:
if (this.wrappedStmt != null) {
return ((CallableStatement) this.wrappedStmt).getCharacterStream(parameterName);
} else {
throw SQLError.createSQLException(
"No operations allowed after statement closed",
SQLError.SQL_STATE_GENERAL_ERROR);
}
} catch (SQLException sqlEx) {
checkAndFireConnectionError(sqlEx);
}
return null;
}
/**
* @see java.sql.CallableStatement#getNCharacterStream(int)
*/
public Reader getNCharacterStream(int parameterIndex) throws SQLException {
try {
if (this.wrappedStmt != null) {
return ((CallableStatement) this.wrappedStmt).getNCharacterStream(parameterIndex);
} else {
throw SQLError.createSQLException(
"No operations allowed after statement closed",
SQLError.SQL_STATE_GENERAL_ERROR);
}
} catch (SQLException sqlEx) {
checkAndFireConnectionError(sqlEx);
}
return null;
}
/**
* @see java.sql.CallableStatement#getNCharacterStream(java.lang.String)
*/
public Reader getNCharacterStream(String parameterName) throws SQLException {
try {
if (this.wrappedStmt != null) {
return ((CallableStatement) this.wrappedStmt).getNCharacterStream(parameterName);
} else {
throw SQLError.createSQLException(
"No operations allowed after statement closed",
SQLError.SQL_STATE_GENERAL_ERROR);
}
} catch (SQLException sqlEx) {
checkAndFireConnectionError(sqlEx);
}
return null;
}
/**
* @see java.sql.CallableStatement#getNClob(java.lang.String)
*/
public NClob getNClob(String parameterName) throws SQLException {
try {
if (this.wrappedStmt != null) {
return ((CallableStatement) this.wrappedStmt).getNClob(parameterName);
} else {
throw SQLError.createSQLException(
"No operations allowed after statement closed",
SQLError.SQL_STATE_GENERAL_ERROR);
}
} catch (SQLException sqlEx) {
checkAndFireConnectionError(sqlEx);
}
return null;
}
/**
* @see java.sql.CallableStatement#getNString(java.lang.String)
*/
public String getNString(String parameterName) throws SQLException {
try {
if (this.wrappedStmt != null) {
return ((CallableStatement) this.wrappedStmt).getNString(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, InputStream 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 x, long length) throws SQLException {
try {
if (this.wrappedStmt != null) {
((CallableStatement) this.wrappedStmt).setBlob(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 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 reader) throws SQLException {
try {
if (this.wrappedStmt != null) {
((CallableStatement) this.wrappedStmt).setNCharacterStream(parameterName, reader);
} 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 reader, long length) throws SQLException {
try {
if (this.wrappedStmt != null) {
((CallableStatement) this.wrappedStmt).setNCharacterStream(parameterName, reader, length);
} else {
throw SQLError.createSQLException(
"No operations allowed after statement closed",
SQLError.SQL_STATE_GENERAL_ERROR);
}
} catch (SQLException sqlEx) {
checkAndFireConnectionError(sqlEx);
}
}
public NClob getNClob(int parameterIndex) throws SQLException {
try {
if (this.wrappedStmt != null) {
return ((CallableStatement) this.wrappedStmt).getNClob(parameterIndex);
} else {
throw SQLError.createSQLException(
"No operations allowed after statement closed",
SQLError.SQL_STATE_GENERAL_ERROR);
}
} catch (SQLException sqlEx) {
checkAndFireConnectionError(sqlEx);
}
return null;
}
public String getNString(int parameterIndex) throws SQLException {
try {
if (this.wrappedStmt != null) {
return ((CallableStatement) this.wrappedStmt).getNString(parameterIndex);
} else {
throw SQLError.createSQLException(
"No operations allowed after statement closed",
SQLError.SQL_STATE_GENERAL_ERROR);
}
} catch (SQLException sqlEx) {
checkAndFireConnectionError(sqlEx);
}
return null;
}
public RowId getRowId(int parameterIndex) throws SQLException {
try {
if (this.wrappedStmt != null) {
return ((CallableStatement) this.wrappedStmt).getRowId(parameterIndex);
} else {
throw SQLError.createSQLException(
"No operations allowed after statement closed",
SQLError.SQL_STATE_GENERAL_ERROR);
}
} catch (SQLException sqlEx) {
checkAndFireConnectionError(sqlEx);
}
return null;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -