public AvaticaResultSet execute2(Cursor cursor, List<ColumnMetaData> columnMetaDataList) { this.cursor = cursor; this.accessorList = cursor.createAccessors(columnMetaDataList, localCalendar, this); this.row = 0; this.beforeFirst = true; 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; }
public AvaticaResultSet execute2(Cursor cursor, List<ColumnMetaData> columnMetaDataList) { this.cursor = cursor; this.accessorList = cursor.createAccessors(columnMetaDataList, localCalendar, this); this.row = 0; this.beforeFirst = true; this.afterLast = false; return this; }
/** * 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.</p> * * @see org.apache.calcite.avatica.AvaticaConnection.Trojan#execute(AvaticaResultSet) * * @throws SQLException if execute fails for some reason. */ protected AvaticaResultSet execute() throws SQLException { final Iterable<Object> iterable1 = statement.connection.meta.createIterable(statement.handle, state, signature, Collections.<TypedValue>emptyList(), firstFrame); this.cursor = MetaImpl.createCursor(signature.cursorFactory, iterable1); this.accessorList = cursor.createAccessors(columnMetaDataList, localCalendar, this); this.row = 0; this.beforeFirst = true; this.afterLast = false; return this; }
/** * 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.</p> * * @see org.apache.calcite.avatica.AvaticaConnection.Trojan#execute(AvaticaResultSet) * * @throws SQLException if execute fails for some reason. */ protected AvaticaResultSet execute() throws SQLException { final Iterable<Object> iterable1 = statement.connection.meta.createIterable(statement.handle, state, signature, Collections.<TypedValue>emptyList(), firstFrame); this.cursor = MetaImpl.createCursor(signature.cursorFactory, iterable1); this.accessorList = cursor.createAccessors(columnMetaDataList, localCalendar, this); this.row = 0; this.beforeFirst = true; this.afterLast = false; return this; }
/** * 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.</p> * * @see org.apache.calcite.avatica.AvaticaConnection.Trojan#execute(AvaticaResultSet) * * @throws SQLException if execute fails for some reason. */ protected AvaticaResultSet execute() throws SQLException { final List<TypedValue> parameterValues = statement.getBoundParameterValues(); final Iterable<Object> iterable1 = statement.connection.meta.createIterable(statement.handle, state, signature, parameterValues, firstFrame); this.cursor = MetaImpl.createCursor(signature.cursorFactory, iterable1); this.accessorList = cursor.createAccessors(columnMetaDataList, localCalendar, this); this.row = -1; this.afterLast = false; return this; }
List<Accessor> accessors = cursor.createAccessors(Collections.singletonList(arrayMetaData), Unsafe.localCalendar(), factory); assertEquals(1, accessors.size());
List<Accessor> accessors = cursor.createAccessors(Collections.singletonList(arrayMetaData), Unsafe.localCalendar(), factory); assertEquals(1, accessors.size());
List<Accessor> accessors = cursor.createAccessors(Collections.singletonList(structMetaData), Unsafe.localCalendar(), null); assertEquals(1, accessors.size());
List<Accessor> accessors = cursor.createAccessors(Collections.singletonList(arrayMetaData), Unsafe.localCalendar(), factory); assertEquals(1, accessors.size());
List<Accessor> accessors = cursor.createAccessors(Collections.singletonList(structMetaData), Unsafe.localCalendar(), null); assertEquals(1, accessors.size());
List<Accessor> accessors = cursor.createAccessors(Collections.singletonList(arrayMetaData), Unsafe.localCalendar(), factory); assertEquals(1, accessors.size());