|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.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 PersistentObject
public Text getText()
getText
in interface TextWrapped
public void setText(Text text)
setText
in interface TextWrapped
text
- The text. public boolean equals(java.lang.Object obj)
The two work parts are equal if their ids are equal.
equals
in interface TextWrapped
equals
in class java.lang.Object
obj
- The other object.
public int hashCode()
hashCode
in interface TextWrapped
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |