C# Class NHibernate.Impl.MessageHelper

Helper methods for rendering log messages and exception messages
Show file Open project: nhibernate/nhibernate-core

Public Methods

Method Description
InfoString ( ICollectionPersister persister, object id ) : String

Generate small message that can be used in traces and exception messages.

InfoString ( IEntityPersister persister ) : String

Generate small message that can be used in traces and exception messages.

InfoString ( ICollectionPersister persister, object id, ISessionFactoryImplementor factory ) : string

Generate an info message string relating to a particular managed collection.

InfoString ( IEntityPersister persister, object id ) : string

Generate small message that can be used in traces and exception messages.

InfoString ( IEntityPersister persister, object id, ISessionFactoryImplementor factory ) : string

Generate small message that can be used in traces and exception messages.

InfoString ( IEntityPersister persister, object id, IType identifierType, ISessionFactoryImplementor factory ) : string

Generate small message that can be used in traces and exception messages.

InfoString ( System clazz, object id ) : string

Generate small message that can be used in traces and exception messages.

InfoString ( string entityName, object id ) : string

Generate an info message string relating to a particular entity, based on the given entityName and id.

InfoString ( string entityName, string propertyName, object key ) : string

Generate an info message string relating to a given property value for an entity.

Private Methods

Method Description
AddIdToCollectionInfoString ( ICollectionPersister persister, object id, ISessionFactoryImplementor factory, StringBuilder s ) : void
CollectionInfoString ( ICollectionPersister persister, IPersistentCollection collection, object collectionKey, ISessionImplementor session ) : String

Generate an info message string relating to a particular managed collection. Attempts to intelligently handle property-refs issues where the collection key is not the same as the owner key.

CollectionInfoString ( ICollectionPersister persister, object id ) : string

Generate small message that can be used in traces and exception messages.

CollectionInfoString ( ICollectionPersister persister, object id, ISessionFactoryImplementor factory ) : string

Generate an info message string relating to a particular managed collection.

Method Details

InfoString() public static method

Generate small message that can be used in traces and exception messages.
public static InfoString ( ICollectionPersister persister, object id ) : String
persister ICollectionPersister The for the class in question
id object The id
return String

InfoString() public static method

Generate small message that can be used in traces and exception messages.
public static InfoString ( IEntityPersister persister ) : String
persister IEntityPersister The for the class in question
return String

InfoString() public static method

Generate an info message string relating to a particular managed collection.
public static InfoString ( ICollectionPersister persister, object id, ISessionFactoryImplementor factory ) : string
persister ICollectionPersister The persister for the collection
id object The id value of the owner
factory ISessionFactoryImplementor The session factory
return string

InfoString() public static method

Generate small message that can be used in traces and exception messages.
public static InfoString ( IEntityPersister persister, object id ) : string
persister IEntityPersister The for the class in question
id object The id
return string

InfoString() public static method

Generate small message that can be used in traces and exception messages.
public static InfoString ( IEntityPersister persister, object id, ISessionFactoryImplementor factory ) : string
persister IEntityPersister The for the class in question.
id object The identifier of the object.
factory ISessionFactoryImplementor The .
return string

InfoString() public static method

Generate small message that can be used in traces and exception messages.
public static InfoString ( IEntityPersister persister, object id, IType identifierType, ISessionFactoryImplementor factory ) : string
persister IEntityPersister The for the class in question.
id object The identifier of the object.
identifierType IType The NHibernate type of the identifier.
factory ISessionFactoryImplementor The .
return string

InfoString() public static method

Generate small message that can be used in traces and exception messages.
public static InfoString ( System clazz, object id ) : string
clazz System The to create the string from.
id object The identifier of the object.
return string

InfoString() public static method

Generate an info message string relating to a particular entity, based on the given entityName and id.
public static InfoString ( string entityName, object id ) : string
entityName string The defined entity name.
id object The entity id value.
return string

InfoString() public static method

Generate an info message string relating to a given property value for an entity.
public static InfoString ( string entityName, string propertyName, object key ) : string
entityName string The entity name
propertyName string The name of the property
key object The property value.
return string