Package org.apache.derby.catalog

Examples of org.apache.derby.catalog.UUID


      {
        continue;
      }

      TableDescriptor  pktd = refcd.getTableDescriptor();
      UUID pkuuid = refcd.getIndexId();
      ConglomerateDescriptor pkIndexConglom = pktd.getConglomerateDescriptor(pkuuid);

      TableDescriptor refTd = cd.getTableDescriptor();
      fkVector.addElement(new FKInfo(
                  fkNames,              // foreign key names
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

  (
           Activation activation)
    throws StandardException
  {
    TableDescriptor td;
    UUID tableID;

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

     *
     * If we have a special trigger vti, then we branch off and get
     * its rcl from the trigger table that is waiting for us in
     * the compiler context.
     */
    UUID triggerTableId;
    if ((triggerTableId = getSpecialTriggerVTITableName(lcc, newInvocation.getJavaClassName())) != null
    {
      TableDescriptor td = getDataDictionary().getTableDescriptor(triggerTableId);
      resultColumns = genResultColList(td);

View Full Code Here

    }

    DataValueDescriptor col;
    String scratch;
    UUIDFactory uuidFactory = getUUIDFactory();
    UUID statUUID, statReferenceUUID, statTableUUID;
    String statName;
   
    /* 1st column is UUID */
    col = row.getColumn(SYSSTATISTICS_ID);
    scratch = col.getString();
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.