/** * Returns the Holdability associated with the statement if set the the input * object if not set by default returns #ResultS * * @param attrs * @return */ static int getResultSetHoldability(StatementAttrs attrs) { return attrs != null && attrs.isSetHoldCursorsOverCommit() && attrs.isHoldCursorsOverCommit() ? ResultSet.HOLD_CURSORS_OVER_COMMIT : ResultSet.CLOSE_CURSORS_AT_COMMIT; }
/** * {@inheritDoc} */ @Override public int getResultSetHoldability() throws SQLException { return this.attrs.isSetHoldCursorsOverCommit() && this.attrs.isHoldCursorsOverCommit() ? ResultSet.HOLD_CURSORS_OVER_COMMIT : ResultSet.CLOSE_CURSORS_AT_COMMIT; }
/** * Returns the Holdability associated with the statement if set the the input * object if not set by default returns #ResultS * * @param attrs * @return */ static int getResultSetHoldability(StatementAttrs attrs) { return attrs != null && attrs.isSetHoldCursorsOverCommit() && attrs.isHoldCursorsOverCommit() ? ResultSet.HOLD_CURSORS_OVER_COMMIT : ResultSet.CLOSE_CURSORS_AT_COMMIT; }
first = false; if (isSetHoldCursorsOverCommit()) { if (!first) sb.append(", "); sb.append("holdCursorsOverCommit:");
lastComparison = Boolean.valueOf(isSetHoldCursorsOverCommit()).compareTo(other.isSetHoldCursorsOverCommit()); if (lastComparison != 0) { return lastComparison; if (isSetHoldCursorsOverCommit()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.holdCursorsOverCommit, other.holdCursorsOverCommit); if (lastComparison != 0) {
oprot.writeFieldEnd(); if (struct.isSetHoldCursorsOverCommit()) { oprot.writeFieldBegin(HOLD_CURSORS_OVER_COMMIT_FIELD_DESC); oprot.writeBool(struct.holdCursorsOverCommit);
optionals.set(1); if (struct.isSetHoldCursorsOverCommit()) { optionals.set(2); oprot.writeBool(struct.updatable); if (struct.isSetHoldCursorsOverCommit()) { oprot.writeBool(struct.holdCursorsOverCommit);
return isSetUpdatable(); case HOLD_CURSORS_OVER_COMMIT: return isSetHoldCursorsOverCommit(); case REQUIRE_AUTO_INC_COLS: return isSetRequireAutoIncCols();
boolean this_present_holdCursorsOverCommit = true && this.isSetHoldCursorsOverCommit(); boolean that_present_holdCursorsOverCommit = true && that.isSetHoldCursorsOverCommit(); if (this_present_holdCursorsOverCommit || that_present_holdCursorsOverCommit) { if (!(this_present_holdCursorsOverCommit && that_present_holdCursorsOverCommit))