NTP Analyzer
0.8.2
Analyze the operation of time servers
|
OR/M mapper for table peer. More...
Protected Member Functions | |
override void | Insert (Peer item) |
override void | ReadContent () |
override void | Update (Peer item) |
Protected Member Functions inherited from Ntp.Analyzer.Data.Sql.SqlDatabaseMapper< Peer > | |
SqlDatabaseMapper (LogBase log) | |
void | AddItem (T item) |
void | Close () |
IDbDataParameter | CreateParameter (string name, object value) |
virtual T | FetchExternal (int id) |
abstract void | Insert (T item) |
void | Open () |
string | PrepareInsertSql (string sql) |
virtual string | PrepareSql (string sql) |
void | RemoveItem (T item) |
abstract void | Update (T item) |
Protected Attributes | |
override string | CreateSql |
override string | TableName => "peer" |
override bool | UseCache => true |
Protected Attributes inherited from Ntp.Analyzer.Data.Sql.SqlDatabaseMapper< Peer > | |
IEnumerable< T > | Content |
readonly object | MapperLocker |
IDataReader | Reader |
Package Functions | |
PeerDatabaseMapper (TimeServerDatabaseMapper timeServerMapper, LogBase log) | |
Private Attributes | |
const string | InsertSql |
const string | SelectSql |
readonly TimeServerDatabaseMapper | timeServerMapper |
const string | UpdateSql |
Additional Inherited Members | |
Public Member Functions inherited from Ntp.Analyzer.Data.Sql.SqlDatabaseMapper< Peer > | |
void | CheckTable () |
override IEnumerator< T > | GetEnumerator () |
Read all data from table in a sequential manner. More... | |
void | Save (T item) |
Properties inherited from Ntp.Analyzer.Data.Sql.SqlDatabaseMapper< Peer > | |
IDbCommand | Command [get, private set] |
abstract string | CreateSql [get] |
abstract string | TableName [get] |
T | this[int id] [get] |
abstract bool | UseCache [get] |
OR/M mapper for table peer.
Definition at line 34 of file PeerDatabaseMapper.cs.
|
inlinepackage |
Definition at line 36 of file PeerDatabaseMapper.cs.
|
inlineprotected |
Definition at line 65 of file PeerDatabaseMapper.cs.
References e, Ntp.Analyzer.Objects.Peer.Ip, Ntp.Analyzer.Objects.NamedObject.Name, Ntp.Analyzer.Objects.Peer.OrgId, and Ntp.Analyzer.Objects.PersistentObject.SetId().
|
inlineprotectedvirtual |
Implements Ntp.Analyzer.Data.Sql.SqlDatabaseMapper< Peer >.
Definition at line 93 of file PeerDatabaseMapper.cs.
References e.
|
inlineprotected |
Definition at line 130 of file PeerDatabaseMapper.cs.
References e, Ntp.Analyzer.Objects.PersistentObject.Id, Ntp.Analyzer.Objects.Peer.Ip, Ntp.Analyzer.Objects.NamedObject.Name, and Ntp.Analyzer.Objects.Peer.OrgId.
|
protected |
Definition at line 57 of file PeerDatabaseMapper.cs.
|
private |
Definition at line 45 of file PeerDatabaseMapper.cs.
|
private |
Definition at line 42 of file PeerDatabaseMapper.cs.
|
protected |
Definition at line 55 of file PeerDatabaseMapper.cs.
|
private |
Definition at line 51 of file PeerDatabaseMapper.cs.
|
private |
Definition at line 48 of file PeerDatabaseMapper.cs.
|
protected |
Definition at line 53 of file PeerDatabaseMapper.cs.