Overview | Package | Class | Tree | Deprecated | Index | Help
| © 2004 BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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

    java.lang.Object
      com.beasys.commerce.foundation.SmartKey
          com.beasys.commerce.ebusiness.order.OrderPk

All Implemented Interfaces:
  Comparable, Serializable

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.

See Also:
  Serialized Form

Field Summary
`String` | `identifier` Identifier.

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

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

Methods inherited from class com.beasys.commerce.foundation.SmartKey
`equals`

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

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

    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)

  Specified by:
    `compareTo` in interface `Comparable`
  Specified by:
    `compareTo` in class `SmartKey`
  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

    public String getIdentifier()

  Returns the identifier

  Returns:
    identifier

### hashCode

    public int hashCode()

  Overrides the hashCode() method

### toString

    public String toString()

  Returns the stringified version of the key class.

  Overrides:
    `toString` in class `SmartKey`
  Returns:
    Stringified version of the primary key

Overview | Package | Class | Tree | Deprecated | Index | Help
| © 2004 BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004 BEA Systems, Inc. All Rights Reserved