Package org.apache.derby.iapi.types

Examples of org.apache.derby.iapi.types.SQLLongint


                TransactionController.ISOLATION_SERIALIZABLE);

        // insert 5 rows

        T_AccessRow r1        = null;
    SQLLongint c1   = null;

        for (int i = 1; i < 5; i++)
        {
            // Create a row.
            r1  = new T_AccessRow(1);
            c1  = new SQLLongint(i);
            r1.setCol(0, c1);

            // Get a location template
            RowLocation rowloc = cc.newRowLocationTemplate();
View Full Code Here


        T_AccessRow  accessRow  = null;
        for (int i = 1; i < 5; i++)
        {
            // Create a row.
            accessRow  = new T_AccessRow(1);
            SQLLongint c1  = new SQLLongint(i);
            accessRow.setCol(0, c1);
           
            // Insert the row and remember its location.
            cc.insert(accessRow.getRowArray());
        }
View Full Code Here

      // SYSCOLUMNS and immediately re-added with a different
      // column position (to account for the dropped column).
      // In this case, the autoincValue may have a
      // different value than the autoincStart.
      row.setColumn(SYSCOLUMNS_AUTOINCREMENTVALUE,
              new SQLLongint(autoincValue));
      row.setColumn(SYSCOLUMNS_AUTOINCREMENTSTART,
              new SQLLongint(autoincStart));
      row.setColumn(SYSCOLUMNS_AUTOINCREMENTINC,
              new SQLLongint(autoincInc));
    } else if (autoinc_create_or_modify_Start_Increment == ColumnDefinitionNode.MODIFY_AUTOINCREMENT_RESTART_VALUE)
    {//user asked for restart with a new value, so don't change increment by and original start
      //with values in the SYSCOLUMNS table. Just record the RESTART WITH value as the
      //next value to be generated in the SYSCOLUMNS table
      ColumnDescriptor  column = (ColumnDescriptor)td;
      row.setColumn(SYSCOLUMNS_AUTOINCREMENTVALUE, new SQLLongint(autoincStart));
      row.setColumn(SYSCOLUMNS_AUTOINCREMENTSTART, new SQLLongint(autoincStart));
      row.setColumn(SYSCOLUMNS_AUTOINCREMENTINC, new SQLLongint(
          column.getTableDescriptor().getColumnDescriptor(colName).getAutoincInc()));
    }
    else
    {
      row.setColumn(SYSCOLUMNS_AUTOINCREMENTVALUE,
              new SQLLongint());
      row.setColumn(SYSCOLUMNS_AUTOINCREMENTSTART,
              new SQLLongint());
      row.setColumn(SYSCOLUMNS_AUTOINCREMENTINC,
              new SQLLongint());
    }
    return row;
  }
View Full Code Here

    this.page = page;

    // Page numbers start out "invalid".  Presumably the caller will
    // link the page into a page chain as one of its next steps.
    leftSiblingPageNumber  =
            new SQLLongint(ContainerHandle.INVALID_PAGE_NUMBER);
    rightSiblingPageNumber =
            new SQLLongint(ContainerHandle.INVALID_PAGE_NUMBER);

    // Remember the parent if there is one and we're remembering parents.
        parentPageNumber = new SQLLongint(
            (parent == null
                 ContainerHandle.INVALID_PAGE_NUMBER :
                 parent.page.getPageNumber()));

    // All pages start out not being root pages.  The caller will setIsRoot
    // if this is going to be a root page. Zero means false - see
    // 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".
View Full Code Here

            (leftsib == null ? ContainerHandle.INVALID_PAGE_NUMBER :
                               leftsib.page.getPageNumber());
       
    // Store the field.
    if (leftSiblingPageNumber == null)
      leftSiblingPageNumber = new SQLLongint(left_sib_pageno);
        else
            this.leftSiblingPageNumber.setValue(left_sib_pageno);

    // Write the field through to the underlying row
        try
View Full Code Here

            (rightsib == null ? ContainerHandle.INVALID_PAGE_NUMBER :
                                rightsib.page.getPageNumber());
       
    // Store the field.
    if (rightSiblingPageNumber == null)
      rightSiblingPageNumber = new SQLLongint(right_sib_pageno);
        else
            this.rightSiblingPageNumber.setValue(right_sib_pageno);

    // Write the field through to the underlying row
        try
View Full Code Here

        throws StandardException
  {
    if (this.leftSiblingPageNumber == null)
    {
      // Fault in the page number.
      this.leftSiblingPageNumber = new SQLLongint();

            if (SanityManager.DEBUG)
                SanityManager.ASSERT(scratch_row != null);

            scratch_row[CR_LEFTSIB_COLID] = this.leftSiblingPageNumber;
View Full Code Here

        throws StandardException
  {
    if (this.rightSiblingPageNumber == null)
    {
      // Fault in the page number.
      this.rightSiblingPageNumber = new SQLLongint();

            scratch_row[CR_RIGHTSIB_COLID] = this.rightSiblingPageNumber;

            fetchDesc.setValidColumns(CR_RIGHTSIB_BITSET);
            this.page.fetchFromSlot(
View Full Code Here

        throws StandardException
  {
    if (this.parentPageNumber == null)
    {
      // Fault in the page number.
      this.parentPageNumber = new SQLLongint();

            scratch_row[CR_PARENT_COLID] = this.parentPageNumber;

            fetchDesc.setValidColumns(CR_PARENT_BITSET);
            this.page.fetchFromSlot(
View Full Code Here

  void setParent(long parent)
        throws StandardException
  {
    // Store the field.
    if (parentPageNumber == null)
      parentPageNumber = new SQLLongint();
    this.parentPageNumber.setValue(parent);

    // Write the field through to the underlying row
        try
        {
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.types.SQLLongint

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.