Class GroovyContextConnections
- java.lang.Object
-
- de.uplanet.lucy.server.scripting.groovy.GroovyContextConnections
-
@Scriptable public final class GroovyContextConnections extends Object
-
-
Constructor Summary
Constructors Constructor Description GroovyContextConnections()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
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
getSystemConnection()
Get a system database connection that is attached to the current thread of execution and that is managed by the transaction manager.
-
-
-
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.
-
-