Package org.apache.derby.catalog

Examples of org.apache.derby.catalog.UUID


    List sdl = getStatistics();

    if (cd == null)
      return (sdl.size() > 0);

    UUID cdUUID = cd.getUUID();

    for (Iterator li = sdl.iterator(); li.hasNext(); )
    {
      StatisticsDescriptor statDesc = (StatisticsDescriptor) li.next();
      if (cdUUID.equals(statDesc.getReferenceID()))
        return true;

    }

    return false;
View Full Code Here


   */
  public double selectivityForConglomerate(ConglomerateDescriptor cd,
                       int numKeys)
    throws StandardException
  {
    UUID referenceUUID = cd.getUUID();

    List sdl = getStatistics();
    for (Iterator li = sdl.iterator(); li.hasNext(); )
    {
      StatisticsDescriptor statDesc = (StatisticsDescriptor) li.next();

      if (!referenceUUID.equals(statDesc.getReferenceID()))
        continue;
     
      if (statDesc.getColumnCount() != numKeys)
        continue;
     
View Full Code Here

                      activation.getLanguageConnectionContext();
      DataDictionary dd = lcc.getDataDictionary();
      //get the descriptors
      ConglomerateDescriptor cd = dd.getConglomerateDescriptor(indexCID);

      UUID tableID = cd.getTableID();
      TableDescriptor td = dd.getTableDescriptor(tableID);
      String tableName = td.getName();
     
      if (indexOrConstraintName == null) // no index name passed in
      {
View Full Code Here

  public void  executeConstantAction( Activation activation )
            throws StandardException
  {
    ConstraintDescriptor    conDesc = null;
    TableDescriptor        td;
    UUID              indexId = null;
    String            indexUUIDString;

    LanguageConnectionContext lcc = activation.getLanguageConnectionContext();
    DataDictionary dd = lcc.getDataDictionary();
    DependencyManager dm = dd.getDependencyManager();
View Full Code Here

  public void  executeConstantAction( Activation activation )
            throws StandardException
  {
    ConstraintDescriptor    conDesc = null;
    TableDescriptor        td;
    UUID              indexId = null;
    String            indexUUIDString;

    LanguageConnectionContext lcc = activation.getLanguageConnectionContext();
    DataDictionary dd = lcc.getDataDictionary();
    DependencyManager dm = dd.getDependencyManager();
View Full Code Here

  public void  executeConstantAction( Activation activation )
            throws StandardException
  {
    boolean            forCreateTable;
    TableDescriptor       td;
    UUID             toid;
    ColumnDescriptor      columnDescriptor;
    int[]            baseColumnPositions;
    IndexRowGenerator      indexRowGenerator = null;
    ExecRow[]          baseRows;
    ExecIndexRow[]        indexRows;
View Full Code Here

    SchemaDescriptor sd = (schema == null) ?
        getSystemSchemaDescriptor()
        : schema;

    UUID schemaUUID = sd.getUUID();
   
    if (SchemaDescriptor.STD_SYSTEM_DIAG_SCHEMA_NAME.equals(
        sd.getSchemaName()))
    {
      TableDescriptor td =
        new TableDescriptor(this, tableName, sd,
            TableDescriptor.VTI_TYPE,
            TableDescriptor.DEFAULT_LOCK_GRANULARITY);
     
      // ensure a vti class exists
      if (getVTIClass(td, false) != null)
        return td;
     
      // otherwise just standard search
    }
       
    TableKey tableKey =   new TableKey(schemaUUID, tableName);

    /* Only use the cache if we're in compile-only mode */
    if (getCacheMode() == DataDictionary.COMPILE_ONLY_MODE)
    {
      NameTDCacheable cacheEntry = (NameTDCacheable) nameTdCache.find(tableKey);
      if (cacheEntry != null)
      {
        retval = cacheEntry.getTableDescriptor();
        // bind in previous command might have set refernced cols
        retval.setReferencedColumnMap(null);
        nameTdCache.release(cacheEntry);
      }
      return retval;
    }

    return getTableDescriptorIndex1Scan(tableName, schemaUUID.toString());

  }
View Full Code Here

    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.
     */
    viewIdOrderable = getIDValueAsCHAR(viewID);
View Full Code Here

  public SPSDescriptor getSPSDescriptor(String stmtName, SchemaDescriptor sd)
    throws StandardException
  {
    SPSDescriptor    sps = null;
    TableKey      stmtKey;
    UUID        schemaUUID;

    /*
    ** If we didn't get a schema descriptor, we had better
    ** have a system table.
    */
    if (SanityManager.DEBUG)
    {
      if (sd == null)
      {
        SanityManager.THROWASSERT("null schema for statement "+stmtName)
      }
    }

    schemaUUID = sd.getUUID();
    stmtKey = new TableKey(schemaUUID, stmtName);

    /* Only use the cache if we're in compile-only mode */
    if ((spsNameCache != null) &&
      (getCacheMode() == DataDictionary.COMPILE_ONLY_MODE))
    {
      SPSNameCacheable cacheEntry = (SPSNameCacheable) spsNameCache.find(stmtKey);
      if (cacheEntry != null)
      {
        sps = cacheEntry.getSPSDescriptor();
        spsNameCache.release(cacheEntry);
      }
      //System.out.println("found in cache " + stmtName);
      //System.out.println("stmt text " + sps.getText());
      return sps;
    }

    return getSPSDescriptorIndex1Scan(stmtName, schemaUUID.toString());
  }
View Full Code Here

   * parameter list.
   */
  private void addSPSParams(SPSDescriptor spsd, TransactionController tc, boolean wait)
      throws StandardException
  {
    UUID           uuid = spsd.getUUID();
    DataTypeDescriptor[] params = spsd.getParams();
    Object[] parameterDefaults = spsd.getParameterDefaults();

    if (params == null)
      return;
View Full Code Here

TOP

Related Classes of org.apache.derby.catalog.UUID

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.