Package org.apache.derby.iapi.sql.conn

Examples of org.apache.derby.iapi.sql.conn.LanguageConnectionContext


  public static void INSTALL_JAR(String url, String jar, int deploy)
    throws SQLException {

    try {
           
            LanguageConnectionContext lcc = ConnectionUtil.getCurrentLCC();

      String[] st = IdUtil.parseMultiPartSQLIdentifier(jar.trim());

      String schemaName;
      String sqlName;
           
            if (st.length == 1)
            {
        schemaName = lcc.getCurrentSchemaName();
        sqlName = st[0];
            }
            else
            {
                schemaName = st[0];
View Full Code Here


  public static void REPLACE_JAR(String url, String jar)
    throws SQLException {

    try {
           
            LanguageConnectionContext lcc = ConnectionUtil.getCurrentLCC();

      String[] st = IdUtil.parseMultiPartSQLIdentifier(jar.trim());

            String schemaName;
            String sqlName;
           
            if (st.length == 1)
            {
                schemaName = lcc.getCurrentSchemaName();
                sqlName = st[0];
            }
            else
            {
                schemaName = st[0];
View Full Code Here

  public static void REMOVE_JAR(String jar, int undeploy)
    throws SQLException {

    try {
           
            LanguageConnectionContext lcc = ConnectionUtil.getCurrentLCC();

      String[] st = IdUtil.parseMultiPartSQLIdentifier(jar.trim());

            String schemaName;
            String sqlName;
           
            if (st.length == 1)
            {
                schemaName = lcc.getCurrentSchemaName();
                sqlName = st[0];
            }
            else
            {
                schemaName = st[0];
View Full Code Here

     * collected.
     */
    public static void SYSCS_EMPTY_STATEMENT_CACHE()
       throws SQLException
    {
       LanguageConnectionContext lcc = ConnectionUtil.getCurrentLCC();
      
       CacheManager statementCache =
           lcc.getLanguageConnectionFactory().getStatementCache();
      
       if (statementCache != null)
           statementCache.ageOut();
    }
View Full Code Here

    {
        if( permissionsCache == null)
        {
            CacheFactory cf =
              (CacheFactory) Monitor.startSystemModule(org.apache.derby.iapi.reference.Module.CacheFactory);
            LanguageConnectionContext lcc = getLCC();
            TransactionController tc = lcc.getTransactionExecute();
            permissionsCacheSize = PropertyUtil.getServiceInt( tc,
                                                               Property.LANG_PERMISSIONS_CACHE_SIZE,
                                                               40, /* min value */
                                                               Integer.MAX_VALUE,
                                                               permissionsCacheSize /* value from boot time. */);
 
View Full Code Here

    ** of booting we cannot get the LanguageConnectionContext.
    */
    if (!booting)
    {

      LanguageConnectionContext  lcc = getLCC();

      if (lcc != null)
      {
        sd = lcc.getDefaultSchema();

        if ((sd != null) &&
            ((schemaId == null) ||
              schemaId.equals(sd.getUUID())))
        {
View Full Code Here

   * @see DataDictionary#invalidateAllSPSPlans
   * @exception StandardException    Thrown on error
   */
  public void invalidateAllSPSPlans() throws StandardException
  {
    LanguageConnectionContext lcc = (LanguageConnectionContext)
      ContextService.getContext(LanguageConnectionContext.CONTEXT_ID);
    startWriting(lcc);

    for (java.util.Iterator li = getAllSPSDescriptors().iterator(); li.hasNext(); )
    {
View Full Code Here

      if (SanityManager.DEBUG)
       {
        SanityManager.ASSERT(! booting, "booting is expected to be false");
      }
      {
      LanguageConnectionContext lcc = getLCC();
      return lcc.getTransactionCompile();
      }
    }
  }
View Full Code Here

      if (SanityManager.DEBUG)
      {
        SanityManager.ASSERT(! booting, "booting is expected to be false");
      }
      {
      LanguageConnectionContext lcc = getLCC();
      return lcc.getTransactionExecute();
      }
    }
  }
View Full Code Here

        {
            strbuf.append("\nadditional information: ");

            // print the lock table
            // will get a NullPointerException if lcc doesn't yet exist e.g. at boot time
            LanguageConnectionContext lcc = (LanguageConnectionContext)
                ContextService.getContext(LanguageConnectionContext.CONTEXT_ID);
            if (lcc != null)
            {
                long currentTime = System.currentTimeMillis();
//EXCLUDE-START-lockdiag-
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.sql.conn.LanguageConnectionContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.