@Override public void moveToInsertRow() throws SQLException { delegate.moveToInsertRow(); }
@Override public void moveToInsertRow() throws SQLException { rs.moveToInsertRow(); }
@Override public void moveToInsertRow() throws SQLException { try { rs.moveToInsertRow(); } catch (Throwable t) { throw checkException(t); } }
@Override public void run() throws Exception { rs.moveToInsertRow(); } });
@Override public void resultSet_moveToInsertRow(ResultSetProxy resultSet) throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_moveToInsertRow(this, resultSet); return; } resultSet.getResultSetRaw().moveToInsertRow(); }
/** * Adds a new row to the result set * * @param values a map containing the mappings for column names and values * @throws java.sql.SQLException if something goes wrong * @see ResultSet#insertRow() * @see ResultSet#updateObject(java.lang.String, java.lang.Object) * @see ResultSet#moveToInsertRow() */ public void add(Map values) throws SQLException { getResultSet().moveToInsertRow(); for (Iterator iter = values.entrySet().iterator(); iter.hasNext();) { Map.Entry entry = (Map.Entry) iter.next(); getResultSet().updateObject(entry.getKey().toString(), entry.getValue()); } getResultSet().insertRow(); }
boolean insert = row < 0; if (insert) { rs.moveToInsertRow(); } else { rs.absolute(row);
@Override public void moveToInsertRow() throws SQLException { innerResultSet.moveToInsertRow(); }
@Override public void moveToInsertRow() throws SQLException { innerResultSet.moveToInsertRow(); }
@Override public void moveToInsertRow() throws SQLException { rs.moveToInsertRow(); }
@Override public void moveToInsertRow() throws SQLException { delegate.moveToInsertRow(); }
@Override public void moveToInsertRow() throws SQLException { try { rs.moveToInsertRow(); } catch (Throwable t) { throw checkException(t); } }
/** * Inserts a new token entry via the given updatable {@code resultSet}. * * @param resultSet the updatable result set to add the entry to * @param token the token of the entry to insert * @param processorName the name of the processor to insert a token for * @param segment the segment of the processor to insert a token for * @return the tracking token of the inserted entry * * @throws SQLException when an exception occurs while inserting a token entry */ protected TrackingToken insertTokenEntry(ResultSet resultSet, TrackingToken token, String processorName, int segment) throws SQLException { AbstractTokenEntry<?> entry = new GenericTokenEntry<>(token, serializer, contentType, processorName, segment); entry.claim(nodeId, claimTimeout); resultSet.moveToInsertRow(); resultSet.updateObject(schema.tokenColumn(), token == null ? null : entry.getSerializedToken().getData()); resultSet.updateString(schema.tokenTypeColumn(), token == null ? null : entry.getSerializedToken().getType().getName()); resultSet.updateString(schema.timestampColumn(), entry.timestampAsString()); resultSet.updateString(schema.ownerColum(), entry.getOwner()); resultSet.updateString(schema.processorNameColumn(), processorName); resultSet.updateInt(schema.segmentColumn(), segment); resultSet.insertRow(); return token; }
@Override public void resultSet_moveToInsertRow(ResultSetProxy resultSet) throws SQLException { if (this.pos < filterSize) { nextFilter().resultSet_moveToInsertRow(this, resultSet); return; } resultSet.getResultSetRaw().moveToInsertRow(); }
/** * @throws SQLException * @see java.sql.ResultSet#moveToInsertRow() */ protected final void moveToInsertRow() throws SQLException { rs.moveToInsertRow(); }
@Override public void moveToInsertRow() throws SQLException { logger.logf(level, "%s.moveToInsertRow()", resultSetID); resultSet.moveToInsertRow(); }
@Override public void moveToInsertRow() throws SQLException { try { resultSet.moveToInsertRow(); } catch (final SQLException e) { handleException(e); } }
public void moveToInsertRow() throws SQLException { try { rs.moveToInsertRow(); } catch (SQLException e) { connectionError(e); throw e; } }
public void moveToInsertRow() throws SQLException { checkState(); this.rs.moveToInsertRow(); }
public void moveToInsertRow() throws SQLException { checkState(); try { resultSet.moveToInsertRow(); } catch (Throwable t) { throw checkException(t); } }