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

Examples of org.apache.derby.iapi.store.access.conglomerate.ConglomerateFactory


    if (mfactory == null || !(mfactory instanceof ConglomerateFactory))
        {
      throw StandardException.newException(
                    SQLState.AM_NO_SUCH_CONGLOMERATE_TYPE, implementation);
        }
    ConglomerateFactory cfactory = (ConglomerateFactory) mfactory;

    // Create the conglomerate
        // RESOLVE (mikem) - eventually segmentid's will be passed into here
        // in the properties.  For now just use 0.]
    int     segment;
        long    conglomid;
    if ((temporaryFlag & TransactionController.IS_TEMPORARY)
        == TransactionController.IS_TEMPORARY)
        {
      segment = ContainerHandle.TEMPORARY_SEGMENT;
            conglomid = ContainerHandle.DEFAULT_ASSIGN_ID;
        }
    else
        {
      segment = 0; // RESOLVE - only using segment 0
            conglomid =
                accessmanager.getNextConglomId(
                    cfactory.getConglomerateFactoryId());
        }

        // call the factory to actually create the conglomerate.
        Conglomerate conglom =
            cfactory.createConglomerate(
                this, segment, conglomid, template,
                columnOrder, collationIds, properties, temporaryFlag);

    long conglomId;
    if ((temporaryFlag & TransactionController.IS_TEMPORARY)
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.store.access.conglomerate.ConglomerateFactory

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.