Class SQLStoreQuery.SQLExecutor

    • Method Detail

      • prepareCall

        protected java.sql.PreparedStatement prepareCall​(java.sql.Connection conn,
                                                         SQLBuffer buf)
                                                  throws java.sql.SQLException
        This method is to provide override for non-JDBC or JDBC-like implementation of preparing call statement.
        Throws:
        java.sql.SQLException
      • executeUpdate

        protected int executeUpdate​(JDBCStore store,
                                    java.sql.Connection conn,
                                    java.sql.PreparedStatement stmnt,
                                    SQLBuffer buf)
                             throws java.sql.SQLException
        This method is to provide override for non-JDBC or JDBC-like implementation of executing update.
        Throws:
        java.sql.SQLException
      • prepareCall

        protected java.sql.PreparedStatement prepareCall​(java.sql.Connection conn,
                                                         SQLBuffer buf,
                                                         JDBCFetchConfiguration fetch,
                                                         int rsType,
                                                         int rsConcur)
                                                  throws java.sql.SQLException
        This method is to provide override for non-JDBC or JDBC-like implementation of preparing call statement.
        Throws:
        java.sql.SQLException
      • prepareStatement

        protected java.sql.PreparedStatement prepareStatement​(java.sql.Connection conn,
                                                              SQLBuffer buf)
                                                       throws java.sql.SQLException
        This method is to provide override for non-JDBC or JDBC-like implementation of preparing statement.
        Throws:
        java.sql.SQLException
      • prepareStatement

        protected java.sql.PreparedStatement prepareStatement​(java.sql.Connection conn,
                                                              SQLBuffer buf,
                                                              JDBCFetchConfiguration fetch,
                                                              int rsType,
                                                              int rsConcur)
                                                       throws java.sql.SQLException
        This method is to provide override for non-JDBC or JDBC-like implementation of preparing statement.
        Throws:
        java.sql.SQLException
      • executeQuery

        protected java.sql.ResultSet executeQuery​(JDBCStore store,
                                                  java.sql.Connection conn,
                                                  java.sql.PreparedStatement stmnt,
                                                  SQLBuffer buf,
                                                  java.util.List paramList)
                                           throws java.sql.SQLException
        This method is to provide override for non-JDBC or JDBC-like implementation of executing query.
        Throws:
        java.sql.SQLException
      • toParameterArray

        public java.lang.Object[] toParameterArray​(StoreQuery q,
                                                   java.util.Map userParams)
        The given query is parsed to find the parameter tokens of the form ?n which is different than ? tokens in actual SQL parameter tokens. These ?n style tokens are replaced in the query string by ? tokens. During the token parsing, the ordering of the tokens is recorded. The given userParam must contain parameter keys as Integer and the same Integers must appear in the tokens.
        Returns:
        array with parameter values ordered in the same way as this receiver's executeXXX() method expects.