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

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


      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
  {
    logArchived = false;
    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);
    }
  }
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

      // The user is trying to change the secret key.
      // The secret key is never stored in clear text, but we
      // store the encrypted form in the services.properties
      // file.  Swap the secret key with the encrypted form and
      // put that in the services.properties file.
      AccessFactory af = ((TransactionManager)tc).getAccessManager();

      RawStoreFactory rsf = (RawStoreFactory)
        Monitor.findServiceModule(af, RawStoreFactory.MODULE);

      // remove secret key from properties list if possible
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

   *     inserts(Even adding/dropping constraints can have effect because they
   *     do inderectly deletes/inserts on system tables.) eg: lang/fk_nonsps.sql
   */
  public static void waitForPostCommitToFinish() throws SQLException
  {
      AccessFactory af = getAccessFactory();
      af.waitForPostCommitToFinishWork();
  }
View Full Code Here

  /**
    @exception T_Fail test failed.
  */
  protected void runTests() throws T_Fail
  {
    AccessFactory store = null;
    TransactionController tc = null;
    boolean pass = false;

        out.println("executing heap test");

    // don't automatic boot this service if it gets left around
    if (startParams == null) {
      startParams = new Properties();
    }
    startParams.put(Property.NO_AUTO_BOOT, Boolean.TRUE.toString());
    // remove the service directory to ensure a clean run
    startParams.put(Property.DELETE_ON_CREATE, Boolean.TRUE.toString());

    // see if we are testing encryption
    startParams = T_Util.setEncryptionParam(startParams);

    try {
      store = (AccessFactory) Monitor.createPersistentService(getModuleToTestProtocolName(),
      testService, startParams);
    } catch (StandardException mse) {
      throw T_Fail.exceptionFail(mse);
    }

    if (store == null) {
      throw T_Fail.testFailMsg(getModuleToTestProtocolName() + " service not started.");
    }
    REPORT("(unitTestMain) Testing " + testService);

    try {

            tc = store.getTransaction(
                    ContextService.getFactory().getCurrentContextManager());

            if (t_001(tc))
      {
        pass = 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.