Class QueryModelMappingRegistry
java.lang.Object
com.evolveum.midpoint.repo.sqlbase.mapping.QueryModelMappingRegistry
Holds
QueryTableMapping
instances obtainable by various key (e.g. schema type Q-name).
The registry is oblivious to the actual configuration defined elsewhere.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<S,
Q extends FlexibleRelationalPathBase<R>, R>
QueryTableMapping<S,Q, R> getByQueryType
(Class<Q> queryType) <S,
Q extends FlexibleRelationalPathBase<R>, R, QM extends QueryTableMapping<S, Q, R>>
QMgetBySchemaType
(Class<S> schemaType) register
(QueryTableMapping<?, ?, ?> mapping) Register mapper not bound to a schema type.register
(QName schemaQName, QueryTableMapping<?, ?, ?> mapping) Register mapper bound to a schema type.void
seal()
Seals the configuration of the registry.
-
Constructor Details
-
QueryModelMappingRegistry
public QueryModelMappingRegistry()
-
-
Method Details
-
register
Register mapper bound to a schema type. Mapping can be later obtained by its schema class, schema name or query class. -
register
Register mapper not bound to a schema type. This can happen for detail tables that have no unique mapping from schema type. Mapping can be later obtained only by its query class, not by schema type/name. -
seal
public void seal()Seals the configuration of the registry. -
getBySchemaType
public <S,Q extends FlexibleRelationalPathBase<R>, QM getBySchemaTypeR, QM extends QueryTableMapping<S, Q, R>> (Class<S> schemaType) -
getByQueryType
public <S,Q extends FlexibleRelationalPathBase<R>, QueryTableMapping<S,R> Q, getByQueryTypeR> (Class<Q> queryType)
-