Class AbstractQueryConverter
- java.lang.Object
-
- com.attivio.util.serialization.AbstractConverter
-
- com.attivio.util.serialization.query.AbstractQueryConverter
-
- All Implemented Interfaces:
com.thoughtworks.xstream.converters.Converter
,com.thoughtworks.xstream.converters.ConverterMatcher
- Direct Known Subclasses:
AccessControlQueryConverter
,BooleanAndQueryConverter
,BooleanNotQueryConverter
,BooleanOrQueryConverter
,BoostQueryConverter
,CompositeJoinQueryConverter
,FacetQueryConverter
,FieldExpressionQueryConverter
,FilterQueryConverter
,GeoDistanceQueryConverter
,GraphQueryConverter
,JoinQueryConverter
,PhraseQueryConverter
,QueryPluginConverter
,QueryStringConverter
,SavedFilterConverter
,ShapeQueryConverter
,SubQueryConverter
public abstract class AbstractQueryConverter extends AbstractConverter
Abstract converter for classes that implementQuery
.
-
-
Field Summary
-
Fields inherited from class com.attivio.util.serialization.AbstractConverter
mapper, NULL
-
-
Constructor Summary
Constructors Constructor Description AbstractQueryConverter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
marshalBoost(Query query, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer)
void
marshalParameters(Query query, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
Marshal All Query Parameters.void
marshalParameters(java.util.Iterator<java.util.Map.Entry<java.lang.String,java.lang.Object>> iter, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
Marshal All Query Parameters.static void
register()
Register all serializers forQuery
objects.static void
unmarshalBoost(Query query, com.thoughtworks.xstream.io.HierarchicalStreamReader reader)
static Query
unmarshalNode(java.lang.Object current, com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context, com.thoughtworks.xstream.mapper.Mapper mapper)
Use convertAnother to unmarshal a query properly.void
unmarshalParameter(JoinClause query, com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
Unmarshal a query parameter.void
unmarshalParameter(Query query, com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
Unmarshal a query parameter.void
unmarshalParameters(Query query, com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
Unmarshal a query parameter.static Query
unmarshalQuery(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context, com.thoughtworks.xstream.mapper.Mapper mapper)
Unmarshal a query that is a child.-
Methods inherited from class com.attivio.util.serialization.AbstractConverter
addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, getAlias, getAlias, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getClass, getClass, getClassName, marshalArray, marshalArray, marshalArray2D, marshalIntArray, marshalIntArray, marshalList, marshalNode, marshalNode, marshalProperties, marshalProperties, readList, readSubObject, readThrowable, setMapper, unmarshalArray, unmarshalArray2D, unmarshalIntArray, unmarshalList, unmarshalNode, unmarshalNode, unmarshalNode, unmarshalNode, unmarshalProperties, unmarshalProperty, unmarshalPropertyName, unmarshalPropertyValue, writeSubObject, writeSubObject, writeThrowable
-
-
-
-
Method Detail
-
register
public static void register()
Register all serializers forQuery
objects.
-
marshalBoost
public static void marshalBoost(Query query, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer)
-
unmarshalBoost
public static void unmarshalBoost(Query query, com.thoughtworks.xstream.io.HierarchicalStreamReader reader)
-
unmarshalNode
public static Query unmarshalNode(java.lang.Object current, com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context, com.thoughtworks.xstream.mapper.Mapper mapper)
Use convertAnother to unmarshal a query properly.
-
unmarshalQuery
public static Query unmarshalQuery(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context, com.thoughtworks.xstream.mapper.Mapper mapper)
Unmarshal a query that is a child.
-
marshalParameters
public final void marshalParameters(Query query, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
Marshal All Query Parameters.
-
marshalParameters
public final void marshalParameters(java.util.Iterator<java.util.Map.Entry<java.lang.String,java.lang.Object>> iter, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
Marshal All Query Parameters.
-
unmarshalParameters
public final void unmarshalParameters(Query query, com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
Unmarshal a query parameter.
-
unmarshalParameter
public final void unmarshalParameter(Query query, com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
Unmarshal a query parameter.
-
unmarshalParameter
public final void unmarshalParameter(JoinClause query, com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
Unmarshal a query parameter.
-
-