|
Eamon CS
3.1.0
|
Represents a collection of records of type T in a database. More...
Public Member Functions | |
| RetCode | FreeRecords (bool dispose=true) |
| Fully reinitializes the IDbTable and restores it to its initial (empty) state. More... | |
| long | GetRecordCount () |
| Gets the number of records of type T stored in the Records collection. More... | |
| T | FindRecord (long uid) |
| Gets a record from the Records collection. More... | |
| T | FindRecord (Type type, bool exactMatch=false) |
| Gets a record from the Records collection based on interface type. More... | |
| RetCode | AddRecord (T record, bool makeCopy=false) |
| Adds a record to the Records collection. More... | |
| T | RemoveRecord (long uid) |
| Removes a record from the Records collection. More... | |
| T | RemoveRecord (Type type, bool exactMatch=false) |
| Removes a record from the Records collection based on interface type. More... | |
| long | GetRecordUid (bool allocate=true) |
| Gets the next available record Uid. More... | |
| void | FreeRecordUid (long uid) |
| Frees a record Uid, making it available again for use. More... | |
Properties | |
| ICollection< T > | Records [get, set] |
| Gets or sets the collection of records stored in the database table. More... | |
| SortedSet< long > | FreeUids [get, set] |
| Gets or sets the collection of Uids available for reuse by new instances of this record type; may be empty. More... | |
| long | CurrUid [get, set] |
| Gets or sets a sequence number representing the last Uid (unique ID) allocated to a record of type T. More... | |
Represents a collection of records of type T in a database.
| T | : | class | |
| T | : | IGameBase |
| RetCode Eamon.Framework.DataStorage.Generic.IDbTable< T >.AddRecord | ( | T | record, |
| bool | makeCopy = false |
||
| ) |
Adds a record to the Records collection.
| record | |
| makeCopy |
Implemented in Eamon.Game.DataStorage.Generic.DbTable< T >.
| T Eamon.Framework.DataStorage.Generic.IDbTable< T >.FindRecord | ( | long | uid | ) |
Gets a record from the Records collection.
| uid |
Implemented in Eamon.Game.DataStorage.Generic.DbTable< T >.
| T Eamon.Framework.DataStorage.Generic.IDbTable< T >.FindRecord | ( | Type | type, |
| bool | exactMatch = false |
||
| ) |
Gets a record from the Records collection based on interface type.
| type | |
| exactMatch |
Implemented in Eamon.Game.DataStorage.Generic.DbTable< T >.
| RetCode Eamon.Framework.DataStorage.Generic.IDbTable< T >.FreeRecords | ( | bool | dispose = true | ) |
Fully reinitializes the IDbTable and restores it to its initial (empty) state.
| dispose |
Implemented in Eamon.Game.DataStorage.Generic.DbTable< T >.
| void Eamon.Framework.DataStorage.Generic.IDbTable< T >.FreeRecordUid | ( | long | uid | ) |
Frees a record Uid, making it available again for use.
| uid |
Implemented in Eamon.Game.DataStorage.Generic.DbTable< T >.
| long Eamon.Framework.DataStorage.Generic.IDbTable< T >.GetRecordCount | ( | ) |
Gets the number of records of type T stored in the Records collection.
Implemented in Eamon.Game.DataStorage.Generic.DbTable< T >.
| long Eamon.Framework.DataStorage.Generic.IDbTable< T >.GetRecordUid | ( | bool | allocate = true | ) |
Gets the next available record Uid.
| allocate |
Implemented in Eamon.Game.DataStorage.Generic.DbTable< T >.
| T Eamon.Framework.DataStorage.Generic.IDbTable< T >.RemoveRecord | ( | long | uid | ) |
Removes a record from the Records collection.
| uid |
Implemented in Eamon.Game.DataStorage.Generic.DbTable< T >.
| T Eamon.Framework.DataStorage.Generic.IDbTable< T >.RemoveRecord | ( | Type | type, |
| bool | exactMatch = false |
||
| ) |
Removes a record from the Records collection based on interface type.
| type | |
| exactMatch |
Implemented in Eamon.Game.DataStorage.Generic.DbTable< T >.
|
getset |
Gets or sets a sequence number representing the last Uid (unique ID) allocated to a record of type T.
|
getset |
Gets or sets the collection of Uids available for reuse by new instances of this record type; may be empty.
|
getset |
Gets or sets the collection of records stored in the database table.