Interface ICacheReader
Reads one or more than forward-only stream of result sets by executing OQ commands on cache source.
Namespace:
Assembly: Alachisoft.NCache.Web.dll
Syntax
public interface ICacheReader : IDisposable
FieldCount
Gets number of columns.
Declaration
int FieldCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
IsClosed
True, if reader is closed else false.
Declaration
bool IsClosed { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Item[Int32]
Returns object at specified index.
Declaration
object this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of column |
Property Value
Type | Description |
---|---|
System.Object | object value of specified index |
Item[String]
Returns object at specified column.
Declaration
object this[string columnName] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | columnName | Namme of the column. |
Property Value
Type | Description |
---|---|
System.Object | value of specified column. |
Close()
Closes IDataReader
Declaration
void Close()
GetBoolean(Int32)
Gets value of specified index as bool
Declaration
bool GetBoolean(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of column |
Returns
Type | Description |
---|---|
System.Boolean | bool value on specified index |
GetDateTime(Int32)
Returns DateTime at specified column index
Declaration
DateTime GetDateTime(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of Column |
Returns
Type | Description |
---|---|
System.DateTime |
GetDecimal(Int32)
Gets value of specified index as decimal
Declaration
decimal GetDecimal(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of column |
Returns
Type | Description |
---|---|
System.Decimal | decimal value on specified index |
GetDouble(Int32)
Gets value of specified index as double
Declaration
double GetDouble(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of column |
Returns
Type | Description |
---|---|
System.Double | double value on specified index |
GetInt16(Int32)
Gets value of specified index as 16 bit integer
Declaration
short GetInt16(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of column |
Returns
Type | Description |
---|---|
System.Int16 | Int16 value on specified index |
GetInt32(Int32)
Gets value of specified index as 32 bit integer
Declaration
int GetInt32(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of column |
Returns
Type | Description |
---|---|
System.Int32 | Int32 value on specified index |
GetInt64(Int32)
Gets value of specified index as 64 bit integer
Declaration
long GetInt64(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of column |
Returns
Type | Description |
---|---|
System.Int64 | Int64 value on specified index |
GetName(Int32)
Returns name of specidied column index
Declaration
string GetName(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of column |
Returns
Type | Description |
---|---|
System.String | Name of column |
GetOrdinal(String)
Returns index of specified column name
Declaration
int GetOrdinal(string columnName)
Parameters
Type | Name | Description |
---|---|---|
System.String | columnName | Name of column |
Returns
Type | Description |
---|---|
System.Int32 | Index of column |
GetString(Int32)
Gets value of specified index as string
Declaration
string GetString(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of column |
Returns
Type | Description |
---|---|
System.String | string value on specified column |
GetValue(Int32)
Gets value at specified column index
Declaration
object GetValue(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of column |
Returns
Type | Description |
---|---|
System.Object | long value on specified index |
GetValues(Object[])
Populates array of objects with values in current row
Declaration
int GetValues(object[] objects)
Parameters
Type | Name | Description |
---|---|---|
System.Object[] | objects | array of objects to be populated |
Returns
Type | Description |
---|---|
System.Int32 | No of objects copied in specified array |
Read()
Advances ICacheReader to next record
Declaration
bool Read()
Returns
Type | Description |
---|---|
System.Boolean | true if there are more rows; else false |