BEA Systems, Inc.

com.beasys.commerce.foundation
Class EmptySmartKey

java.lang.Object
  |
  +--com.beasys.commerce.foundation.SmartKey
        |
        +--com.beasys.commerce.foundation.EmptySmartKey

public class EmptySmartKey
extends SmartKey

EmptySmartKey is equivalent to a "null" SmartKey. If one wants to store a SmartKey to a datastore, the SmartKey can never be null. Hence an EmptySmartKey is needed.

See Also:
SmartKey, Serialized Form

Constructor Summary
EmptySmartKey()
          Default Constructor.
 
Method Summary
 int compareTo(java.lang.Object o)
          Compare always returns equal.
 java.lang.String toString()
          toString always returns an empty string.
 
Methods inherited from class com.beasys.commerce.foundation.SmartKey
equals
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EmptySmartKey

public EmptySmartKey()
Default Constructor.
Method Detail

compareTo

public int compareTo(java.lang.Object o)
Compare always returns equal.
Overrides:
compareTo in class SmartKey
Returns:
(0)

toString

public java.lang.String toString()
toString always returns an empty string.
Overrides:
toString in class SmartKey
Returns:
""

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved