Skip navigation links

Oracle Role Manager Java API Reference
10g (10.1.4)
E14613-01


oracle.iam.rm.server_api
Class EntityKey

java.lang.Object
  extended by oracle.iam.rm.server_api.EntityKey

All Implemented Interfaces:
java.io.Serializable

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

A Serializable identifier for objects from the server.

See Also:
Serialized Form

Constructor Summary
EntityKey(java.lang.String encodedValue)
          Creates a new EntityKey from its string encoded form from toString().
EntityKey(java.lang.String type, long uniqueId)
          Creates a new EntityKey from its constituent data.

 

Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getType()
          Gets the root type of object for this key.
 long getUniqueId()
          Gets the unique identifier for this object.
 int hashCode()
           
 java.lang.String toString()
           

 

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

 

Constructor Detail

EntityKey

public EntityKey(java.lang.String type,
                 long uniqueId)
Creates a new EntityKey from its constituent data.
Parameters:
type - root type of object for this key. Must not be null.
uniqueId - the unique identifier for this object

EntityKey

public EntityKey(java.lang.String encodedValue)
          throws java.text.ParseException
Creates a new EntityKey from its string encoded form from toString().
Parameters:
encodedValue - encoded string value for this key
Throws:
java.text.ParseException - if the encoded value is in the wrong format

Method Detail

getType

public java.lang.String getType()
Gets the root type of object for this key.
Returns:
String representing the root type of object for this key.

getUniqueId

public long getUniqueId()
Gets the unique identifier for this object.
Returns:
the unique identifier for this object.

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Skip navigation links

Oracle Role Manager Java API Reference
10g (10.1.4)
E14613-01


Copyright © 2008, 2009 Oracle. All Rights Reserved.