Interface SelectMeta<T>

Type Parameters:
T - entity type

public interface SelectMeta<T>
Compile-time metadata of an EntitySelect enum, generated by the SDK annotation processor and found at run time through ServiceLoader.
  • Method Summary

    Modifier and Type
    Method
    Description
    Entity type of the queries.
    sql(String constant)
    SQL of a query.
    Enum type of the queries.
  • Method Details

    • type

      Class<?> type()
      Enum type of the queries.
      Returns:
      enum type
    • entity

      Class<T> entity()
      Entity type of the queries.
      Returns:
      entity type
    • sql

      String sql(String constant)
      SQL of a query.
      Parameters:
      constant - name of the enum constant
      Returns:
      SQL text
      Throws:
      IllegalArgumentException - if there is no such constant