public class JdbcAccountArchivePersistenceServiceImpl extends BasePersistenceServiceJDBCImpl implements AccountArchivePersistenceService
AccountArchivePersistenceService factory for JDBC implementation.| Constructor and Description |
|---|
JdbcAccountArchivePersistenceServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteAccount(AccountId id)
Deletes the account with submitted id.
|
ArchivedAccount |
getAccount(AccountId id)
Returns the account with that account id.
|
java.util.List<ArchivedAccount> |
getAccounts(java.util.List<AccountId> identities)
Returns the list of
AccountId with specified identities. |
java.util.List<ArchivedAccount> |
getAccountsByQuery(ArchivedAccountQuery query)
Get accounts by query.
|
java.util.List<AccountId> |
getAccountsByType(int type) |
java.util.Collection<AccountId> |
getAllAccountIds()
Get all account id's.
|
java.util.List<ArchivedAccount> |
getAllAccounts() |
java.lang.String |
getCustomNote(AccountId id)
Returns the custom note of the account with the given id.
|
AccountId |
getIdByEmail(java.lang.String email)
Returns the id of the account with the given email.
|
AccountId |
getIdByName(java.lang.String name)
Returns the id of the account with the given name.
|
void |
saveAccount(ArchivedAccount account)
Saves the account.
|
void |
saveCustomNote(AccountId id,
java.lang.String customNote)
Save custom note.
|
addDaos, cleanupFromUnitTests, getConnection, getDataSource, getPackagePartsToExcludeFromFlywayTableName, initpublic JdbcAccountArchivePersistenceServiceImpl()
public ArchivedAccount getAccount(AccountId id) throws ArchivedAccountPersistenceServiceException
AccountArchivePersistenceServicegetAccount in interface AccountArchivePersistenceServiceid - account identityArchivedAccountArchivedAccountPersistenceServiceException - if some error occurredpublic java.util.List<ArchivedAccount> getAccounts(java.util.List<AccountId> identities) throws ArchivedAccountPersistenceServiceException
AccountArchivePersistenceServiceAccountId with specified identities.getAccounts in interface AccountArchivePersistenceServiceidentities - list of identities to find.AccountIdArchivedAccountPersistenceServiceException - if some error occurredpublic java.util.List<ArchivedAccount> getAllAccounts() throws ArchivedAccountPersistenceServiceException
getAllAccounts in interface AccountArchivePersistenceServiceAccountIdArchivedAccountPersistenceServiceExceptionpublic void saveAccount(ArchivedAccount account) throws ArchivedAccountPersistenceServiceException
AccountArchivePersistenceServicesaveAccount in interface AccountArchivePersistenceServiceaccount - ArchivedAccount to be savedArchivedAccountPersistenceServiceException - if some error occurredpublic void deleteAccount(AccountId id) throws ArchivedAccountPersistenceServiceException
AccountArchivePersistenceServicedeleteAccount in interface AccountArchivePersistenceServiceid - account identityArchivedAccountPersistenceServiceException - if some error occurredpublic AccountId getIdByName(java.lang.String name) throws ArchivedAccountPersistenceServiceException
AccountArchivePersistenceServicegetIdByName in interface AccountArchivePersistenceServicename - account name to findAccountIdArchivedAccountPersistenceServiceException - if some error occurredpublic java.lang.String getCustomNote(AccountId id) throws ArchivedAccountPersistenceServiceException
AccountArchivePersistenceServicegetCustomNote in interface AccountArchivePersistenceServiceid - account id to findArchivedAccountPersistenceServiceException - if some error occurredpublic void saveCustomNote(AccountId id, java.lang.String customNote) throws ArchivedAccountPersistenceServiceException
AccountArchivePersistenceServicesaveCustomNote in interface AccountArchivePersistenceServiceid - account idcustomNote - custom noteArchivedAccountPersistenceServiceException - if some error occurredpublic AccountId getIdByEmail(java.lang.String email) throws ArchivedAccountPersistenceServiceException
AccountArchivePersistenceServicegetIdByEmail in interface AccountArchivePersistenceServiceemail - account email to findArchivedAccountPersistenceServiceException - if some error occurredpublic java.util.Collection<AccountId> getAllAccountIds() throws ArchivedAccountPersistenceServiceException
AccountArchivePersistenceServicegetAllAccountIds in interface AccountArchivePersistenceServiceCollection of AccountIdArchivedAccountPersistenceServiceException - if some error occurredpublic java.util.List<AccountId> getAccountsByType(int type) throws ArchivedAccountPersistenceServiceException
getAccountsByType in interface AccountArchivePersistenceServicetype - account id.AccountIdArchivedAccountPersistenceServiceException - if some error occurredpublic java.util.List<ArchivedAccount> getAccountsByQuery(ArchivedAccountQuery query) throws ArchivedAccountPersistenceServiceException
AccountArchivePersistenceServicegetAccountsByQuery in interface AccountArchivePersistenceServicequery - ArchivedAccountQueryList of ArchivedAccountArchivedAccountPersistenceServiceException - if some error occurredCopyright © 2012-2023 anotheria.net. All Rights Reserved.