示例#1
0
 public AvaticaResultSet(
     AvaticaStatement statement,
     AvaticaPrepareResult prepareResult,
     ResultSetMetaData resultSetMetaData,
     TimeZone timeZone) {
   this.statement = statement;
   this.prepareResult = prepareResult;
   this.columnMetaDataList = prepareResult.getColumnList();
   this.type = statement.resultSetType;
   this.concurrency = statement.resultSetConcurrency;
   this.holdability = statement.resultSetHoldability;
   this.fetchSize = statement.getFetchSize();
   this.fetchDirection = statement.getFetchDirection();
   this.resultSetMetaData = resultSetMetaData;
   this.localCalendar = Calendar.getInstance(timeZone);
 }
示例#2
0
 public void close() {
   closed = true;
   final Cursor cursor = this.cursor;
   if (cursor != null) {
     this.cursor = null;
     cursor.close();
   }
   statement.onResultSetClose(this);
   // TODO: for timeout, see IteratorResultSet.close
   /*
           if (timeoutCursor != null) {
               final long noTimeout = 0;
               timeoutCursor.close(noTimeout);
               timeoutCursor = null;
           }
   */
 }