Examples of startWriting()


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

    ** it seemed safer to do this whole operation in "write" mode.
    **
    ** We tell the data dictionary we're done writing at the end of
    ** the transaction.
    */
    dd.startWriting(lcc);

    // now do the real work

    // get an exclusive lock of the heap, to avoid deadlock on rows of
    // SYSCOLUMNS etc datadictionary tables (track 879) and phantom table
View Full Code Here

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

      /*
      ** Indicate that we are going to write the data
      ** dictionary.  We have probably already done this
      ** but it is ok to call startWriting more than once.
      */
      dd.startWriting(lcc);

      dm = dd.getDependencyManager();
      /*
      ** Clear out all the dependencies that exist
      ** before we recreate them so we don't grow
View Full Code Here

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


    /*
    ** Get busy time
    */
    dd.startWriting(lcc)

    if (tc == null) { //bug 4821 - tc will passed null if we want to use the user transaction
      tc = lcc.getTransactionExecute();
      wait = true;
    }
View Full Code Here

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

      /*
      ** Inform the data dictionary we are going
      ** to perform some DDL
      */
      dd.startWriting(lcc);

      for (java.util.ListIterator li = dd.getAllSPSDescriptors().listIterator(); li.hasNext(); )
      {
        SPSDescriptor spsd = (SPSDescriptor) li.next();

View Full Code Here

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

   
    DataDescriptorGenerator ddg = dd.getDataDescriptorGenerator();

    RoutinePermsDescriptor routinePermsDesc = ddg.newRoutinePermsDescriptor( aliasDescriptor, currentUser);

    dd.startWriting(lcc);
    for( Iterator itr = grantees.iterator(); itr.hasNext();)
    {
      // Keep track to see if any privileges are revoked by a revoke
      // statement. If a privilege is not revoked, we need to raise a
      // warning.
View Full Code Here

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

    ** it seemed safer to do this whole operation in "write" mode.
    **
    ** We tell the data dictionary we're done writing at the end of
    ** the transaction.
    */
    dd.startWriting(lcc);

   
    SchemaDescriptor sd = null;
    if (activation == null)
      sd = dd.getSysIBMSchemaDescriptor();
View Full Code Here

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

    ** it seemed safer to do this whole operation in "write" mode.
    **
    ** We tell the data dictionary we're done writing at the end of
    ** the transaction.
    */
    dd.startWriting(lcc);

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

View Full Code Here

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

    ** Indicate that we are about to modify the data dictionary.
    **
    ** We tell the data dictionary we're done writing at the end of
    ** the transaction.
    */
    dd.startWriting(lcc);

    SchemaDescriptor triggerSd = getSchemaDescriptorForCreate(dd, activation, triggerSchemaName);

    if (spsCompSchemaId == null) {
      SchemaDescriptor def = lcc.getDefaultSchema();
View Full Code Here

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

    ** it seemed safer to do this whole operation in "write" mode.
    **
    ** We tell the data dictionary we're done writing at the end of
    ** the transaction.
    */
    dd.startWriting(lcc);

    SchemaDescriptor sd = DDLConstantAction.getSchemaDescriptorForCreate(dd, activation, schemaName);

    /* Create a new table descriptor.
     * (Pass in row locking, even though meaningless for views.)
View Full Code Here

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

    ** it seemed safer to do this whole operation in "write" mode.
    **
    ** We tell the data dictionary we're done writing at the end of
    ** the transaction.
    */
    dd.startWriting(lcc);

    /* Get the table descriptor. */
    td = dd.getTableDescriptor(tableId);

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