BEA Systems, Inc.

com.beasys.commerce.axiom.reasoning.rules.service
Class RulesetDataPK

java.lang.Object
  |
  +--com.beasys.commerce.axiom.reasoning.rules.service.RulesetDataPK

public class RulesetDataPK
extends java.lang.Object
implements java.io.Serializable

Implements a primary key for rulesets

See Also:
Serialized Form

Field Summary
 java.lang.String name
          The rule set name
 
Constructor Summary
RulesetDataPK()
          Default constructor
RulesetDataPK(java.lang.String name)
          Constructer
 
Method Summary
 boolean equals(java.lang.Object theOther)
          Check for object equality
 java.lang.String getName()
          Gets name
 int hashCode()
          Gets a hashcode for the key
 void setName(java.lang.String name)
          Sets name
 java.lang.String toString()
          String representation of the pk
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public java.lang.String name
The rule set name
Constructor Detail

RulesetDataPK

public RulesetDataPK()
Default constructor

RulesetDataPK

public RulesetDataPK(java.lang.String name)
              throws java.lang.IllegalArgumentException
Constructer
Parameters:
name -  
Throws:
java.lang.IllegalArgumentException - Thrown if name is null or zero-length
Method Detail

equals

public boolean equals(java.lang.Object theOther)
Check for object equality
Overrides:
equals in class java.lang.Object
Parameters:
theOther - the object to check against.
Returns:
True if equal, false otherwise

getName

public java.lang.String getName()
Gets name
Returns:
The name

hashCode

public int hashCode()
Gets a hashcode for the key
Overrides:
hashCode in class java.lang.Object
Returns:
The hashcode TODO: 1. Fix this

setName

public void setName(java.lang.String name)
             throws java.lang.IllegalArgumentException
Sets name
Parameters:
name -  
Throws:
java.lang.IllegalArgumentException - Thrown if name is null or zero-length

toString

public java.lang.String toString()
String representation of the pk
Overrides:
toString in class java.lang.Object
Returns:
the string representation

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved