SessionEventEntityRepository
public interface SessionEventEntityRepository extends JpaRepository<SessionEventEntity, Long>
io/agentscope/builder/web/persistence/jpa/SessionEventEntityRepository.java:26–58定义会话事件 Entity 仓库契约的接口。位于 io.agentscope.builder.web.persistence.jpa 包,实现 JpaRepository<SessionEventEntity, Long>。核心成员包括 findBySessionIdOrderBySeqAsc、findBySessionIdAndSeqGreaterThanOrderBySeqAsc、findBySessionIdAndEventTypeInOrderBySeqAsc、findBySessionIdAndEventTypeInAndSeqGreaterThanOrderBySeqAsc、findByEventId、maxSeq。
Spring Data repository for SessionEventEntity.
方法摘要Method Summary
方法详情Method Detail
findBySessionIdOrderBySeqAsc
public List<SessionEventEntity> findBySessionIdOrderBySeqAsc(String sessionId)
查找 findBySessionIdOrderBySeqAsc。
Finds the by session id order by seq asc.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
sessionId | String | 会话标识(类型 `String`)。The session id. |
List<SessionEventEntity>io/agentscope/builder/web/persistence/jpa/SessionEventEntityRepository.java:28findBySessionIdAndSeqGreaterThanOrderBySeqAsc
public List<SessionEventEntity> findBySessionIdAndSeqGreaterThanOrderBySeqAsc(String sessionId, long afterSeq)
查找 findBySessionIdAndSeqGreaterThanOrderBySeqAsc。
Finds the by session id and seq greater than order by seq asc.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
sessionId | String | 会话标识(类型 `String`)。The session id. |
afterSeq | long | 之后 Seq(类型 `long`)。The after seq. |
List<SessionEventEntity>io/agentscope/builder/web/persistence/jpa/SessionEventEntityRepository.java:30–31findBySessionIdAndEventTypeInOrderBySeqAsc
public List<SessionEventEntity> findBySessionIdAndEventTypeInOrderBySeqAsc(String sessionId, Collection<String> eventTypes)
查找 findBySessionIdAndEventTypeInOrderBySeqAsc。
Finds the by session id and event type in order by seq asc.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
sessionId | String | 会话标识(类型 `String`)。The session id. |
eventTypes | Collection<String> | 事件类型(类型 `Collection`)。The event types. |
List<SessionEventEntity>io/agentscope/builder/web/persistence/jpa/SessionEventEntityRepository.java:33–34findBySessionIdAndEventTypeInAndSeqGreaterThanOrderBySeqAsc
public List<SessionEventEntity> findBySessionIdAndEventTypeInAndSeqGreaterThanOrderBySeqAsc(String sessionId, Collection<String> eventTypes, long afterSeq)
查找 findBySessionIdAndEventTypeInAndSeqGreaterThanOrderBySeqAsc。
Finds the by session id and event type in and seq greater than order by seq asc.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
sessionId | String | 会话标识(类型 `String`)。The session id. |
eventTypes | Collection<String> | 事件类型(类型 `Collection`)。The event types. |
afterSeq | long | 之后 Seq(类型 `long`)。The after seq. |
List<SessionEventEntity>io/agentscope/builder/web/persistence/jpa/SessionEventEntityRepository.java:36–37findByEventId
public Optional<SessionEventEntity> findByEventId(String eventId)
查找通过事件标识。
Finds the by event id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
eventId | String | 事件标识(类型 `String`)。The event id. |
Optional<SessionEventEntity>io/agentscope/builder/web/persistence/jpa/SessionEventEntityRepository.java:39maxSeq
public long maxSeq(String sessionId)
设置该参数。
Performs the max seq operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
sessionId | String | 会话标识(类型 `String`)。The session id. |
longio/agentscope/builder/web/persistence/jpa/SessionEventEntityRepository.java:41–42countBySessionIdAndEventTypeIn
public long countBySessionIdAndEventTypeIn(String sessionId, Collection<String> types)
执行数量通过会话标识和事件类型 In相关操作。
Performs the count by session id and event type in operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
sessionId | String | 会话标识(类型 `String`)。The session id. |
types | Collection<String> | 类型(类型 `Collection`)。The types. |
longio/agentscope/builder/web/persistence/jpa/SessionEventEntityRepository.java:44–48maxCreatedAt
public long maxCreatedAt(String sessionId)
设置最大已创建 At。
Performs the max created at operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
sessionId | String | 会话标识(类型 `String`)。The session id. |
longio/agentscope/builder/web/persistence/jpa/SessionEventEntityRepository.java:50–53existsBySessionIdAndEventType
public boolean existsBySessionIdAndEventType(String sessionId, String eventType)
执行 existsBySessionIdAndEventType 方法。
Performs the exists by session id and event type operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
sessionId | String | 会话标识(类型 `String`)。The session id. |
eventType | String | 事件类型(类型 `String`)。The event type. |
booleanio/agentscope/builder/web/persistence/jpa/SessionEventEntityRepository.java:55deleteBySessionId
public void deleteBySessionId(String sessionId)
删除通过会话标识。
Deletes the by session id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
sessionId | String | 会话标识(类型 `String`)。The session id. |
io/agentscope/builder/web/persistence/jpa/SessionEventEntityRepository.java:57