Class RepositoryDataAccessImplementor
java.lang.Object
io.quarkus.mongodb.rest.data.panache.deployment.RepositoryDataAccessImplementor
- All Implemented Interfaces:
DataAccessImplementor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.quarkus.gizmo.ResultHandledeleteById(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle id) Delete entity by ID.io.quarkus.gizmo.ResultHandlefindAll(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle page) Implementsrepository.findAll().page(page).list()io.quarkus.gizmo.ResultHandlefindAll(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle page, io.quarkus.gizmo.ResultHandle sort) Implementsrepository.findAll(sort).page(page).list()io.quarkus.gizmo.ResultHandlefindAll(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.ResultHandlefindAll(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.ResultHandlefindById(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle id) Find an entity by ID and return a result.io.quarkus.gizmo.ResultHandlepageCount(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle page) Available number of pages given a page instance.io.quarkus.gizmo.ResultHandlepersist(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle entity) Persist a new entity.io.quarkus.gizmo.ResultHandlepersistOrUpdate(io.quarkus.gizmo.BytecodeCreator creator, io.quarkus.gizmo.ResultHandle entity) Update an existing entity or create a new one.
-
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:DataAccessImplementorFind an entity by ID and return a result.- Specified by:
findByIdin interfaceDataAccessImplementor- 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) Implementsrepository.findAll().page(page).list()- Specified by:
findAllin interfaceDataAccessImplementor- 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) Implementsrepository.findAll(sort).page(page).list()- Specified by:
findAllin interfaceDataAccessImplementor- 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:DataAccessImplementorFind all entities.- Specified by:
findAllin interfaceDataAccessImplementor- 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:DataAccessImplementorFind all entities.- Specified by:
findAllin interfaceDataAccessImplementor- 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:DataAccessImplementorPersist a new entity.- Specified by:
persistin interfaceDataAccessImplementor- 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:DataAccessImplementorUpdate an existing entity or create a new one.- Specified by:
persistOrUpdatein interfaceDataAccessImplementor- 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:DataAccessImplementorDelete entity by ID.- Specified by:
deleteByIdin interfaceDataAccessImplementor- 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:DataAccessImplementorAvailable number of pages given a page instance.- Specified by:
pageCountin interfaceDataAccessImplementor- Parameters:
creator- Bytecode creator that should be used for implementation.page- Page instance.- Returns:
- int page count.
-