C# 클래스 NSoft.NFramework.Data.NHibernateEx.Domain.UserTypes.AbstractCompressStringUserType

문자열을 압축하여 저장하는 User Type의 기본 형식입니다.
상속: AbstractCompressUserType
파일 보기 프로젝트 열기: debop/NFramework

공개 메소드들

메소드 설명
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