|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jbox.dao.Page
public class Page
A class represents a web page, but without any html tag. The data mapping details refer to "Page.hbm.xml".
PageHome
,
Word
,
Serialized FormConstructor Summary | |
---|---|
Page()
|
Method Summary | |
---|---|
java.lang.String |
getText()
Return the text(without html tag) of page. |
java.lang.String |
getTitle()
Return page title. |
java.lang.String |
getUrl()
Return the URL of page. |
long |
getUrlId()
Return the id of Page in data base. |
int |
getWordNum()
Return the words number of page. |
java.util.Collection<Word> |
getWords()
Return a collection containing Word objects of page. |
void |
setText(java.lang.String text)
Set the text(without html tag) of page. |
void |
setTitle(java.lang.String title)
Set the title of page. |
void |
setUrl(java.lang.String url)
Set the URL of page. |
void |
setUrlId(long urlId)
Set id of page. |
void |
setWordNum(int wordNum)
Set the words number of page. |
void |
setWords(java.util.Collection<Word> words)
Set a collection containing Word object. |
java.lang.String |
toString()
Return string of URL of Page. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Page()
Method Detail |
---|
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- String.public java.lang.String getUrl()
public void setUrl(java.lang.String url)
url
- Stringpublic java.lang.String getText()
public void setText(java.lang.String text)
text
- Stringpublic int getWordNum()
public void setWordNum(int wordNum)
wordNum
- Integerpublic long getUrlId()
public void setUrlId(long urlId)
urlId
- id of page.public java.util.Collection<Word> getWords()
Word
objects of page.
Word
objects.public void setWords(java.util.Collection<Word> words)
Word
object.
It should be noticed that the collection doesn't be updated to database
when invoking PageHome.savePage(Page)
.
words
- Collection containing Word
objects.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |