Java Code Examples for com.mysql.cj.jdbc.exceptions.SQLError#notUpdatable()

The following examples show how to use com.mysql.cj.jdbc.exceptions.SQLError#notUpdatable() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
@Override
public void refreshRow() throws SQLException {
    synchronized (checkClosed().getConnectionMutex()) {
        if (!this.isUpdatable) {
            throw SQLError.notUpdatable();
        }

        if (this.onInsertRow) {
            throw SQLError.createSQLException(Messages.getString("UpdatableResultSet.8"), getExceptionInterceptor());
        } else if (this.rowData.size() == 0) {
            throw SQLError.createSQLException(Messages.getString("UpdatableResultSet.9"), getExceptionInterceptor());
        } else if (isBeforeFirst()) {
            throw SQLError.createSQLException(Messages.getString("UpdatableResultSet.10"), getExceptionInterceptor());
        } else if (isAfterLast()) {
            throw SQLError.createSQLException(Messages.getString("UpdatableResultSet.11"), getExceptionInterceptor());
        }

        refreshRow(this.updater, this.thisRow);
    }
}
 
Example 2
Source Project: lams   File: ResultSetImpl.java    License: GNU General Public License v2.0 4 votes vote down vote up
public void updateNClob(int columnIndex, Reader reader, long length) throws SQLException {
    throw SQLError.notUpdatable();
}
 
Example 3
Source Project: lams   File: ResultSetImpl.java    License: GNU General Public License v2.0 4 votes vote down vote up
public void insertRow() throws SQLException {
    throw SQLError.notUpdatable();
}
 
Example 4
Source Project: lams   File: ResultSetImpl.java    License: GNU General Public License v2.0 4 votes vote down vote up
public void moveToCurrentRow() throws SQLException {
    throw SQLError.notUpdatable();
}
 
Example 5
Source Project: lams   File: ResultSetImpl.java    License: GNU General Public License v2.0 4 votes vote down vote up
public void refreshRow() throws SQLException {
    throw SQLError.notUpdatable();
}
 
Example 6
Source Project: lams   File: ResultSetImpl.java    License: GNU General Public License v2.0 4 votes vote down vote up
public void updateTimestamp(int columnIndex, java.sql.Timestamp x) throws SQLException {
    throw SQLError.notUpdatable();
}
 
Example 7
Source Project: lams   File: ResultSetImpl.java    License: GNU General Public License v2.0 4 votes vote down vote up
public void updateBlob(int columnIndex, InputStream inputStream) throws SQLException {
    throw SQLError.notUpdatable();
}
 
Example 8
Source Project: lams   File: ResultSetImpl.java    License: GNU General Public License v2.0 4 votes vote down vote up
public void updateObject(int columnIndex, Object x, SQLType targetSqlType, int scaleOrLength) throws SQLException {
    throw SQLError.notUpdatable();
}
 
Example 9
Source Project: lams   File: ResultSetImpl.java    License: GNU General Public License v2.0 4 votes vote down vote up
public void updateByte(int columnIndex, byte x) throws SQLException {
    throw SQLError.notUpdatable();
}
 
Example 10
Source Project: lams   File: ResultSetImpl.java    License: GNU General Public License v2.0 4 votes vote down vote up
public void updateBytes(int columnIndex, byte[] x) throws SQLException {
    throw SQLError.notUpdatable();
}
 
Example 11
Source Project: lams   File: ResultSetImpl.java    License: GNU General Public License v2.0 4 votes vote down vote up
public void updateCharacterStream(int columnIndex, java.io.Reader x, int length) throws SQLException {
    throw SQLError.notUpdatable();
}
 
Example 12
Source Project: lams   File: ResultSetImpl.java    License: GNU General Public License v2.0 4 votes vote down vote up
public void updateRow() throws SQLException {
    throw SQLError.notUpdatable();
}
 
Example 13
Source Project: lams   File: ResultSetImpl.java    License: GNU General Public License v2.0 4 votes vote down vote up
public void updateDouble(int columnIndex, double x) throws SQLException {
    throw SQLError.notUpdatable();
}
 
Example 14
Source Project: lams   File: ResultSetImpl.java    License: GNU General Public License v2.0 4 votes vote down vote up
public void updateFloat(int columnIndex, float x) throws SQLException {
    throw SQLError.notUpdatable();
}
 
Example 15
Source Project: lams   File: ResultSetImpl.java    License: GNU General Public License v2.0 4 votes vote down vote up
public void updateObject(int columnIndex, Object x) throws SQLException {
    throw SQLError.notUpdatable();
}
 
Example 16
Source Project: lams   File: ResultSetImpl.java    License: GNU General Public License v2.0 2 votes vote down vote up
public void updateSQLXML(int columnIndex, SQLXML xmlObject) throws SQLException {
    throw SQLError.notUpdatable();

}
 
Example 17
Source Project: lams   File: ResultSetImpl.java    License: GNU General Public License v2.0 2 votes vote down vote up
public void updateAsciiStream(int columnIndex, InputStream x, long length) throws SQLException {
    throw SQLError.notUpdatable();

}
 
Example 18
Source Project: lams   File: ResultSetImpl.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * 
 * @param columnIndex
 * @param x
 * @param length
 * @throws SQLException
 */
public void updateNCharacterStream(int columnIndex, Reader x, int length) throws SQLException {
    throw SQLError.notUpdatable();
}
 
Example 19
Source Project: lams   File: ResultSetImpl.java    License: GNU General Public License v2.0 2 votes vote down vote up
public void updateBlob(int columnIndex, InputStream inputStream, long length) throws SQLException {
    throw SQLError.notUpdatable();

}
 
Example 20
Source Project: lams   File: ResultSetImpl.java    License: GNU General Public License v2.0 2 votes vote down vote up
public void updateNCharacterStream(int columnIndex, Reader x) throws SQLException {
    throw SQLError.notUpdatable();

}