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

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


    ** we must have just read ourselves in. 
    ** So we will get the corresponding schema
    ** descriptor from the data dictionary.
    */

    SchemaDescriptor sd = dd.getSchemaDescriptor(schemaName, tc, true);
   
    /* Try to get the TableDescriptor from
     * the Activation. We will go to the
     * DD if not there. (It should always be
     * there except when in a target.)
View Full Code Here


    // find the DataDictionary
    DataDictionary dd = lcc.getDataDictionary();


    // get the SchemaDescriptor
    SchemaDescriptor sd = dd.getSchemaDescriptor(schemaName, tc, true);
    if ( !isIndex)
    {
      // get the TableDescriptor for the table
      TableDescriptor td = dd.getTableDescriptor(conglomerateName, sd);
View Full Code Here

    int            baseColumns = 0;
    DataValueFactory    dvf;
    long          indexRows;
    ConglomerateController  baseCC = null;
    ConglomerateController  indexCC = null;
    SchemaDescriptor    sd;
    ConstraintDescriptor  constraintDesc;

    LanguageConnectionContext lcc = ConnectionUtil.getCurrentLCC();
    tc = lcc.getTransactionExecute();
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

  private SchemaDescriptor getSchemaDescriptorBody(
    UUID schemaId,
    int isolationLevel,
    TransactionController tc) throws StandardException
  {
    SchemaDescriptor    sd = null;
   
    if ( tc == null )
    {
        tc = getTransactionCompile();
        }

    /*
    ** Check for APP and SYS schemas before going any
    ** further.
    */
    if (schemaId != null)
    {
      if (getSystemSchemaDescriptor().getUUID().equals(schemaId))
      {
        return getSystemSchemaDescriptor();
      }
      else if (getSysIBMSchemaDescriptor().getUUID().equals(schemaId))
      {
        return getSysIBMSchemaDescriptor();
      }
    }

    /*
    ** If we aren't booting, lets see if we already
    ** have the descriptor.  If we are in the middle
    ** of booting we cannot get the LanguageConnectionContext.
    */
    if (!booting)
    {

      LanguageConnectionContext  lcc = getLCC();

      if (lcc != null)
      {
        sd = lcc.getDefaultSchema();

        if ((sd != null) &&
            ((schemaId == null) ||
              schemaId.equals(sd.getUUID())))
        {
          return sd;
        }
      }
    }
View Full Code Here

    DataValueDescriptor    schemaNameOrderable;
    TabInfoImpl          ti = coreInfo[SYSSCHEMAS_CORE_NUM];

    if (SanityManager.DEBUG)
    {
      SchemaDescriptor sd = getSchemaDescriptor(schemaName, getTransactionCompile(), true);
      if (!isSchemaEmpty(sd))
      {
        SanityManager.THROWASSERT("Attempt to drop schema "+schemaName+" that is not empty");
      }
    }
View Full Code Here

      {
        SanityManager.THROWASSERT("null schema for non system table "+tableName);
      }
    }

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

    LanguageConnectionContext lcc       = ConnectionUtil.getCurrentLCC();
    TransactionController     nested_tc = null;

    try {

            SchemaDescriptor sd =
                data_dictionary.getSchemaDescriptor(
                    schemaName, nested_tc, true);
            TableDescriptor td =
                data_dictionary.getTableDescriptor(tableName, sd);
            nested_tc =
View Full Code Here

        if ( dtd == null ) { return null; }

        BaseTypeIdImpl btii = dtd.getTypeId().getBaseTypeId();
        if ( !btii.isAnsiUDT() ) { return null; }

        SchemaDescriptor sd = getSchemaDescriptor( btii.getSchemaName(), tc, true );
        AliasDescriptor ad = getAliasDescriptor
            ( sd.getUUID().toString(), btii.getUnqualifiedName(), AliasInfo.ALIAS_NAME_SPACE_UDT_AS_CHAR );

        return ad;
    }
View Full Code Here

    String                  tableName,
    DataDictionary          data_dictionary,
    TransactionController   tc)
        throws StandardException
  {
        SchemaDescriptor sd =
            data_dictionary.getSchemaDescriptor(schemaName, tc, true);
        TableDescriptor  td =
            data_dictionary.getTableDescriptor(tableName, sd);

        if (td == null)
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.