@Override public Row deepCopy() { return new Row(this); }
/** * {@inheritDoc} */ @Override public void addBatch() throws SQLException { checkClosed(); if (this.parameterMetaData != null && this.parameterMetaData.size() > 0) { if (this.paramsBatch == null) { this.paramsBatch = new ArrayList<Row>(); } this.paramsBatch.add(this.paramsList); this.paramsList = new Row(this.parameterMetaData); } }
/** * {@inheritDoc} */ @Override public void cancelRowUpdates() throws SQLException { checkClosed(); checkUpdatable("cancelRowUpdates"); if (this.changedColumns != null) { this.changedColumns.clear(); this.changedRow = new Row(this.currentRow); } }
private final void initRowUpdate(String operation) throws SQLException { checkUpdatable(operation); if (this.changedColumns == null) { this.changedColumns = new BitSet(this.currentRow.size()); } if (this.changedRow == null) { this.changedRow = new Row(this.currentRow); setCurrentRow(this.changedRow); } else if (this.currentRow != this.changedRow) { setCurrentRow(this.changedRow); } }
/** * {@inheritDoc} */ @Override public void moveToInsertRow() throws SQLException { checkClosed(); checkUpdatable("moveToInsertRow"); if (this.changedColumns == null) { this.changedColumns = new BitSet(this.currentRow.size()); } if (this.insertRow == null) { this.insertRow = new Row(this.rowSet.metadata); } setCurrentRow(this.insertRow); }
private int setPrepareResult(PrepareResult pr) { final List<ColumnDescriptor> pmd = pr.getParameterMetaData(); int numParams; if (pmd != null && (numParams = pmd.size()) > 0) { this.paramsList = new Row(pmd); this.parameterMetaData = pmd; } else { this.paramsList = EMPTY_ROW; this.parameterMetaData = NULL_METADATA; numParams = 0; } final List<ColumnDescriptor> rsmd = pr.getResultSetMetaData(); if (rsmd != null && rsmd.size() > 0) { this.resultSetMetaData = rsmd; } else { this.resultSetMetaData = NULL_METADATA; } this.statementId = pr.statementId; setCurrentSource(gfxdConstants.BULK_CLOSE_STATEMENT, pr.statementId, null); this.warnings = pr.getWarnings(); return numParams; }
List<Row> __this__rows = new ArrayList<Row>(other.rows.size()); for (Row other_element : other.rows) { __this__rows.add(new Row(other_element));
case 4: // PROCEDURE_OUT_PARAMS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.procedureOutParams = new Row(); struct.procedureOutParams.read(iprot); struct.setProcedureOutParamsIsSet(true);
struct.procedureOutParams = new Row(); struct.procedureOutParams.read(iprot); struct.setProcedureOutParamsIsSet(true);
_elem294 = new Row(); _elem294.read(iprot); struct.rows.add(_elem294);
/** * Performs a deep copy on <i>other</i>. */ public StatementResult(StatementResult other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetResultSet()) { this.resultSet = new RowSet(other.resultSet); } this.updateCount = other.updateCount; if (other.isSetBatchUpdateCounts()) { List<Integer> __this__batchUpdateCounts = new ArrayList<Integer>(other.batchUpdateCounts); this.batchUpdateCounts = __this__batchUpdateCounts; } if (other.isSetProcedureOutParams()) { this.procedureOutParams = new Row(other.procedureOutParams); } if (other.isSetGeneratedKeys()) { this.generatedKeys = new RowSet(other.generatedKeys); } if (other.isSetWarnings()) { this.warnings = new GFXDExceptionData(other.warnings); } if (other.isSetPreparedResult()) { this.preparedResult = new PrepareResult(other.preparedResult); } }
_elem309 = new Row(); _elem309.read(iprot); struct.rows.add(_elem309);