All Downloads are FREE. Search and download functionalities are using the official Maven repository.

public.javadoc.org.spincast.plugins.jdbc.JdbcScope.html Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version






JdbcScope (org.spincast:spincast-framework 1.13.0 API)












org.spincast.plugins.jdbc

Class JdbcScope



  • public class JdbcScope
    extends Object
    • Method Detail

      • isInTransactionScope

        public boolean isInTransactionScope()
      • specificConnection

        public <T> T specificConnection(Connection connection,
                                        DataSource dataSource,
                                        JdbcQueries<T> queries)
        Starts a scope where only the specified connection. will be used (as long as autoCommit(), transactional(), transactional(), withSpecificConnection() or withSpecificConnection() are used... Not a connection taken directly from a DataSource.)
      • transactional

        public <T> T transactional(DataSource dataSource,
                                   JdbcQueries<T> queries)
        Executes the queries in a transaction by setting the Connection#setAutoCommit() property to false.
      • transactional

        public <T> T transactional(TransactionalScope<T> scope)
        Starts a transactional scope.
      • getConnectionInterceptor

        public Connection getConnectionInterceptor(org.aopalliance.intercept.MethodInvocation invocation)
        Gets a Connection from a DataSource, or from the ThreadLocal cache if we're inside a transaction. This method is called by AOP intercepting DataSource.getConnection().

Copyright © 2019. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy