public class HibernateXmlType
extends StringClobType
implements java.io.Serializable
StringClobType's implementation of everything except:
nullSafeGet() and nullSafeSet()
To use this class in your domain class add the following above the class
declaration (where the @Entity is):
@TypeDef(name = "xmltype", typeClass = HibernateXmlType.class)
Then add this to the Java Strings that map Oracle XMLTYPEs in the DB:
@Type(type = "xmltype")
NOTE(rtobar): When we integrated Robert's class into ACS, we modified it to use reflection so that we get no errors if the Oracle jars are not on the classpath. Reflection is also used for inspecting for C3P0 classes. If classes are not found, then simply the old CLOB behavior will be used.
| Constructor and Description |
|---|
HibernateXmlType() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
nullSafeGet(java.sql.ResultSet rs,
java.lang.String[] names,
java.lang.Object owner) |
void |
nullSafeSet(java.sql.PreparedStatement st,
java.lang.Object value,
int index) |
public java.lang.Object nullSafeGet(java.sql.ResultSet rs,
java.lang.String[] names,
java.lang.Object owner)
throws HibernateException,
java.sql.SQLException
HibernateExceptionjava.sql.SQLExceptionpublic void nullSafeSet(java.sql.PreparedStatement st,
java.lang.Object value,
int index)
throws HibernateException,
java.sql.SQLException
HibernateExceptionjava.sql.SQLException