class SqlMappingIdentity extends Object
SqlMappingAttribute
.
For the purpose of correct left join handling, the identities are identified. They are used to prevent the repeated
rows in the output result set. This is used for the associations (one-to-one, one-to-many and many-to-many).Modifier and Type | Field and Description |
---|---|
(package private) List<List<Integer>> |
allIdentityIndexes
The list of all parent alternative identities.
|
(package private) Integer |
idenityDistance
The distance from the identity column.
|
(package private) List<Integer> |
identityIndexes
The list of all alternative identities.
|
(package private) SqlMappingItem |
item
The related mapping rule element for one output attribute.
|
(package private) SqlMappingAttribute |
itemAttribute
The related mapping rule sub-element for one output attribute.
|
Constructor and Description |
---|
SqlMappingIdentity(SqlMappingItem item)
Creates a new instance.
|
SqlMappingIdentity(SqlMappingItem item,
SqlMappingAttribute itemAttribute)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
addIdentityIndex(Integer identityIndex,
boolean reset)
Adds a new identity index.
|
String |
toString()
For debug purposes.
|
List<Integer> identityIndexes
List<List<Integer>> allIdentityIndexes
Integer idenityDistance
SqlMappingItem item
SqlMappingAttribute itemAttribute
SqlMappingIdentity(SqlMappingItem item)
item
- the related mapping rule elementSqlMappingIdentity(SqlMappingItem item, SqlMappingAttribute itemAttribute)
item
- the related mapping rule elementitemAttribute
- the related mapping rule sub-elementvoid addIdentityIndex(Integer identityIndex, boolean reset)
identityIndex
- a new identity indexreset
- an indicator this is the only identity indexCopyright © 2016. All rights reserved.