Class CountFromTypeStep

  • All Implemented Interfaces:
    ExecutionStep, ExecutionStepInternal

    public class CountFromTypeStep
    extends AbstractExecutionStep
    Returns the number of records contained in a class (including subTypes) Executes a count(*) on a class and returns a single record that contains that value (with a specific alias).
    Author:
    Luigi Dell'Aquila (luigi.dellaquila - at - gmail.com)
    • Constructor Detail

      • CountFromTypeStep

        public CountFromTypeStep​(String targetClass,
                                 String alias,
                                 CommandContext context,
                                 boolean profilingEnabled)
        Parameters:
        targetClass - An identifier containing the name of the class to count
        alias - the name of the property returned in the result-set
        context - the query context
        profilingEnabled - true to enable the profiling of the execution (for SQL PROFILE)