© 2005 BEA Systems, Inc.

com.bea.p13n.property
Class AbstractPropertyMapKey

java.lang.Object
  extended bycom.bea.p13n.property.AbstractPropertyMapKey
All Implemented Interfaces:
PropertyMapKey, Serializable

public abstract class AbstractPropertyMapKey
extends Object
implements PropertyMapKey, Serializable

Lightweight object used as a key for entity properties.

See Also:
EntityPropertyCache, Serialized Form

Constructor Summary
AbstractPropertyMapKey()
          Default constructor
AbstractPropertyMapKey(String aPropertySetName, String aPropertyName)
          Initializing Constructor
 
Method Summary
 int compareTo(Object o)
          Standard compareTo operator
 boolean equals(Object o)
          Equals operator
 String getPropertyName()
          Get the name of the property
 String getPropertySetName()
          Get the PropertySet this property belongs to
 int hashCode()
          Calculate a hashCode based on all fields, for lookups in a HashMap
 void setPropertyName(String aPropertyName)
          Set the name of the property
 void setPropertySetName(String aPropertySetName)
          Set the PropertySet this property belongs to
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractPropertyMapKey

public AbstractPropertyMapKey()
Default constructor


AbstractPropertyMapKey

public AbstractPropertyMapKey(String aPropertySetName,
                              String aPropertyName)
Initializing Constructor

Method Detail

compareTo

public int compareTo(Object o)
Standard compareTo operator


equals

public boolean equals(Object o)
Equals operator

Parameters:
o - the object to compare
Returns:
true if it is the same kind of object, and all fields match

getPropertyName

public String getPropertyName()
Get the name of the property

Specified by:
getPropertyName in interface PropertyMapKey

getPropertySetName

public String getPropertySetName()
Get the PropertySet this property belongs to

Specified by:
getPropertySetName in interface PropertyMapKey

hashCode

public int hashCode()
Calculate a hashCode based on all fields, for lookups in a HashMap


setPropertyName

public void setPropertyName(String aPropertyName)
Set the name of the property


setPropertySetName

public void setPropertySetName(String aPropertySetName)
Set the PropertySet this property belongs to


toString

public String toString()
Returns:
a String representation of this map key

© 2005 BEA Systems, Inc.

Copyright © 2005 BEA Systems, Inc. All Rights Reserved