下面列出了怎么用java.sql.NClob的API类实例代码及写法,或者点击链接到github查看源代码。
@Override
public NClob createNClob() throws SQLException {
checkOpen();
try {
return connection.createNClob();
} catch (final SQLException e) {
handleException(e);
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, this.exceptionInterceptor);
}
} catch (SQLException sqlEx) {
checkAndFireConnectionError(sqlEx);
}
return null;
}
public NClobWrapper(NClob value) {
super(NClob.class, value);
}
@Override
public NClob getNClob(int columnIndex) throws SQLException {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public NClob getNClob(String s) throws SQLException {
return rs.getNClob(s);
}
public NClob getNClob(int i) throws SQLException {
throw new AssertionError("should be overridden in JDBC 4.0");
}
public void updateNClob(int columnIndex, NClob nClob) throws SQLException {
rs.updateNClob(columnIndex, nClob);
}
@Override
public void setNClob(int arg0, NClob arg1) throws SQLException {
stmt.setNClob(arg0, arg1);
}
@Override
public NClob getNClob(int columnIndex) throws SQLException {
return null;
}
/** {@inheritDoc} */
@Override public void setNClob(int paramIdx, NClob val) throws SQLException {
ensureNotClosed();
throw new SQLFeatureNotSupportedException("SQL-specific types are not supported.");
}
@Override
public void updateNClob(String columnLabel, NClob clob) throws SQLException {
AssertionUtil.notYetImplemented();
}
@Override
public NClob getNClob(String columnLabel) throws SQLException {
throw new SQLFeatureNotSupportedException();
}
@Override
public NClob getNClob(int columnIndex) throws SQLException {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public NClob createNClob() throws SQLException {
return c.createNClob();
}
public void updateNClob(String columnName, NClob nClob) throws SQLException {
throw Util.notImplemented();
}
public NClob getNClob(int i) throws SQLException {
throw SQLExceptionFactory.notImplemented ("setNClob (int)");
}
@Override
public NClob getNClob(int columnIndex) throws SQLException {
return null;
}
public NClob createNClob() throws SQLException {
return delegate.createNClob();
}
/**
* {@inheritDoc}
*/
@Override
public NClob getNClob(String parameterName) throws SQLException {
return getNClob(getParameterIndex(parameterName));
}
@Override
public void updateNClob(int columnIndex, NClob nClob) throws SQLException {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public NClob getNClob(int columnIndex) throws SQLException {
throw new UnsupportedOperationException("Not supported yet.");
}
public String toString(NClob value) {
return DataHelper.extractString( value );
}
@Override
public NClob getNClob(String columnLabel) throws SQLException {
throw new SQLFeatureNotSupportedException();
}
@Override
public NClob getNClob(String columnLabel) throws SQLException {
throw new UnsupportedOperationException("Not supported yet.");
}
public void updateNClob(int columnIndex, NClob nClob) throws SQLException {
throw Util.notImplemented();
}
@Override
public NClob getNClob(String columnLabel) throws SQLException {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public void updateNClob(String columnLabel, NClob nClob) throws SQLException {
throw new UnsupportedOperationException("Not supported yet.");
}
public NClob createNClob() throws SQLException {
return this.targetConnection.createNClob();
}
@Override
public final void updateNClob(final int columnIndex, final NClob nClob) throws SQLException {
throw new SQLFeatureNotSupportedException("updateXXX");
}
@Override
public final void updateNClob(final String columnLabel, final NClob nClob) throws SQLException {
throw new SQLFeatureNotSupportedException("updateXXX");
}