|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.hibernate.type.AbstractType net.sf.hibernate.type.NullableType net.sf.hibernate.type.ImmutableType net.sf.hibernate.type.StringType
string: A type that maps an SQL VARCHAR to a Java String.
Constructor Summary | |
StringType()
|
Method Summary | |
boolean |
equals(Object x,
Object y)
Compare two instances of the class mapped by this type for persistence "equality", ie. |
Object |
fromStringValue(String xml)
|
Object |
get(ResultSet rs,
String name)
|
String |
getName()
Returns the abbreviated name of the type. |
Class |
getReturnedClass()
The class returned by nullSafeGet() methods. |
String |
objectToSQLString(Object value)
String representation of the value, suitable for embedding in an SQL statement. |
void |
set(PreparedStatement st,
Object value,
int index)
|
int |
sqlType()
|
Object |
stringToObject(String xml)
Convert the value from the mapping file to a Java object. |
String |
toString(Object value)
|
Methods inherited from class net.sf.hibernate.type.ImmutableType |
copy, deepCopyNotNull, hasNiceEquals, isMutable |
Methods inherited from class net.sf.hibernate.type.NullableType |
deepCopy, fromString, getColumnSpan, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, sqlTypes, toString |
Methods inherited from class net.sf.hibernate.type.AbstractType |
assemble, disassemble, equals, hashCode, hydrate, isAssociationType, isComponentType, isDirty, isEntityType, isModified, isObjectType, isPersistentCollectionType, resolveIdentifier |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.hibernate.type.Type |
assemble, copy, deepCopy, disassemble, fromString, getColumnSpan, hasNiceEquals, hydrate, isAssociationType, isComponentType, isDirty, isEntityType, isModified, isMutable, isObjectType, isPersistentCollectionType, nullSafeGet, nullSafeGet, nullSafeSet, resolveIdentifier, sqlTypes, toString |
Constructor Detail |
public StringType()
Method Detail |
public Object get(ResultSet rs, String name) throws SQLException
get
in class NullableType
SQLException
public Class getReturnedClass()
Type
getReturnedClass
in interface Type
public void set(PreparedStatement st, Object value, int index) throws SQLException
set
in class NullableType
SQLException
public int sqlType()
sqlType
in class NullableType
public String getName()
Type
public String objectToSQLString(Object value) throws Exception
LiteralType
objectToSQLString
in interface LiteralType
value
-
Exception
public Object stringToObject(String xml) throws Exception
IdentifierType
stringToObject
in interface IdentifierType
xml
- the value of discriminator-value or unsaved-value attribute
Exception
public boolean equals(Object x, Object y)
Type
x
- y
-
public String toString(Object value)
toString
in class NullableType
public Object fromStringValue(String xml)
fromStringValue
in class NullableType
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |