MemoryStoreEntity
@Entity @Table( name = "builder_memory_store", uniqueConstraints = @UniqueConstraint( name = "ux_builder_memory_store_owner_name", columnNames = {"owner_id", "name"}), indexes = {@Index(name = "ix_builder_memory_store_owner", columnList = "owner_id")}) public class MemoryStoreEntity
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryStoreEntity.java:29–120记忆存储 Entity,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.builder.web.persistence.jpa 包。核心成员包括 getRowId、setRowId、getStoreId、setStoreId、getOwnerId、setOwnerId。
Cross-session memory store (mounted into a session sandbox as a directory).
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public MemoryStoreEntity() | 初始化 `MemoryStoreEntity` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public Long getRowId() | 获取 `getRowId`。 Returns the row id. |
public void setRowId(Long rowId) | 设置 `setRowId`。 Sets the row id. |
public String getStoreId() | 获取存储标识。 Returns the store id. |
public void setStoreId(String storeId) | 设置存储标识。 Sets the store id. |
public String getOwnerId() | 获取所有者标识。 Returns the owner id. |
public void setOwnerId(String ownerId) | 设置所有者标识。 Sets the owner id. |
public String getName() | 获取名称。 Returns the name. |
public void setName(String name) | 设置名称。 Sets the name. |
public String getDescription() | 获取 `getDescription`。 Returns the description. |
public void setDescription(String description) | 设置 `setDescription`。 Sets the description. |
public long getCreatedAt() | 获取已创建 At。 Returns the created at. |
public void setCreatedAt(long createdAt) | 设置已创建 At。 Sets the created at. |
public long getUpdatedAt() | 获取已更新 At。 Returns the updated at. |
public void setUpdatedAt(long updatedAt) | 设置已更新 At。 Sets the updated at. |
构造器详情Constructor Detail
MemoryStoreEntity
public MemoryStoreEntity()
初始化 MemoryStoreEntity 实例。
Creates a new instance.
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryStoreEntity.java:63方法详情Method Detail
getRowId
public Long getRowId()
获取 getRowId。
Returns the row id.
Long返回数值结果。Returns a numeric result.
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryStoreEntity.java:65–67setRowId
public void setRowId(Long rowId)
设置 setRowId。
Sets the row id.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
rowId | Long | row 标识(类型 `Long`)。The row id. |
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryStoreEntity.java:69–71getStoreId
public String getStoreId()
获取存储标识。
Returns the store id.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryStoreEntity.java:73–75setStoreId
public void setStoreId(String storeId)
设置存储标识。
Sets the store id.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
storeId | String | 存储标识(类型 `String`)。The store id. |
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryStoreEntity.java:77–79getOwnerId
public String getOwnerId()
获取所有者标识。
Returns the owner id.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryStoreEntity.java:81–83setOwnerId
public void setOwnerId(String ownerId)
设置所有者标识。
Sets the owner id.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
ownerId | String | 所有者标识(类型 `String`)。The owner id. |
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryStoreEntity.java:85–87getName
public String getName()
获取名称。
Returns the name.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryStoreEntity.java:89–91setName
public void setName(String name)
设置名称。
Sets the name.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
name | String | 名称(类型 `String`)。The name. |
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryStoreEntity.java:93–95getDescription
public String getDescription()
获取 getDescription。
Returns the description.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryStoreEntity.java:97–99setDescription
public void setDescription(String description)
设置 setDescription。
Sets the description.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
description | String | 描述(类型 `String`)。The description. |
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryStoreEntity.java:101–103getCreatedAt
public long getCreatedAt()
获取已创建 At。
Returns the created at.
long返回数值结果。Returns a numeric result.
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryStoreEntity.java:105–107setCreatedAt
public void setCreatedAt(long createdAt)
设置已创建 At。
Sets the created at.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
createdAt | long | 已创建 At(类型 `long`)。The created at. |
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryStoreEntity.java:109–111getUpdatedAt
public long getUpdatedAt()
获取已更新 At。
Returns the updated at.
long返回数值结果。Returns a numeric result.
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryStoreEntity.java:113–115setUpdatedAt
public void setUpdatedAt(long updatedAt)
设置已更新 At。
Sets the updated at.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
updatedAt | long | 已更新 At(类型 `long`)。The updated at. |
源码Source
io/agentscope/builder/web/persistence/jpa/MemoryStoreEntity.java:117–119