public final class MessageHelper
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
collectionInfoString(CollectionPersister persister,
PersistentCollection collection,
java.io.Serializable collectionKey,
SessionImplementor session)
Generate an info message string relating to a particular managed
collection.
|
static java.lang.String |
collectionInfoString(CollectionPersister persister,
java.io.Serializable[] ids,
SessionFactoryImplementor factory)
Generate an info message string relating to a series of managed
collections.
|
static java.lang.String |
collectionInfoString(CollectionPersister persister,
java.io.Serializable id,
SessionFactoryImplementor factory)
Generate an info message string relating to a particular managed
collection.
|
static java.lang.String |
collectionInfoString(java.lang.String role,
java.io.Serializable id)
Generate an info message string relating to a particular managed
collection.
|
static java.lang.String |
infoString(EntityPersister persister)
Generate an info message string relating to given entity persister.
|
static java.lang.String |
infoString(EntityPersister persister,
java.lang.Object id,
SessionFactoryImplementor factory)
Generate an info message string relating to a particular entity.
|
static java.lang.String |
infoString(EntityPersister persister,
java.lang.Object id,
Type identifierType,
SessionFactoryImplementor factory)
Generate an info message string relating to a particular entity,.
|
static java.lang.String |
infoString(EntityPersister persister,
java.io.Serializable[] ids,
SessionFactoryImplementor factory)
Generate an info message string relating to a series of entities.
|
static java.lang.String |
infoString(java.lang.String entityName,
java.io.Serializable id)
Generate an info message string relating to a particular entity,
based on the given entityName and id.
|
static java.lang.String |
infoString(java.lang.String entityName,
java.lang.String propertyName,
java.lang.Object key)
Generate an info message string relating to a given property value
for an entity.
|
public static java.lang.String infoString(java.lang.String entityName,
java.io.Serializable id)
entityName - The defined entity name.id - The entity id value.public static java.lang.String infoString(EntityPersister persister, java.lang.Object id, SessionFactoryImplementor factory)
persister - The persister for the entityid - The entity id valuefactory - The session factory - Could be null!public static java.lang.String infoString(EntityPersister persister, java.lang.Object id, Type identifierType, SessionFactoryImplementor factory)
persister - The persister for the entityid - The entity id valueidentifierType - The entity identifier type mappingfactory - The session factorypublic static java.lang.String infoString(EntityPersister persister, java.io.Serializable[] ids, SessionFactoryImplementor factory)
persister - The persister for the entitiesids - The entity id valuesfactory - The session factorypublic static java.lang.String infoString(EntityPersister persister)
persister - The persister.public static java.lang.String infoString(java.lang.String entityName,
java.lang.String propertyName,
java.lang.Object key)
entityName - The entity namepropertyName - The name of the propertykey - The property value.public static java.lang.String collectionInfoString(CollectionPersister persister, PersistentCollection collection, java.io.Serializable collectionKey, SessionImplementor session)
persister - The persister for the collectioncollection - The collection itselfcollectionKey - The collection keysession - The sessionpublic static java.lang.String collectionInfoString(CollectionPersister persister, java.io.Serializable[] ids, SessionFactoryImplementor factory)
persister - The persister for the collectionsids - The id values of the ownersfactory - The session factorypublic static java.lang.String collectionInfoString(CollectionPersister persister, java.io.Serializable id, SessionFactoryImplementor factory)
persister - The persister for the collectionid - The id value of the ownerfactory - The session factorypublic static java.lang.String collectionInfoString(java.lang.String role,
java.io.Serializable id)
role - The role-name of the collectionid - The id value of the ownerCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.