UserMarketplaceEntity
@Entity @Table( name = "builder_user_marketplace", uniqueConstraints = @UniqueConstraint( name = "uk_user_marketplace", columnNames = {"user_id", "marketplace_id"}), indexes = {@Index(name = "ix_user_marketplace_user", columnList = "user_id")}) public class UserMarketplaceEntity
io/agentscope/builder/web/persistence/jpa/UserMarketplaceEntity.java:37–136用户市场 Entity,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.builder.web.persistence.jpa 包。核心成员包括 getId、getUserId、setUserId、getMarketplaceId、setMarketplaceId、getType。
Persistent representation of a single user-owned skill marketplace.
Differs from claw's marketplaces block in agentscope.json: in builder every
marketplace belongs to exactly one user and is invisible to others. The (user_id,
marketplace_id) pair is unique — a user cannot have two marketplaces with the same id, but two
different users may reuse the same id without collision.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public UserMarketplaceEntity() | 初始化 `UserMarketplaceEntity` 实例。 Creates a new instance. |
public UserMarketplaceEntity(String userId, String marketplaceId, String type, String propertiesJson) | 初始化 `UserMarketplaceEntity` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public Long getId() | 获取标识。 Returns the id. |
public String getUserId() | 获取用户标识。 Returns the user id. |
public void setUserId(String userId) | 设置用户标识。 Sets the user id. |
public String getMarketplaceId() | 获取市场标识。 Returns the marketplace id. |
public void setMarketplaceId(String marketplaceId) | 设置市场标识。 Sets the marketplace id. |
public String getType() | 获取类型。 Returns the type. |
public void setType(String type) | 设置类型。 Sets the type. |
public String getPropertiesJson() | 获取属性 JSON。 Returns the properties json. |
public void setPropertiesJson(String propertiesJson) | 设置属性 JSON。 Sets the properties json. |
public Instant getCreatedAt() | 获取已创建 At。 Returns the created at. |
public void setCreatedAt(Instant createdAt) | 设置已创建 At。 Sets the created at. |
public Instant getUpdatedAt() | 获取已更新 At。 Returns the updated at. |
public void setUpdatedAt(Instant updatedAt) | 设置已更新 At。 Sets the updated at. |
构造器详情Constructor Detail
UserMarketplaceEntity
public UserMarketplaceEntity()
初始化 UserMarketplaceEntity 实例。
Creates a new instance.
io/agentscope/builder/web/persistence/jpa/UserMarketplaceEntity.java:75UserMarketplaceEntity
public UserMarketplaceEntity(String userId, String marketplaceId, String type, String propertiesJson)
初始化 UserMarketplaceEntity 实例。
Creates a new instance.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
userId | String | 用户标识(类型 `String`)。The user id. |
marketplaceId | String | 市场标识(类型 `String`)。The marketplace id. |
type | String | 类型(类型 `String`)。The type. |
propertiesJson | String | 属性 JSON(类型 `String`)。The properties json. |
io/agentscope/builder/web/persistence/jpa/UserMarketplaceEntity.java:77–83方法详情Method Detail
getId
public Long getId()
获取标识。
Returns the id.
Longio/agentscope/builder/web/persistence/jpa/UserMarketplaceEntity.java:85–87getUserId
public String getUserId()
获取用户标识。
Returns the user id.
Stringio/agentscope/builder/web/persistence/jpa/UserMarketplaceEntity.java:89–91setUserId
public void setUserId(String userId)
设置用户标识。
Sets the user id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
userId | String | 用户标识(类型 `String`)。The user id. |
io/agentscope/builder/web/persistence/jpa/UserMarketplaceEntity.java:93–95getMarketplaceId
public String getMarketplaceId()
获取市场标识。
Returns the marketplace id.
Stringio/agentscope/builder/web/persistence/jpa/UserMarketplaceEntity.java:97–99setMarketplaceId
public void setMarketplaceId(String marketplaceId)
设置市场标识。
Sets the marketplace id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
marketplaceId | String | 市场标识(类型 `String`)。The marketplace id. |
io/agentscope/builder/web/persistence/jpa/UserMarketplaceEntity.java:101–103getType
public String getType()
获取类型。
Returns the type.
Stringio/agentscope/builder/web/persistence/jpa/UserMarketplaceEntity.java:105–107setType
public void setType(String type)
设置类型。
Sets the type.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
type | String | 类型(类型 `String`)。The type. |
io/agentscope/builder/web/persistence/jpa/UserMarketplaceEntity.java:109–111getPropertiesJson
public String getPropertiesJson()
获取属性 JSON。
Returns the properties json.
Stringio/agentscope/builder/web/persistence/jpa/UserMarketplaceEntity.java:113–115setPropertiesJson
public void setPropertiesJson(String propertiesJson)
设置属性 JSON。
Sets the properties json.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
propertiesJson | String | 属性 JSON(类型 `String`)。The properties json. |
io/agentscope/builder/web/persistence/jpa/UserMarketplaceEntity.java:117–119getCreatedAt
public Instant getCreatedAt()
获取已创建 At。
Returns the created at.
Instantio/agentscope/builder/web/persistence/jpa/UserMarketplaceEntity.java:121–123setCreatedAt
public void setCreatedAt(Instant createdAt)
设置已创建 At。
Sets the created at.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
createdAt | Instant | 已创建 At(类型 `Instant`)。The created at. |
io/agentscope/builder/web/persistence/jpa/UserMarketplaceEntity.java:125–127getUpdatedAt
public Instant getUpdatedAt()
获取已更新 At。
Returns the updated at.
Instantio/agentscope/builder/web/persistence/jpa/UserMarketplaceEntity.java:129–131setUpdatedAt
public void setUpdatedAt(Instant updatedAt)
设置已更新 At。
Sets the updated at.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
updatedAt | Instant | 已更新 At(类型 `Instant`)。The updated at. |
io/agentscope/builder/web/persistence/jpa/UserMarketplaceEntity.java:133–135