C# Class Microsoft.Isam.Esent.Interop.ColumnValue

Base class for objects that represent a column value to be set.
Exibir arquivo Open project: ayende/managed-esent Class Usage Examples

Protected Methods

Method Description
ColumnValue ( ) : System

Initializes a new instance of the ColumnValue class.

GetValueFromBytes ( byte value, int startIndex, int count, int err ) : void

Given data retrieved from ESENT, decode the data and set the value in the ColumnValue object.

Private Methods

Method Description
MakeNativeRetrieveColumn ( NATIVE_RETRIEVECOLUMN &retrievecolumn ) : void

Create a native RetrieveColumn from this object.

MakeNativeSetColumn ( NATIVE_SETCOLUMN &setcolumn ) : void

Create a native SetColumn from this object.

RetrieveColumns ( JET_SESID sesid, JET_TABLEID tableid, ColumnValue columnValues ) : int

Recursive RetrieveColumns method for data pinning. This should pin a buffer and call the inherited RetrieveColumns method.

RetrieveTruncatedBuffers ( JET_SESID sesid, JET_TABLEID tableid, ColumnValue columnValues, NATIVE_RETRIEVECOLUMN nativeRetrievecolumns ) : void

Retrieve the value for columns whose buffers were truncated.

SetColumns ( JET_SESID sesid, JET_TABLEID tableid, ColumnValue columnValues, NATIVE_SETCOLUMN nativeColumns, int i ) : int

Recursive SetColumns method for data pinning. This should populate the buffer and call the inherited SetColumns method.

SetColumns ( JET_SESID sesid, JET_TABLEID tableid, ColumnValue columnValues, NATIVE_SETCOLUMN nativeColumns, int i, void buffer, int bufferSize, bool hasValue ) : int

Recursive SetColumns function used to pin data.

This is marked as internal because it uses the NATIVE_SETCOLUMN type which is also marked as internal. It should be treated as a protected method though.

Method Details

ColumnValue() protected method

Initializes a new instance of the ColumnValue class.
protected ColumnValue ( ) : System
return System

GetValueFromBytes() protected abstract method

Given data retrieved from ESENT, decode the data and set the value in the ColumnValue object.
protected abstract GetValueFromBytes ( byte value, int startIndex, int count, int err ) : void
value byte An array of bytes.
startIndex int The starting position within the bytes.
count int The number of bytes to decode.
err int The error returned from ESENT.
return void