下面列出了怎么用java.sql.RowId的API类实例代码及写法,或者点击链接到github查看源代码。
@Override
public void setRowId(final String parameterName, final RowId value) throws SQLException {
checkOpen();
try {
getDelegateCallableStatement().setRowId(parameterName, value);
} catch (final SQLException e) {
handleException(e);
}
}
@Override
public void updateRowId(final int columnIndex, final RowId value) throws SQLException {
try {
resultSet.updateRowId(columnIndex, value);
} catch (final SQLException e) {
handleException(e);
}
}
@Override
public void updateRowId(int columnIndex, RowId x) throws SQLException {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public RowId getRowId(int columnIndex) throws SQLException {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public void updateRowId(String columnLabel, RowId x) throws SQLException {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public RowId getRowId(String columnLabel) throws SQLException {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public void updateRowId(String columnLabel, RowId x) throws SQLException {
throw new UnsupportedOperationException("Not supported yet.");
}
@Test(dataProvider = "rowSetType",
expectedExceptions = SQLFeatureNotSupportedException.class)
public void commonRowSetTest0147(RowSet rs) throws Exception {
RowId aRowid = null;
rs.setRowId("one", aRowid);
}
@Override
public void updateRowId(int columnIndex, RowId x) throws SQLException {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public void setRowId(int parameterIndex, RowId x) throws SQLException {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public RowId getRowId(int parameterIndex) throws SQLException {
// TODO Auto-generated method stub
return null;
}
@Override
public RowId getRowId(String parameterName) throws SQLException {
// TODO Auto-generated method stub
return null;
}
@Override
public void setRowId(String parameterName, RowId x) throws SQLException {
// TODO Auto-generated method stub
}
@Override
public RowId getRowId(String columnLabel) throws SQLException {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public RowId getRowId(int columnIndex) throws SQLException {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public void updateRowId(String columnLabel, RowId x) throws SQLException {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public void updateRowId(int columnIndex, RowId x) throws SQLException {
// TODO Auto-generated method stub
}
@Override
public void setRowId(int parameterIndex, RowId x) throws SQLException {
throw new UnsupportedOperationException("Not supported yet.");
}
public RowId getRowId(int columnIndex) throws SQLException {
determineResultSetState();
throw new SQLFeatureNotSupportedException("Operation is not supported");
}
public RowId getRowId(String columnLabel) throws SQLException {
determineResultSetState();
throw new SQLFeatureNotSupportedException("Operation is not supported");
}
@Override
public RowId getRowId(int columnIndex) throws SQLException {
throw new UnsupportedOperationException("Not supported yet.");
}
public void updateRowId(String columnLabel, RowId x) throws SQLException {
determineResultSetState();
throw new SQLFeatureNotSupportedException("Operation is not supported");
}
@Override
public final RowId getRowId(final int columnIndex) throws SQLException {
throw new SQLFeatureNotSupportedException("getRowId");
}
@Override
public RowId getRowId(int columnIndex) throws SQLException {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public void setRowId(int parameterIndex, RowId x) throws SQLException {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public final void updateRowId(final String columnLabel, final RowId x) throws SQLException {
throw new SQLFeatureNotSupportedException("updateXXX");
}
@Override
public final void setRowId(final int parameterIndex, final RowId x) throws SQLException {
throw new SQLFeatureNotSupportedException("setRowId");
}
@Override
public void setRowId(int parameterIndex, RowId x) throws SQLException {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public RowId getRowId(int columnIndex)
throws SQLException
{
throw new SQLFeatureNotSupportedException("getRowId");
}
@Override
public RowId getRowId(String columnLabel)
throws SQLException
{
throw new SQLFeatureNotSupportedException("getRowId");
}