|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides XML Marshalling for classes registered with a SessionFactory.
Hibernate defines a generic XML format that may be used to
represent any class (hibernate-generic.dtd). The user configures
an XSLT stylesheet for marshalling data from this generic format to an
application and / or user readable format. By default, Hibernate will
use hibernate-default.xslt which maps data to a useful human -
readable format.
The property hibernate.xml.output_stylesheet
specifies a user - written stylesheet. Hiberate will attempt to load the
stylesheet from the classpath first and if not found, it will attempt to
load it as a file.
This is an experimental feature.
It is not intended that implementors be threadsafe.
SessionFactory
Method Summary | |
Databinder |
bind(Object object)
Add an object to the output document. |
Databinder |
bindAll(Collection objects)
Add a collection of objects to the output document. |
void |
setInitializeLazy(boolean initializeLazy)
Controls lazy initialization. |
org.w3c.dom.Document |
toDOM()
Output the custom XML representation of the bound objects as a DOM tree. |
org.w3c.dom.Document |
toGenericDOM()
Output the generic XML representation of the bound objects as a DOM tree. |
String |
toGenericXML()
Output the generic XML representation of the bound objects. |
String |
toXML()
Output the custom XML representation of the bound objects. |
Method Detail |
public Databinder bind(Object object)
object
- a transient or persistent instance
public Databinder bindAll(Collection objects)
objects
-
public String toGenericXML() throws HibernateException
HibernateException
public org.w3c.dom.Document toGenericDOM() throws HibernateException
HibernateException
public String toXML() throws HibernateException, javax.xml.transform.TransformerException
HibernateException
javax.xml.transform.TransformerException
public org.w3c.dom.Document toDOM() throws HibernateException, javax.xml.transform.TransformerException
HibernateException
javax.xml.transform.TransformerException
public void setInitializeLazy(boolean initializeLazy)
initializeLazy
- true to explicitly initialize lazy objects,
false to leave them in the state they are in.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |