|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcolibri.test.test2.MyStringType
public class MyStringType
This class shows how to define your own data types for an attribute of the case. You only need to implement TypeAdaptor.
IMPORTANT: You must define the equals() method to avoid problems with the data base connector. If you continue having problems try returning always "true".
Constructor Summary | |
---|---|
MyStringType()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
You must define this method to avoid problems with the data base connector (Hibernate) |
void |
fromString(java.lang.String content)
Reads the type from a string. |
java.lang.String |
toString()
Returns a string representation of the type. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MyStringType()
Method Detail |
---|
public void fromString(java.lang.String content) throws java.lang.Exception
TypeAdaptor
fromString
in interface TypeAdaptor
java.lang.Exception
public java.lang.String toString()
TypeAdaptor
toString
in interface TypeAdaptor
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
TypeAdaptor
equals
in interface TypeAdaptor
equals
in class java.lang.Object
|
GAIA - Group for Artificial Intelligence Applications http://gaia.fdi.ucm.es |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |