C# Класс NHibernate.Impl.MessageHelper

Helper methods for rendering log messages and exception messages
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

InfoString() публичный статический Метод

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
Результат String

InfoString() публичный статический Метод

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
Результат String

InfoString() публичный статический Метод

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
Результат string

InfoString() публичный статический Метод

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
Результат string

InfoString() публичный статический Метод

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 .
Результат string

InfoString() публичный статический Метод

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 .
Результат string

InfoString() публичный статический Метод

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.
Результат string

InfoString() публичный статический Метод

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.
Результат string

InfoString() публичный статический Метод

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.
Результат string