# com.beasys.commerce.ebusiness.order
OrderPk Class

public class OrderPk
extends `SmartKey`
implements `Serializable`

This is a PrimaryKey for managing the life cycle of the Order entity. It is derived from SmartKey which requires that the classes be serializable and comparable.

Hierarchy
  `Object`
  `SmartKey`
  `OrderPk`

All Implemented Interfaces
  `Comparable`, `Serializable`

## Field Summary

`public `String`` | `identifier` Identifier.

## Constructor Summary

OrderPk() Default constructor.
OrderPk(`String` identifier) Constructs a primary key with the specified identifier.

## Method Summary

`public int` | `compareTo`(`Object` o) Implements the compareTo method.
`public `String`` | `getIdentifier`() Returns the identifier
`public int` | `hashCode`() Overrides the hashCode() method
`public `String`` | `toString`() Returns the stringified version of the key class.

Methods from `com.beasys.commerce.foundation.`SmartKey``
``equals`,`

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

Methods from interface `java.lang.`Comparable``
`compareTo`

## Field Detail

### identifier

    public String identifier

  Identifier. Represents the primary key.

## Constructor Detail

### OrderPk

    public OrderPk()

  Default constructor.

### OrderPk

    public OrderPk(String identifier)

  Constructs a primary key with the specified identifier.

## Method Detail

### compareTo(Object) Method

    public int compareTo(Object o)

Implements the compareTo method. The following conditions hold true:

       (a > b) ==> (b < a)
       (a < b) ==> (b > a)
       (a = b) ==> (b = a)

Overrides
  `SmartKey.compareTo(Object)`

#### Parameters

o
  the Object to be compared.

#### Returns

a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

### getIdentifier() Method

    public String getIdentifier()

Returns the identifier

#### Returns

identifier

### hashCode() Method

    public int hashCode()

Overrides the hashCode() method

Overrides
  `Object.hashCode()`

### toString() Method

    public String toString()

Returns the stringified version of the key class.

Overrides
  `SmartKey.toString()`

#### Returns

Stringified version of the primary key