AS AgentScopeAPI 手册 / API Reference

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
deploymentIdString部署标识(类型 `String`)。The deployment id.
返回Returns Optional<DeploymentEntity>
返回可选。Returns optional.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntityRepository.java:25

findByWebhookToken

public Optional<DeploymentEntity> findByWebhookToken(String webhookToken)

查找 findByWebhookToken。

Finds the by webhook token.

参数Parameters
名称Name类型Type说明Description
webhookTokenStringwebhook 令牌(类型 `String`)。The webhook token.
返回Returns Optional<DeploymentEntity>
返回可选。Returns optional.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntityRepository.java:27

findByOwnerIdOrderByCreatedAtDesc

public List<DeploymentEntity> findByOwnerIdOrderByCreatedAtDesc(String ownerId)

查找 findByOwnerIdOrderByCreatedAtDesc。

Finds the by owner id order by created at desc.

参数Parameters
名称Name类型Type说明Description
ownerIdString所有者标识(类型 `String`)。The owner id.
返回Returns List<DeploymentEntity>
返回列出。Returns list.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntityRepository.java:29

findByTriggerTypeAndEnabledTrueAndArchivedAtIsNull

public List<DeploymentEntity> findByTriggerTypeAndEnabledTrueAndArchivedAtIsNull(String triggerType)

查找 findByTriggerTypeAndEnabledTrueAndArchivedAtIsNull。

Finds the by trigger type and enabled true and archived at is null.

参数Parameters
名称Name类型Type说明Description
triggerTypeStringtrigger 类型(类型 `String`)。The trigger type.
返回Returns List<DeploymentEntity>
返回列出。Returns list.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntityRepository.java:31

existsByOwnerIdAndName

public boolean existsByOwnerIdAndName(String ownerId, String name)

执行 existsByOwnerIdAndName 方法。

Performs the exists by owner id and name operation.

参数Parameters
名称Name类型Type说明Description
ownerIdString所有者标识(类型 `String`)。The owner id.
nameString名称(类型 `String`)。The name.
返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/builder/web/persistence/jpa/DeploymentEntityRepository.java:33
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.