@Repository @Transactional(value="defaultTransactionManager") public class JpaOAuth2ClientRepository extends Object implements OAuth2ClientRepository
Constructor and Description |
---|
JpaOAuth2ClientRepository() |
JpaOAuth2ClientRepository(javax.persistence.EntityManager manager) |
Modifier and Type | Method and Description |
---|---|
void |
deleteClient(ClientDetailsEntity client) |
Collection<ClientDetailsEntity> |
getAllClients() |
ClientDetailsEntity |
getById(Long id) |
ClientDetailsEntity |
getClientByClientId(String clientId) |
ClientDetailsEntity |
saveClient(ClientDetailsEntity client) |
ClientDetailsEntity |
updateClient(Long id,
ClientDetailsEntity client) |
public JpaOAuth2ClientRepository()
public JpaOAuth2ClientRepository(javax.persistence.EntityManager manager)
public ClientDetailsEntity getById(Long id)
getById
in interface OAuth2ClientRepository
public ClientDetailsEntity getClientByClientId(String clientId)
getClientByClientId
in interface OAuth2ClientRepository
public ClientDetailsEntity saveClient(ClientDetailsEntity client)
saveClient
in interface OAuth2ClientRepository
public void deleteClient(ClientDetailsEntity client)
deleteClient
in interface OAuth2ClientRepository
public ClientDetailsEntity updateClient(Long id, ClientDetailsEntity client)
updateClient
in interface OAuth2ClientRepository
public Collection<ClientDetailsEntity> getAllClients()
getAllClients
in interface OAuth2ClientRepository
Copyright © 2018. All rights reserved.