org.apache.jetspeed.util
Class JetspeedObjectID

java.lang.Object
  extended byorg.apache.jetspeed.util.JetspeedObjectID
All Implemented Interfaces:
org.apache.pluto.om.common.ObjectID, PortalObjectID, Serializable

public class JetspeedObjectID
extends Object
implements PortalObjectID, Serializable

JetspeedObjectID Wraps around the internal Object IDs. By holding both the string and the integer version of an Object ID this class helps speed up the internal processing.

Version:
$Id: JetspeedObjectID.java 186388 2004-04-24 19:05:54Z taylor $
See Also:
Serialized Form

Field Summary
private  long oid
           
private  String stringOID
           
 
Constructor Summary
JetspeedObjectID(long oid)
           
JetspeedObjectID(long oid, String stringOID)
           
 
Method Summary
static JetspeedObjectID createFromString(String idStr)
           
static JetspeedObjectID createPortletEntityId(org.apache.pluto.om.portlet.PortletDefinition portletDefinition, String instanceName)
           
 boolean equals(Object object)
           
 long getOID()
           
 int hashCode()
           
 long longValue()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

stringOID

private String stringOID

oid

private long oid
Constructor Detail

JetspeedObjectID

public JetspeedObjectID(long oid)

JetspeedObjectID

public JetspeedObjectID(long oid,
                        String stringOID)
Method Detail

equals

public boolean equals(Object object)

hashCode

public int hashCode()

toString

public String toString()

longValue

public long longValue()

createFromString

public static JetspeedObjectID createFromString(String idStr)

createPortletEntityId

public static JetspeedObjectID createPortletEntityId(org.apache.pluto.om.portlet.PortletDefinition portletDefinition,
                                                     String instanceName)
Parameters:
portletDefinition -
instanceName -
Returns:

getOID

public long getOID()
Specified by:
getOID in interface PortalObjectID


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.