Class NativeProcedureExecutor


  • public class NativeProcedureExecutor
    extends java.lang.Object
    Since:
    16/11/16
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String CONTENT_FIELD  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      protected static void configureParameters​(java.sql.CallableStatement statement, java.util.List<ResolvableParam> params)  
      protected static <T> T convert​(java.util.Map<java.lang.String,​java.lang.Object> object, java.lang.Class<T> type)  
      static java.util.List<java.lang.Object> convertToOldResponse​(java.util.Map result)  
      static <T> T execute​(org.springframework.orm.hibernate5.HibernateOperations hibernateOperations, java.lang.String jdbcQuery, java.util.List<ResolvableParam> params, java.lang.Class<T> type)  
      static java.util.Map<java.lang.String,​java.lang.Object> getResultMap​(java.sql.CallableStatement statement, java.util.List<ResolvableParam> params, boolean resultSetType, int limit)  
      static java.sql.CallableStatement prepareStatement​(java.sql.Connection connection, java.lang.String jdbcQuery, java.util.List<ResolvableParam> params)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • execute

        public static <T> T execute​(org.springframework.orm.hibernate5.HibernateOperations hibernateOperations,
                                    java.lang.String jdbcQuery,
                                    java.util.List<ResolvableParam> params,
                                    java.lang.Class<T> type)
      • prepareStatement

        public static java.sql.CallableStatement prepareStatement​(java.sql.Connection connection,
                                                                  java.lang.String jdbcQuery,
                                                                  java.util.List<ResolvableParam> params)
                                                           throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getResultMap

        public static java.util.Map<java.lang.String,​java.lang.Object> getResultMap​(java.sql.CallableStatement statement,
                                                                                          java.util.List<ResolvableParam> params,
                                                                                          boolean resultSetType,
                                                                                          int limit)
                                                                                   throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • convertToOldResponse

        public static java.util.List<java.lang.Object> convertToOldResponse​(java.util.Map result)
      • convert

        protected static <T> T convert​(java.util.Map<java.lang.String,​java.lang.Object> object,
                                       java.lang.Class<T> type)
      • configureParameters

        protected static void configureParameters​(java.sql.CallableStatement statement,
                                                  java.util.List<ResolvableParam> params)
                                           throws java.sql.SQLException
        Throws:
        java.sql.SQLException