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

Examples of org.apache.derby.iapi.store.access.TransactionController.openConglomerate()


    // Get the current transaction controller
    tc = getTransactionCompile();

    outRow = rf.makeEmptyRow();

    heapCC = tc.openConglomerate(
                ti.getHeapConglomerate(), false, 0,
                TransactionController.MODE_RECORD,
                TransactionController.ISOLATION_REPEATABLE_READ);

    /* Scan the index and go to the data pages for qualifying rows to
View Full Code Here


    TransactionController tc =
      lcc.getTransactionCompile();

    long tableId = td.getHeapConglomerateId();
    heapCC =
            tc.openConglomerate(
                tableId, false, 0, tc.MODE_RECORD, tc.ISOLATION_READ_COMMITTED);
    try
    {
      rl = heapCC.newRowLocationTemplate();
    }
View Full Code Here

    /* Get a ConglomerateController for the base conglomerate */
    tc = activation.getTransactionController();

    try
    {
      cc = tc.openConglomerate(
                  conglomerateNumber,
                    false,
          (exclusiveMode) ?
            (TransactionController.OPENMODE_FORUPDATE |
              TransactionController.OPENMODE_FOR_LOCK_ONLY) :
View Full Code Here

      if (needToDropSort)
         tc.dropSort(sortId);
    }

    ConglomerateController indexController =
      tc.openConglomerate(
                conglomId, false, 0, TransactionController.MODE_TABLE,
                TransactionController.ISOLATION_SERIALIZABLE);

    // Check to make sure that the conglomerate can be used as an index
    if ( ! indexController.isKeyed())
View Full Code Here

    /* Get a ConglomerateController for the base conglomerate */
    tc = activation.getTransactionController();

    try
    {
      cc = tc.openConglomerate(
                  conglomerateNumber,
                    false,
          (exclusiveMode) ?
            (TransactionController.OPENMODE_FORUPDATE |
              TransactionController.OPENMODE_FOR_LOCK_ONLY) :
View Full Code Here

                    properties,
                    TransactionController.IS_TEMPORARY |
                    TransactionController.IS_KEPT);
      conglomCreated = true;

      cc = tc.openConglomerate(CID,
                                false,
                                TransactionController.OPENMODE_FORUPDATE,
                                TransactionController.MODE_TABLE,
                                TransactionController.ISOLATION_SERIALIZABLE);
      if(isUniqueStream)
View Full Code Here

        Properties props = makeIndexProperties(uniqueIndexRow, CID);
        uniqueIndexConglomId =
          tc.createConglomerate("BTREE",uniqueIndexRow , null,  props,
                      TransactionController.IS_TEMPORARY |
                      TransactionController.IS_KEPT);
        uniqueIndex_cc = tc.openConglomerate(
                uniqueIndexConglomId,
                false,
                TransactionController.OPENMODE_FORUPDATE,
                TransactionController.MODE_TABLE,
                TransactionController.ISOLATION_SERIALIZABLE);
View Full Code Here

      Properties props = makeIndexProperties(positionIndexRow, CID);
      positionIndexConglomId =
        tc.createConglomerate("BTREE", positionIndexRow, null,  props,
                    TransactionController.IS_TEMPORARY |
                    TransactionController.IS_KEPT);
      positionIndex_cc = tc.openConglomerate(
                          positionIndexConglomId,
                          false,
                          TransactionController.OPENMODE_FORUPDATE,
                          TransactionController.MODE_TABLE,
                          TransactionController.ISOLATION_SERIALIZABLE);
View Full Code Here

    TransactionController tc =
      lcc.getTransactionCompile();

    long tableId = td.getHeapConglomerateId();
    heapCC =
            tc.openConglomerate(
                tableId, false, 0, tc.MODE_RECORD, tc.ISOLATION_READ_COMMITTED);
    try
    {
      rl = heapCC.newRowLocationTemplate();
    }
View Full Code Here

      if (needToDropSort)
         tc.dropSort(sortId);
    }

    ConglomerateController indexController =
      tc.openConglomerate(
                conglomId, false, 0, TransactionController.MODE_TABLE,
                TransactionController.ISOLATION_SERIALIZABLE);

    // Check to make sure that the conglomerate can be used as an index
    if ( ! indexController.isKeyed())
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.