public interface IdMapper
Modifier and Type | Method and Description |
---|---|
void |
addIdEqualsToQuery(Parameters parameters,
java.lang.Object id,
java.lang.String alias,
java.lang.String prefix,
boolean equals)
Adds query statements, which contains restrictions, which express the property that the id of the entity
with alias prefix, is equal to the given object.
|
void |
addIdsEqualToQuery(Parameters parameters,
java.lang.String prefix1,
IdMapper mapper2,
java.lang.String prefix2)
Adds query statements, which contains restrictions, which express the property that the id of the entity
with alias prefix1, is equal to the id of the entity with alias prefix2 mapped by the second mapper
(the second mapper must be for the same entity, but it can have, for example, prefixed properties).
|
void |
addIdsEqualToQuery(Parameters parameters,
java.lang.String prefix1,
java.lang.String prefix2)
Adds query statements, which contains restrictions, which express the property that the id of the entity
with alias prefix1, is equal to the id of the entity with alias prefix2 (the entity is the same).
|
void |
addNamedIdEqualsToQuery(Parameters parameters,
java.lang.String prefix,
boolean equals)
Adds query statements, which contains named parameters, which express the property that the id of the entity
with alias prefix, is equal to the given object.
|
ServiceRegistry |
getServiceRegistry() |
boolean |
mapToEntityFromMap(java.lang.Object obj,
java.util.Map data) |
java.lang.Object |
mapToIdFromEntity(java.lang.Object data) |
java.lang.Object |
mapToIdFromMap(java.util.Map data) |
void |
mapToMapFromEntity(java.util.Map<java.lang.String,java.lang.Object> data,
java.lang.Object obj) |
void |
mapToMapFromId(java.util.Map<java.lang.String,java.lang.Object> data,
java.lang.Object obj) |
java.util.List<QueryParameterData> |
mapToQueryParametersFromId(java.lang.Object obj) |
IdMapper |
prefixMappedProperties(java.lang.String prefix)
Creates a mapper with all mapped properties prefixed.
|
ServiceRegistry getServiceRegistry()
void mapToMapFromId(java.util.Map<java.lang.String,java.lang.Object> data, java.lang.Object obj)
void mapToMapFromEntity(java.util.Map<java.lang.String,java.lang.Object> data, java.lang.Object obj)
boolean mapToEntityFromMap(java.lang.Object obj, java.util.Map data)
obj
- Object to map to.data
- Data to map.null
).java.lang.Object mapToIdFromEntity(java.lang.Object data)
java.lang.Object mapToIdFromMap(java.util.Map data)
IdMapper prefixMappedProperties(java.lang.String prefix)
prefix
- Prefix to add to mapped propertiesjava.util.List<QueryParameterData> mapToQueryParametersFromId(java.lang.Object obj)
obj
- Id from which to map.void addIdsEqualToQuery(Parameters parameters, java.lang.String prefix1, java.lang.String prefix2)
parameters
- Parameters, to which to add the statements.prefix1
- First alias of the entity + prefix to add to the properties.prefix2
- Second alias of the entity + prefix to add to the properties.void addIdsEqualToQuery(Parameters parameters, java.lang.String prefix1, IdMapper mapper2, java.lang.String prefix2)
parameters
- Parameters, to which to add the statements.prefix1
- First alias of the entity + prefix to add to the properties.mapper2
- Second mapper for the same entity, which will be used to get properties for the right side
of the equation.prefix2
- Second alias of the entity + prefix to add to the properties.void addIdEqualsToQuery(Parameters parameters, java.lang.Object id, java.lang.String alias, java.lang.String prefix, boolean equals)
parameters
- Parameters, to which to add the statements.id
- Value of id.alias
- the alias to use in the specified parameters (may be null).prefix
- Prefix to add to the properties (may be null).equals
- Should this query express the "=" relation or the "<>" relation.void addNamedIdEqualsToQuery(Parameters parameters, java.lang.String prefix, boolean equals)
parameters
- Parameters, to which to add the statements.prefix
- Prefix to add to the properties (may be null).equals
- Should this query express the "=" relation or the "<>" relation.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.