Package org.apache.derby.iapi.store.access

Examples of org.apache.derby.iapi.store.access.AccessFactory


   */
  private void createInfoFromProp(Properties createArgs)
     throws StandardException
  {
    // Need a TransactionController to get database/service wide properties.
    AccessFactory af = (AccessFactory)
      Monitor.getServiceModule(dataFactory, AccessFactory.MODULE);

    // RESOLVE: sku defectid 2014
    TransactionController tc =
            (af == null) ?
                null :
                af.getTransaction(
                        ContextService.getFactory().getCurrentContextManager());

    pageSize =
      PropertyUtil.getServiceInt(tc, createArgs,
        Property.PAGE_SIZE_PARAMETER, 
View Full Code Here


   */
  private void createInfoFromProp(Properties createArgs)
     throws StandardException
  {
    // Need a TransactionController to get database/service wide properties.
    AccessFactory af = (AccessFactory)
      Monitor.getServiceModule(dataFactory, AccessFactory.MODULE);

    // RESOLVE: sku defectid 2014
    TransactionController tc =
            (af == null) ?
                null :
                af.getTransaction(
                        ContextService.getFactory().getCurrentContextManager());

    pageSize =
      PropertyUtil.getServiceInt(tc, createArgs,
        Property.PAGE_SIZE_PARAMETER, 
View Full Code Here

      if (corrupt != null)
        return Serviceable.DONE; // don't do this again.
    }

    // check to see if checkpointInterval and logSwitchInterval has changed
    AccessFactory af =
            (AccessFactory)Monitor.getServiceModule(this, AccessFactory.MODULE);

    try
    {
      if (af != null)
      {
        TransactionController tc = null;
        try
        {
          tc = af.getAndNameTransaction(
                            context, AccessFactoryGlobals.SYS_TRANS_NAME);

          getLogFactoryProperties(tc);
        }
        finally
View Full Code Here

    //if the log archive mode is already enabled; thre is nothing to do
    if(!logArchived)
    {
      logArchived = true;
      AccessFactory af =
            (AccessFactory)Monitor.getServiceModule(this, AccessFactory.MODULE);

      if (af != null)
      {
        TransactionController tc = null;
        tc = af.getTransaction(
                        ContextService.getFactory().getCurrentContextManager());
        tc.setProperty(Property.LOG_ARCHIVE_MODE , "true", true);
      }
    }
  }
View Full Code Here

  }

  // disable the log archive mode
  public void disableLogArchiveMode() throws StandardException
  {
    AccessFactory af =
            (AccessFactory)Monitor.getServiceModule(this, AccessFactory.MODULE);
    if (af != null)
    {
      TransactionController tc = null;
      tc = af.getTransaction(ContextService.getFactory().getCurrentContextManager());
      tc.setProperty(Property.LOG_ARCHIVE_MODE , "false", true);
    }
        logArchived = false;
  }
View Full Code Here

      if (corrupt != null)
        return Serviceable.DONE; // don't do this again.
    }

    // check to see if checkpointInterval and logSwitchInterval has changed
    AccessFactory af =
            (AccessFactory)Monitor.getServiceModule(this, AccessFactory.MODULE);

    try
    {
      if (af != null)
      {
        TransactionController tc = null;
        try
        {
          tc = af.getAndNameTransaction(
                            context, AccessFactoryGlobals.SYS_TRANS_NAME);

          getLogFactoryProperties(tc);
        }
        finally
View Full Code Here

    //if the log archive mode is already enabled; thre is nothing to do
    if(!logArchived)
    {
      logArchived = true;
      AccessFactory af =
            (AccessFactory)Monitor.getServiceModule(this, AccessFactory.MODULE);

      if (af != null)
      {
        TransactionController tc = null;
        tc = af.getTransaction(
                        ContextService.getFactory().getCurrentContextManager());
        tc.setProperty(Property.LOG_ARCHIVE_MODE , "true", true);
      }
    }
  }
View Full Code Here

  }

  // disable the log archive mode
  public void disableLogArchiveMode() throws StandardException
  {
    AccessFactory af =
            (AccessFactory)Monitor.getServiceModule(this, AccessFactory.MODULE);
    if (af != null)
    {
      TransactionController tc = null;
      tc = af.getTransaction(ContextService.getFactory().getCurrentContextManager());
      tc.setProperty(Property.LOG_ARCHIVE_MODE , "false", true);
    }
        logArchived = false;
  }
View Full Code Here

  {
    if (!initialized)
    {
      LanguageConnectionContext lcc = ConnectionUtil.getCurrentLCC();

      AccessFactory af = lcc.getLanguageConnectionFactory().getAccessFactory();
      transactionTable = af.getTransactionInfo();

      initialized = true;
      currentRow = -1;
    }
View Full Code Here

    // we can only run on jdk1.2 or beyond with JTA and JAVA 20 extension
    // loaded.

    connectionTable = new Hashtable();

    AccessFactory af =
      (AccessFactory)Monitor.findServiceModule(this, AccessFactory.MODULE);

    rm = (XAResourceManager) af.getXAResourceManager();

    active = true;
  }
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.store.access.AccessFactory

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.