Interface DataAccessImplementor

All Known Implementing Classes:
EntityDataAccessImplementor, RepositoryDataAccessImplementor

public interface DataAccessImplementor
Implement data access logic for a specific data access strategy.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.quarkus.gizmo.ResultHandle
    deleteById(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle id)
    Delete entity by ID.
    io.quarkus.gizmo.ResultHandle
    findAll(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle page)
    Find all entities.
    io.quarkus.gizmo.ResultHandle
    findAll(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle page, io.quarkus.gizmo.ResultHandle sort)
    Find all entities.
    io.quarkus.gizmo.ResultHandle
    findAll(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle page, io.quarkus.gizmo.ResultHandle query, io.quarkus.gizmo.ResultHandle queryParams)
    Find all entities.
    io.quarkus.gizmo.ResultHandle
    findAll(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle page, io.quarkus.gizmo.ResultHandle sort, io.quarkus.gizmo.ResultHandle query, io.quarkus.gizmo.ResultHandle queryParams)
    Find all entities.
    io.quarkus.gizmo.ResultHandle
    findById(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle id)
    Find an entity by ID and return a result.
    io.quarkus.gizmo.ResultHandle
    pageCount(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle page)
    Available number of pages given a page instance.
    io.quarkus.gizmo.ResultHandle
    persist(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle entity)
    Persist a new entity.
    io.quarkus.gizmo.ResultHandle
    persistOrUpdate(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle entity)
    Update an existing entity or create a new one.
  • Method Details

    • findById

      io.quarkus.gizmo.ResultHandle findById(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle id)
      Find an entity by ID and return a result.
      Parameters:
      creator - Bytecode creator that should be used for implementation.
      id - Requested entity ID.
      Returns:
      A requested entity or null if it wasn't found.
    • findAll

      io.quarkus.gizmo.ResultHandle findAll(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle page)
      Find all entities.
      Parameters:
      creator - Bytecode creator that should be used for implementation.
      page - Page instance that should be used in a query. Might be null if pagination is disabled.
      Returns:
      Entity list
    • findAll

      io.quarkus.gizmo.ResultHandle findAll(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle page, io.quarkus.gizmo.ResultHandle sort)
      Find all entities.
      Parameters:
      creator - Bytecode creator that should be used for implementation.
      page - Page instance that should be used in a query. Might be null if pagination is disabled.
      sort - Sort instance that should be used in a query.
      Returns:
      Entity list
    • findAll

      io.quarkus.gizmo.ResultHandle findAll(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle page, io.quarkus.gizmo.ResultHandle query, io.quarkus.gizmo.ResultHandle queryParams)
      Find all entities.
      Parameters:
      creator - Bytecode creator that should be used for implementation.
      page - Page instance that should be used in a query. Might be null if pagination is disabled.
      query - HQL query to list entities.
      queryParams - Map of parameters to use by the HQL query.
      Returns:
      Entity list
    • findAll

      io.quarkus.gizmo.ResultHandle findAll(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle page, io.quarkus.gizmo.ResultHandle sort, io.quarkus.gizmo.ResultHandle query, io.quarkus.gizmo.ResultHandle queryParams)
      Find all entities.
      Parameters:
      creator - Bytecode creator that should be used for implementation.
      page - Page instance that should be used in a query. Might be null if pagination is disabled.
      sort - Sort instance that should be used in a query.
      query - HQL query to list entities.
      queryParams - Map of parameters to use by the HQL query.
      Returns:
      Entity list
    • persist

      io.quarkus.gizmo.ResultHandle persist(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle entity)
      Persist a new entity.
      Parameters:
      creator - Bytecode creator that should be used for implementation.
      entity - An entity that should be persisted.
      Returns:
      A persisted entity.
    • persistOrUpdate

      io.quarkus.gizmo.ResultHandle persistOrUpdate(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle entity)
      Update an existing entity or create a new one.
      Parameters:
      creator - Bytecode creator that should be used for implementation.
      entity - Entity that should be updated or created.
      Returns:
      A persisted entity.
    • deleteById

      io.quarkus.gizmo.ResultHandle deleteById(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle id)
      Delete entity by ID.
      Parameters:
      creator - Bytecode creator that should be used for implementation.
      id - Entity ID.
      Returns:
      Boolean indicating whether an entity was deleted or not.
    • pageCount

      io.quarkus.gizmo.ResultHandle pageCount(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle page)
      Available number of pages given a page instance.
      Parameters:
      creator - Bytecode creator that should be used for implementation.
      page - Page instance.
      Returns:
      int page count.