Class JdbcAccountArchivePersistenceServiceImpl
- java.lang.Object
-
- net.anotheria.portalkit.services.common.persistence.jdbc.BasePersistenceServiceJDBCImpl
-
- net.anotheria.portalkit.services.accountarchive.persistence.jdbc.JdbcAccountArchivePersistenceServiceImpl
-
- All Implemented Interfaces:
net.anotheria.anoprise.metafactory.Service,AccountArchivePersistenceService,net.anotheria.portalkit.services.common.persistence.jdbc.BasePersistenceService
public class JdbcAccountArchivePersistenceServiceImpl extends net.anotheria.portalkit.services.common.persistence.jdbc.BasePersistenceServiceJDBCImpl implements AccountArchivePersistenceService
AccountArchivePersistenceServicefactory for JDBC implementation.- Since:
- 22.04.14 11:36
- Author:
- VKoulakov
-
-
Constructor Summary
Constructors Constructor Description JdbcAccountArchivePersistenceServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteAccount(net.anotheria.portalkit.services.common.AccountId id)Deletes the account with submitted id.ArchivedAccountgetAccount(net.anotheria.portalkit.services.common.AccountId id)Returns the account with that account id.java.util.List<ArchivedAccount>getAccounts(java.util.List<net.anotheria.portalkit.services.common.AccountId> identities)Returns the list ofAccountIdwith specified identities.java.util.List<ArchivedAccount>getAccountsByQuery(ArchivedAccountQuery query)Get accounts by query.java.util.List<net.anotheria.portalkit.services.common.AccountId>getAccountsByType(int type)java.util.Collection<net.anotheria.portalkit.services.common.AccountId>getAllAccountIds()Get all account id's.java.util.List<ArchivedAccount>getAllAccounts()java.lang.StringgetCustomNote(net.anotheria.portalkit.services.common.AccountId id)Returns the custom note of the account with the given id.net.anotheria.portalkit.services.common.AccountIdgetIdByEmail(java.lang.String email)Returns the id of the account with the given email.net.anotheria.portalkit.services.common.AccountIdgetIdByName(java.lang.String name)Returns the id of the account with the given name.voidsaveAccount(ArchivedAccount account)Saves the account.voidsaveCustomNote(net.anotheria.portalkit.services.common.AccountId id, java.lang.String customNote)Save custom note.
-
-
-
Method Detail
-
getAccount
public ArchivedAccount getAccount(net.anotheria.portalkit.services.common.AccountId id) throws ArchivedAccountPersistenceServiceException
Description copied from interface:AccountArchivePersistenceServiceReturns the account with that account id.- Specified by:
getAccountin interfaceAccountArchivePersistenceService- Parameters:
id- account identity- Returns:
ArchivedAccount- Throws:
ArchivedAccountPersistenceServiceException- if some error occurred
-
getAccounts
public java.util.List<ArchivedAccount> getAccounts(java.util.List<net.anotheria.portalkit.services.common.AccountId> identities) throws ArchivedAccountPersistenceServiceException
Description copied from interface:AccountArchivePersistenceServiceReturns the list ofAccountIdwith specified identities.- Specified by:
getAccountsin interfaceAccountArchivePersistenceService- Parameters:
identities- list of identities to find.- Returns:
- list of
AccountId - Throws:
ArchivedAccountPersistenceServiceException- if some error occurred
-
getAllAccounts
public java.util.List<ArchivedAccount> getAllAccounts() throws ArchivedAccountPersistenceServiceException
- Specified by:
getAllAccountsin interfaceAccountArchivePersistenceService- Returns:
- list of
AccountId - Throws:
ArchivedAccountPersistenceServiceException
-
saveAccount
public void saveAccount(ArchivedAccount account) throws ArchivedAccountPersistenceServiceException
Description copied from interface:AccountArchivePersistenceServiceSaves the account.- Specified by:
saveAccountin interfaceAccountArchivePersistenceService- Parameters:
account-ArchivedAccountto be saved- Throws:
ArchivedAccountPersistenceServiceException- if some error occurred
-
deleteAccount
public void deleteAccount(net.anotheria.portalkit.services.common.AccountId id) throws ArchivedAccountPersistenceServiceExceptionDescription copied from interface:AccountArchivePersistenceServiceDeletes the account with submitted id.- Specified by:
deleteAccountin interfaceAccountArchivePersistenceService- Parameters:
id- account identity- Throws:
ArchivedAccountPersistenceServiceException- if some error occurred
-
getIdByName
public net.anotheria.portalkit.services.common.AccountId getIdByName(java.lang.String name) throws ArchivedAccountPersistenceServiceExceptionDescription copied from interface:AccountArchivePersistenceServiceReturns the id of the account with the given name.- Specified by:
getIdByNamein interfaceAccountArchivePersistenceService- Parameters:
name- account name to find- Returns:
AccountId- Throws:
ArchivedAccountPersistenceServiceException- if some error occurred
-
getCustomNote
public java.lang.String getCustomNote(net.anotheria.portalkit.services.common.AccountId id) throws ArchivedAccountPersistenceServiceExceptionDescription copied from interface:AccountArchivePersistenceServiceReturns the custom note of the account with the given id.- Specified by:
getCustomNotein interfaceAccountArchivePersistenceService- Parameters:
id- account id to find- Returns:
- custom note
- Throws:
ArchivedAccountPersistenceServiceException- if some error occurred
-
saveCustomNote
public void saveCustomNote(net.anotheria.portalkit.services.common.AccountId id, java.lang.String customNote) throws ArchivedAccountPersistenceServiceExceptionDescription copied from interface:AccountArchivePersistenceServiceSave custom note.- Specified by:
saveCustomNotein interfaceAccountArchivePersistenceService- Parameters:
id- account idcustomNote- custom note- Throws:
ArchivedAccountPersistenceServiceException- if some error occurred
-
getIdByEmail
public net.anotheria.portalkit.services.common.AccountId getIdByEmail(java.lang.String email) throws ArchivedAccountPersistenceServiceExceptionDescription copied from interface:AccountArchivePersistenceServiceReturns the id of the account with the given email.- Specified by:
getIdByEmailin interfaceAccountArchivePersistenceService- Parameters:
email- account email to find- Returns:
- AccountId
- Throws:
ArchivedAccountPersistenceServiceException- if some error occurred
-
getAllAccountIds
public java.util.Collection<net.anotheria.portalkit.services.common.AccountId> getAllAccountIds() throws ArchivedAccountPersistenceServiceExceptionDescription copied from interface:AccountArchivePersistenceServiceGet all account id's.- Specified by:
getAllAccountIdsin interfaceAccountArchivePersistenceService- Returns:
CollectionofAccountId- Throws:
ArchivedAccountPersistenceServiceException- if some error occurred
-
getAccountsByType
public java.util.List<net.anotheria.portalkit.services.common.AccountId> getAccountsByType(int type) throws ArchivedAccountPersistenceServiceException- Specified by:
getAccountsByTypein interfaceAccountArchivePersistenceService- Parameters:
type- account id.- Returns:
- list of
AccountId - Throws:
ArchivedAccountPersistenceServiceException- if some error occurred
-
getAccountsByQuery
public java.util.List<ArchivedAccount> getAccountsByQuery(ArchivedAccountQuery query) throws ArchivedAccountPersistenceServiceException
Description copied from interface:AccountArchivePersistenceServiceGet accounts by query.- Specified by:
getAccountsByQueryin interfaceAccountArchivePersistenceService- Parameters:
query-ArchivedAccountQuery- Returns:
ListofArchivedAccount- Throws:
ArchivedAccountPersistenceServiceException- if some error occurred
-
-