Class Select

  • All Implemented Interfaces:
    Clause, StartClause, io.github.mmm.marshall.MarshallableObject, io.github.mmm.marshall.Marshaller<Object>, io.github.mmm.marshall.Marshalling<Object>, io.github.mmm.marshall.MarshallingObject, io.github.mmm.marshall.UnmarshallableObject, io.github.mmm.marshall.Unmarshaller<Object>

    public final class Select
    extends AbstractClause
    implements StartClause
    StartClause of a SelectStatement to query data from the database.
    Since:
    1.0.0
    • Constructor Detail

      • Select

        public Select()
        The constructor.
      • Select

        public Select​(io.github.mmm.value.PropertyPath<?> property)
        The constructor.
        Parameters:
        property - the property to select.
      • Select

        public Select​(io.github.mmm.value.PropertyPath<?>... properties)
        The constructor.
        Parameters:
        properties - the properties to select.
      • Select

        public Select​(io.github.mmm.property.criteria.CriteriaAggregation<?> aggregation)
        The constructor.
        Parameters:
        aggregation - the CriteriaAggregation to select.
      • Select

        public Select​(io.github.mmm.property.criteria.CriteriaAggregation<?>... aggregations)
        The constructor.
        Parameters:
        aggregations - the CriteriaAggregations to select.
    • Method Detail

      • isDistinct

        public boolean isDistinct()
        Returns:
        true for DISTINCT selection (filter out duplicates), false otherwise.
      • and

        public Select and​(io.github.mmm.property.criteria.CriteriaAggregation<?> aggregation)
        Parameters:
        aggregation - the CriteriaAggregation to add to the selection.
        Returns:
        this Select for fluent API calls.
      • and

        public Select and​(io.github.mmm.property.criteria.CriteriaAggregation<?>... aggregations)
        Parameters:
        aggregations - the CriteriaAggregations to add to the selection.
        Returns:
        this Select for fluent API calls.
      • and

        public Select and​(io.github.mmm.value.PropertyPath<?> property)
        Parameters:
        property - the property to add to the selection.
        Returns:
        this Select for fluent API calls.
      • and

        public Select and​(io.github.mmm.value.PropertyPath<?>... properties)
        Parameters:
        properties - the properties to add to the selection.
        Returns:
        this Select for fluent API calls.
      • distinct

        public Select distinct()
        Sets DISTINCT selection (filter out duplicates).
        Returns:
        this Select for fluent API calls.
      • writeProperties

        protected void writeProperties​(io.github.mmm.marshall.StructuredWriter writer)
        Overrides:
        writeProperties in class AbstractClause
      • readProperty

        protected void readProperty​(io.github.mmm.marshall.StructuredReader reader,
                                    String name)
        Overrides:
        readProperty in class AbstractClause