Interface SQLRunnerEx

    • Method Detail

      • getDatabaseType

        DatabaseType getDatabaseType()
        Returns the type of database this data source connected to. This method is fast because it just returns the type value, doesn't perfrom any request and doesn't interact with database server ot jdbc driver.
        Returns:
        the database type.
      • getTransactionTemplate

        org.springframework.transaction.support.TransactionTemplate getTransactionTemplate()
        Provides with a ready to use Spring's transaction template.

        This template may be invalidated on some database maintenance operations (such as cleanup, backup, etc.), so don't persist this reference in your classes.

        Returns:
        a Spring's transaction template.
      • runDdl

        void runDdl​(@NotNull
                    String query,
                    @NotNull
                    String task)
             throws org.springframework.jdbc.UncategorizedSQLException
        Throws:
        org.springframework.jdbc.UncategorizedSQLException
      • runDdls

        void runDdls​(@NotNull
                     String[] queries)
              throws org.springframework.jdbc.UncategorizedSQLException
        Throws:
        org.springframework.jdbc.UncategorizedSQLException
      • runDmls

        void runDmls​(@NotNull
                     String[] queries)
              throws org.springframework.jdbc.UncategorizedSQLException
        Throws:
        org.springframework.jdbc.UncategorizedSQLException