Package org.apache.derby.iapi.sql.dictionary

Examples of org.apache.derby.iapi.sql.dictionary.TabInfo


    {
      ScanController        scanController;
      TransactionController    tc;
      ExecRow           outRow;
      DataValueDescriptor      conglomNumberOrderable = null;
      TabInfo            ti = coreInfo[SYSCONGLOMERATES_CORE_NUM];
      SYSCONGLOMERATESRowFactory  rf = (SYSCONGLOMERATESRowFactory) ti.getCatalogRowFactory();

      conglomNumberOrderable =
          dvf.getDataValue(conglomerateNumber);

    ScanQualifier[][] scanQualifier = exFactory.getScanQualifier(1);
View Full Code Here


  {
    ConglomerateDescriptorList cdl = td.getConglomerateDescriptorList();

    ExecIndexRow      keyRow3 = null;
    DataValueDescriptor    tableIDOrderable;
    TabInfo          ti = coreInfo[SYSCONGLOMERATES_CORE_NUM];

    /* Use tableIDOrderable in both start and stop positions for scan */
    tableIDOrderable = getValueAsDVD(td.getUUID());

    /* Set up the start/stop position for the scan */
 
View Full Code Here

            throws StandardException
  {
    ExecIndexRow        keyRow2 = null;
    DataValueDescriptor      nameOrderable;
    DataValueDescriptor      schemaIDOrderable = null;
    TabInfo            ti = coreInfo[SYSCONGLOMERATES_CORE_NUM];

    nameOrderable = dvf.getVarcharDataValue(indexName);
    schemaIDOrderable = getValueAsDVD(sd.getUUID());

    /* Set up the start/stop position for the scan */
 
View Full Code Here

            throws StandardException
  {
    ExecIndexRow      keyRow2 = null;
    DataValueDescriptor    nameOrderable;
    DataValueDescriptor    schemaIDOrderable = null;
    TabInfo          ti = coreInfo[SYSCONGLOMERATES_CORE_NUM];

    nameOrderable = dvf.getVarcharDataValue(conglomerate.getConglomerateName());
    schemaIDOrderable = getValueAsDVD(conglomerate.getSchemaID());

    /* Set up the start/stop position for the scan */
    keyRow2 = (ExecIndexRow) exFactory.getIndexableRow(2);
    keyRow2.setColumn(1, nameOrderable);
    keyRow2.setColumn(2, schemaIDOrderable);

    ti.deleteRow( tc, keyRow2, SYSCONGLOMERATESRowFactory.SYSCONGLOMERATES_INDEX2_ID );

  }
View Full Code Here

            TransactionController tc)
          throws StandardException
  {   
    ExecIndexRow      keyRow3 = null;
    DataValueDescriptor    tableIDOrderable;
    TabInfo          ti = coreInfo[SYSCONGLOMERATES_CORE_NUM];

    /* Use tableIDOrderable in both start
     * and stop position for index 3 scan.
     */
    tableIDOrderable = getValueAsDVD(td.getUUID());

    /* Set up the start/stop position for the scan */
    keyRow3 = (ExecIndexRow) exFactory.getIndexableRow(1);
    keyRow3.setColumn(1, tableIDOrderable);


    ti.deleteRow( tc, keyRow3, SYSCONGLOMERATESRowFactory.SYSCONGLOMERATES_INDEX3_ID );
  }
View Full Code Here

    throws StandardException
  {
    ExecIndexRow        keyRow1 = null;
    ExecRow[]            rows = new ExecRow[cds.length];
    DataValueDescriptor      conglomIDOrderable;
    TabInfo            ti = coreInfo[SYSCONGLOMERATES_CORE_NUM];
    SYSCONGLOMERATESRowFactory  rf = (SYSCONGLOMERATESRowFactory) ti.getCatalogRowFactory();

    /* Use conglomIDOrderable in both start
     * and stop position for index 1 scan.
     */
    conglomIDOrderable = getValueAsDVD(cds[0].getUUID());

    /* Set up the start/stop position for the scan */
    keyRow1 = (ExecIndexRow) exFactory.getIndexableRow(1);
    keyRow1.setColumn(1, conglomIDOrderable);

    for (int i = 0; i < cds.length; i++)
    {
      cds[i].setConglomerateNumber(conglomerateNumber);
      // build the row to be stuffed into SYSCONGLOMERATES.
      rows[i] = rf.makeRow(cds[i], null);
    }

    // update row in catalog (no indexes)
    boolean[] bArray = new boolean[3];
    for (int index = 0; index < 3; index++)
    {
      bArray[index] = false;
    }
    ti.updateRow(keyRow1, rows,
           SYSCONGLOMERATESRowFactory.SYSCONGLOMERATES_INDEX1_ID,
           bArray,
           (int[])null,
           tc);
  }
View Full Code Here

  public List getDependentsDescriptorList(String dependentID)
    throws StandardException
  {
    List          ddlList = newSList();
    DataValueDescriptor    dependentIDOrderable;
    TabInfo          ti = getNonCoreTI(SYSDEPENDS_CATALOG_NUM);

    /* Use dependentIDOrderable in both start and stop positions for scan */
    dependentIDOrderable = dvf.getCharDataValue(dependentID);

    /* Set up the start/stop position for the scan */
 
View Full Code Here

  public List getProvidersDescriptorList(String providerID)
    throws StandardException
  {
    List          ddlList = newSList();
    DataValueDescriptor    providerIDOrderable;
    TabInfo          ti = getNonCoreTI(SYSDEPENDS_CATALOG_NUM);

    /* Use providerIDOrderable in both start and stop positions for scan */
    providerIDOrderable = dvf.getCharDataValue(providerID);

    /* Set up the start/stop position for the scan */
 
View Full Code Here

    ScanController         scanController;
    TransactionController      tc;
    ExecRow              outRow;
    ExecRow             templateRow;
    List            ddl = newSList();
    TabInfo            ti = getNonCoreTI(SYSDEPENDS_CATALOG_NUM);
    SYSDEPENDSRowFactory    rf = (SYSDEPENDSRowFactory) ti.getCatalogRowFactory();


    // Get the current transaction controller
    tc = getTransactionCompile();

    outRow = rf.makeEmptyRow();

    scanController = tc.openScan(
      ti.getHeapConglomerate()// conglomerate to open
      false, // don't hold open across commit
      0, // for read
            TransactionController.MODE_TABLE,   // scans entire table.
            TransactionController.ISOLATION_REPEATABLE_READ,
      (FormatableBitSet) null,                     // all fields as objects
View Full Code Here

  {
    ExecIndexRow      keyRow1 = null;
    UUID          dependentID = dd.getUUID();
    UUID          providerID = dd.getProviderID();
    DataValueDescriptor    dependentIDOrderable = getValueAsDVD(dependentID);
    TabInfo          ti = getNonCoreTI(SYSDEPENDS_CATALOG_NUM);

    /* Use dependentIDOrderable in both start
     * and stop position for index 1 scan.
     */
    keyRow1 = (ExecIndexRow) exFactory.getIndexableRow(1);
    keyRow1.setColumn(1, dependentIDOrderable);

    // only drop the rows which have this providerID
    TupleFilter        filter = new DropDependencyFilter( providerID );

    ti.deleteRows( tc,
             keyRow1,        // start row
             ScanController.GE,
             null,                //qualifier
             filter,        // filter on base row
             keyRow1,        // stop row
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.sql.dictionary.TabInfo

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.