Class ExecuteQuery


  • public class ExecuteQuery
    extends Object
    Author:
    Fernando Iriazabal Implements the needed methods to execute the differents kinds of queries in the database.
    • Constructor Detail

      • ExecuteQuery

        public ExecuteQuery()
        Constructor
      • ExecuteQuery

        public ExecuteQuery​(ConnectionProvider _conn,
                            String _sql,
                            Vector<String> _parameters)
                     throws Exception
        Constructor
        Parameters:
        _conn - Handler for the database connection.
        _sql - String with the query.
        _parameters - Vector with the query's parameters.
        Throws:
        Exception
    • Method Detail

      • select

        public FieldProvider[] select()
                               throws javax.servlet.ServletException
        Executes the query.
        Returns:
        Array of FieldProviders with the result of the query.
        Throws:
        javax.servlet.ServletException