/** * {@inheritDoc} */ @Override public int getFetchDirection() throws SQLException { if (this.attrs.isSetFetchReverse()) { return this.attrs.isFetchReverse() ? ResultSet.FETCH_REVERSE : ResultSet.FETCH_FORWARD; } else { return ResultSet.FETCH_UNKNOWN; } }
first = false; if (isSetFetchReverse()) { if (!first) sb.append(", "); sb.append("fetchReverse:");
/** * {@inheritDoc} */ @Override public void setFetchDirection(int direction) throws SQLException { checkClosed(); if (direction == ResultSet.FETCH_REVERSE) { this.attrs.setFetchReverse(true); } else if (direction == ResultSet.FETCH_FORWARD) { this.attrs.setFetchReverse(false); } else if (this.attrs.isSetFetchReverse()) { this.attrs.setFetchReverseIsSet(false); this.attrs.setFetchReverse(false); } }
oprot.writeFieldEnd(); if (struct.isSetFetchReverse()) { oprot.writeFieldBegin(FETCH_REVERSE_FIELD_DESC); oprot.writeBool(struct.fetchReverse);
lastComparison = Boolean.valueOf(isSetFetchReverse()).compareTo(other.isSetFetchReverse()); if (lastComparison != 0) { return lastComparison; if (isSetFetchReverse()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fetchReverse, other.fetchReverse); if (lastComparison != 0) {
optionals.set(6); if (struct.isSetFetchReverse()) { optionals.set(7); oprot.writeI32(struct.batchSize); if (struct.isSetFetchReverse()) { oprot.writeBool(struct.fetchReverse);
return isSetBatchSize(); case FETCH_REVERSE: return isSetFetchReverse(); case LOB_CHUNK_SIZE: return isSetLobChunkSize();
boolean this_present_fetchReverse = true && this.isSetFetchReverse(); boolean that_present_fetchReverse = true && that.isSetFetchReverse(); if (this_present_fetchReverse || that_present_fetchReverse) { if (!(this_present_fetchReverse && that_present_fetchReverse))