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 Type
    Method
    Description
    void
    Delete an MCP service by its service ID.
    boolean
    Check if an MCP service with the given ID exists.
    Find all enabled MCP services.
    Find MCP services by name containing a keyword.
    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, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findByServiceId

      Optional<McpServiceEntity> findByServiceId(String serviceId)
      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

      List<McpServiceEntity> findByNameContainingIgnoreCase(String name)
      Find MCP services by name containing a keyword.
      Parameters:
      name - the name keyword
      Returns:
      list of matching services
    • deleteByServiceId

      void deleteByServiceId(String serviceId)
      Delete an MCP service by its service ID.
      Parameters:
      serviceId - the service ID
    • existsByServiceId

      boolean existsByServiceId(String serviceId)
      Check if an MCP service with the given ID exists.
      Parameters:
      serviceId - the service ID
      Returns:
      true if the service exists