VaultEntity
@Entity @Table( name = "builder_vault", indexes = {@Index(name = "ix_builder_vault_owner", columnList = "owner_id")}) public class VaultEntity
源码Source
io/agentscope/builder/web/persistence/jpa/VaultEntity.java:28–115Vault Entity,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.builder.web.persistence.jpa 包。核心成员包括 getRowId、setRowId、getVaultId、setVaultId、getOwnerId、setOwnerId。
Per-end-user credential vault referenced by sessions via vault_ids.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public VaultEntity() | 初始化 `VaultEntity` 实例。 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 getVaultId() | 获取 `getVaultId`。 Returns the vault id. |
public void setVaultId(String vaultId) | 设置 `setVaultId`。 Sets the vault id. |
public String getOwnerId() | 获取所有者标识。 Returns the owner id. |
public void setOwnerId(String ownerId) | 设置所有者标识。 Sets the owner id. |
public String getDisplayName() | 获取展示名称。 Returns the display name. |
public void setDisplayName(String displayName) | 设置展示名称。 Sets the display name. |
public String getMetadataJson() | 获取元数据 JSON。 Returns the metadata json. |
public void setMetadataJson(String metadataJson) | 设置元数据 JSON。 Sets the metadata json. |
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
VaultEntity
public VaultEntity()
初始化 VaultEntity 实例。
Creates a new instance.
源码Source
io/agentscope/builder/web/persistence/jpa/VaultEntity.java:58方法详情Method Detail
getRowId
public Long getRowId()
获取 getRowId。
Returns the row id.
Long返回数值结果。Returns a numeric result.
源码Source
io/agentscope/builder/web/persistence/jpa/VaultEntity.java:60–62setRowId
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/VaultEntity.java:64–66getVaultId
public String getVaultId()
获取 getVaultId。
Returns the vault id.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/builder/web/persistence/jpa/VaultEntity.java:68–70setVaultId
public void setVaultId(String vaultId)
设置 setVaultId。
Sets the vault id.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
vaultId | String | vault 标识(类型 `String`)。The vault id. |
源码Source
io/agentscope/builder/web/persistence/jpa/VaultEntity.java:72–74getOwnerId
public String getOwnerId()
获取所有者标识。
Returns the owner id.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/builder/web/persistence/jpa/VaultEntity.java:76–78setOwnerId
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/VaultEntity.java:80–82getDisplayName
public String getDisplayName()
获取展示名称。
Returns the display name.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/builder/web/persistence/jpa/VaultEntity.java:84–86setDisplayName
public void setDisplayName(String displayName)
设置展示名称。
Sets the display name.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
displayName | String | 展示名称(类型 `String`)。The display name. |
源码Source
io/agentscope/builder/web/persistence/jpa/VaultEntity.java:88–90getMetadataJson
public String getMetadataJson()
获取元数据 JSON。
Returns the metadata json.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/builder/web/persistence/jpa/VaultEntity.java:92–94setMetadataJson
public void setMetadataJson(String metadataJson)
设置元数据 JSON。
Sets the metadata json.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
metadataJson | String | 元数据 JSON(类型 `String`)。The metadata json. |
源码Source
io/agentscope/builder/web/persistence/jpa/VaultEntity.java:96–98getCreatedAt
public long getCreatedAt()
获取已创建 At。
Returns the created at.
long返回数值结果。Returns a numeric result.
源码Source
io/agentscope/builder/web/persistence/jpa/VaultEntity.java:100–102setCreatedAt
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/VaultEntity.java:104–106getUpdatedAt
public long getUpdatedAt()
获取已更新 At。
Returns the updated at.
long返回数值结果。Returns a numeric result.
源码Source
io/agentscope/builder/web/persistence/jpa/VaultEntity.java:108–110setUpdatedAt
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/VaultEntity.java:112–114