Top Description Fields Constructors Methods
org.hibernate.pretty

public final Class Printer

extends Object
Class Inheritance
Imports
java.util.ArrayList, .HashMap, .Iterator, .List, .Map, org.slf4j.Logger, .LoggerFactory, org.hibernate.HibernateException, .EntityMode, org.hibernate.engine.SessionFactoryImplementor, .TypedValue, org.hibernate.intercept.LazyPropertyInitializer, org.hibernate.metadata.ClassMetadata, org.hibernate.type.Type

Renders entities to a nicely readable string.
Author
Gavin King

Field Summary

Modifier and TypeField and Description
private SessionFactoryImplementor
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
toString(Object
an actual entity object, not a proxy!
entity
,
EntityMode entityMode)

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

public String
toString(Map<K, V> namedTypedValues)

public void
toString(Iterator<E> iter, EntityMode entityMode)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

factoryback to summary
private SessionFactoryImplementor factory
logback to summary
private static final Logger log

Constructor Detail

Printerback to summary
public Printer(SessionFactoryImplementor factory)

Method Detail

toStringback to summary
public String toString(Object entity, EntityMode entityMode) throws HibernateException
Parameters
entity:Object

an actual entity object, not a proxy!

toStringback to summary
public String toString(Type[] types, Object[] values) throws HibernateException
toStringback to summary
public String toString(Map<K, V> namedTypedValues) throws HibernateException
toStringback to summary
public void toString(Iterator<E> iter, EntityMode entityMode) throws HibernateException