Package org.apache.derby.iapi.sql.execute

Examples of org.apache.derby.iapi.sql.execute.ExecIndexRow


  public void dropAllConglomerateDescriptors(
            TableDescriptor td,
            TransactionController tc)
          throws StandardException
  {   
    ExecIndexRow      keyRow3 = null;
    DataValueDescriptor    tableIDOrderable;
    TabInfoImpl          ti = coreInfo[SYSCONGLOMERATES_CORE_NUM];

    /* Use tableIDOrderable in both start
     * and stop position for index 3 scan.
     */
    tableIDOrderable = getIDValueAsCHAR(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


  public void updateSchemaAuth(String schemaName,
                 String authorizationId,
                 TransactionController tc)
    throws StandardException
  {
    ExecIndexRow        keyRow;
    DataValueDescriptor      schemaNameOrderable;
    TabInfoImpl            ti = coreInfo[SYSSCHEMAS_CORE_NUM];

    /* Use schemaNameOrderable in both start
     * and stop position for index 1 scan.
     */
    schemaNameOrderable = new SQLVarchar(schemaName);

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

    SYSSCHEMASRowFactory  rf = (SYSSCHEMASRowFactory) ti.getCatalogRowFactory();
    ExecRow row = rf.makeEmptyRow();

    row.setColumn(SYSSCHEMASRowFactory.SYSSCHEMAS_SCHEMAAID,
View Full Code Here

  public void updateConglomerateDescriptor(ConglomerateDescriptor[] cds,
                       long conglomerateNumber,
                       TransactionController tc)
    throws StandardException
  {
    ExecIndexRow        keyRow1 = null;
    ExecRow             row;
    DataValueDescriptor      conglomIDOrderable;
    TabInfoImpl            ti = coreInfo[SYSCONGLOMERATES_CORE_NUM];
    SYSCONGLOMERATESRowFactory  rf = (SYSCONGLOMERATESRowFactory) ti.getCatalogRowFactory();
    boolean[] bArray = {false, false, false};

    for (int i = 0; i < cds.length; i++)
    {
      /* Use conglomIDOrderable in both start
       * and stop position for index 1 scan.
       */
      conglomIDOrderable = getIDValueAsCHAR(cds[i].getUUID());

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

      cds[i].setConglomerateNumber(conglomerateNumber);
      // build the row to be stuffed into SYSCONGLOMERATES.
      row = rf.makeRow(cds[i], null);

View Full Code Here

    /* Use dependentIDOrderable in both start and stop positions for scan */
    dependentIDOrderable = new SQLChar(dependentID);

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

    getDescriptorViaIndex(
      SYSDEPENDSRowFactory.SYSDEPENDS_INDEX1_ID,
      keyRow,
      (ScanQualifier [][]) null,
View Full Code Here

    /* Use providerIDOrderable in both start and stop positions for scan */
    providerIDOrderable = new SQLChar(providerID);

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

    getDescriptorViaIndex(
      SYSDEPENDSRowFactory.SYSDEPENDS_INDEX2_ID,
      keyRow,
      (ScanQualifier [][]) null,
View Full Code Here

   */
  public void dropStoredDependency(DependencyDescriptor dd,
                  TransactionController tc )
        throws StandardException
  {
    ExecIndexRow      keyRow1 = null;
    UUID          dependentID = dd.getUUID();
    UUID          providerID = dd.getProviderID();
    DataValueDescriptor    dependentIDOrderable = getIDValueAsCHAR(dependentID);
    TabInfoImpl          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,
View Full Code Here

  public void dropDependentsStoredDependencies(UUID dependentsUUID,
                     TransactionController tc,
                     boolean wait)
        throws StandardException 
  {
    ExecIndexRow      keyRow1 = null;
    DataValueDescriptor    dependentIDOrderable;
    TabInfoImpl          ti = getNonCoreTI(SYSDEPENDS_CATALOG_NUM);

    /* Use dependentIDOrderable in both start
     * and stop position for index 1 scan.
     */
    dependentIDOrderable = getIDValueAsCHAR(dependentsUUID);

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

    ti.deleteRow( tc, keyRow1, SYSDEPENDSRowFactory.SYSDEPENDS_INDEX1_ID,
        wait );

  }
View Full Code Here

    /* Use UUIDStringOrderable in both start and stop positions for scan */
    UUIDStringOrderable = getIDValueAsCHAR(uuid);

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

    return (AliasDescriptor)
          getDescriptorViaIndex(
            SYSALIASESRowFactory.SYSALIASES_INDEX2_ID,
            keyRow,
View Full Code Here

    char[] charArray = new char[1];
    charArray[0] = nameSpace;
    nameSpaceOrderable = new SQLChar(new String(charArray));

    /* Set up the start/stop position for the scan */
    ExecIndexRow keyRow = exFactory.getIndexableRow(3);
    keyRow.setColumn(1, new SQLChar(schemaId));
    keyRow.setColumn(2, aliasNameOrderable);
    keyRow.setColumn(3, nameSpaceOrderable);

    return (AliasDescriptor)
          getDescriptorViaIndex(
            SYSALIASESRowFactory.SYSALIASES_INDEX1_ID,
            keyRow,
View Full Code Here

    char[] charArray = new char[1];
    charArray[0] = ad.getNameSpace();

    /* Set up the start/stop position for the scan */
        ExecIndexRow keyRow1 = (ExecIndexRow) exFactory.getIndexableRow(3);
    keyRow1.setColumn(1, getIDValueAsCHAR(ad.getSchemaUUID()));
    keyRow1.setColumn(2, new SQLVarchar(ad.getDescriptorName()));
    keyRow1.setColumn(3, new SQLChar(new String(charArray)));

    ti.deleteRow( tc, keyRow1, SYSALIASESRowFactory.SYSALIASES_INDEX1_ID );

  }
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.sql.execute.ExecIndexRow

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.