当前页面:
在线文档首页 >
Hibernate 2.1.8 正式版 API 英文文档
MessageHelper (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档
net.sf.hibernate.impl
Class MessageHelper
java.lang.Object
net.sf.hibernate.impl.MessageHelper
- public final class MessageHelper
- extends Object
Helper methods for rendering log messages and exception
messages.
- Author:
- Max Andersen, Gavin King
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
infoString
public static String infoString(Class clazz,
Serializable id)
infoString
public static String infoString(ClassPersister persister,
Serializable id)
- Generate small message that can be used in traces and exception
messages.
- Parameters:
persister
- The persister for the class in questionid
- The id
- Returns:
- String on the form [FooBar#id]
infoString
public static String infoString(ClassPersister persister)
infoString
public static String infoString(CollectionPersister persister,
Serializable id)