Interface to map external entity IDs to internal ones to ensure that there are no gaps in the numbering. More...
Public Member Functions | |
IList< int > | ToInternalID (IList< long > original_id_list) |
Get internal IDs of a list of given entities. | |
int | ToInternalID (long original_id) |
Get internal ID of a given entity. If the given external ID is unknown, create a new internal ID for it and store the mapping. | |
IList< long > | ToOriginalID (IList< int > internal_id_list) |
Get original (external) IDs of a list of given entities. | |
long | ToOriginalID (int internal_id) |
Get original (external) ID of a given entity, if the given internal ID is unknown, throw an exception. | |
Properties | |
ICollection< int > | InternalIDs [get] |
all internal entity IDs | |
ICollection< long > | OriginalIDs [get] |
all original (external) entity IDs |
Interface to map external entity IDs to internal ones to ensure that there are no gaps in the numbering.
IList<int> ToInternalID | ( | IList< long > | original_id_list | ) |
Get internal IDs of a list of given entities.
original_id_list | the list of original (external) IDs |
Implemented in EntityMapping, and IdentityMapping.
int ToInternalID | ( | long | original_id | ) |
Get internal ID of a given entity. If the given external ID is unknown, create a new internal ID for it and store the mapping.
original_id | the original (external) ID of the entity |
Implemented in EntityMapping, and IdentityMapping.
IList<long> ToOriginalID | ( | IList< int > | internal_id_list | ) |
Get original (external) IDs of a list of given entities.
internal_id_list | the list of internal IDs |
Implemented in EntityMapping, and IdentityMapping.
long ToOriginalID | ( | int | internal_id | ) |
Get original (external) ID of a given entity, if the given internal ID is unknown, throw an exception.
internal_id | the internal ID of the entity |
Implemented in EntityMapping, and IdentityMapping.
ICollection<int> InternalIDs [get] |
ICollection<long> OriginalIDs [get] |
all original (external) entity IDs
all original (external) entity IDs
Implemented in EntityMapping, and IdentityMapping.