C# Class NSoft.NFramework.Data.NHibernateEx.Domain.UserTypes.AbstractCompressBlobUserType

이진 데이타를 가지는 속성 값을 압축하여 저장하는 UserType의 추상 클래스입니다.
Inheritance: AbstractCompressUserType
ファイルを表示 Open project: debop/NFramework

Public Methods

Method Description
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.

Protected Methods

Method Description
CompressValue ( byte value ) : byte[]

문자열을 압축합니다.

DecompressValue ( byte value ) : byte[]

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

Method Details

CompressValue() protected method

문자열을 압축합니다.
protected CompressValue ( byte value ) : byte[]
value byte
return byte[]

DecompressValue() protected method

압축된 정보를 복원하여 문자열로 반환합니다.
protected DecompressValue ( byte value ) : byte[]
value byte
return byte[]

NullSafeGet() public method

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
return object

NullSafeSet() public method

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
return void