📄 comment.html
字号:
<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getCommentsForPhoto(int)"><!-- --></A><H3>getCommentsForPhoto</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Collection.html">Collection</A> <B>getCommentsForPhoto</B>(int imageId) throws <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Exception.html">Exception</A></PRE><DL><DD>Get a Collection of Comment objects for all of the comments on a given image.<P><DD><DL></DL></DD><DD><DL><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Exception.html">Exception</A></CODE></DL></DD></DL><HR><A NAME="getAllComments(net.spy.photo.PhotoUser)"><!-- --></A><H3>getAllComments</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/List.html">List</A> <B>getAllComments</B>(<A HREF="../../../net/spy/photo/PhotoUser.html">PhotoUser</A> user) throws <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Exception.html">Exception</A></PRE><DL><DD>Get a List of GroupedComments objects that represent the comments this user can see. Each object may represent multiple comments, but they will all refer to a single image.<P><DD><DL></DL></DD><DD><DL><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Exception.html">Exception</A></CODE><DT><B>See Also:</B><DD><A HREF="../../../net/spy/photo/GroupedComments.html"><CODE>GroupedComments</CODE></A></DL></DD></DL><HR><A NAME="save(java.sql.Connection, net.spy.db.SaveContext)"><!-- --></A><H3>save</H3><PRE>public void <B>save</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/sql/Connection.html">Connection</A> conn, <A HREF="http://bleu.west.spy.net/~dustin/spyjar/j2/doc/net/spy/db/SaveContext.html">SaveContext</A> context) throws <A HREF="http://bleu.west.spy.net/~dustin/spyjar/j2/doc/net/spy/db/SaveException.html">SaveException</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/sql/SQLException.html">SQLException</A></PRE><DL><DD>Save a new comment.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>save</CODE> in interface <CODE><A HREF="http://bleu.west.spy.net/~dustin/spyjar/j2/doc/net/spy/db/Savable.html">Savable</A></CODE></DL></DD><DD><DL><DD><CODE><A HREF="http://bleu.west.spy.net/~dustin/spyjar/j2/doc/net/spy/db/SaveException.html">SaveException</A></CODE><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/sql/SQLException.html">SQLException</A></CODE></DL></DD></DL><HR><A NAME="getCommentId()"><!-- --></A><H3>getCommentId</H3><PRE>public int <B>getCommentId</B>()</PRE><DL><DD>Get the comment ID of this comment record.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setUser(net.spy.photo.PhotoUser)"><!-- --></A><H3>setUser</H3><PRE>public void <B>setUser</B>(<A HREF="../../../net/spy/photo/PhotoUser.html">PhotoUser</A> user)</PRE><DL><DD>Set the user who'll own this comment.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getUser()"><!-- --></A><H3>getUser</H3><PRE>public <A HREF="../../../net/spy/photo/PhotoUser.html">PhotoUser</A> <B>getUser</B>()</PRE><DL><DD>Get the user who owns this comment.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setPhotoId(int)"><!-- --></A><H3>setPhotoId</H3><PRE>public void <B>setPhotoId</B>(int photoId)</PRE><DL><DD>Set the ID of the photo to which this comment belongs.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getPhotoId()"><!-- --></A><H3>getPhotoId</H3><PRE>public int <B>getPhotoId</B>()</PRE><DL><DD>Get the ID of the photo to which this comment belongs.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setNote(java.lang.String)"><!-- --></A><H3>setNote</H3><PRE>public void <B>setNote</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> note)</PRE><DL><DD>Set the actual note.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getNote()"><!-- --></A><H3>getNote</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>getNote</B>()</PRE><DL><DD>Get the note.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setRemoteAddr(java.lang.String)"><!-- --></A><H3>setRemoteAddr</H3><PRE>public void <B>setRemoteAddr</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> remoteAddr)</PRE><DL><DD>Set the remote address of the user at the time this note was added.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getRemoteAddr()"><!-- --></A><H3>getRemoteAddr</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>getRemoteAddr</B>()</PRE><DL><DD>Get the remote address of the user at the time this note was added.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getTimestamp()"><!-- --></A><H3>getTimestamp</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>getTimestamp</B>()</PRE><DL><DD>Get the timestamp of when this entry was created.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>toString</B>()</PRE><DL><DD>String me!<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#toString()">toString</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Comment.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../net/spy/photo/Category.html"><B>PREV CLASS</B></A> <A HREF="../../../net/spy/photo/Cursor.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="Comment.html" TARGET="_top"><B>NO FRAMES</B></A> <SCRIPT> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT><A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -