Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.objectweb.jass.examples.travelagency.ejbs.compensations
Class ReserveSeatsCompensation

    java.lang.Object
      org.objectweb.jass.examples.travelagency.ejbs.compensations.ReserveSeatsCompensation

All Implemented Interfaces:
  javax.activity.opennested.Compensator

public class ReserveSeatsCompensation
extends java.lang.Object
implements javax.activity.opennested.Compensator

Implements the compensation for a previously made seat reservation in a given flight.

Author:
  fran Date: Feb 16, 2004 org.objectweb.jass.examples.travelagency.ejbs.compensationsReserveSeatsCompensation.java

Constructor Summary
`ReserveSeatsCompensation(AirlineBean airlineBean, int nSeats)` Constructor

Method Summary
`void` | `compensate()` Invokes the compensation method.
`void` | `forget()` Clears the internal attributes.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ReserveSeatsCompensation

    public ReserveSeatsCompensation(AirlineBean airlineBean,
                                    int nSeats)

  Constructor

Parameters:
  `airlineBean` - - a reference to the airline EJB.
  `nSeats` - The number of reserved seats.

Method Detail

### compensate

    public void compensate()

  Invokes the compensation method.

  Specified by:
    `compensate` in interface `javax.activity.opennested.Compensator`

### forget

    public void forget()

  Clears the internal attributes.

  Specified by:
    `forget` in interface `javax.activity.opennested.Compensator`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD