# com.beasys.commerce.util
PersistenceHelper.DefaultSmartEntityReference Class

public static class PersistenceHelper.DefaultSmartEntityReference
extends `Object`
implements `Serializable`, `SmartEntityReference`

Hierarchy
  `Object`
  `PersistenceHelper.DefaultSmartEntityReference`

All Implemented Interfaces
  `Serializable`, `SmartEntityReference`

Enclosing class
  `PersistenceHelper`

## Constructor Summary

PersistenceHelper.DefaultSmartEntityReference()
PersistenceHelper.DefaultSmartEntityReference(`EJBObject` ejbObject)

## Method Summary

`public int` | `compareTo`(`EJBObject` that)
`public int` | `compareTo`(`SmartEntityReference` that) compare two PK's
`public `EJBObject`` | `getEJBObject`() Returns the EJBObject.
`public `String`` | `getJNDIName`()
`public void` | `setEJBObject`(`EJBObject` ejbObject)

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

Methods from interface `com.beasys.commerce.foundation.`SmartEntityReference``
``compareTo`, `compareTo`, `getEJBObject`, `getJNDIName`, `setEJBObject``

## Constructor Detail

### PersistenceHelper.DefaultSmartEntityReference

    protected PersistenceHelper.DefaultSmartEntityReference()

### PersistenceHelper.DefaultSmartEntityReference

    protected PersistenceHelper.DefaultSmartEntityReference(EJBObject ejbObject)

## Method Detail

### compareTo(EJBObject) Method

    public int compareTo(EJBObject that)

### compareTo(SmartEntityReference) Method

    public int compareTo(SmartEntityReference that)

compare two PK's

### getEJBObject() Method

    public EJBObject getEJBObject()

Description copied from `SmartEntityReference.getEJBObject()`
Returns the EJBObject. If the SmartHandle is empty, it returns null.

### getJNDIName() Method

    public String getJNDIName()

### setEJBObject(EJBObject) Method

    public void setEJBObject(EJBObject ejbObject)