|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.northwestern.at.wordhoard.model.wrappers.TextWrapper
public class TextWrapper
A text wrapper.
This class wraps a Text object.
We use this extra level of indirection to make Hibernate delay loading the large text objects until and unless they are actually needed.
The contained text object is persisted as a serialized blob in a MySQL type "mediumblob" column.
| Constructor Summary | |
|---|---|
TextWrapper()
Creates a new text wrapper. |
|
TextWrapper(Text text)
Creates a new text wrapper. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Returns true if some other object is equal to this one. |
java.lang.Long |
getId()
Gets the unique id. |
Text |
getText()
Gets the text. |
int |
hashCode()
Returns a hash code for the object. |
void |
setText(Text text)
Sets the text. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextWrapper()
public TextWrapper(Text text)
text - Text. | Method Detail |
|---|
public java.lang.Long getId()
getId in interface PersistentObjectpublic Text getText()
getText in interface TextWrappedpublic void setText(Text text)
setText in interface TextWrappedtext - The text. public boolean equals(java.lang.Object obj)
The two work parts are equal if their ids are equal.
equals in interface TextWrappedequals in class java.lang.Objectobj - The other object.
public int hashCode()
hashCode in interface TextWrappedhashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||