public abstract class AbstractQuerySerializer<QueryT extends Query<QueryT,QueryResultT>,QueryResultT extends QueryResult<QueryT,QueryResultT>> extends Object implements QuerySerializer<QueryT,QueryResultT>
Constructor and Description |
---|
AbstractQuerySerializer() |
Modifier and Type | Method and Description |
---|---|
QueryResultT |
deserialize(SerializedQueryResult<QueryT> queryResult)
Deserialize a query result.
|
protected abstract QueryResultT |
deserializeQueryResult(SerializedQueryResult<QueryT> serializedQueryResult)
Deserialize a query result.
|
SerializedQuery<QueryT> |
serialize(QueryT query)
Serialize a query.
|
protected abstract SerializedQuery<QueryT> |
serializeQuery(QueryT query)
Serialize a query.
|
@Nonnull public final SerializedQuery<QueryT> serialize(@Nonnull QueryT query) throws QuerySerializationException
QuerySerializationException
.serialize
in interface QuerySerializer<QueryT extends Query<QueryT,QueryResultT>,QueryResultT extends QueryResult<QueryT,QueryResultT>>
QuerySerializationException
- If there is an issue while serializing the query.@Nonnull public final QueryResultT deserialize(@Nonnull SerializedQueryResult<QueryT> queryResult) throws QuerySerializationException
QuerySerializationException
.deserialize
in interface QuerySerializer<QueryT extends Query<QueryT,QueryResultT>,QueryResultT extends QueryResult<QueryT,QueryResultT>>
QuerySerializationException
- If there is an issue while deserializing the query.@Nonnull protected abstract SerializedQuery<QueryT> serializeQuery(@Nonnull QueryT query) throws Exception
QuerySerializationException
by serialize(Query)
.Exception
- If there is an issue while serializing the query.@Nonnull protected abstract QueryResultT deserializeQueryResult(@Nonnull SerializedQueryResult<QueryT> serializedQueryResult) throws Exception
QuerySerializationException
by deserialize(SerializedQueryResult)
.Exception
- If there is an issue while serializing the query.Copyright © 2018 SAP SE. All rights reserved.