|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.core.foundation.PersistentObject
org.exolab.jms.persistence.PersistentString
public class PersistentString
A simple helper class to wrap strings, and make object referenses easier.
Constructor Summary | |
---|---|
PersistentString()
The default constructor initialises an empty String |
|
PersistentString(java.lang.String id)
Initialise to the given String value |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
int |
hashCode()
|
int |
length()
Return the length of the internal String |
void |
readExternal(java.io.ObjectInput stream)
|
java.lang.String |
toString()
Return the internal String |
void |
update(java.lang.String id)
Assign the given String value |
void |
writeExternal(java.io.ObjectOutput stream)
|
Methods inherited from class org.exolab.core.foundation.PersistentObject |
---|
clone, getId, getMinimumObjectSize, getObjectId, getObjectVersion, getVersion, setId, setMinimumObjectSize, setObjectId, setObjectVersion, setVersion |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PersistentString()
public PersistentString(java.lang.String id)
id
- The string to assignMethod Detail |
---|
public void update(java.lang.String id)
id
- The string to assignpublic java.lang.String toString()
toString
in class java.lang.Object
public int length()
public boolean equals(java.lang.Object obj)
equals
in class org.exolab.core.foundation.PersistentObject
public int hashCode()
hashCode
in class java.lang.Object
public void writeExternal(java.io.ObjectOutput stream) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class org.exolab.core.foundation.PersistentObject
java.io.IOException
public void readExternal(java.io.ObjectInput stream) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
readExternal
in class org.exolab.core.foundation.PersistentObject
java.io.IOException
java.lang.ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |