@Scriptable public final class GroovyContextConnections extends Object
Constructor and Description |
---|
GroovyContextConnections() |
Modifier and Type | Method and 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.
|
public de.uplanet.jdbc.JdbcConnection getSystemConnection()
public de.uplanet.jdbc.JdbcConnection getConnection(String p_strConnectionId)
p_strConnectionId
- The database connection identifier.IllegalArgumentException
- If there is no connection for the given identifier.public de.uplanet.jdbc.JdbcConnection getBareConnection(String p_strConnectionId) throws SQLException
The returned connection will have its auto-commit state set to false
.
p_strConnectionId
- The database connection identifier.SQLException
- If there is no connection for the given identifier, or if a
error occurred while creating the connection.