Class RepositoryDataAccessImplementor

java.lang.Object
io.quarkus.mongodb.rest.data.panache.deployment.RepositoryDataAccessImplementor
All Implemented Interfaces:
DataAccessImplementor

final class RepositoryDataAccessImplementor extends Object implements DataAccessImplementor
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • 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)
    Implements repository.findAll().page(page).list()
    io.quarkus.gizmo.ResultHandle
    findAll(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle page, io.quarkus.gizmo.ResultHandle sort)
    Implements repository.findAll(sort).page(page).list()
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RepositoryDataAccessImplementor

      RepositoryDataAccessImplementor(String repositoryClassName)
  • Method Details

    • findById

      public io.quarkus.gizmo.ResultHandle findById(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle id)
      Description copied from interface: DataAccessImplementor
      Find an entity by ID and return a result.
      Specified by:
      findById in interface DataAccessImplementor
      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

      public io.quarkus.gizmo.ResultHandle findAll(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle page)
      Implements repository.findAll().page(page).list()
      Specified by:
      findAll in interface DataAccessImplementor
      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

      public io.quarkus.gizmo.ResultHandle findAll(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle page, io.quarkus.gizmo.ResultHandle sort)
      Implements repository.findAll(sort).page(page).list()
      Specified by:
      findAll in interface DataAccessImplementor
      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

      public 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)
      Description copied from interface: DataAccessImplementor
      Find all entities.
      Specified by:
      findAll in interface DataAccessImplementor
      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

      public 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)
      Description copied from interface: DataAccessImplementor
      Find all entities.
      Specified by:
      findAll in interface DataAccessImplementor
      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

      public io.quarkus.gizmo.ResultHandle persist(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle entity)
      Description copied from interface: DataAccessImplementor
      Persist a new entity.
      Specified by:
      persist in interface DataAccessImplementor
      Parameters:
      creator - Bytecode creator that should be used for implementation.
      entity - An entity that should be persisted.
      Returns:
      A persisted entity.
    • persistOrUpdate

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

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

      public io.quarkus.gizmo.ResultHandle pageCount(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle page)
      Description copied from interface: DataAccessImplementor
      Available number of pages given a page instance.
      Specified by:
      pageCount in interface DataAccessImplementor
      Parameters:
      creator - Bytecode creator that should be used for implementation.
      page - Page instance.
      Returns:
      int page count.