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

Examples of org.apache.derby.iapi.store.raw.ContainerKey


    Set container's identity
    @exception StandardException Standard Derby error policy
  */
  public Cacheable setIdentity(Object key) throws StandardException {

    ContainerKey newIdentity = (ContainerKey) key;

    // if this is an open for a temp container then return an object of that type
    if (newIdentity.getSegmentId() == ContainerHandle.TEMPORARY_SEGMENT) {

      TempRAFContainer tmpContainer = new TempRAFContainer(dataFactory);
      return tmpContainer.setIdent(newIdentity);
    }

View Full Code Here


  /**
    @exception StandardException Standard Derby error policy
   */
  public Cacheable createIdentity(Object key, Object createParameter) throws StandardException {

    ContainerKey newIdentity = (ContainerKey) key;

    if (newIdentity.getSegmentId() == ContainerHandle.TEMPORARY_SEGMENT) {
      TempRAFContainer tmpContainer = new TempRAFContainer(dataFactory);
      return tmpContainer.createIdent(newIdentity, createParameter);
    }

    return createIdent(newIdentity, createParameter);
View Full Code Here

    @see Cacheable#setIdentity
  */
  public Cacheable setIdentity(Object key) throws StandardException
    {
        ContainerKey newIdentity = (ContainerKey) key;

        // If the new identity represents a temporary container, switch to
        // TempRAFContainer.
        if (newIdentity.getSegmentId() == ContainerHandle.TEMPORARY_SEGMENT) {
            return new TempRAFContainer(dataFactory).setIdent(newIdentity);
        }

        return setIdent(newIdentity);
  }
View Full Code Here

  /**
    @exception StandardException Standard Derby error policy
  */
  public Cacheable setIdentity(Object key) throws StandardException {

    ContainerKey newIdentity = (ContainerKey) key;
    if (newIdentity.getSegmentId() != ContainerHandle.TEMPORARY_SEGMENT) {

      FileContainer realContainer =
          (FileContainer) dataFactory.newContainerObject();
      return realContainer.setIdent(newIdentity);
    }
View Full Code Here

  /**
    @exception StandardException Standard Derby error policy
  */
  public Cacheable createIdentity(Object key, Object createParameter) throws StandardException {

    ContainerKey newIdentity = (ContainerKey) key;

    if (newIdentity.getSegmentId() != ContainerHandle.TEMPORARY_SEGMENT) {
      Cacheable realContainer = dataFactory.newContainerObject();
      return realContainer.createIdentity(newIdentity, createParameter);
    }

    return createIdent(newIdentity, createParameter);
View Full Code Here

        {
            if (input_containerid != ContainerHandle.DEFAULT_ASSIGN_ID)
                SanityManager.ASSERT(containerid == input_containerid);
        }

    id = new ContainerKey(segmentId, containerid);
  }
View Full Code Here

    maintainParentLinks = in.readBoolean();

        // read in the array of format id's
        format_ids = ConglomerateUtil.readFormatIdArray(this.nKeyFields, in);

    id = new ContainerKey(segmentid, containerid);
  }
View Full Code Here

    CompressedNumber.writeLong(out, pageNumber);
  }

  public static PageKey read(ObjectInput in) throws IOException
  {
    ContainerKey c = ContainerKey.read(in);
    long pn = CompressedNumber.readLong(in);

    return new PageKey(c, pn);
  }
View Full Code Here

        long id = conglomid.longValue();

        conglom = accessManager.getFactoryFromConglomId(id).readConglomerate(
                accessManager.getCurrentTransactionContext().getTransaction(),
                new ContainerKey(0, id));

        return this;
    }
View Full Code Here

        // internally generated one from getNextId().
        long containerId =
            ((input_containerid != ContainerHandle.DEFAULT_ASSIGN_ID) ?
                 input_containerid : getNextId());

    ContainerKey identity = new ContainerKey(segmentId, containerId);

    boolean tmpContainer = (segmentId == ContainerHandle.TEMPORARY_SEGMENT);

    ContainerHandle ch = null;
    LockingPolicy   cl = null;
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.store.raw.ContainerKey

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.