@Override public int getFetchDirection() { try { throwIfClosed(); } catch (SQLException e) { // Can't throw any SQLException because AvaticaConnection's // getFetchDirection() is missing "throws SQLException". throw new RuntimeException(e.getMessage(), e); } return super.getFetchDirection(); }
public AvaticaResultSet(AvaticaStatement statement, QueryState state, Meta.Signature signature, ResultSetMetaData resultSetMetaData, TimeZone timeZone, Meta.Frame firstFrame) { this.statement = statement; this.state = state; this.signature = signature; this.firstFrame = firstFrame; this.columnMetaDataList = signature.columns; 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); }
/** Creates an {@link AvaticaResultSet}. */ public AvaticaResultSet(AvaticaStatement statement, QueryState state, Meta.Signature signature, ResultSetMetaData resultSetMetaData, TimeZone timeZone, Meta.Frame firstFrame) throws SQLException { super(timeZone); this.statement = statement; this.state = state; this.signature = signature; this.firstFrame = firstFrame; this.columnMetaDataList = signature.columns; if (null != statement) { this.type = statement.resultSetType; this.concurrency = statement.resultSetConcurrency; this.holdability = statement.resultSetHoldability; this.fetchSize = statement.getFetchSize(); this.fetchDirection = statement.getFetchDirection(); } else { this.type = 0; this.concurrency = 0; this.holdability = 0; this.fetchSize = AvaticaStatement.DEFAULT_FETCH_SIZE; this.fetchDirection = 0; } this.resultSetMetaData = resultSetMetaData; this.localCalendar = Calendar.getInstance(timeZone, Locale.ROOT); }
/** Creates an {@link AvaticaResultSet}. */ public AvaticaResultSet(AvaticaStatement statement, QueryState state, Meta.Signature signature, ResultSetMetaData resultSetMetaData, TimeZone timeZone, Meta.Frame firstFrame) throws SQLException { super(timeZone); this.statement = statement; this.state = state; this.signature = signature; this.firstFrame = firstFrame; this.columnMetaDataList = signature.columns; if (null != statement) { this.type = statement.resultSetType; this.concurrency = statement.resultSetConcurrency; this.holdability = statement.resultSetHoldability; this.fetchSize = statement.getFetchSize(); this.fetchDirection = statement.getFetchDirection(); } else { this.type = 0; this.concurrency = 0; this.holdability = 0; this.fetchSize = AvaticaStatement.DEFAULT_FETCH_SIZE; this.fetchDirection = 0; } this.resultSetMetaData = resultSetMetaData; this.localCalendar = Calendar.getInstance(timeZone, Locale.ROOT); }