Package org.apache.derby.iapi.store.raw.xact

Examples of org.apache.derby.iapi.store.raw.xact.RawTransaction


        {
      throw StandardException.newException(
                    SQLState.DATA_CONTAINER_READ_ONLY);
        }

    RawTransaction t = owner.getTransaction();

    owner.getActionSet().actionInvalidatePage(t, this);
  }
View Full Code Here


        {
      throw StandardException.newException(
                    SQLState.DATA_CONTAINER_READ_ONLY);
        }

    RawTransaction t = owner.getTransaction();

    owner.getActionSet().actionInitPage(
      t, this, initFlag, getTypeFormatId(), pageOffset);
  }
View Full Code Here

        {
      throw StandardException.newException(
                    SQLState.DATA_SLOT_NOT_ON_PAGE);
        }

    RawTransaction t = owner.getTransaction();

    // get num_rows row locks, need to predict what those recordIds will be

    int[] recordIds = new int[num_rows];
View Full Code Here

        // TODO (mikem) - should a global scratch variable be used?

        // this is an overflow page purge, no need to lock the head row (it
        // has already been locked, hopefully).  No need to check for long rows
        // (they have already been deleted, hopefully).
        RawTransaction  t           = owner.getTransaction();
        int[]           recordId    = new int[1];

        recordId[0]                 = getHeaderAtSlot(slot).getId();

        owner.getActionSet().actionPurge(t, this, slot, 1, recordId, needDataLogged);
View Full Code Here

                // that is being updated.
                Page firstPageOnColumnChain = getOverflowPage(overflowPage);
                PageTimeStamp ts = firstPageOnColumnChain.currentTimeStamp();
                firstPageOnColumnChain.unlatch();

                RawTransaction rxact = (RawTransaction)owner.getTransaction();

                ReclaimSpace work =
                    new ReclaimSpace(ReclaimSpace.COLUMN_CHAIN,
                                headRowHandle,
                                fieldId, // long column about to be orphaned by update
                                overflowPage, // page where the long column starts
                                overflowId, // record Id of the beginning of the long column
                                ts,
                                rxact.getDataFactory(), true);

                rxact.addPostCommitWork(work);

                rawDataIn.setPosition(saveOffset); // Just to be safe, reset data stream
            }

View Full Code Here

        // Back to the head page.  Get rid of all reserved space in the entire
        // row post commit.
        if (rowHasReservedSpace)
        {
            RawTransaction rxact = (RawTransaction)owner.getTransaction();

            ReclaimSpace work =
                new ReclaimSpace(ReclaimSpace.ROW_RESERVE,
                                 headRowHandle,
                                 rxact.getDataFactory(), true);
            rxact.addPostCommitWork(work);
        }
    }
View Full Code Here

        // TODO (mikem) - should a global scratch variable be used?

    // this is an overflow page purge, no need to lock the head row (it
    // has already been locked, hopefully).  No need to check for long rows
    // (they have already been deleted, hopefully).
    RawTransaction  t           = owner.getTransaction();
    int[]           recordId    = new int[1];

    recordId[0]                 = getHeaderAtSlot(slot).getId();

    owner.getActionSet().actionPurge(t, this, slot, 1, recordId, needDataLogged);
View Full Code Here

        // that is being updated.
        Page firstPageOnColumnChain = getOverflowPage(overflowPage);
        PageTimeStamp ts = firstPageOnColumnChain.currentTimeStamp();
        firstPageOnColumnChain.unlatch();

        RawTransaction rxact = (RawTransaction)owner.getTransaction();

        ReclaimSpace work =
          new ReclaimSpace(ReclaimSpace.COLUMN_CHAIN,
                headRowHandle,
                fieldId, // long column about to be orphaned by update
                overflowPage, // page where the long column starts
                overflowId, // record Id of the beginning of the long column
                ts,
                rxact.getDataFactory(), true);

        rxact.addPostCommitWork(work);

        rawDataIn.setPosition(saveOffset); // Just to be safe, reset data stream
      }

View Full Code Here

    // Back to the head page.  Get rid of all reserved space in the entire
    // row post commit.
    if (rowHasReservedSpace)
    {
      RawTransaction rxact = (RawTransaction)owner.getTransaction();

      ReclaimSpace work =
        new ReclaimSpace(ReclaimSpace.ROW_RESERVE,
                 headRowHandle,
                 rxact.getDataFactory(), true);
      rxact.addPostCommitWork(work);
    }
  }
View Full Code Here

  }

  protected void prepareForBulkLoad(BaseContainerHandle handle, int numPage)
  {
    clearPreallocThreshold();
    RawTransaction tran = handle.getTransaction();

    // find the last allocation page - do not invalidate the alloc cache,
    // we don't want to prevent other people from reading or writing
    // pages.
    AllocPage allocPage = findLastAllocPage(handle, tran);
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.store.raw.xact.RawTransaction

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.