Package com.axelor.ai.db.repo
Class AiAgentRepository
java.lang.Object
com.axelor.db.JpaRepository<AiAgent>
com.axelor.ai.db.repo.AbstractAiAgentRepository
com.axelor.ai.db.repo.AiAgentRepository
- All Implemented Interfaces:
Repository<AiAgent>
-
Field Summary
Fields inherited from class com.axelor.db.JpaRepository
modelClass -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.axelor.ai.db.repo.AbstractAiAgentRepository
findByCode, findByNameMethods inherited from class com.axelor.db.JpaRepository
all, all, copy, create, fields, find, findById, findByIds, flush, getReferenceById, isPermitted, isPermitted, merge, of, persist, populate, refresh, validate
-
Constructor Details
-
AiAgentRepository
public AiAgentRepository()
-
-
Method Details
-
save
Checks the agent's permissions first: its rows are saved by cascade from the agent, past any repository of their own.- Specified by:
savein interfaceRepository<AiAgent>- Overrides:
savein classJpaRepository<AiAgent>- Parameters:
agent- the entity object to save- Returns:
- an instance of the entity with saved state
- Throws:
IllegalArgumentException- naming each row that names nothing, or an object twice
-
remove
Takes the agent off the policies that list it first.- Specified by:
removein interfaceRepository<AiAgent>- Overrides:
removein classJpaRepository<AiAgent>- Parameters:
agent- the entity object
-