Package 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.
-
-
Constructor Summary
Constructors Constructor Description EntityPrinter(SessionFactoryImplementor factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
toString(Iterable<Map.Entry<EntityKey,Object>> entitiesByEntityKey)
String
toString(String entityName, Object entity)
Renders an entity to a string.String
toString(Map<String,TypedValue> namedTypedValues)
String
toString(Type[] types, Object[] values)
-
-
-
Constructor Detail
-
EntityPrinter
public EntityPrinter(SessionFactoryImplementor factory)
-
-
Method Detail
-
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
-
-