C# Класс NSoft.NFramework.Data.NHibernateEx.Domain.UserTypes.AbstractCompressStringUserType

문자열을 압축하여 저장하는 User Type의 기본 형식입니다.
Наследование: AbstractCompressUserType
Показать файл Открыть проект

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

Метод Описание
NullSafeGet ( IDataReader rs, string names, object owner ) : object

Retrieve an instance of the mapped class from a JDBC resultset. Implementors should handle possibility of null values.

NullSafeSet ( IDbCommand cmd, object value, int index ) : void

Write an instance of the mapped class to a prepared statement. Implementors should handle possibility of null values. A multi-column type should be written to parameters starting from index.

Защищенные методы

Метод Описание
CompressValue ( string value ) : byte[]

문자열을 압축합니다.

DecompressValue ( byte value ) : string

압축된 정보를 복원하여 문자열로 반환합니다.

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

CompressValue() защищенный Метод

문자열을 압축합니다.
protected CompressValue ( string value ) : byte[]
value string
Результат byte[]

DecompressValue() защищенный Метод

압축된 정보를 복원하여 문자열로 반환합니다.
protected DecompressValue ( byte value ) : string
value byte
Результат string

NullSafeGet() публичный Метод

Retrieve an instance of the mapped class from a JDBC resultset. Implementors should handle possibility of null values.
HibernateException
public NullSafeGet ( IDataReader rs, string names, object owner ) : object
rs IDataReader a IDataReader
names string column names
owner object the containing entity
Результат object

NullSafeSet() публичный Метод

Write an instance of the mapped class to a prepared statement. Implementors should handle possibility of null values. A multi-column type should be written to parameters starting from index.
HibernateException
public NullSafeSet ( IDbCommand cmd, object value, int index ) : void
cmd IDbCommand a IDbCommand
value object the object to write
index int command parameter index
Результат void