AS AgentScopeAPI 手册 / API Reference

MemoryStoreEntityRepository

public interface MemoryStoreEntityRepository extends JpaRepository<MemoryStoreEntity, Long>
源码Source io/agentscope/builder/web/persistence/jpa/MemoryStoreEntityRepository.java:23–30

定义记忆存储 Entity 仓库契约的接口。位于 io.agentscope.builder.web.persistence.jpa 包,实现 JpaRepository<MemoryStoreEntity, Long>。核心成员包括 findByStoreId、findByOwnerIdOrderByCreatedAtAsc、existsByOwnerIdAndName。

Spring Data repository for MemoryStoreEntity.

方法摘要Method Summary

方法Method说明Description
public Optional<MemoryStoreEntity> findByStoreId(String storeId)
查找通过存储标识。
Finds the by store id.
public List<MemoryStoreEntity> findByOwnerIdOrderByCreatedAtAsc(String ownerId)
查找 `findByOwnerIdOrderByCreatedAtAsc`。
Finds the by owner id order by created at asc.
public boolean existsByOwnerIdAndName(String ownerId, String name)
执行 `existsByOwnerIdAndName` 方法。
Performs the exists by owner id and name operation.

方法详情Method Detail

findByStoreId

public Optional<MemoryStoreEntity> findByStoreId(String storeId)

查找通过存储标识。

Finds the by store id.

参数Parameters
名称Name类型Type说明Description
storeIdString存储标识(类型 `String`)。The store id.
返回Returns Optional<MemoryStoreEntity>
返回可选。Returns optional.
源码Source io/agentscope/builder/web/persistence/jpa/MemoryStoreEntityRepository.java:25

findByOwnerIdOrderByCreatedAtAsc

public List<MemoryStoreEntity> 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<MemoryStoreEntity>
返回列出。Returns list.
源码Source io/agentscope/builder/web/persistence/jpa/MemoryStoreEntityRepository.java:27

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