Class QueryHelper


  • public class QueryHelper
    extends Object
    Author:
    iris.dimni
    • Constructor Detail

      • QueryHelper

        public QueryHelper()
    • Method Detail

      • getQueryResult

        public static <T extends QueryHelper> T getQueryResult​(QueryBean query)
        returns a the result of the query as specified by the input parameters
        Type Parameters:
        T -
        Parameters:
        query -
        Returns:
      • getTypeClass

        public static Class getTypeClass​(KeyContexts.QueryType qType)
        returns the Class of each query type's result object
        Parameters:
        qType -
        Returns:
      • initLoadBlockQuery

        public static QueryBean initLoadBlockQuery​(String block)
        create a query containing the passed gson encoded block
        Parameters:
        block -
        Returns:
      • createChainInfoBeanRequest

        public static QueryBean createChainInfoBeanRequest()
        create a prop state request for chain info
        Returns:
      • decodeQueryResponse

        public static ChainInfoBean decodeQueryResponse​(QueryBean qb)
        returns the query resultObject with the correct type
        Parameters:
        qb -
        Returns: