org.hibernate.internal.util
Class EntityPrinter
java.lang.Object
org.hibernate.internal.util.EntityPrinter
public final class EntityPrinter
- extends Object
Renders entities and query parameters to a nicely readable string.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityPrinter
public EntityPrinter(SessionFactoryImplementor factory)
toString
public String toString(String entityName,
Object entity)
throws HibernateException
- Renders an entity to a string.
- Parameters:
entityName
- the entity nameentity
- an actual entity object, not a proxy!
- Returns:
- the entity rendered to a string
- Throws:
HibernateException
toString
public String toString(Type[] types,
Object[] values)
throws HibernateException
- Throws:
HibernateException
toString
public String toString(Map<String,TypedValue> namedTypedValues)
throws HibernateException
- Throws:
HibernateException
toString
public void toString(Iterable<Map.Entry<EntityKey,Object>> entitiesByEntityKey)
throws HibernateException
- Throws:
HibernateException
Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.