Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.forum.util
Class Identifier

java.lang.Object
  extended by com.jivesoftware.forum.util.Identifier
All Implemented Interfaces:
JiveObject

public class Identifier
extends java.lang.Object
implements JiveObject

Simple JiveObject implementation that only contains the object type and object id. This is useful for just maintaining a simple reference to an object without having to hold onto the whole object.


Field Summary
protected  long objectID
           
protected  int objectType
           
 
Constructor Summary
Identifier(int objectType, long objectID)
           
Identifier(JiveObject bean)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 long getID()
          Retrieve the unique identifier for the jive object.
 int getObjectType()
          Return the object type of the jive object.
 int hashCode()
           
 void setID(long objectID)
           
 void setObjectType(int objectType)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

objectType

protected int objectType

objectID

protected long objectID
Constructor Detail

Identifier

public Identifier(JiveObject bean)

Identifier

public Identifier(int objectType,
                  long objectID)
Method Detail

getObjectType

public int getObjectType()
Description copied from interface: JiveObject
Return the object type of the jive object.

Specified by:
getObjectType in interface JiveObject
Returns:
the object type of the jive object.

setObjectType

public void setObjectType(int objectType)

getID

public long getID()
Description copied from interface: JiveObject
Retrieve the unique identifier for the jive object.

Specified by:
getID in interface JiveObject
Returns:
the unique identifier for the jive object.

setID

public void setID(long objectID)

hashCode

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

equals

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

toString

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

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.