Class AbstractSourceItemTransformer

    • Field Detail

      • source

        private final Item source
      • target

        private final Item target
    • Constructor Detail

      • AbstractSourceItemTransformer

        protected AbstractSourceItemTransformer​(Item source,
                                                Item target)
        Create a new instance that transforms between the given source and target item types.
    • Method Detail

      • safeIdList

        protected Set<Integer> safeIdList​(DbControl dc,
                                          ItemQuery<?> query,
                                          String parameterName,
                                          Set<Integer> values)
        Safely execute the query even if the number of values in the 'values' set is higher than DbEngine.getMaxParametersInQuery(). In this case, the values will be divided into subsets and the result of the query is merged in memory. It is important that the query is such that executing it multiple times with different subsets return the same result as if it was only executed a single time with the complete set.
        Parameters:
        query - The query to execut
        parameterName - The name of the parameter to set for the values
        values - The values to use in the query
        Returns:
        The result of the query.idList() method