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

특정 객체를 JSON 직렬화를 통해 DB에 저장하고, 읽어올 때에는 역직렬화를 통해 객체로 반환합니다. 겍체의 수형 정보와 직렬화 정보가 저장됩니다.
Inheritance: IoCCompressStringUserType
ファイルを表示 Open project: debop/NFramework

Public Methods

Method Description
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[]

객체를 직렬화합니다.

Method Details

Deserialize() public method

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

NullSafeGet() public method

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
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 ( System cmd, object value, int index ) : void
cmd System a IDbCommand
value object the object to write
index int command parameter index
return void

Serialize() public method

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