Class RepositoryDataAccessImplementor

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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 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.
    • Constructor Detail

      • RepositoryDataAccessImplementor

        RepositoryDataAccessImplementor​(String repositoryClassName)
    • Method Detail

      • 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)
        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.
        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)
        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.
        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.