Class NetPreparedStatement

    • Constructor Detail

      • NetPreparedStatement

        NetPreparedStatement​(NetAgent netAgent,
                             NetConnection netConnection,
                             java.lang.String sql,
                             int type,
                             int concurrency,
                             int holdability,
                             int autoGeneratedKeys,
                             java.lang.String[] columnNames,
                             int[] columnIndexes,
                             ClientPooledConnection cpc)
                      throws SqlException
        The constructor for the NetPreparedStatement class. Called by abstract Connection.prepareStatment().newPreparedStatement() for jdbc 2 prepared statements with scroll attributes. It has the ClientPooledConnection as one of its parameters this is used to raise the Statement Events when the prepared statement is closed.
        Parameters:
        netAgent - The instance of NetAgent associated with this CallableStatement object.
        netConnection - The connection object associated with this PreparedStatement Object.
        sql - A String object that is the SQL statement to be sent to the database.
        type - One of the ResultSet type constants.
        concurrency - One of the ResultSet concurrency constants.
        holdability - One of the ResultSet holdability constants.
        autoGeneratedKeys - a flag indicating whether auto-generated keys should be returned.
        columnNames - A String array of column names indicating the columns that should be returned from the inserted row or rows.
        columnIndexes - An int array of column indexes indicating the column that should be returned from the inserted row.
        cpc - The ClientPooledConnection wraps the underlying physical connection associated with this prepared statement it is used to pass the Statement closed and the Statement error occurred events that occur back to the ClientPooledConnection.
        Throws:
        SqlException
      • NetPreparedStatement

        NetPreparedStatement​(NetAgent netAgent,
                             NetConnection netConnection,
                             java.lang.String sql,
                             Section section,
                             ClientPooledConnection cpc)
                      throws SqlException
        The constructor for the NetPreparedStatement class. For JDBC 3.0 positioned updates.It has the ClientPooledConnection as one of its parameters this is used to raise the Statement Events when the prepared statement is closed.
        Parameters:
        netAgent - The instance of NetAgent associated with this CallableStatement object.
        netConnection - The connection object associated with this PreparedStatement Object.
        sql - A String object that is the SQL statement to be sent to the database.
        section -
        cpc - The ClientPooledConnection wraps the underlying physical connection associated with this prepared statement it is used to pass the Statement closed and the Statement error occurred events that occur back to the ClientPooledConnection
        Throws:
        SqlException