DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Protected Member Functions | Properties | Private Attributes | List of all members
Deveel.Data.Linq.DeveelDbExecutor.TableFieldReader Class Reference
Inheritance diagram for Deveel.Data.Linq.DeveelDbExecutor.TableFieldReader:

Public Member Functions

 TableFieldReader (ITable table)
 
bool NextRow ()
 

Protected Member Functions

override Type GetFieldType (int ordinal)
 
override bool IsDBNull (int ordinal)
 
override T GetValue< T > (int ordinal)
 
override byte GetByte (int ordinal)
 
override char GetChar (int ordinal)
 
override DateTime GetDateTime (int ordinal)
 
override decimal GetDecimal (int ordinal)
 
override double GetDouble (int ordinal)
 
override float GetSingle (int ordinal)
 
override Guid GetGuid (int ordinal)
 
override short GetInt16 (int ordinal)
 
override int GetInt32 (int ordinal)
 
override long GetInt64 (int ordinal)
 
override string GetString (int ordinal)
 

Properties

override int FieldCount [get]
 

Private Attributes

readonly ITable table
 
int rowOffset = -1
 
Row row
 

Detailed Description

Definition at line 128 of file DeveelDbExecutor.cs.

Constructor & Destructor Documentation

Deveel.Data.Linq.DeveelDbExecutor.TableFieldReader.TableFieldReader ( ITable  table)
inline

Definition at line 133 of file DeveelDbExecutor.cs.

133  {
134  this.table = table;
135  Init();
136  }

Member Function Documentation

override byte Deveel.Data.Linq.DeveelDbExecutor.TableFieldReader.GetByte ( int  ordinal)
inlineprotected

Definition at line 160 of file DeveelDbExecutor.cs.

160  {
161  return GetValue<byte>(ordinal);
162  }
override char Deveel.Data.Linq.DeveelDbExecutor.TableFieldReader.GetChar ( int  ordinal)
inlineprotected

Definition at line 164 of file DeveelDbExecutor.cs.

164  {
165  return GetValue<char>(ordinal);
166  }
override DateTime Deveel.Data.Linq.DeveelDbExecutor.TableFieldReader.GetDateTime ( int  ordinal)
inlineprotected

Definition at line 168 of file DeveelDbExecutor.cs.

168  {
169  return GetValue<DateTime>(ordinal);
170  }
override decimal Deveel.Data.Linq.DeveelDbExecutor.TableFieldReader.GetDecimal ( int  ordinal)
inlineprotected

Definition at line 172 of file DeveelDbExecutor.cs.

172  {
173  throw new NotImplementedException();
174  }
override double Deveel.Data.Linq.DeveelDbExecutor.TableFieldReader.GetDouble ( int  ordinal)
inlineprotected

Definition at line 176 of file DeveelDbExecutor.cs.

176  {
177  return GetValue<double>(ordinal);
178  }
override Type Deveel.Data.Linq.DeveelDbExecutor.TableFieldReader.GetFieldType ( int  ordinal)
inlineprotected

Definition at line 146 of file DeveelDbExecutor.cs.

146  {
147  var sqlType = row[ordinal].Type;
148  return sqlType.GetRuntimeType();
149  }
override Guid Deveel.Data.Linq.DeveelDbExecutor.TableFieldReader.GetGuid ( int  ordinal)
inlineprotected

Definition at line 184 of file DeveelDbExecutor.cs.

184  {
185  throw new NotImplementedException();
186  }
override short Deveel.Data.Linq.DeveelDbExecutor.TableFieldReader.GetInt16 ( int  ordinal)
inlineprotected

Definition at line 188 of file DeveelDbExecutor.cs.

188  {
189  return GetValue<short>(ordinal);
190  }
override int Deveel.Data.Linq.DeveelDbExecutor.TableFieldReader.GetInt32 ( int  ordinal)
inlineprotected

Definition at line 192 of file DeveelDbExecutor.cs.

192  {
193  return GetValue<int>(ordinal);
194  }
override long Deveel.Data.Linq.DeveelDbExecutor.TableFieldReader.GetInt64 ( int  ordinal)
inlineprotected

Definition at line 196 of file DeveelDbExecutor.cs.

196  {
197  return GetValue<long>(ordinal);
198  }
override float Deveel.Data.Linq.DeveelDbExecutor.TableFieldReader.GetSingle ( int  ordinal)
inlineprotected

Definition at line 180 of file DeveelDbExecutor.cs.

180  {
181  return GetValue<float>(ordinal);
182  }
override string Deveel.Data.Linq.DeveelDbExecutor.TableFieldReader.GetString ( int  ordinal)
inlineprotected

Definition at line 200 of file DeveelDbExecutor.cs.

200  {
201  return GetValue<string>(ordinal);
202  }
override T Deveel.Data.Linq.DeveelDbExecutor.TableFieldReader.GetValue< T > ( int  ordinal)
inlineprotected

Definition at line 155 of file DeveelDbExecutor.cs.

155  {
156  var value = row[ordinal];
157  return (T) value.Type.ConvertTo(value.Value, typeof (T));
158  }
override bool Deveel.Data.Linq.DeveelDbExecutor.TableFieldReader.IsDBNull ( int  ordinal)
inlineprotected

Definition at line 151 of file DeveelDbExecutor.cs.

151  {
152  return row[ordinal].IsNull;
153  }
bool Deveel.Data.Linq.DeveelDbExecutor.TableFieldReader.NextRow ( )
inline

Definition at line 138 of file DeveelDbExecutor.cs.

138  {
139  if (++rowOffset >= table.RowCount)
140  return false;
141 
142  row = table.GetRow(rowOffset);
143  return true;
144  }
int RowCount
Gets the total number of rows in the table.
Definition: ITable.cs:52

Member Data Documentation

Row Deveel.Data.Linq.DeveelDbExecutor.TableFieldReader.row
private

Definition at line 131 of file DeveelDbExecutor.cs.

int Deveel.Data.Linq.DeveelDbExecutor.TableFieldReader.rowOffset = -1
private

Definition at line 130 of file DeveelDbExecutor.cs.

readonly ITable Deveel.Data.Linq.DeveelDbExecutor.TableFieldReader.table
private

Definition at line 129 of file DeveelDbExecutor.cs.

Property Documentation

override int Deveel.Data.Linq.DeveelDbExecutor.TableFieldReader.FieldCount
getprotected

Definition at line 204 of file DeveelDbExecutor.cs.


The documentation for this class was generated from the following file: