Interface SQL_DQL<E extends EntityType>

All Superinterfaces:
SQLUtils<E>, SQLValidationUtils<E>, Utils<E>
All Known Implementing Classes:
DQLImpl

public interface SQL_DQL<E extends EntityType> extends SQLUtils<E>

Data Query Language queries will be generated by this interface

Author:
alireza_bayat
  • Method Details

    • selectQuery

      String selectQuery(E e)

      generate select query base on fields that got Column in given entity

      Returns:
      string of query
    • selectQuery

      String selectQuery(E e, String... fieldsName)
      first approach is to get fields by Column.name()

      select columns will be generated by String of Varargs.

      each index of varargs must be present in the given entity as parameters Column.name(), otherwise that index will not effect the query

      Parameters:
      fieldsName - varargs of query columns in response
      Returns:
      string of query
    • selectQuery

      String selectQuery(E e, Selection... selections)
    • selectQuery

      String selectQuery(E e, ClauseBuilder<E> clauseBuilder)
    • selectQuery

      String selectQuery(E e, ClauseBuilder<E> clauseBuilder, String... fieldsName)