# com.beasys.commerce.ebusiness.payment
PaymentTransactionSmartBMP Class

public class PaymentTransactionSmartBMP
extends `Object`
implements `SmartBMP`

Implementation of SmartBMP interface for bean PaymentTransaction. You can use this as an example to write your own bean-managed persistence.

Hierarchy
  `Object`
  `PaymentTransactionSmartBMP`

All Implemented Interfaces
  `SmartBMP`

## Constructor Summary

PaymentTransactionSmartBMP()

## Method Summary

`public void` | `create`(`SmartKey` smartKey, `EntityImpl` entityImpl) Implements BMP functionality of ejbCreate() method.
`public boolean` | `exists`(`SmartKey` smartKey, `EntityImpl` entityImpl) Indicates if a bean with the specified primary key exists in the persistent store.
`public `Enumeration`` | `findAll`(`EntityImpl` entityImpl) Implements BMP functionality of ejbFindAll() method.
`public `Collection`` | `findByStatus`(`EntityImpl` entityImpl, `String` status)
`public void` | `refresh`(`SmartKey` smartKey, `EntityImpl` entityImpl) Implements BMP functionality of ejbLoad() method.
`public void` | `remove`(`SmartKey` smartKey, `EntityImpl` entityImpl) Implements BMP functionality of ejbRemove() method.
`public void` | `update`(`SmartKey` smartKey, `EntityImpl` entityImpl) Implements BMP functionality of ejbStore() and ejbPostCreate() methods.

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

Methods from interface `com.beasys.commerce.bridge.bmp.`SmartBMP``
``create`, `exists`, `findAll`, `refresh`, `remove`, `update``

## Constructor Detail

### PaymentTransactionSmartBMP

    public PaymentTransactionSmartBMP()

## Method Detail

### create(SmartKey, EntityImpl) Method

    public void create(SmartKey smartKey,
                       EntityImpl entityImpl)
         throws BMPException

Implements BMP functionality of ejbCreate() method. Initialize the representation of the entity bean in persistent store using the smartKey as primary key. Attributes of the entity bean in persistent store should be set to the implementation's equivalent of default or null values. The entity is invalid at this point. The metadata may be useful to the implementation.

#### Parameters

smartKey
  the primary key of the bean

entityImpl
  READ ONLY, invalid, uninitialized instance of the entity bean.

#### Exceptions

``BMPException``
  wrapper for provider exception

### exists(SmartKey, EntityImpl) Method

    public boolean exists(SmartKey smartKey,
                          EntityImpl entityImpl)
         throws BMPException

Indicates if a bean with the specified primary key exists in the persistent store.

#### Parameters

smartKey
  the primary key of the bean

entityImpl
  READ ONLY instance of the entity bean.

#### Returns

true if a bean with the specified primary key exists

#### Exceptions

``BMPException``
  wrapper for provider exception

### findAll(EntityImpl) Method

    public Enumeration findAll(EntityImpl entityImpl)
         throws BMPException

Description copied from `SmartBMP.findAll(EntityImpl)`
Implements BMP functionality of ejbFindAll() method.

#### Returns

an enumeration of all instances of a type of bean.

#### Exceptions

``BMPException``

### findByStatus(EntityImpl, String) Method

    public Collection findByStatus(EntityImpl entityImpl,
                                   String status)
         throws BMPException

#### Exceptions

``BMPException``

### refresh(SmartKey, EntityImpl) Method

    public void refresh(SmartKey smartKey,
                        EntityImpl entityImpl)
         throws BMPException

Implements BMP functionality of ejbLoad() method. Copies attributes from persistent store to the entity bean using the smartKey as primary key.

#### Parameters

smartKey
  the primary key of the bean

entityImpl
  READ/WRITE instance of the entity bean.

#### Exceptions

``BMPException``
  wrapper for provider exception

### remove(SmartKey, EntityImpl) Method

    public void remove(SmartKey smartKey,
                       EntityImpl entityImpl)
         throws BMPException

Implements BMP functionality of ejbRemove() method. Remove the entity bean from persistent store using the smartKey as primary key.

#### Parameters

smartKey
  the primary key of the bean

entityImpl
  instance of the entity bean.

#### Exceptions

``BMPException``
  wrapper for provider exception

### update(SmartKey, EntityImpl) Method

    public void update(SmartKey smartKey,
                       EntityImpl entityImpl)
         throws BMPException

Implements BMP functionality of ejbStore() and ejbPostCreate() methods. Copies attributes of entity bean to persistent store using the smartKey as primary key.

#### Parameters

smartKey
  the primary key of the bean

entityImpl
  READ ONLY instance of the entity bean.

#### Exceptions

``BMPException``
  wrapper for provider exception