Interface QueryImplementors


public interface QueryImplementors
A factory interface for creating Query implementation objects.

This interface provides factory methods for instantiating various types of database queries used in the Doma framework. Each method creates a specific type of query object that encapsulates the details of a database operation.

Implementations of this interface are responsible for creating the appropriate query objects based on the DAO method being executed. These query objects define how SQL is generated and executed for different database operations (select, insert, update, delete, batch operations, etc.).

The default implementations of these methods create standard query objects, but custom implementations can override these methods to provide specialized behavior or extended functionality for specific query types.

  • Method Details

    • createSqlFileSelectQuery

      default SqlFileSelectQuery createSqlFileSelectQuery(Method method)
      Creates an SqlFileSelectQuery object.
      Parameters:
      method - the DAO method
      Returns:
      the query
    • createSqlSelectQuery

      default SqlSelectQuery createSqlSelectQuery(Method method)
      Creates an SqlSelectQuery object.
      Parameters:
      method - the DAO method
      Returns:
      the query
    • createSqlFileScriptQuery

      default SqlFileScriptQuery createSqlFileScriptQuery(Method method)
      Creates an SqlFileScriptQuery object.
      Parameters:
      method - the DAO method
      Returns:
      the query
    • createAutoDeleteQuery

      default <ENTITY> AutoDeleteQuery<ENTITY> createAutoDeleteQuery(Method method, EntityType<ENTITY> entityType)
      Creates an AutoDeleteQuery object.
      Type Parameters:
      ENTITY - the entity type
      Parameters:
      method - the DAO method
      entityType - the entity type
      Returns:
      the query
    • createAutoInsertQuery

      default <ENTITY> AutoInsertQuery<ENTITY> createAutoInsertQuery(Method method, EntityType<ENTITY> entityType)
      Creates an AutoInsertQuery object.
      Type Parameters:
      ENTITY - the entity type
      Parameters:
      method - the DAO method
      entityType - the entity type
      Returns:
      the query
    • createAutoMultiInsertQuery

      default <ENTITY> AutoMultiInsertQuery<ENTITY> createAutoMultiInsertQuery(Method method, EntityType<ENTITY> entityType)
      Creates an AutoMultiInsertQuery object.
      Type Parameters:
      ENTITY - the entity type
      Parameters:
      method - the DAO method
      entityType - the entity type
      Returns:
      the query
    • createAutoUpdateQuery

      default <ENTITY> AutoUpdateQuery<ENTITY> createAutoUpdateQuery(Method method, EntityType<ENTITY> entityType)
      Creates an AutoUpdateQuery object.
      Type Parameters:
      ENTITY - the entity type
      Parameters:
      method - the DAO method
      entityType - the entity type
      Returns:
      the query
    • createSqlFileDeleteQuery

      default SqlFileDeleteQuery createSqlFileDeleteQuery(Method method)
      Creates an SqlFileDeleteQuery object.
      Parameters:
      method - the DAO method
      Returns:
      the query
    • createSqlFileInsertQuery

      default SqlFileInsertQuery createSqlFileInsertQuery(Method method)
      Creates an SqlFileInsertQuery object.
      Parameters:
      method - the DAO method
      Returns:
      the query
    • createSqlFileUpdateQuery

      default SqlFileUpdateQuery createSqlFileUpdateQuery(Method method)
      Creates an SqlFileUpdateQuery object.
      Parameters:
      method - the DAO method
      Returns:
      the query
    • createSqlDeleteQuery

      default SqlDeleteQuery createSqlDeleteQuery(Method method)
      Creates an SqlDeleteQuery object.
      Parameters:
      method - the DAO method
      Returns:
      the query
    • createSqlInsertQuery

      default SqlInsertQuery createSqlInsertQuery(Method method)
      Creates an SqlInsertQuery object.
      Parameters:
      method - the DAO method
      Returns:
      the query
    • createSqlUpdateQuery

      default SqlUpdateQuery createSqlUpdateQuery(Method method)
      Creates an SqlUpdateQuery object.
      Parameters:
      method - the DAO method
      Returns:
      the query
    • createAutoBatchDeleteQuery

      default <ENTITY> AutoBatchDeleteQuery<ENTITY> createAutoBatchDeleteQuery(Method method, EntityType<ENTITY> entityType)
      Creates an AutoBatchDeleteQuery object.
      Type Parameters:
      ENTITY - the entity type
      Parameters:
      method - the DAO method
      entityType - the entity type
      Returns:
      the query
    • createAutoBatchInsertQuery

      default <ENTITY> AutoBatchInsertQuery<ENTITY> createAutoBatchInsertQuery(Method method, EntityType<ENTITY> entityType)
      Creates an AutoBatchInsertQuery object.
      Type Parameters:
      ENTITY - the entity type
      Parameters:
      method - the DAO method
      entityType - the entity type
      Returns:
      the query
    • createAutoBatchUpdateQuery

      default <ENTITY> AutoBatchUpdateQuery<ENTITY> createAutoBatchUpdateQuery(Method method, EntityType<ENTITY> entityType)
      Creates an AutoBatchUpdateQuery object.
      Type Parameters:
      ENTITY - the entity type
      Parameters:
      method - the DAO method
      entityType - the entity type
      Returns:
      the query
    • createSqlFileBatchDeleteQuery

      default <ELEMENT> SqlFileBatchDeleteQuery<ELEMENT> createSqlFileBatchDeleteQuery(Method method, Class<ELEMENT> clazz)
      Creates an SqlFileBatchDeleteQuery object.
      Type Parameters:
      ELEMENT - the element type of the batch list
      Parameters:
      method - the DAO method
      clazz - the element class of the batch list
      Returns:
      the query
    • createSqlFileBatchInsertQuery

      default <ELEMENT> SqlFileBatchInsertQuery<ELEMENT> createSqlFileBatchInsertQuery(Method method, Class<ELEMENT> clazz)
      Creates an SqlFileBatchInsertQuery object.
      Type Parameters:
      ELEMENT - the element type of the batch list
      Parameters:
      method - the DAO method
      clazz - the element class of the batch list
      Returns:
      the query
    • createSqlFileBatchUpdateQuery

      default <ELEMENT> SqlFileBatchUpdateQuery<ELEMENT> createSqlFileBatchUpdateQuery(Method method, Class<ELEMENT> clazz)
      Creates a SqlFileBatchUpdateQuery object.
      Type Parameters:
      ELEMENT - the element type of the batch list
      Parameters:
      method - the DAO method
      clazz - the element class of the batch list
      Returns:
      the query
    • createAutoFunctionQuery

      default <RESULT> AutoFunctionQuery<RESULT> createAutoFunctionQuery(Method method)
      Creates an AutoFunctionQuery object.
      Type Parameters:
      RESULT - the result type of the function query
      Parameters:
      method - the DAO method
      Returns:
      the query
    • createAutoProcedureQuery

      default AutoProcedureQuery createAutoProcedureQuery(Method method)
      Creates an AutoProcedureQuery object.
      Parameters:
      method - the DAO method
      Returns:
      the query
    • createArrayCreateQuery

      default ArrayCreateQuery createArrayCreateQuery(Method method)
      Creates an ArrayCreateQuery object.
      Parameters:
      method - the DAO method
      Returns:
      the query
    • createBlobCreateQuery

      default BlobCreateQuery createBlobCreateQuery(Method method)
      Creates a BlobCreateQuery object.
      Parameters:
      method - the DAO method
      Returns:
      the query
    • createClobCreateQuery

      default ClobCreateQuery createClobCreateQuery(Method method)
      Creates a ClobCreateQuery object.
      Parameters:
      method - the DAO method
      Returns:
      the query
    • createNClobCreateQuery

      default NClobCreateQuery createNClobCreateQuery(Method method)
      Creates a NClobCreateQuery object.
      Parameters:
      method - the DAO method
      Returns:
      the query
    • createSQLXMLCreateQuery

      default SQLXMLCreateQuery createSQLXMLCreateQuery(Method method)
      Creates an SQLXMLCreateQuery object.
      Parameters:
      method - the DAO method
      Returns:
      the query
    • createSqlProcessorQuery

      default SqlProcessorQuery createSqlProcessorQuery(Method method)
      Creates an SqlProcessorQuery object.
      Parameters:
      method - the DAO method
      Returns:
      the query