Class QueryModelMappingRegistry
- java.lang.Object
-
- com.evolveum.midpoint.repo.sqlbase.mapping.QueryModelMappingRegistry
-
public class QueryModelMappingRegistry extends Object
HoldsQueryTableMapping
instances obtainable by various key (e.g. schema type Q-name). The registry is oblivious to the actual configuration defined elsewhere.
-
-
Constructor Summary
Constructors Constructor Description QueryModelMappingRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <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)
QueryModelMappingRegistry
register(QueryTableMapping<?,?,?> mapping)
Register mapper not bound to a schema type.QueryModelMappingRegistry
register(QName schemaQName, QueryTableMapping<?,?,?> mapping)
Register mapper bound to a schema type.void
seal()
Seals the configuration of the registry.
-
-
-
Method Detail
-
register
public QueryModelMappingRegistry register(QName schemaQName, QueryTableMapping<?,?,?> mapping)
Register mapper bound to a schema type. Mapping can be later obtained by its schema class, schema name or query class.
-
register
public QueryModelMappingRegistry register(QueryTableMapping<?,?,?> mapping)
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>,R,QM extends QueryTableMapping<S,Q,R>> QM getBySchemaType(Class<S> schemaType)
-
getByQueryType
public <S,Q extends FlexibleRelationalPathBase<R>,R> QueryTableMapping<S,Q,R> getByQueryType(Class<Q> queryType)
-
-