Package org.apache.derby.iapi.db

Examples of org.apache.derby.iapi.db.TriggerExecutionContext


   *
   * @exception SQLException thrown if no trigger active
   */
  public TriggerOldTransitionRows() throws SQLException
  {
    TriggerExecutionContext tec = Factory.getTriggerExecutionContext();
    if (tec == null)
    {
      throw new SQLException("There are no active triggers", "38000");
    }
    resultSet = tec.getOldRowSet();

    if (resultSet == null)
    {
      throw new SQLException("There is no old transition rows result set for this trigger", "38000");
    }
View Full Code Here


   *
   * @exception SQLException thrown if no trigger active
   */
  public TriggerNewTransitionRows() throws SQLException
  {
    TriggerExecutionContext tec = Factory.getTriggerExecutionContext();
    if (tec == null)
    {
      throw new SQLException("There are no active triggers", "38000");
    }
    resultSet = tec.getNewRowSet();

    if (resultSet == null)
    {
      throw new SQLException("There is no new transition rows result set for this trigger", "38000");
    }
View Full Code Here

  private ResultSet initializeResultSet() throws SQLException {
    if (resultSet != null)
      resultSet.close();
   
    TriggerExecutionContext tec = Factory.getTriggerExecutionContext();
    if (tec == null)
    {
      throw new SQLException("There are no active triggers", "38000");
    }
    resultSet = tec.getNewRowSet();

    if (resultSet == null)
    {
      throw new SQLException("There is no new transition rows result set for this trigger", "38000");
    }
View Full Code Here

  private ResultSet initializeResultSet() throws SQLException {
    if (resultSet != null)
      resultSet.close();
   
    TriggerExecutionContext tec = Factory.getTriggerExecutionContext();
    if (tec == null)
    {
      throw new SQLException("There are no active triggers", "38000");
    }
    resultSet = tec.getOldRowSet();

    if (resultSet == null)
    {
      throw new SQLException("There is no old transition rows result set for this trigger", "38000");
    }
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.db.TriggerExecutionContext

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.