DeploymentEntityRepository
public interface DeploymentEntityRepository extends JpaRepository<DeploymentEntity, Long>
源码Source
io/agentscope/builder/web/persistence/jpa/DeploymentEntityRepository.java:23–34定义部署 Entity 仓库契约的接口。位于 io.agentscope.builder.web.persistence.jpa 包,实现 JpaRepository<DeploymentEntity, Long>。核心成员包括 findByDeploymentId、findByWebhookToken、findByOwnerIdOrderByCreatedAtDesc、findByTriggerTypeAndEnabledTrueAndArchivedAtIsNull、existsByOwnerIdAndName。
Spring Data repository for DeploymentEntity.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public Optional<DeploymentEntity> findByDeploymentId(String deploymentId) | 查找通过部署标识。 Finds the by deployment id. |
public Optional<DeploymentEntity> findByWebhookToken(String webhookToken) | 查找 `findByWebhookToken`。 Finds the by webhook token. |
public List<DeploymentEntity> findByOwnerIdOrderByCreatedAtDesc(String ownerId) | 查找 `findByOwnerIdOrderByCreatedAtDesc`。 Finds the by owner id order by created at desc. |
public List<DeploymentEntity> findByTriggerTypeAndEnabledTrueAndArchivedAtIsNull(String triggerType) | 查找 `findByTriggerTypeAndEnabledTrueAndArchivedAtIsNull`。 Finds the by trigger type and enabled true and archived at is null. |
public boolean existsByOwnerIdAndName(String ownerId, String name) | 执行 `existsByOwnerIdAndName` 方法。 Performs the exists by owner id and name operation. |
方法详情Method Detail
findByDeploymentId
public Optional<DeploymentEntity> findByDeploymentId(String deploymentId)
查找通过部署标识。
Finds the by deployment id.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
deploymentId | String | 部署标识(类型 `String`)。The deployment id. |
Optional<DeploymentEntity>返回可选。Returns optional.
源码Source
io/agentscope/builder/web/persistence/jpa/DeploymentEntityRepository.java:25findByWebhookToken
public Optional<DeploymentEntity> findByWebhookToken(String webhookToken)
查找 findByWebhookToken。
Finds the by webhook token.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
webhookToken | String | webhook 令牌(类型 `String`)。The webhook token. |
Optional<DeploymentEntity>返回可选。Returns optional.
源码Source
io/agentscope/builder/web/persistence/jpa/DeploymentEntityRepository.java:27findByOwnerIdOrderByCreatedAtDesc
public List<DeploymentEntity> findByOwnerIdOrderByCreatedAtDesc(String ownerId)
查找 findByOwnerIdOrderByCreatedAtDesc。
Finds the by owner id order by created at desc.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
ownerId | String | 所有者标识(类型 `String`)。The owner id. |
List<DeploymentEntity>返回列出。Returns list.
源码Source
io/agentscope/builder/web/persistence/jpa/DeploymentEntityRepository.java:29findByTriggerTypeAndEnabledTrueAndArchivedAtIsNull
public List<DeploymentEntity> findByTriggerTypeAndEnabledTrueAndArchivedAtIsNull(String triggerType)
查找 findByTriggerTypeAndEnabledTrueAndArchivedAtIsNull。
Finds the by trigger type and enabled true and archived at is null.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
triggerType | String | trigger 类型(类型 `String`)。The trigger type. |
List<DeploymentEntity>返回列出。Returns list.
源码Source
io/agentscope/builder/web/persistence/jpa/DeploymentEntityRepository.java:31existsByOwnerIdAndName
public boolean existsByOwnerIdAndName(String ownerId, String name)
执行 existsByOwnerIdAndName 方法。
Performs the exists by owner id and name operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
ownerId | String | 所有者标识(类型 `String`)。The owner id. |
name | String | 名称(类型 `String`)。The name. |
boolean返回布尔值,表示判断结果。Returns a boolean result.
源码Source
io/agentscope/builder/web/persistence/jpa/DeploymentEntityRepository.java:33