Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.forum.database
Class TagQueryCacheObject

java.lang.Object
  extended by com.jivesoftware.forum.database.TagQueryCacheObject
All Implemented Interfaces:
Cacheable, com.tangosol.io.ExternalizableLite, java.io.Serializable

public class TagQueryCacheObject
extends java.lang.Object
implements Cacheable, com.tangosol.io.ExternalizableLite

Container object for holding results for tag queries.

See Also:
Serialized Form

Constructor Summary
TagQueryCacheObject()
          No args constructor for serialization.
TagQueryCacheObject(java.lang.String tagname, int count)
          Default constructor.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int getCachedSize()
          Returns the approximate size of the Object in bytes.
 int getCount()
           
 java.lang.String getTagname()
           
 java.lang.String getUnfilteredTagname()
           
 int hashCode()
           
 void readExternal(java.io.DataInput dataInput)
           
 void setCount(int count)
           
 void setTagname(java.lang.String tagname)
           
 void writeExternal(java.io.DataOutput dataOutput)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagQueryCacheObject

public TagQueryCacheObject()
No args constructor for serialization.


TagQueryCacheObject

public TagQueryCacheObject(java.lang.String tagname,
                           int count)
Default constructor.

Parameters:
tagname - the name of the tag this value represents.
count - the count associated with the tag.
Method Detail

getUnfilteredTagname

public java.lang.String getUnfilteredTagname()

getTagname

public java.lang.String getTagname()

setTagname

public void setTagname(java.lang.String tagname)

getCount

public int getCount()

setCount

public void setCount(int count)

readExternal

public void readExternal(java.io.DataInput dataInput)
                  throws java.io.IOException
Specified by:
readExternal in interface com.tangosol.io.ExternalizableLite
Throws:
java.io.IOException

writeExternal

public void writeExternal(java.io.DataOutput dataOutput)
                   throws java.io.IOException
Specified by:
writeExternal in interface com.tangosol.io.ExternalizableLite
Throws:
java.io.IOException

getCachedSize

public int getCachedSize()
Description copied from interface: Cacheable
Returns the approximate size of the Object in bytes. The size should be considered to be a best estimate of how much memory the Object occupies and may be based on empirical trials or dynamic calculations.

Specified by:
getCachedSize in interface Cacheable
Returns:
the size of the Object in bytes.

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

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.