Class GroovyContextConnections


  • @Scriptable
    public final class GroovyContextConnections
    extends Object
    • Constructor Detail

      • GroovyContextConnections

        public GroovyContextConnections()
    • Method Detail

      • getSystemConnection

        public de.uplanet.jdbc.JdbcConnection getSystemConnection()
        Get a system database connection that is attached to the current thread of execution and that is managed by the transaction manager.
        Returns:
        The system database connection.
      • getConnection

        public de.uplanet.jdbc.JdbcConnection getConnection​(String p_strConnectionId)
        Get a database connection that is attached to the current thread of execution and that is managed by the transaction manager.
        Parameters:
        p_strConnectionId - The database connection identifier.
        Returns:
        The database connection.
        Throws:
        IllegalArgumentException - If there is no connection for the given identifier.
      • getBareConnection

        public de.uplanet.jdbc.JdbcConnection getBareConnection​(String p_strConnectionId)
                                                         throws SQLException
        Get a database connection that is neither attached to the current thread of execution nor managed by the transaction manager.

        The returned connection will have its auto-commit state set to false.

        Parameters:
        p_strConnectionId - The database connection identifier.
        Returns:
        The database connection.
        Throws:
        SQLException - If there is no connection for the given identifier, or if a error occurred while creating the connection.