Package org.apache.derby.iapi.sql.dictionary

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


                        role,
                        grantee,
                        grantor, // dbo for now
                        withAdminOption,
                        false)// not definition
                    dd.addDescriptor(
                        rgd,
                        null,  // parent
                        DataDictionary.SYSROLES_CATALOG_NUM,
                        false, // no duplicatesAllowed
                        tc);
View Full Code Here


    {
      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

        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();
View Full Code Here

          new StatisticsDescriptor(dd,
            dd.getUUIDFactory().createUUID(),
            conglomerateUUID, td.getUUID(), "I",
            new StatisticsImpl(numRows, c[i]), i + 1);

        dd.addDescriptor(statDesc, null,
                 DataDictionary.SYSSTATISTICS_CATALOG_NUM,
                 true, tc);
      }
    }
  }
View Full Code Here

    // Drop the table
    dd.dropTableDescriptor(td, sd, tc);
    // Change the table name of the table descriptor
    td.setTableName(newTableName);
    // add the table descriptor with new name
    dd.addDescriptor(td, sd, DataDictionary.SYSTABLES_CATALOG_NUM,
             false, tc);
  }

  //do necessary work for rename column at execute time.
  private void execGutsRenameColumn
View Full Code Here

    }

    // Drop the column
    dd.dropColumnDescriptor(td.getUUID(), oldObjectName, tc);
    columnDescriptor.setColumnName(newObjectName);
    dd.addDescriptor(columnDescriptor, td,
             DataDictionary.SYSCOLUMNS_CATALOG_NUM, false, tc);

    //Need to do following to reload the cache so that table
    //descriptor now has new column name
    td = dd.getTableDescriptor(td.getObjectID());
View Full Code Here

    /* Drop the index descriptor */
    dd.dropConglomerateDescriptor(conglomerateDescriptor, tc);
    // Change the index name of the index descriptor
    conglomerateDescriptor.setConglomerateName(newObjectName);
    // add the index descriptor with new name
    dd.addDescriptor(conglomerateDescriptor, sd,
             DataDictionary.SYSCONGLOMERATES_CATALOG_NUM, false, tc);
  }

  /* Following is used for error handling by repSourceCompilerUtilities
   * in it's method checkIfRenameDependency */
 
View Full Code Here

      // 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);
            break;
   
    default:
      break;
    }
View Full Code Here

   
    default:
      break;
    }

    dd.addDescriptor(ads, null, DataDictionary.SYSALIASES_CATALOG_NUM,
             false, tc);

        adjustUDTDependencies( lcc, dd, ads, true );
  }
View Full Code Here

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

    dd.addDescriptor(sd, null, DataDictionary.SYSSCHEMAS_CATALOG_NUM, false, tc);
  }
}
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.