org.hibernate.pretty

Class Printer


public final class Printer
extends java.lang.Object

Renders entities to a nicely readable string.
Author:
Gavin King

Constructor Summary

Printer(SessionFactoryImplementor factory)

Method Summary

void
toString(Iterator iter, EntityMode entityMode)
String
toString(Map namedTypedValues)
String
toString(Object entity, EntityMode entityMode)
String
toString(Type[] types, Object[] values)

Constructor Details

Printer

public Printer(SessionFactoryImplementor factory)

Method Details

toString

public void toString(Iterator iter,
                     EntityMode entityMode)
            throws HibernateException

toString

public String toString(Map namedTypedValues)
            throws HibernateException

toString

public String toString(Object entity,
                       EntityMode entityMode)
            throws HibernateException
Parameters:
entity - an actual entity object, not a proxy!

toString

public String toString(Type[] types,
                       Object[] values)
            throws HibernateException