Class GroovyContextConnections
java.lang.Object
de.uplanet.lucy.server.scripting.groovy.GroovyContextConnections
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionde.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.
-
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
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
-