Ejemplo n.º 1
0
 /**
  * Executes this result set. (Not a JDBC method.)
  *
  * <p>Note that execute cannot occur in the constructor, because the constructor occurs while the
  * statement is locked, to make sure that execute/cancel don't happen at the same time.
  *
  * @see net.hydromatic.avatica.AvaticaConnection.Trojan#execute(AvaticaResultSet)
  */
 protected AvaticaResultSet execute() {
   this.cursor = statement.connection.meta.createCursor(this);
   this.accessorList = cursor.createAccessors(columnMetaDataList, localCalendar);
   this.row = -1;
   this.afterLast = false;
   return this;
 }
 protected AvaticaResultSet execute2(Cursor cursor, List<ColumnMetaData> columnMetaDataList) {
   this.cursor = cursor;
   this.accessorList = cursor.createAccessors(columnMetaDataList, localCalendar, this);
   this.row = -1;
   this.afterLast = false;
   return this;
 }