Examples of ContextManager


Examples of org.apache.derby.iapi.services.context.ContextManager

   *
   * @exception StandardException thrown if something goes wrong
   */
  private void resetSavepoints() throws StandardException
  {
    final ContextManager cm = getContextManager();
    final List stmts = cm.getContextStack(org.apache.derby.
                        iapi.reference.
                        ContextId.LANG_STATEMENT);
    final int end = stmts.size();
    for (int i = 0; i < end; ++i) {
      ((StatementContext)stmts.get(i)).resetSavePoint();
View Full Code Here

Examples of org.apache.derby.iapi.services.context.ContextManager

            // error we get at this point is going to shut down the db.

            while (true)
            {
                // allocate new context and associate new xact with it.
                ContextManager cm      = contextFactory.newContextManager();
                contextFactory.setCurrentContextManager(cm);

        try {
                RawTransaction rawtran =
                    startTransaction(
View Full Code Here

Examples of org.apache.derby.iapi.services.context.ContextManager

                    C_NodeTypes.TABLE_NAME,
                    null,
                    null,
                    getContextManager());

    ContextManager cm = getContextManager();

    int size = visibleSize();
    for (int index = 0; index < size; index++)
    {
      boolean     nullableResult;
View Full Code Here

Examples of org.apache.derby.iapi.services.context.ContextManager

    TableName  tableName,
    String    columnName
  )
    throws StandardException
  {
    ContextManager  cm = getContextManager();
    NodeFactory    nodeFactory = getNodeFactory();

    ResultColumn  rc = (ResultColumn) nodeFactory.getNode
      (
        C_NodeTypes.RESULT_COLUMN,
View Full Code Here

Examples of org.apache.derby.iapi.services.context.ContextManager

    TableDescriptor        triggerTable,
    TransactionController       tc
  )
    throws StandardException
  {
    ContextManager cm = lcc.getContextManager();
    DependencyManager dm;
    ProviderInfo[] providerInfo;

    LanguageConnectionFactory  lcf = lcc.getLanguageConnectionFactory();
View Full Code Here

Examples of org.apache.derby.iapi.services.context.ContextManager

    */
    if (recompIfInvalid &&
      (!valid ||
       (preparedStatement == null)))
    {
      ContextManager cm = ContextService.getFactory().getCurrentContextManager();

      /*
      ** Find the language connection context.  Get
      ** it each time in case a connection is dropped.
      */
      LanguageConnectionContext lcc = (LanguageConnectionContext)
          cm.getContext(LanguageConnectionContext.CONTEXT_ID);
     


      if (!((org.apache.derby.impl.sql.catalog.DataDictionaryImpl) (lcc.getDataDictionary())).readOnlyUpgrade) {

View Full Code Here

Examples of org.apache.derby.iapi.services.context.ContextManager

    //REMIND: someone is leaving an incorrect manager on when they
    // are exiting the system in the nested case.
    if (SanityManager.DEBUG)
    {
      if (tr.getCsf() != null) {
        ContextManager cm1 = tr.getCsf().getCurrentContextManager();
        ContextManager cm2 = tr.getContextManager();
        // If the system has been shut down, cm1 can be null.
        // Otherwise, cm1 and cm2 should be identical.
        Util.ASSERT(this, (cm1 == cm2 || cm1 == null),
          "Current Context Manager not the one was expected: " +
           cm1 + " " + cm2);
View Full Code Here

Examples of org.apache.derby.iapi.services.context.ContextManager

        public void run() {

            // The thread needs a ContextManager since two threads
            // cannot share a context
            ContextManager bootThreadCm = null;
            try {

                bootThreadCm = ContextService.getFactory().newContextManager();
                ContextService.getFactory().
                    setCurrentContextManager(bootThreadCm);
View Full Code Here

Examples of org.apache.derby.iapi.services.context.ContextManager

            // error we get at this point is going to shut down the db.

            while (true)
            {
                // allocate new context and associate new xact with it.
                ContextManager cm      = contextFactory.newContextManager();
                contextFactory.setCurrentContextManager(cm);

        try {
                RawTransaction rawtran =
                    startTransaction(
View Full Code Here

Examples of org.apache.derby.iapi.services.context.ContextManager

    if (fid == null)
      throw StandardException.newException(SQLState.LANG_FILE_DOES_NOT_EXIST, sqlName,schemaName);

    long generationId = fid.getGenerationId();

        ContextManager cm = ContextService.getFactory().getCurrentContextManager();
    FileResource fr = af.getTransaction(cm).getFileHandler();

    String externalName = JarUtil.mkExternalName(schemaName, sqlName, fr.getSeparatorChar());

    return fr.getAsFile(externalName, generationId);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.