VaultCredentialEntityRepository
public interface VaultCredentialEntityRepository extends JpaRepository<VaultCredentialEntity, Long>
源码Source
io/agentscope/builder/web/persistence/jpa/VaultCredentialEntityRepository.java:23–33定义 Vault 凭证 Entity 仓库契约的接口。位于 io.agentscope.builder.web.persistence.jpa 包,实现 JpaRepository<VaultCredentialEntity, Long>。核心成员包括 findByVaultIdOrderByCreatedAtAsc、findByCredentialId、deleteByVaultId、deleteByCredentialId。
Spring Data repository for VaultCredentialEntity.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public List<VaultCredentialEntity> findByVaultIdOrderByCreatedAtAsc(String vaultId) | 查找 `findByVaultIdOrderByCreatedAtAsc`。 Finds the by vault id order by created at asc. |
public Optional<VaultCredentialEntity> findByCredentialId(String credentialId) | 查找通过凭证标识。 Finds the by credential id. |
public void deleteByVaultId(String vaultId) | 删除 `deleteByVaultId`。 Deletes the by vault id. |
public void deleteByCredentialId(String credentialId) | 删除通过凭证标识。 Deletes the by credential id. |
方法详情Method Detail
findByVaultIdOrderByCreatedAtAsc
public List<VaultCredentialEntity> findByVaultIdOrderByCreatedAtAsc(String vaultId)
查找 findByVaultIdOrderByCreatedAtAsc。
Finds the by vault id order by created at asc.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
vaultId | String | vault 标识(类型 `String`)。The vault id. |
List<VaultCredentialEntity>返回列出。Returns list.
源码Source
io/agentscope/builder/web/persistence/jpa/VaultCredentialEntityRepository.java:26findByCredentialId
public Optional<VaultCredentialEntity> findByCredentialId(String credentialId)
查找通过凭证标识。
Finds the by credential id.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
credentialId | String | 凭证标识(类型 `String`)。The credential id. |
Optional<VaultCredentialEntity>返回可选。Returns optional.
源码Source
io/agentscope/builder/web/persistence/jpa/VaultCredentialEntityRepository.java:28deleteByVaultId
public void deleteByVaultId(String vaultId)
删除 deleteByVaultId。
Deletes the by vault id.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
vaultId | String | vault 标识(类型 `String`)。The vault id. |
源码Source
io/agentscope/builder/web/persistence/jpa/VaultCredentialEntityRepository.java:30deleteByCredentialId
public void deleteByCredentialId(String credentialId)
删除通过凭证标识。
Deletes the by credential id.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
credentialId | String | 凭证标识(类型 `String`)。The credential id. |
源码Source
io/agentscope/builder/web/persistence/jpa/VaultCredentialEntityRepository.java:32