org.apache.cayenne.access.translator.select

## Interface SelectTranslator

- All Known Implementing Classes:
    DefaultSelectTranslator

      public interface SelectTranslator

  An abstraction of `SelectQuery` translator.
  Since:
    4.0 this is an interface.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Map<ObjAttribute,ColumnDescriptor>` | `getAttributeOverrides()`
    `DbAttributeBinding[]` | `getBindings()`
    `ColumnDescriptor[]` | `getResultColumns()`
    `String` | `getSql()`
    `boolean` | `hasJoins()`
    `boolean` | `isSuppressingDistinct()`

- - ### Method Detail

    - #### getSql

          String getSql()
                 throws Exception

      Throws:
        `Exception`

    - #### getBindings

          DbAttributeBinding[] getBindings()

    - #### getAttributeOverrides

          Map<ObjAttribute,ColumnDescriptor> getAttributeOverrides()

    - #### getResultColumns

          ColumnDescriptor[] getResultColumns()

    - #### isSuppressingDistinct

          boolean isSuppressingDistinct()

    - #### hasJoins

          boolean hasJoins()

      Returns:
        do query has at least one join
      Since:
        4.0

Copyright © 2001–2021 Apache Cayenne. All rights reserved.