/* * T H E Copyright (c) The Theory Center, * Inc. 1997-1999. All Rights Re- * ||||| || served. Unpublished rights re- * || || served under the copyright laws * || |||| ||| ||| ||||| | || of the United States. The soft- * || || | | | || | || | | || ware contained on this media is * || || | ||||| || | || | || proprietary to and embodies the * || || | | || | || |||| confidential technology of * || || | ||| ||| || | The Theory Center. The possession * |||| or receipt of this information * does not convey any right to dis- * ||| || close its contents, reproduce it, * || | || or use, or license the use, for * || ||| |||| |||| ||| ||||| manufacture or sale, the informa- * || | | || | || | | || | tion or anything described * || ||||| || | || ||||| || therein. Any use, disclosure, or * || | | || | || | || reproduction without The Theory * ||| ||| || | || ||| || Center's prior written permission * is strictly prohibited. * * Generated By Theory's SmartGenerator: * At Mon Aug 09 13:22:17 EDT 1999 * * $Header: /smart/src/examples/extending/AlphaNumericSequencerExtensionPk.java 4 8/25/99 1:13p Derrick $ */ package examples.extending; import theory.smart.foundation.*; import java.util.*; import java.rmi.*; import javax.ejb.*; //$Import$_Begin ------------ CUSTOM CODE --------------- // Place additional import statements here //$Import$_End ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /** * This is a PrimaryKey for managing the life cycle of a BSC Configurable/Entity bean. * It is derived from SmartKey which requires that the classes be serializable and comparable. * * This class is generated by Theory Center's SmartGenartor. */ public class AlphaNumericSequencerExtensionPk extends theory.smart.axiom.util.AlphaNumericSequencerPk implements java.io.Serializable //$Implements$_Begin ------------ CUSTOM CODE --------------- // Add interfaces that are implemented here //$Implements$_End ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ { /** * Default constructor. */ public AlphaNumericSequencerExtensionPk() { super(); } /** * Implements the compareTo method. * The following conditions hold true: *
   *   (a > b) ==> (b < a)
   *   (a < b) ==> (b > a)
   *   (a = b) ==> (b = a)
   * 
*/ public int compareTo(Object o) { if (o instanceof AlphaNumericSequencerExtensionPk == false) { throw new ClassCastException(); } int result = super.compareTo((theory.smart.axiom.util.AlphaNumericSequencerPk) o); AlphaNumericSequencerExtensionPk target = (AlphaNumericSequencerExtensionPk) o; return result; } /** * Returns the stringified version of the key class. */ public String toString() { // If inheritance is allowed with SmartKey // we must append the result of super.toString() return "" + super.toString(); } /** * AlphaNumericSequencerExtentionPk constructor. * * @param id java.lang.String */ public AlphaNumericSequencerExtensionPk(String id) { super(id); } }