IdentityMapping Class Reference
Identity mapping for entity IDs: Every original ID is mapped to itself.
More...
List of all members.
Public Member Functions |
IList< int > | ToInternalID (IList< int > original_id_list) |
| Get internal IDs of a list of given entities.
|
int | ToInternalID (int 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< int > | ToOriginalID (IList< int > internal_id_list) |
| Get original (external) IDs of a list of given entities.
|
int | 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< int > | OriginalIDs [get] |
| all original (external) entity IDs
|
Detailed Description
Identity mapping for entity IDs: Every original ID is mapped to itself.
Member Function Documentation
IList<int> ToInternalID |
( |
IList< int > |
original_id_list |
) |
|
Get internal IDs of a list of given entities.
- Parameters:
-
| original_id_list | the list of original (external) IDs |
- Returns:
- a list of internal IDs
Implements IEntityMapping.
int ToInternalID |
( |
int |
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.
- Parameters:
-
| original_id | the original (external) ID of the entity |
- Returns:
- the internal ID of the entitiy
Implements IEntityMapping.
IList<int> ToOriginalID |
( |
IList< int > |
internal_id_list |
) |
|
Get original (external) IDs of a list of given entities.
- Parameters:
-
| internal_id_list | the list of internal IDs |
- Returns:
- the list of original (external) IDs
Implements IEntityMapping.
int ToOriginalID |
( |
int |
internal_id |
) |
|
Get original (external) ID of a given entity, if the given internal ID is unknown, throw an exception.
- Parameters:
-
| internal_id | the internal ID of the entity |
- Returns:
- the original (external) ID of the entitiy
Implements IEntityMapping.
Property Documentation
ICollection<int> InternalIDs [get] |
all internal entity IDs
all internal entity IDs
Implements IEntityMapping.
ICollection<int> OriginalIDs [get] |
all original (external) entity IDs
all original (external) entity IDs
Implements IEntityMapping.
The documentation for this class was generated from the following file: