|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
org.jcoderz.commons.util.UserTypeBase
org.jcoderz.commons.util.StringUserTypeBase
public abstract class StringUserTypeBase
This class is used by the Hibernate binding for RestrictedStrings.
A subclass has to implement the fromString method
for the particular RestrictedString. Be aware that VARCHAR is
restricted to 1000 Unicode characters!
| Constructor Summary | |
|---|---|
StringUserTypeBase()
|
|
| Method Summary | |
|---|---|
abstract |
fromString( value)
Implement this method for the particular RestrictedString. |
abstract |
getEmptyOrNull()
Implement this method for the particular RestrictedString. |
|
nullSafeGet( resultSet,
[] types,
owner)
|
void |
nullSafeSet( statement,
value,
int index)
|
int[] |
sqlTypes()
|
| Methods inherited from class org.jcoderz.commons.util.UserTypeBase |
|---|
assemble, deepCopy, disassemble, equals, hashCode, isMutable, replace, returnedClass |
| Methods inherited from class java.lang. |
|---|
, , , , , , , , , , |
| Constructor Detail |
|---|
public StringUserTypeBase()
| Method Detail |
|---|
public nullSafeGet( resultSet,
[] types,
owner)
throws ,
in interface nullSafeGet in class UserTypeBase
public abstract getEmptyOrNull()
fromString("") if the
StrongType permits this.public abstract fromString( value)
value - the String representation of the mapped class
public void nullSafeSet( statement,
value,
int index)
throws ,
in interface nullSafeSet in class UserTypeBase
public int[] sqlTypes()
in interface sqlTypes in class UserTypeBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||