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

Examples of org.apache.derby.iapi.sql.dictionary.SchemaDescriptor


   */
  protected void dropSystemCatalog(TransactionController tc,
               CatalogRowFactory crf)
    throws StandardException
  {
    SchemaDescriptor    sd = bootingDictionary.getSystemSchemaDescriptor();
    TableDescriptor      td = bootingDictionary.getTableDescriptor(
                      crf.getCatalogName(),
                      sd, tc);
    ConglomerateDescriptor[]  cds = td.getConglomerateDescriptors();
    for (int index = 0; index < cds.length; index++)
View Full Code Here


          if (providingCols == null)
          {
            if (dep instanceof ViewDescriptor)
            {
              ViewDescriptor vd = (ViewDescriptor) dep;
              SchemaDescriptor compSchema;
              compSchema = dd.getSchemaDescriptor(vd.getCompSchemaId(), null);
              CompilerContext newCC = lcc.pushCompilerContext(compSchema);
              Parser  pa = newCC.getParser();

              // Since this is always nested inside another SQL
View Full Code Here

      // that, we need to regenerate the internal representation of that
      // sql and bind it again.

      // Here we get the trigger action sql and use the parser to build
      // the parse tree for it.
      SchemaDescriptor compSchema;
      compSchema = dd.getSchemaDescriptor(trd.getSchemaDescriptor().getUUID(), null);
      CompilerContext newCC = lcc.pushCompilerContext(compSchema);
      Parser  pa = newCC.getParser();
      StatementNode stmtnode = (StatementNode)pa.parseStatement(trd.getTriggerDefinition());
      lcc.popCompilerContext(newCC);
View Full Code Here

          ** Get the DataDictionary, so we can get the descriptor for
          ** the SPP to invalidate it.
          */
          DataDictionary dd = lcc.getDataDictionary();
           
          SchemaDescriptor sd = dd.getSchemaDescriptor(execSchemaName, lcc.getTransactionCompile(), true);
          SPSDescriptor spsd = dd.getSPSDescriptor(execStmtName, sd);
          spsd.makeInvalid(action, lcc);
          break;
        }
        }
View Full Code Here

    //Verify that all jar files on the database classpath are in the data dictionary.
    if (dbcp != null)
    {
      for (int ix=0;ix<dbcp.length;ix++)
      {
        SchemaDescriptor sd = dd.getSchemaDescriptor(dbcp[ix][IdUtil.DBCP_SCHEMA_NAME], null, false);

                FileInfoDescriptor fid = null
        if (sd != null)
          fid = dd.getFileInfoDescriptor(sd,dbcp[ix][IdUtil.DBCP_SQL_JAR_NAME]);     
View Full Code Here

  ** Methods of JarReader
  */
  public StorageFile getJarFile(String schemaName, String sqlName)
    throws StandardException {

    SchemaDescriptor sd = dd.getSchemaDescriptor(schemaName, null, true);
    FileInfoDescriptor fid = dd.getFileInfoDescriptor(sd,sqlName);
    if (fid == null)
      throw StandardException.newException(SQLState.LANG_FILE_DOES_NOT_EXIST, sqlName,schemaName);

    long generationId = fid.getGenerationId();
View Full Code Here

    ** We tell the data dictionary we're done writing at the end of
    ** the transaction.
    */
    dd.startWriting(lcc);

        SchemaDescriptor sd = dd.getSchemaDescriptor(schemaName, null, true);

        sd.drop(lcc);

  }
View Full Code Here

    else if (type == StatementType.SET_SCHEMA_USER)
    {
      thisSchemaName = lcc.getAuthorizationId();
    }
    // if schemaName is null, sd will be null and default schema will be used
    SchemaDescriptor sd = dd.getSchemaDescriptor(thisSchemaName, null, true);
    lcc.setDefaultSchema(sd);
  }
View Full Code Here

          usesSqlAuthorization=true;
        }
      } else {
        // Get the ids for non-core tables
        loadDictionaryTables(bootingTC, ddg, startParams);
        SchemaDescriptor sd = locateSchemaRow(SchemaDescriptor.IBM_SYSTEM_SCHEMA_NAME,
                 bootingTC);
        authorizationDatabaseOwner = sd.getAuthorizationId();
        String sqlAuth = PropertyUtil.getDatabaseProperty(bootingTC,
                    Property.SQL_AUTHORIZATION_PROPERTY);

        // Feature compatibility check.
        if (Boolean.valueOf
View Full Code Here

    }

    /*
    ** Manual lookup
    */
    SchemaDescriptor sd = locateSchemaRow(schemaName, tc);

    //if no schema found and schema name is SESSION, then create an
        //in-memory schema descriptor
    if (sd == null &&
            getDeclaredGlobalTemporaryTablesSchemaDescriptor().getSchemaName().equals(schemaName))
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.sql.dictionary.SchemaDescriptor

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.