/** * Creates an AvaticaPreparedStatement. * * @param connection Connection * @param h Statement handle * @param signature Result of preparing statement * @param resultSetType Result set type * @param resultSetConcurrency Result set concurrency * @param resultSetHoldability Result set holdability * @throws SQLException If fails due to underlying implementation reasons. */ protected AvaticaPreparedStatement(AvaticaConnection connection, Meta.StatementHandle h, Meta.Signature signature, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException { super(connection, h, resultSetType, resultSetConcurrency, resultSetHoldability, signature); this.slots = new TypedValue[signature.parameters.size()]; this.resultSetMetaData = connection.factory.newResultSetMetaData(this, signature); }
/** * Creates an AvaticaPreparedStatement. * * @param connection Connection * @param h Statement handle * @param signature Result of preparing statement * @param resultSetType Result set type * @param resultSetConcurrency Result set concurrency * @param resultSetHoldability Result set holdability * @throws SQLException If fails due to underlying implementation reasons. */ protected AvaticaPreparedStatement(AvaticaConnection connection, Meta.StatementHandle h, Meta.Signature signature, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException { super(connection, h, resultSetType, resultSetConcurrency, resultSetHoldability, signature); this.slots = new TypedValue[signature.parameters.size()]; this.resultSetMetaData = connection.factory.newResultSetMetaData(this, signature); this.parameterValueBatch = new ArrayList<>(); }
/** * Creates an AvaticaPreparedStatement. * * @param connection Connection * @param h Statement handle * @param signature Result of preparing statement * @param resultSetType Result set type * @param resultSetConcurrency Result set concurrency * @param resultSetHoldability Result set holdability * @throws SQLException If fails due to underlying implementation reasons. */ protected AvaticaPreparedStatement(AvaticaConnection connection, Meta.StatementHandle h, Meta.Signature signature, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException { super(connection, h, resultSetType, resultSetConcurrency, resultSetHoldability, signature); this.slots = new TypedValue[signature.parameters.size()]; this.resultSetMetaData = connection.factory.newResultSetMetaData(this, signature); this.parameterValueBatch = new ArrayList<>(); }