Top Constructors Methods
org.apache.derby.iapi.sql.conn

public Class ConnectionUtil

extends Object
Class Inheritance
Imports
org.apache.derby.iapi.services.context.Context, .ContextService, org.apache.derby.shared.common.error.StandardException, .ExceptionSeverity, org.apache.derby.shared.common.i18n.MessageService, org.apache.derby.shared.common.reference.SQLState, java.sql.SQLException

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static Context
getContextOrNull(final String contextID)

Must be private so that user code can't call this entry point.

public static LanguageConnectionContext
getCurrentLCC()

Get the current LanguageConnectionContext.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ConnectionUtilback to summary
public ConnectionUtil()

Method Detail

getContextOrNullback to summary
private static Context getContextOrNull(final String contextID)

Must be private so that user code can't call this entry point.

getCurrentLCCback to summary
public static LanguageConnectionContext getCurrentLCC() throws SQLException

Get the current LanguageConnectionContext. Used by public api code that needs to ensure it is in the context of a SQL connection.

Exceptions
SQLException:
Caller is not in the context of a connection.