Interface QueryConverter
-
public interface QueryConverter
TODO cleanup this interface
-
-
Method Summary
-
-
-
Method Detail
-
parseFilter
ObjectFilter parseFilter(XNode xnode, Class<? extends Containerable> clazz) throws SchemaException
- Throws:
SchemaException
-
parseFilter
ObjectFilter parseFilter(@NotNull @NotNull SearchFilterType filter, @NotNull @NotNull Class<?> clazz) throws SchemaException
- Throws:
SchemaException
-
parseFilter
ObjectFilter parseFilter(@NotNull @NotNull SearchFilterType filter, @NotNull @NotNull ItemDefinition<?> objDef) throws SchemaException
- Throws:
SchemaException
-
parseFilterPreliminarily
void parseFilterPreliminarily(MapXNode xfilter, ParsingContext pc) throws SchemaException
Tries to parse as much from filter as possible, without knowing the definition of object(s) to which the filter will be applied. It is used mainly to parse path specifications, in order to avoid namespace loss when serializing raw (unparsed) paths and QNames - see MID-1969.- Throws:
SchemaException
-
createObjectQuery
ObjectQuery createObjectQuery(Class<?> clazz, QueryType queryType) throws SchemaException
- Throws:
SchemaException
-
createObjectQuery
ObjectQuery createObjectQuery(Class<?> clazz, SearchFilterType filterType) throws SchemaException
- Throws:
SchemaException
-
createSearchFilterType
SearchFilterType createSearchFilterType(ObjectFilter filter) throws SchemaException
- Throws:
SchemaException
-
createObjectFilter
ObjectFilter createObjectFilter(Class<?> clazz, SearchFilterType filterType) throws SchemaException
- Throws:
SchemaException
-
createObjectFilter
ObjectFilter createObjectFilter(ItemDefinition<?> containerDefinition, SearchFilterType filterType) throws SchemaException
- Throws:
SchemaException
-
serializeFilter
MapXNode serializeFilter(ObjectFilter filter) throws SchemaException
- Throws:
SchemaException
-
createQueryType
@Contract("null -> null; !null -> !null") QueryType createQueryType(ObjectQuery query) throws SchemaException
- Throws:
SchemaException
-
-