Examples of addDescriptor()


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

      // same namespace
      TableDescriptor td;
      DataDescriptorGenerator ddg = dd.getDataDescriptorGenerator();
      td = ddg.newTableDescriptor(aliasName, sd, TableDescriptor.SYNONYM_TYPE,
            TableDescriptor.DEFAULT_LOCK_GRANULARITY);
      dd.addDescriptor(td, sd, DataDictionary.SYSTABLES_CATALOG_NUM, false, tc);
   
    default:
      break;
    }
View Full Code Here

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

   
    default:
      break;
    }

    dd.addDescriptor(ads, null, DataDictionary.SYSALIASES_CATALOG_NUM,
             false, lcc.getTransactionExecute());
  }
}
View Full Code Here

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

    sd = ddg.newSchemaDescriptor(schemaName,
                  thisAid,
                  tmpSchemaId);

    dd.addDescriptor(sd, null, DataDictionary.SYSSCHEMAS_CATALOG_NUM, false, tc);
  }
}
View Full Code Here

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

                  referencingNew,
                  oldReferencingName,
                  newReferencingName);


    dd.addDescriptor(triggerd, triggerSd,
                DataDictionary.SYSTRIGGERS_CATALOG_NUM, false,
                tc);


    /* 
 
View Full Code Here

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

    td = ddg.newTableDescriptor(tableName,
                  sd,
                  tableType,
                  TableDescriptor.ROW_LOCK_GRANULARITY);

    dd.addDescriptor(td, sd, DataDictionary.SYSTABLES_CATALOG_NUM, false, tc);
    toid = td.getUUID();

    // for each column, stuff system.column
    ColumnDescriptor[] cdlArray = new ColumnDescriptor[columnInfo.length];
    int index = 1;
View Full Code Here

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

      }
    }
    //store view's dependency on various privileges in the dependeny system
    storeViewTriggerDependenciesOnPrivileges(activation, vd);

    dd.addDescriptor(vd, sd, DataDictionary.SYSVIEWS_CATALOG_NUM, true, tc);
  }
}
View Full Code Here

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

    {
      ConglomerateDescriptor cgd =
        ddg.newConglomerateDescriptor(conglomId, indexName, true,
                      indexRowGenerator, isConstraint,
                      conglomerateUUID, td.getUUID(), sd.getUUID() );
      dd.addDescriptor(cgd, sd, DataDictionary.SYSCONGLOMERATES_CATALOG_NUM, false, tc);
      // add newly added conglomerate to the list of conglomerate
      // descriptors in the td.
      ConglomerateDescriptorList cdl =
        td.getConglomerateDescriptorList();
      cdl.add(cgd);
View Full Code Here

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

    ConglomerateDescriptor cgd =
      ddg.newConglomerateDescriptor(conglomId, indexName, true,
                      indexRowGenerator, isConstraint,
                      conglomerateUUID, td.getUUID(), sd.getUUID() );

    dd.addDescriptor(cgd, sd, DataDictionary.SYSCONGLOMERATES_CATALOG_NUM, false, tc);

    // add newly added conglomerate to the list of conglomerate descriptors
    // in the td.
    ConglomerateDescriptorList cdl = td.getConglomerateDescriptorList();
    cdl.add(cgd);
View Full Code Here

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

      {
        StatisticsDescriptor statDesc =
          new StatisticsDescriptor(dd, dd.getUUIDFactory().createUUID(),
                        cgd.getUUID(), td.getUUID(), "I", new StatisticsImpl(numRows, c[i]),
                        i + 1);
        dd.addDescriptor(statDesc, null,
                 DataDictionary.SYSSTATISTICS_CATALOG_NUM,
                 true, tc);
      }
    }
  }
View Full Code Here

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

    DataDescriptorGenerator ddg = dd.getDataDescriptorGenerator();

    if ( tableType != TableDescriptor.GLOBAL_TEMPORARY_TABLE_TYPE )
    {
      td = ddg.newTableDescriptor(tableName, sd, tableType, lockGranularity);
      dd.addDescriptor(td, sd, DataDictionary.SYSTABLES_CATALOG_NUM, false, tc);
    } else
    {
      td = ddg.newTableDescriptor(tableName, sd, tableType, onCommitDeleteRows, onRollbackDeleteRows);
      td.setUUID(dd.getUUIDFactory().createUUID());
    }
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.