|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.hibernate.xml.XMLDatabinder
Implementation of the API class Databinder. NOT threadsafe.
Databinder
Constructor Summary | |
XMLDatabinder(SessionFactoryImplementor factory,
javax.xml.transform.Transformer transform)
|
Method Summary | |
Databinder |
bind(Object object)
Add an object to the output document. |
Databinder |
bindAll(Collection collection)
Add a collection of objects to the output document. |
static javax.xml.transform.Templates |
getOutputStyleSheetTemplates(Properties properties)
|
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLDatabinder(SessionFactoryImplementor factory, javax.xml.transform.Transformer transform)
Method Detail |
public void setInitializeLazy(boolean initializeLazy)
Databinder
setInitializeLazy
in interface Databinder
initializeLazy
- true to explicitly initialize lazy objects,
false to leave them in the state they are in.public String toGenericXML() throws HibernateException
Databinder
toGenericXML
in interface Databinder
HibernateException
public String toXML() throws HibernateException, javax.xml.transform.TransformerException
Databinder
toXML
in interface Databinder
javax.xml.transform.TransformerException
HibernateException
public org.w3c.dom.Document toDOM() throws HibernateException, javax.xml.transform.TransformerException
Databinder
toDOM
in interface Databinder
HibernateException
javax.xml.transform.TransformerException
public Databinder bind(Object object)
Databinder
bind
in interface Databinder
object
- a transient or persistent instance
public Databinder bindAll(Collection collection)
Databinder
bindAll
in interface Databinder
collection
-
public org.w3c.dom.Document toGenericDOM() throws HibernateException
Databinder
toGenericDOM
in interface Databinder
HibernateException
public static javax.xml.transform.Templates getOutputStyleSheetTemplates(Properties properties)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |