Top Description Fields Constructors Methods
org.hibernate.internal.util

public final Class EntityPrinter

extends Object
Class Inheritance
Imports
java.util.HashMap, .Map, org.hibernate.Hibernate, .HibernateException, org.hibernate.bytecode.enhance.spi.LazyPropertyInitializer, org.hibernate.engine.spi.EntityKey, .SessionFactoryImplementor, .TypedValue, org.hibernate.internal.CoreLogging, .CoreMessageLogger, org.hibernate.persister.entity.EntityPersister, org.hibernate.type.Type

Renders entities and query parameters to a nicely readable string.
Author
Gavin King

Field Summary

Modifier and TypeField and Description
private SessionFactoryImplementor
factory

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
private static final CoreMessageLogger

Constructor Summary

AccessConstructor and Description
public
EntityPrinter(SessionFactoryImplementor factory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the entity rendered to a string
toString
(String
the entity name
entityName
,
Object
an actual entity object, not a proxy!
entity
)

Renders an entity to a string.

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

public String
toString(Map<String, TypedValue> namedTypedValues)

public void
toString(Iterable<Map.Entry<EntityKey, Object>> entitiesByEntityKey)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

factoryback to summary
private SessionFactoryImplementor factory

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

LOGback to summary
private static final CoreMessageLogger LOG

Constructor Detail

EntityPrinterback to summary
public EntityPrinter(SessionFactoryImplementor factory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Method Detail

toStringback to summary
public String toString(String entityName, Object entity) throws HibernateException

Renders an entity to a string.

Parameters
entityName:String

the entity name

entity:Object

an actual entity object, not a proxy!

Returns:String

the entity rendered to a string

toStringback to summary
public String toString(Type[] types, Object[] values) throws HibernateException
toStringback to summary
public String toString(Map<String, TypedValue> namedTypedValues) throws HibernateException
toStringback to summary
public void toString(Iterable<Map.Entry<EntityKey, Object>> entitiesByEntityKey) throws HibernateException