| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.pretty.MessageHelper
public final class MessageHelper
MessageHelper methods for rendering log messages relating to managed entities and collections typically used in log statements and exception messages.
| Method Summary | |
|---|---|
| static String | collectionInfoString(CollectionPersister persister,
                     Serializable[] ids,
                     SessionFactoryImplementor factory)Generate an info message string relating to a series of managed collections. | 
| static String | collectionInfoString(CollectionPersister persister,
                     Serializable id,
                     SessionFactoryImplementor factory)Generate an info message string relating to a particular managed collection. | 
| static String | collectionInfoString(String role,
                     Serializable id)Generate an info message string relating to a particular managed collection. | 
| static String | infoString(EntityPersister persister)Generate an info message string relating to given entity persister. | 
| static String | infoString(EntityPersister persister,
           Object id,
           SessionFactoryImplementor factory)Generate an info message string relating to a particular entity. | 
| static String | infoString(EntityPersister persister,
           Object id,
           Type identifierType,
           SessionFactoryImplementor factory)Generate an info message string relating to a particular entity,. | 
| static String | infoString(EntityPersister persister,
           Serializable[] ids,
           SessionFactoryImplementor factory)Generate an info message string relating to a series of entities. | 
| static String | infoString(String entityName,
           Serializable id)Generate an info message string relating to a particular entity, based on the given entityName and id. | 
| static String | infoString(String entityName,
           String propertyName,
           Object key)Generate an info message string relating to a given property value for an entity. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static String infoString(String entityName,
                                Serializable id)
entityName - The defined entity name.id - The entity id value.
public static String infoString(EntityPersister persister,
                                Object id,
                                SessionFactoryImplementor factory)
persister - The persister for the entityid - The entity id valuefactory - The session factory
public static String infoString(EntityPersister persister,
                                Object id,
                                Type identifierType,
                                SessionFactoryImplementor factory)
persister - The persister for the entityid - The entity id valueidentifierType - The entity identifier type mappingfactory - The session factory
public static String infoString(EntityPersister persister,
                                Serializable[] ids,
                                SessionFactoryImplementor factory)
persister - The persister for the entitiesids - The entity id valuesfactory - The session factory
public static String infoString(EntityPersister persister)
persister - The persister.
public static String infoString(String entityName,
                                String propertyName,
                                Object key)
entityName - The entity namepropertyName - The name of the propertykey - The property value.
public static String collectionInfoString(CollectionPersister persister,
                                          Serializable[] ids,
                                          SessionFactoryImplementor factory)
persister - The persister for the collectionsids - The id values of the ownersfactory - The session factory
public static String collectionInfoString(CollectionPersister persister,
                                          Serializable id,
                                          SessionFactoryImplementor factory)
persister - The persister for the collectionid - The id value of the ownerfactory - The session factory
public static String collectionInfoString(String role,
                                          Serializable id)
role - The role-name of the collectionid - The id value of the owner
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||