Package com.axelor.ai.db.repo
Class AiMcpServerRepository
java.lang.Object
com.axelor.db.JpaRepository<AiMcpServer>
com.axelor.ai.db.repo.AbstractAiMcpServerRepository
com.axelor.ai.db.repo.AiMcpServerRepository
- All Implemented Interfaces:
Repository<AiMcpServer>
-
Field Summary
Fields inherited from class com.axelor.db.JpaRepository
modelClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidremove(AiMcpServer entity) Remove the given entity.save(AiMcpServer entity) Drops the live connection whenever the configuration is edited.Methods inherited from class com.axelor.ai.db.repo.AbstractAiMcpServerRepository
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
-
AiMcpServerRepository
public AiMcpServerRepository()
-
-
Method Details
-
save
Drops the live connection whenever the configuration is edited. The cache would otherwise keep serving a client built from the previous endpoint or credentials until the process restarts.- Specified by:
savein interfaceRepository<AiMcpServer>- Overrides:
savein classJpaRepository<AiMcpServer>- Parameters:
entity- the entity object to save- Returns:
- an instance of the entity with saved state
-
remove
Description copied from interface:RepositoryRemove the given entity.- Specified by:
removein interfaceRepository<AiMcpServer>- Overrides:
removein classJpaRepository<AiMcpServer>- Parameters:
entity- the entity object
-