Examples of inTrigger()


Examples of org.apache.derby.iapi.sql.conn.StatementContext.inTrigger()

      {
        parentStatementContext = getStatementContext();
        statementContext = new GenericStatementContext(this);
      }

      inTrigger = parentStatementContext.inTrigger() || (outermostTrigger == parentStatementDepth);
      parentIsAtomic = parentStatementContext.isAtomic();
      statementContext.setSQLAllowed(parentStatementContext.getSQLAllowed(), false);
      if (parentStatementContext.getSystemCode())
        statementContext.setSystemCode();
    }
View Full Code Here

Examples of org.apache.derby.iapi.sql.conn.StatementContext.inTrigger()

   * @see LanguageConnectionContext#setIsolationLevel
   */
  public void setIsolationLevel(int isolationLevel) throws StandardException
  {
    StatementContext stmtCtxt = getStatementContext();
    if (stmtCtxt!= null && stmtCtxt.inTrigger())
      throw StandardException.newException(SQLState.LANG_NO_XACT_IN_TRIGGER, getTriggerExecutionContext().toString());

    // find if there are any held cursors from previous isolation level.
    // if yes, then throw an exception that isolation change not allowed until
    // the held cursors are closed.
View Full Code Here

Examples of org.apache.derby.iapi.sql.conn.StatementContext.inTrigger()

            }

            statementContext.setSQLSessionContext(
                parentStatementContext.getSQLSessionContext());

            inTrigger = parentStatementContext.inTrigger() || (outermostTrigger == parentStatementDepth);
            parentIsAtomic = parentStatementContext.isAtomic();
            statementContext.setSQLAllowed(parentStatementContext.getSQLAllowed(), false);
            if (parentStatementContext.getSystemCode())
                statementContext.setSystemCode();
        } else {
View Full Code Here

Examples of org.apache.derby.iapi.sql.conn.StatementContext.inTrigger()

     * @see LanguageConnectionContext#setIsolationLevel
     */
    public void setIsolationLevel(int isolationLevel) throws StandardException
    {
        StatementContext stmtCtxt = getStatementContext();
        if (stmtCtxt!= null && stmtCtxt.inTrigger())
            throw StandardException.newException(SQLState.LANG_NO_XACT_IN_TRIGGER, getTriggerExecutionContext().toString());

        // find if there are any held cursors from previous isolation level.
        // if yes, then throw an exception that isolation change not allowed until
        // the held cursors are closed.
View Full Code Here

Examples of org.apache.derby.iapi.sql.conn.StatementContext.inTrigger()

    if (autoCommit)
      throw newSQLException(SQLState.NO_SAVEPOINT_WHEN_AUTO);

    //Bug 4507 - savepoint not allowed inside trigger
    StatementContext stmtCtxt = getLanguageConnection().getStatementContext();
    if (stmtCtxt!= null && stmtCtxt.inTrigger())
      throw newSQLException(SQLState.NO_SAVEPOINT_IN_TRIGGER);
  }

  // used by release/rollback to check savepoint argument
  private void verifySavepointArg(Savepoint savepoint) throws SQLException
View Full Code Here

Examples of org.apache.derby.iapi.sql.conn.StatementContext.inTrigger()

      {
        parentStatementContext = getStatementContext();
        statementContext = new GenericStatementContext(this, tran);
      }

      inTrigger = parentStatementContext.inTrigger() || (outermostTrigger == parentStatementDepth);
      parentIsAtomic = parentStatementContext.isAtomic();
      statementContext.setSQLAllowed(parentStatementContext.getSQLAllowed(), false);
      if (parentStatementContext.getSystemCode())
        statementContext.setSystemCode();
    }
View Full Code Here

Examples of org.apache.derby.iapi.sql.conn.StatementContext.inTrigger()

   * @see LanguageConnectionContext#setIsolationLevel
   */
  public void setIsolationLevel(int isolationLevel) throws StandardException
  {
    StatementContext stmtCtxt = getStatementContext();
    if (stmtCtxt!= null && stmtCtxt.inTrigger())
      throw StandardException.newException(SQLState.LANG_NO_XACT_IN_TRIGGER, getTriggerExecutionContext().toString());

    // find if there are any held cursors from previous isolation level.
    // if yes, then throw an exception that isolation change not allowed until
    // the held cursors are closed.
View Full Code Here

Examples of org.apache.derby.iapi.sql.conn.StatementContext.inTrigger()

      {
        parentStatementContext = getStatementContext();
        statementContext = new GenericStatementContext(this);
      }

      inTrigger = parentStatementContext.inTrigger() || (outermostTrigger == parentStatementDepth);
      parentIsAtomic = parentStatementContext.isAtomic();
      statementContext.setSQLAllowed(parentStatementContext.getSQLAllowed(), false);
      if (parentStatementContext.getSystemCode())
        statementContext.setSystemCode();
    }
View Full Code Here

Examples of org.apache.derby.iapi.sql.conn.StatementContext.inTrigger()

   * @see LanguageConnectionContext#setIsolationLevel
   */
  public void setIsolationLevel(int isolationLevel) throws StandardException
  {
    StatementContext stmtCtxt = getStatementContext();
    if (stmtCtxt!= null && stmtCtxt.inTrigger())
      throw StandardException.newException(SQLState.LANG_NO_XACT_IN_TRIGGER, getTriggerExecutionContext().toString());

    // find if there are any held cursors from previous isolation level.
    // if yes, then throw an exception that isolation change not allowed until
    // the held cursors are closed.
View Full Code Here

Examples of org.apache.derby.iapi.sql.conn.StatementContext.inTrigger()

      }

      statementContext.setSQLSessionContext(
        parentStatementContext.getSQLSessionContext());

      inTrigger = parentStatementContext.inTrigger() || (outermostTrigger == parentStatementDepth);
      parentIsAtomic = parentStatementContext.isAtomic();
      statementContext.setSQLAllowed(parentStatementContext.getSQLAllowed(), false);
      if (parentStatementContext.getSystemCode())
        statementContext.setSystemCode();
    } else {
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.