Class EntityDataAccessImplementor

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.quarkus.gizmo.ResultHandle count​(io.quarkus.gizmo.BytecodeCreator creator)
      Implements Entity.count()
      io.quarkus.gizmo.ResultHandle deleteById​(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle id)
      Implements Entity.deleteById(id)
      io.quarkus.gizmo.ResultHandle findAll​(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle page)
      Implements Entity.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 Entity.findAll(sort).page(page).list()
      io.quarkus.gizmo.ResultHandle findById​(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle id)
      Implements Entity.findById(id)
      io.quarkus.gizmo.ResultHandle pageCount​(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle page)
      Implements Entity.findAll().page(page).pageCount()
      io.quarkus.gizmo.ResultHandle persist​(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle entity)
      Implements entity.persist()
      io.quarkus.gizmo.ResultHandle update​(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle entity)
      Implements Entity.getEntityManager().merge(entity)
    • Constructor Detail

      • EntityDataAccessImplementor

        EntityDataAccessImplementor​(String entityClassName)
    • Method Detail

      • findById

        public io.quarkus.gizmo.ResultHandle findById​(io.quarkus.gizmo.BytecodeCreator creator,
                                                      io.quarkus.gizmo.ResultHandle id)
        Implements Entity.findById(id)
        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 Entity.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 Entity.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
      • persist

        public io.quarkus.gizmo.ResultHandle persist​(io.quarkus.gizmo.BytecodeCreator creator,
                                                     io.quarkus.gizmo.ResultHandle entity)
        Implements entity.persist()
        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.
      • update

        public io.quarkus.gizmo.ResultHandle update​(io.quarkus.gizmo.BytecodeCreator creator,
                                                    io.quarkus.gizmo.ResultHandle entity)
        Implements Entity.getEntityManager().merge(entity)
        Specified by:
        update 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)
        Implements Entity.deleteById(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)
        Implements Entity.findAll().page(page).pageCount()
        Specified by:
        pageCount in interface DataAccessImplementor
        Parameters:
        creator - Bytecode creator that should be used for implementation.
        page - Page instance.
        Returns:
        int page count.
      • count

        public io.quarkus.gizmo.ResultHandle count​(io.quarkus.gizmo.BytecodeCreator creator)
        Implements Entity.count()
        Specified by:
        count in interface DataAccessImplementor
        Parameters:
        creator - Bytecode creator that should be used for implementation.
        Returns:
        long entities count.