public byte getResultSetType() { return isSetResultSetType() ? this.resultSetType : snappydataConstants.DEFAULT_RESULTSET_TYPE; }
/** * {@inheritDoc} */ @Override public int getResultSetType() throws SQLException { if (this.attrs.isSetResultSetType()) { return Converters.getJdbcResultSetType(this.attrs.getResultSetType()); } else { return ResultSet.TYPE_FORWARD_ONLY; } }
/** * Returns the resultType if set if not set returns the default * java.sql.ResultSet.TYPE_FORWARD_ONLY */ static int getResultType(StatementAttrs attrs) { int rsType; if (attrs != null && attrs.isSetResultSetType()) { rsType = attrs.getResultSetType(); } else { rsType = snappydataConstants.DEFAULT_RESULTSET_TYPE; } switch (rsType) { case snappydataConstants.RESULTSET_TYPE_FORWARD_ONLY: return ResultSet.TYPE_FORWARD_ONLY; case snappydataConstants.RESULTSET_TYPE_INSENSITIVE: return ResultSet.TYPE_SCROLL_INSENSITIVE; case snappydataConstants.RESULTSET_TYPE_SENSITIVE: return ResultSet.TYPE_SCROLL_SENSITIVE; default: throw new InternalGemFireError("unknown resultSet type " + attrs.getResultSetType()); } }
List<Object> list = new ArrayList<Object>(); boolean present_resultSetType = true && (isSetResultSetType()); list.add(present_resultSetType); if (present_resultSetType)
boolean first = true; if (isSetResultSetType()) { sb.append("resultSetType:"); sb.append(this.resultSetType);
if (struct.isSetResultSetType()) { oprot.writeFieldBegin(RESULT_SET_TYPE_FIELD_DESC); oprot.writeByte(struct.resultSetType);
lastComparison = Boolean.valueOf(isSetResultSetType()).compareTo(other.isSetResultSetType()); if (lastComparison != 0) { return lastComparison; if (isSetResultSetType()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.resultSetType, other.resultSetType); if (lastComparison != 0) {
TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetResultSetType()) { optionals.set(0); if (struct.isSetResultSetType()) { oprot.writeByte(struct.resultSetType);
return isSetResultSetType(); case UPDATABLE: return isSetUpdatable();
return false; boolean this_present_resultSetType = true && this.isSetResultSetType(); boolean that_present_resultSetType = true && that.isSetResultSetType(); if (this_present_resultSetType || that_present_resultSetType) { if (!(this_present_resultSetType && that_present_resultSetType))