|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hl7.hibernate.AbstractDataTypeUserType
org.hl7.hibernate.XMLPersistedDataTypeUserType
public class XMLPersistedDataTypeUserType
A Hibernate UserType that persists HL7 data type values through their XML serialization.
This is a generic approach, where one mapper class does it all. It uses the ParameterizedType
interface of hibernate
| Field Summary | |
|---|---|
static javax.xml.transform.TransformerFactory |
_transformerFactory
|
| Constructor Summary | |
|---|---|
XMLPersistedDataTypeUserType()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
nullSafeGet(java.sql.ResultSet rs,
java.lang.String[] names,
java.lang.Object owner)
Retrieve an instance of the mapped class from a JDBC resultset. |
void |
nullSafeSet(java.sql.PreparedStatement st,
java.lang.Object rawValue,
int index)
Write an instance of the mapped class to a prepared statement. |
java.lang.Class |
returnedClass()
The class returned by nullSafeGet(). |
void |
setParameterValues(java.util.Properties parameters)
Gets called by Hibernate to pass the configured type parameters to the implementation. |
int[] |
sqlTypes()
Return the SQL type codes for the columns mapped by this type. |
| Methods inherited from class org.hl7.hibernate.AbstractDataTypeUserType |
|---|
assemble, deepCopy, disassemble, equals, hashCode, isMutable, replace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final javax.xml.transform.TransformerFactory _transformerFactory
| Constructor Detail |
|---|
public XMLPersistedDataTypeUserType()
| Method Detail |
|---|
public void setParameterValues(java.util.Properties parameters)
public java.lang.Class returnedClass()
returnedClass in class AbstractDataTypeUserTypepublic int[] sqlTypes()
sqlTypes in class AbstractDataTypeUserType
public java.lang.Object nullSafeGet(java.sql.ResultSet rs,
java.lang.String[] names,
java.lang.Object owner)
throws HibernateException
nullSafeGet in class AbstractDataTypeUserTypeHibernateException
public void nullSafeSet(java.sql.PreparedStatement st,
java.lang.Object rawValue,
int index)
throws HibernateException
nullSafeSet in class AbstractDataTypeUserTypeHibernateException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||