jreceiver.common.rec.tag
Class CommentRec

java.lang.Object
  |
  +--jreceiver.common.rec.BaseRec
        |
        +--jreceiver.common.rec.tag.CommentRec
All Implemented Interfaces:
Comment, Hashable, Rec

public class CommentRec
extends BaseRec
implements Comment

Bean to represent a single comment record

Version:
$Revision: 1.2 $ $Date: 2002/09/24 18:29:51 $
Author:
Reed Esau

Field Summary
protected  int m_id
           
protected  java.lang.String m_summary
           
protected  java.lang.String m_text
           
 
Fields inherited from interface jreceiver.common.rec.tag.Comment
HKEY_COMMENT_ID, HKEY_COMMENT_SUMMARY, HKEY_COMMENT_TEXT
 
Fields inherited from interface jreceiver.common.rec.Rec
HKEY_KEY, NO_LIMIT
 
Constructor Summary
CommentRec(java.util.Hashtable hash)
          ctor - construct from a hashtable, usually retrieved via XML-RPC
CommentRec(int id, java.lang.String summary, java.lang.String text)
          ctor
 
Method Summary
 int getId()
           
 java.lang.Object getKey()
          return the Integer object that serves as this Rec's key.
 java.lang.String getSummary()
           
 java.lang.String getText()
           
static java.util.Vector reconstitute(java.util.Vector vector)
          Reconstitute each CommentRec object that appears as a hash in the list.
 void setId(int id)
           
 void setKey(java.lang.Object new_key)
          assign the Number-derived, Key-derived or String that serves as this Rec's key.
 void setSummary(java.lang.String summary)
           
 void setText(java.lang.String text)
           
 java.util.Hashtable toHash()
          Store the object as a hash suitable for transport over an XML-RPC connection or similar.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class jreceiver.common.rec.BaseRec
dissolve, dissolveMap, find, find, find, find
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_summary

protected java.lang.String m_summary

m_text

protected java.lang.String m_text

m_id

protected int m_id
Constructor Detail

CommentRec

public CommentRec(int id,
                  java.lang.String summary,
                  java.lang.String text)
ctor

CommentRec

public CommentRec(java.util.Hashtable hash)
ctor - construct from a hashtable, usually retrieved via XML-RPC
Parameters:
hash -  
Method Detail

getKey

public java.lang.Object getKey()
return the Integer object that serves as this Rec's key.
Specified by:
getKey in interface Rec

setKey

public void setKey(java.lang.Object new_key)
assign the Number-derived, Key-derived or String that serves as this Rec's key.
Specified by:
setKey in interface Rec

getSummary

public java.lang.String getSummary()
Specified by:
getSummary in interface Comment

setSummary

public void setSummary(java.lang.String summary)
Specified by:
setSummary in interface Comment

getText

public java.lang.String getText()
Specified by:
getText in interface Comment

setText

public void setText(java.lang.String text)
Specified by:
setText in interface Comment

getId

public int getId()
Specified by:
getId in interface Comment

setId

public void setId(int id)
Specified by:
setId in interface Comment

toHash

public java.util.Hashtable toHash()
Store the object as a hash suitable for transport over an XML-RPC connection or similar.

Use CommentRec(Hashtable) to transform the data back into an object of this type.

Specified by:
toHash in interface Hashable
Returns:
 

toString

public java.lang.String toString()
Description copied from interface: Hashable
Returns a string representation of the object.
Specified by:
toString in interface Hashable
Overrides:
toString in class java.lang.Object

reconstitute

public static java.util.Vector reconstitute(java.util.Vector vector)
Reconstitute each CommentRec object that appears as a hash in the list.


Copyright © 2001-2002 Reed Esau, All Rights Reserved.