Class GroovyContextConnections

java.lang.Object
de.uplanet.lucy.server.scripting.groovy.GroovyContextConnections

@Scriptable public final class GroovyContextConnections extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getAt(String p_strKey)
     
    de.uplanet.jdbc.JdbcConnection
    getBareConnection(String p_strConnectionId)
    Get a database connection that is neither attached to the current thread of execution nor managed by the transaction manager.
    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.
    de.uplanet.jdbc.JdbcConnection
    Get a system database connection that is attached to the current thread of execution and that is managed by the transaction manager.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GroovyContextConnections

      public GroovyContextConnections()
  • Method Details

    • 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.
    • getAt

      public Object getAt(String p_strKey)