Package org.apache.derby.iapi.types

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


   */
  public void  dropColumnDescriptor(UUID tableID,
        String columnName, TransactionController tc)
    throws StandardException
  {
    DataValueDescriptor  columnNameOrderable;
    DataValueDescriptor  tableIdOrderable;

    /* Use tableIDOrderable and columnNameOrderable in both start
     * and stop position for scan.
     */
    tableIdOrderable = getIDValueAsCHAR(tableID);
View Full Code Here


   * @exception StandardException    Thrown on error
   */
  public void  dropAllColumnDescriptors(UUID tableID, TransactionController tc)
    throws StandardException
  {
    DataValueDescriptor    tableIdOrderable;

    /* Use tableIDOrderable in both start and stop position for scan. */
    tableIdOrderable = getIDValueAsCHAR(tableID);

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

   * @exception StandardException    Thrown on error
   */
  public void  dropAllTableAndColPermDescriptors(UUID tableID, TransactionController tc)
    throws StandardException
  {
    DataValueDescriptor    tableIdOrderable;

    // In Derby authorization mode, permission catalogs may not be present
    if (!usesSqlAuthorization)
      return;

View Full Code Here

    using just the "TABLEID" column */

    // First get all the ColPermsDescriptor for the given tableid from  
    //SYSCOLPERMS using getDescriptorViaIndex().
    List permissionDescriptorsList;//all ColPermsDescriptor for given tableid
    DataValueDescriptor    tableIDOrderable = getIDValueAsCHAR(tableID);
    TabInfoImpl  ti = getNonCoreTI(SYSCOLPERMS_CATALOG_NUM);
    SYSCOLPERMSRowFactory rf = (SYSCOLPERMSRowFactory) ti.getCatalogRowFactory();
    ExecIndexRow keyRow = exFactory.getIndexableRow(1);
    keyRow.setColumn(1, tableIDOrderable);
    permissionDescriptorsList = newSList();
View Full Code Here

  public void  dropAllRoutinePermDescriptors(UUID routineID, TransactionController tc)
    throws StandardException
  {
    TabInfoImpl  ti = getNonCoreTI(SYSROUTINEPERMS_CATALOG_NUM);
    SYSROUTINEPERMSRowFactory rf = (SYSROUTINEPERMSRowFactory) ti.getCatalogRowFactory();
    DataValueDescriptor  routineIdOrderable;
    ExecRow curRow;
    PermissionsDescriptor perm;

    // In Derby authorization mode, permission catalogs may not be present
    if (!usesSqlAuthorization)
View Full Code Here

    ConglomerateController heapCC = tc.openConglomerate(
      ti.getHeapConglomerate(), false, 0,
      TransactionController.MODE_RECORD,
      TransactionController.ISOLATION_REPEATABLE_READ);

    DataValueDescriptor authIdOrderable = new SQLVarchar(authId);
    ScanQualifier[][] scanQualifier = exFactory.getScanQualifier(1);

    scanQualifier[0][0].setQualifier(
      columnNo - 1/* to zero-based */
      authIdOrderable,
 
View Full Code Here

    HashMap hm = new HashMap();

    TabInfoImpl ti = getNonCoreTI(SYSROLES_CATALOG_NUM);
    SYSROLESRowFactory rf = (SYSROLESRowFactory) ti.getCatalogRowFactory();

    DataValueDescriptor isDefOrderable = new SQLVarchar("N");
    ScanQualifier[][] scanQualifier = exFactory.getScanQualifier(1);

    scanQualifier[0][0].setQualifier(
      SYSROLESRowFactory.SYSROLES_ISDEF - 1, /* to zero-based */
      isDefOrderable,
 
View Full Code Here

    ConglomerateController heapCC = tc.openConglomerate(
      ti.getHeapConglomerate(), false, 0,
      TransactionController.MODE_RECORD,
      TransactionController.ISOLATION_REPEATABLE_READ);

    DataValueDescriptor authIdOrderable = new SQLVarchar(authId);
    ScanQualifier[][] scanQualifier = exFactory.getScanQualifier(1);

    scanQualifier[0][0].setQualifier(
      granteeColnoInIndex - 1/* to zero-based */
      authIdOrderable,
 
View Full Code Here

                    TransactionController tc)
    throws StandardException
  {
    ExecIndexRow        keyRow1 = null;
    ExecRow              row;
    DataValueDescriptor      refIDOrderable;
    DataValueDescriptor      columnNameOrderable;
    TabInfoImpl            ti = coreInfo[SYSCOLUMNS_CORE_NUM];
    SYSCOLUMNSRowFactory  rf = (SYSCOLUMNSRowFactory) ti.getCatalogRowFactory();

    /* Use objectID/columnName in both start
     * and stop position for index 1 scan.
View Full Code Here

   */
  private ViewDescriptor getViewDescriptorScan(TableDescriptor tdi)
    throws StandardException
  {
    ViewDescriptor      vd;
    DataValueDescriptor    viewIdOrderable;
    TabInfoImpl          ti = getNonCoreTI(SYSVIEWS_CATALOG_NUM);
    UUID          viewID = tdi.getUUID();

    /* Use viewIdOrderable in both start
     * and stop position for scan.
View Full Code Here

TOP

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

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.