Package org.apache.derby.impl.store.access

Examples of org.apache.derby.impl.store.access.StorableFormatId


    // getIsRoot/setIsRoot.
    this.isRoot = new SQLLongint(isRoot ? 1 : 0);

        // set the rest of the state, as passed in.
    this.level   = new SQLLongint(level);
        this.version = new StorableFormatId(getTypeFormatId());

        // If it is a root page then store the real btree conglomerate, if it
        // is not a root page then set up an "empty" btree conglomerate which
        // will be stored as "null".
        this.btree =
View Full Code Here


    throws StandardException
  {
    if (this.version == null)
    {
      // Fault in the version.
      this.version = new StorableFormatId();

            scratch_row[CR_VERSION_COLID] = this.version;

            fetchDesc.setValidColumns(CR_VERSION_BITSET);
View Full Code Here

  protected void setVersion(int version)
    throws StandardException
  {
    // Store the field.
    if (this.version == null)
      this.version = new StorableFormatId();
    this.version.setValue(version);

    // Write the field through to the underlying row.
    this.page.updateFieldAtSlot(
            CR_SLOT, CR_VERSION_COLID, this.version, null);
View Full Code Here

       
        // Use the version field to determine the type of the row to
        // create.  This routine depends on the version field being the same
        // number column in all control rows.
       
        StorableFormatId version = new StorableFormatId();

        DataValueDescriptor[] version_ret = new DataValueDescriptor[1];
       
        version_ret[0] = version;

        // TODO (mikem) - get rid of this new.

        page.fetchFromSlot(
           (RecordHandle) null, CR_SLOT, version_ret,
           new FetchDescriptor(1, CR_VERSION_BITSET, (Qualifier[][]) null),
           false);

        // use format id to create empty instance of right Conglomerate class
        cr = (ControlRow) Monitor.newInstanceFromIdentifier(version.getValue());
        cr.page = page;

        // call page specific initialization.
        cr.controlRowInit();
View Full Code Here

    // getIsRoot/setIsRoot.
    this.isRoot = new SQLLongint(isRoot ? 1 : 0);

        // set the rest of the state, as passed in.
    this.level   = new SQLLongint(level);
        this.version = new StorableFormatId(getTypeFormatId());

        // If it is a root page then store the real btree conglomerate, if it
        // is not a root page then set up an "empty" btree conglomerate which
        // will be stored as "null".
        this.btree =
View Full Code Here

    throws StandardException
  {
    if (this.version == null)
    {
      // Fault in the version.
      this.version = new StorableFormatId();

            scratch_row[CR_VERSION_COLID] = this.version;

            fetchDesc.setValidColumns(CR_VERSION_BITSET);
View Full Code Here

  protected void setVersion(int version)
    throws StandardException
  {
    // Store the field.
    if (this.version == null)
      this.version = new StorableFormatId();
    this.version.setValue(version);

    // Write the field through to the underlying row.
    this.page.updateFieldAtSlot(
            CR_SLOT, CR_VERSION_COLID, this.version, null);
View Full Code Here

       
        // Use the version field to determine the type of the row to
        // create.  This routine depends on the version field being the same
        // number column in all control rows.
       
        StorableFormatId version = new StorableFormatId();

        DataValueDescriptor[] version_ret = new DataValueDescriptor[1];
       
        version_ret[0] = version;

        // TODO (mikem) - get rid of this new.

        page.fetchFromSlot(
           (RecordHandle) null, CR_SLOT, version_ret,
           new FetchDescriptor(1, CR_VERSION_BITSET, (Qualifier[][]) null),
           false);

        // use format id to create empty instance of right Conglomerate class
        cr = (ControlRow) Monitor.newInstanceFromIdentifier(version.getValue());
        cr.page = page;

        // call page specific initialization.
        cr.controlRowInit();
View Full Code Here

    // getIsRoot/setIsRoot.
    this.isRoot = new SQLLongint(isRoot ? 1 : 0);

        // set the rest of the state, as passed in.
    this.level   = new SQLLongint(level);
        this.version = new StorableFormatId(getTypeFormatId());

        // If it is a root page then store the real btree conglomerate, if it
        // is not a root page then set up an "empty" btree conglomerate which
        // will be stored as "null".
        this.btree =
View Full Code Here

    throws StandardException
  {
    if (this.version == null)
    {
      // Fault in the version.
      this.version = new StorableFormatId();

            scratch_row[CR_VERSION_COLID] = this.version;

            fetchDesc.setValidColumns(CR_VERSION_BITSET);
View Full Code Here

TOP

Related Classes of org.apache.derby.impl.store.access.StorableFormatId

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.