AS AgentScopeAPI 手册 / API Reference

EnvironmentEntityRepository

public interface EnvironmentEntityRepository extends JpaRepository<EnvironmentEntity, Long>
源码Source io/agentscope/builder/web/persistence/jpa/EnvironmentEntityRepository.java:23–32

定义环境 Entity 仓库契约的接口。位于 io.agentscope.builder.web.persistence.jpa 包,实现 JpaRepository<EnvironmentEntity, Long>。核心成员包括 findByEnvironmentId、findByOwnerIdOrderByCreatedAtAsc、findByOwnerIdAndArchivedAtIsNullOrderByCreatedAtAsc、existsByOwnerIdAndName。

Spring Data repository for EnvironmentEntity.

方法摘要Method Summary

方法Method说明Description
public Optional<EnvironmentEntity> findByEnvironmentId(String environmentId)
查找通过环境标识。
Finds the by environment id.
public List<EnvironmentEntity> findByOwnerIdOrderByCreatedAtAsc(String ownerId)
查找 `findByOwnerIdOrderByCreatedAtAsc`。
Finds the by owner id order by created at asc.
public List<EnvironmentEntity> findByOwnerIdAndArchivedAtIsNullOrderByCreatedAtAsc(String ownerId)
查找 `findByOwnerIdAndArchivedAtIsNullOrderByCreatedAtAsc`。
Finds the by owner id and archived at is null order by created at asc.
public boolean existsByOwnerIdAndName(String ownerId, String name)
执行 `existsByOwnerIdAndName` 方法。
Performs the exists by owner id and name operation.

方法详情Method Detail

findByEnvironmentId

public Optional<EnvironmentEntity> findByEnvironmentId(String environmentId)

查找通过环境标识。

Finds the by environment id.

参数Parameters
名称Name类型Type说明Description
environmentIdString环境标识(类型 `String`)。The environment id.
返回Returns Optional<EnvironmentEntity>
返回可选。Returns optional.
源码Source io/agentscope/builder/web/persistence/jpa/EnvironmentEntityRepository.java:25

findByOwnerIdOrderByCreatedAtAsc

public List<EnvironmentEntity> findByOwnerIdOrderByCreatedAtAsc(String ownerId)

查找 findByOwnerIdOrderByCreatedAtAsc。

Finds the by owner id order by created at asc.

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

findByOwnerIdAndArchivedAtIsNullOrderByCreatedAtAsc

public List<EnvironmentEntity> findByOwnerIdAndArchivedAtIsNullOrderByCreatedAtAsc(String ownerId)

查找 findByOwnerIdAndArchivedAtIsNullOrderByCreatedAtAsc。

Finds the by owner id and archived at is null order by created at asc.

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

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/EnvironmentEntityRepository.java:31
基于官方固定版本源码静态生成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.