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

특정 객체를 JSON 직렬화를 통해 DB에 저장하고, 읽어올 때에는 역직렬화를 통해 객체로 반환합니다. 겍체의 수형 정보와 직렬화 정보가 저장됩니다.
상속: IoCCompressStringUserType
파일 보기 프로젝트 열기: debop/NFramework

공개 메소드들

메소드 설명
Deserialize ( byte compressedBytes ) : object

저장된 문자열을 역직렬화하여 객체로 반환한다.

NullSafeGet ( System 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 ( System 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.

Serialize ( object graph ) : byte[]

객체를 직렬화합니다.

메소드 상세

Deserialize() 공개 메소드

저장된 문자열을 역직렬화하여 객체로 반환한다.
public Deserialize ( byte compressedBytes ) : object
compressedBytes byte 압축 저장된 Data
리턴 object

NullSafeGet() 공개 메소드

Retrieve an instance of the mapped class from a JDBC resultset. Implementors should handle possibility of null values.
HibernateException
public NullSafeGet ( System rs, string names, object owner ) : object
rs System 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 ( System cmd, object value, int index ) : void
cmd System a IDbCommand
value object the object to write
index int command parameter index
리턴 void

Serialize() 공개 메소드

객체를 직렬화합니다.
public Serialize ( object graph ) : byte[]
graph object
리턴 byte[]