Package org.apache.derby.iapi.sql.conn
Class ConnectionUtil
- java.lang.Object
-
- org.apache.derby.iapi.sql.conn.ConnectionUtil
-
public class ConnectionUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ConnectionUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static Context
getContextOrNull(java.lang.String contextID)
Privileged lookup of a Context.static LanguageConnectionContext
getCurrentLCC()
Get the current LanguageConnectionContext.
-
-
-
Method Detail
-
getCurrentLCC
public static LanguageConnectionContext getCurrentLCC() throws java.sql.SQLException
Get the current LanguageConnectionContext. Used by public api code that needs to ensure it is in the context of a SQL connection.- Throws:
java.sql.SQLException
- Caller is not in the context of a connection.
-
getContextOrNull
private static Context getContextOrNull(java.lang.String contextID)
Privileged lookup of a Context. Must be private so that user code can't call this entry point.
-
-