# com.bea.p13n.property
AbstractPropertyMapKey Class

public abstract class AbstractPropertyMapKey
extends `Object`
implements `PropertyMapKey`, `Serializable`

Lightweight object used as a key for entity properties.

Related Topics

``EntityPropertyCache``

Hierarchy
  `Object`
  `AbstractPropertyMapKey`

All Implemented Interfaces
  `PropertyMapKey`, `Serializable`

## Constructor Summary

AbstractPropertyMapKey() Default constructor
AbstractPropertyMapKey(`String` aPropertySetName, `String` aPropertyName) Initializing Constructor

## Method Summary

`public int` | `compareTo`(`Object` o) Standard compareTo operator
`public boolean` | `equals`(`Object` o) Equals operator
`public `String`` | `getPropertyName`() Get the name of the property
`public `String`` | `getPropertySetName`() Get the PropertySet this property belongs to
`public int` | `hashCode`() Calculate a hashCode based on all fields, for lookups in a HashMap
`public void` | `setPropertyName`(`String` aPropertyName) Set the name of the property
`public void` | `setPropertySetName`(`String` aPropertySetName) Set the PropertySet this property belongs to
`public `String`` | `toString`()

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

Methods from interface `com.bea.p13n.property.`PropertyMapKey``
``getPropertyName`, `getPropertySetName``

## Constructor Detail

### AbstractPropertyMapKey

    public AbstractPropertyMapKey()

  Default constructor

### AbstractPropertyMapKey

    public AbstractPropertyMapKey(String aPropertySetName,
                                  String aPropertyName)

  Initializing Constructor

## Method Detail

### compareTo(Object) Method

    public int compareTo(Object o)

Standard compareTo operator

### equals(Object) Method

    public boolean equals(Object o)

Equals operator

Overrides
  `Object.equals(Object)`

#### Parameters

o
  the object to compare

#### Returns

true if it is the same kind of object, and all fields match

### getPropertyName() Method

    public String getPropertyName()

Get the name of the property

### getPropertySetName() Method

    public String getPropertySetName()

Get the PropertySet this property belongs to

### hashCode() Method

    public int hashCode()

Calculate a hashCode based on all fields, for lookups in a HashMap

Overrides
  `Object.hashCode()`

### setPropertyName(String) Method

    public void setPropertyName(String aPropertyName)

Set the name of the property

### setPropertySetName(String) Method

    public void setPropertySetName(String aPropertySetName)

Set the PropertySet this property belongs to

### toString() Method

    public String toString()

Overrides
  `Object.toString()`

#### Returns

a String representation of this map key