Examples of newTableDescriptor()


Examples of org.apache.derby.iapi.sql.dictionary.DataDescriptorGenerator.newTableDescriptor()

    //
    DataDescriptorGenerator ddg = dd.getDataDescriptorGenerator();

    if ( tableType != TableDescriptor.GLOBAL_TEMPORARY_TABLE_TYPE )
    {
      td = ddg.newTableDescriptor(tableName, sd, tableType, lockGranularity);
      dd.addDescriptor(td, sd, DataDictionary.SYSTABLES_CATALOG_NUM, false, tc);
    } else
    {
      td = ddg.newTableDescriptor(tableName, sd, tableType, onCommitDeleteRows, onRollbackDeleteRows);
      td.setUUID(dd.getUUIDFactory().createUUID());
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.DataDescriptorGenerator.newTableDescriptor()

    {
      td = ddg.newTableDescriptor(tableName, sd, tableType, lockGranularity);
      dd.addDescriptor(td, sd, DataDictionary.SYSTABLES_CATALOG_NUM, false, tc);
    } else
    {
      td = ddg.newTableDescriptor(tableName, sd, tableType, onCommitDeleteRows, onRollbackDeleteRows);
      td.setUUID(dd.getUUIDFactory().createUUID());
    }
    toid = td.getUUID();

    // Save the TableDescriptor off in the Activation
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.DataDescriptorGenerator.newTableDescriptor()

      // To prevent any possible deadlocks with SYSTABLES, we insert a row into
      // SYSTABLES also for synonyms. This also ensures tables/views/synonyms share
      // 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);
   
    default:
      break;
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.DataDescriptorGenerator.newTableDescriptor()

    {
      SanityManager.ASSERT(lockGranularity.length() == 1, "Fifth column type incorrect");
    }

    // RESOLVE - Deal with lock granularity
    tabDesc = ddg.newTableDescriptor(tableName, schema, tableTypeEnum, lockGranularity.charAt(0));
    tabDesc.setUUID(tableUUID);
    return tabDesc;
  }

  /**
 
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.DataDescriptorGenerator.newTableDescriptor()

    /* Create a new table descriptor.
     * (Pass in row locking, even though meaningless for views.)
     */
    DataDescriptorGenerator ddg = dd.getDataDescriptorGenerator();
    td = ddg.newTableDescriptor(tableName,
                  sd,
                  tableType,
                  TableDescriptor.ROW_LOCK_GRANULARITY);

    dd.addDescriptor(td, sd, DataDictionary.SYSTABLES_CATALOG_NUM, false, tc);
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.DataDescriptorGenerator.newTableDescriptor()

    if (ad.getAliasType() == AliasInfo.ALIAS_TYPE_SYNONYM_AS_CHAR)
    {
      // Drop the entry from SYSTABLES as well.
      DataDescriptorGenerator ddg = dd.getDataDescriptorGenerator();
      TableDescriptor td = ddg.newTableDescriptor(aliasName, sd,
        TableDescriptor.SYNONYM_TYPE, TableDescriptor.DEFAULT_LOCK_GRANULARITY);
      dd.dropTableDescriptor(td, sd, tc);
    }
    else
      dd.dropAllRoutinePermDescriptors(ad.getUUID(), tc);
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.DataDescriptorGenerator.newTableDescriptor()

    //
    DataDescriptorGenerator ddg = dd.getDataDescriptorGenerator();

    if ( tableType != TableDescriptor.GLOBAL_TEMPORARY_TABLE_TYPE )
    {
      td = ddg.newTableDescriptor(tableName, sd, tableType, lockGranularity);
      dd.addDescriptor(td, sd, DataDictionary.SYSTABLES_CATALOG_NUM, false, tc);
    } else
    {
      td = ddg.newTableDescriptor(tableName, sd, tableType, onCommitDeleteRows, onRollbackDeleteRows);
      td.setUUID(dd.getUUIDFactory().createUUID());
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.DataDescriptorGenerator.newTableDescriptor()

    {
      td = ddg.newTableDescriptor(tableName, sd, tableType, lockGranularity);
      dd.addDescriptor(td, sd, DataDictionary.SYSTABLES_CATALOG_NUM, false, tc);
    } else
    {
      td = ddg.newTableDescriptor(tableName, sd, tableType, onCommitDeleteRows, onRollbackDeleteRows);
      td.setUUID(dd.getUUIDFactory().createUUID());
    }
    toid = td.getUUID();

    // Save the TableDescriptor off in the Activation
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.DataDescriptorGenerator.newTableDescriptor()

    {
      SanityManager.ASSERT(lockGranularity.length() == 1, "Fifth column type incorrect");
    }

    // RESOLVE - Deal with lock granularity
    tabDesc = ddg.newTableDescriptor(tableName, schema, tableTypeEnum, lockGranularity.charAt(0));
    tabDesc.setUUID(tableUUID);
    return tabDesc;
  }

  /**
 
View Full Code Here

Examples of org.apache.derby.iapi.sql.dictionary.DataDescriptorGenerator.newTableDescriptor()

    //
    DataDescriptorGenerator ddg = dd.getDataDescriptorGenerator();

    if ( tableType != TableDescriptor.GLOBAL_TEMPORARY_TABLE_TYPE )
    {
      td = ddg.newTableDescriptor(tableName, sd, tableType, lockGranularity);
      dd.addDescriptor(td, sd, DataDictionary.SYSTABLES_CATALOG_NUM, false, tc);
    } else
    {
      td = ddg.newTableDescriptor(tableName, sd, tableType, onCommitDeleteRows, onRollbackDeleteRows);
      td.setUUID(dd.getUUIDFactory().createUUID());
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.