站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

MessageHelper (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate.impl
Class MessageHelper

java.lang.Object
  extended bynet.sf.hibernate.impl.MessageHelper

public final class MessageHelper
extends Object

Helper methods for rendering log messages and exception messages.

Author:
Max Andersen, Gavin King

Method Summary
static String infoString(ClassPersister persister)
           
static String infoString(ClassPersister persister, Serializable id)
          Generate small message that can be used in traces and exception messages.
static String infoString(Class clazz, Serializable id)
           
static String infoString(CollectionPersister persister, Serializable id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 question
id - 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)