org.apache.openejb.jee
Interface Keyable<K>

All Known Subinterfaces:
EjbReference, Field, JndiReference, PersistenceRef, RelationField
All Known Implementing Classes:
ApplicationException, AttributeOverride, Basic, EjbLocalRef, EjbRef, Entity, EnvEntry, ExceptionMapping, Icon, Id, ManyToMany, ManyToOne, MappedSuperclass, MessageDestination, MessageDestinationRef, OneToMany, OneToOne, PackageMapping, PersistenceContextRef, PersistenceUnitRef, PortComponent, ResourceEnvRef, ResourceRef, ServiceEndpointInterfaceMapping, ServiceRef, Transient, WebserviceDescription, WebserviceDescription, WebserviceEndpoint

public interface Keyable<K>

A keyable object can provide an immutable key for this object. It is important for the key to not be mutable and that the key value itself is not changed in the object. If this happens any AutoIndex, or Map using this key will break.


Method Summary
 K getKey()
          Gets the immutable key for this object.
 

Method Detail

getKey

K getKey()
Gets the immutable key for this object.

Returns:
gets the immutable key for this object


Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.