Examples of addDescriptor()


Examples of org.apache.derby.iapi.sql.dictionary.DataDictionary.addDescriptor()

   


    // Update the ColumnDescriptor with new default info
    dd.dropColumnDescriptor(td.getUUID(), columnInfo[ix].name, tc);
    dd.addDescriptor(newColumnDescriptor, td,
             DataDictionary.SYSCOLUMNS_CATALOG_NUM, false, tc);
 

  /**
   * Workhorse for modifying column level constraints.
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.DataDictionary.addDescriptor()

                  columnDescriptor.getAutoincStart(),
                  columnDescriptor.getAutoincInc());
       
    // Update the ColumnDescriptor with new default info
    dd.dropColumnDescriptor(td.getUUID(), colName, tc);
    dd.addDescriptor(newColumnDescriptor, td,
             DataDictionary.SYSCOLUMNS_CATALOG_NUM, false, tc);   
  }
  /**
   * Workhorse for modifying the default value of a column.
   *
 
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.DataDictionary.addDescriptor()

                           columnInfo[ix].autoinc_create_or_modify_Start_Increment
                           );

    // Update the ColumnDescriptor with new default info
    dd.dropColumnDescriptor(td.getUUID(), columnInfo[ix].name, tc);
    dd.addDescriptor(columnDescriptor, td,
             DataDictionary.SYSCOLUMNS_CATALOG_NUM, false, tc);
 
    if (columnInfo[ix].action == ColumnInfo.MODIFY_COLUMN_DEFAULT_INCREMENT)
    {
      // adding an autoincrement default-- calculate the maximum value
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.DataDictionary.addDescriptor()

                           defaultUUID,
                           columnInfo[ix].autoincStart,
                           columnInfo[ix].autoincInc
                           );

    dd.addDescriptor(columnDescriptor, td,
             DataDictionary.SYSCOLUMNS_CATALOG_NUM, false, tc);

    // now add the column to the tables column descriptor list.
    td.getColumnDescriptorList().add(columnDescriptor);
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.DataDictionary.addDescriptor()

        for (j = 0; j < refColLen; j++)
        {
          if (referencedCols[j] > columnPosition)
            referencedCols[j]--;
        }
        dd.addDescriptor(trd, sd,
                 DataDictionary.SYSTRIGGERS_CATALOG_NUM,
                 false, tc);
      }
    }
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.DataDictionary.addDescriptor()

        }
        if (newColumnBitMap.equals(oldColumnBitMap))
          continue;
        dd.dropStoredDependency(depDesc, tc);
        colFinder.setColumnBitMap(newColumnBitMap.getByteArray());
        dd.addDescriptor(depDesc, null,
                 DataDictionary.SYSDEPENDS_CATALOG_NUM,
                 true, tc);
      }
    }
  }
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.DataDictionary.addDescriptor()

   


    // Update the ColumnDescriptor with new default info
    dd.dropColumnDescriptor(td.getUUID(), columnInfo[ix].name, tc);
    dd.addDescriptor(newColumnDescriptor, td,
             DataDictionary.SYSCOLUMNS_CATALOG_NUM, false, tc);
 

  /**
   * Workhorse for modifying column level constraints.
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.DataDictionary.addDescriptor()

   


    // Update the ColumnDescriptor with new default info
    dd.dropColumnDescriptor(td.getUUID(), colName, tc);
    dd.addDescriptor(newColumnDescriptor, td,
             DataDictionary.SYSCOLUMNS_CATALOG_NUM, false, tc);
   
  }
  /**
   * Workhorse for modifying the default value of a column.
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.DataDictionary.addDescriptor()

                           columnInfo[ix].autoinc_create_or_modify_Start_Increment
                           );

    // Update the ColumnDescriptor with new default info
    dd.dropColumnDescriptor(td.getUUID(), columnInfo[ix].name, tc);
    dd.addDescriptor(columnDescriptor, td,
             DataDictionary.SYSCOLUMNS_CATALOG_NUM, false, tc);
 
    if (columnInfo[ix].action == ColumnInfo.MODIFY_COLUMN_DEFAULT_INCREMENT)
    {
      // adding an autoincrement default-- calculate the maximum value
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.DataDictionary.addDescriptor()

        boolean wait = (tc == null);
     
        dependencyDescriptor = new DependencyDescriptor(d, p);

        /* We can finally call the DataDictionary to store the dependency */
        dd.addDescriptor(dependencyDescriptor, null,
                 DataDictionary.SYSDEPENDS_CATALOG_NUM, true,
                 ((wait)?lcc.getTransactionExecute():tc), wait);
      }
    }
  }
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.