Interface McpServiceRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<McpServiceEntity, UUID>, org.springframework.data.jpa.repository.JpaRepository<McpServiceEntity, UUID>, org.springframework.data.repository.ListCrudRepository<McpServiceEntity, UUID>, org.springframework.data.repository.ListPagingAndSortingRepository<McpServiceEntity, UUID>, org.springframework.data.repository.PagingAndSortingRepository<McpServiceEntity, UUID>, org.springframework.data.repository.query.QueryByExampleExecutor<McpServiceEntity>, org.springframework.data.repository.Repository<McpServiceEntity, UUID>
public interface McpServiceRepository
extends org.springframework.data.jpa.repository.JpaRepository<McpServiceEntity, UUID>
Repository for MCP service entities.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteByServiceId(String serviceId) Delete an MCP service by its service ID.booleanexistsByServiceId(String serviceId) Check if an MCP service with the given ID exists.Find all enabled MCP services.Find MCP services by name containing a keyword.findByServiceId(String serviceId) Find an MCP service by its service ID.Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findByServiceId
Find an MCP service by its service ID.- Parameters:
serviceId- the service ID- Returns:
- the service entity if found
-
findByEnabledTrue
List<McpServiceEntity> findByEnabledTrue()Find all enabled MCP services.- Returns:
- list of enabled services
-
findByNameContainingIgnoreCase
Find MCP services by name containing a keyword.- Parameters:
name- the name keyword- Returns:
- list of matching services
-
deleteByServiceId
Delete an MCP service by its service ID.- Parameters:
serviceId- the service ID
-
existsByServiceId
Check if an MCP service with the given ID exists.- Parameters:
serviceId- the service ID- Returns:
- true if the service exists
-