public class JDBCForeignIdPersistenceServiceImpl extends BasePersistenceServiceJDBCImpl implements ForeignIdPersistenceService
| Constructor and Description |
|---|
JDBCForeignIdPersistenceServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
AccountId |
getAccountIdByForeignId(int sid,
java.lang.String fid)
Returns account ID by foreign ID.
|
java.util.List<ForeignId> |
getForeignIdsByAccountId(AccountId accId)
Returns list of foreign ids by account ID.
|
void |
link(AccountId accId,
int sid,
java.lang.String fid)
Associate foreign ID with account ID.
|
void |
unlink(AccountId accId,
int sid,
java.lang.String fid)
Dissociate foreign id for specified account.
|
void |
unlink(int sid,
java.lang.String fid)
Dissociate all foreign id.
|
addDaos, cleanupFromUnitTests, getConnection, getDataSource, getPackagePartsToExcludeFromFlywayTableName, initpublic AccountId getAccountIdByForeignId(int sid, java.lang.String fid) throws ForeignIdPersistenceServiceException
ForeignIdPersistenceServicegetAccountIdByForeignId in interface ForeignIdPersistenceServicesid - source id.fid - foreign id.AccountIdForeignIdPersistenceServiceException - if error.public java.util.List<ForeignId> getForeignIdsByAccountId(AccountId accId) throws ForeignIdPersistenceServiceException
ForeignIdPersistenceServicegetForeignIdsByAccountId in interface ForeignIdPersistenceServiceaccId - account id.ForeignIdForeignIdPersistenceServiceException - if error.public void link(AccountId accId, int sid, java.lang.String fid) throws ForeignIdPersistenceServiceException
ForeignIdPersistenceServicelink in interface ForeignIdPersistenceServiceaccId - account id.sid - source id.fid - foreign id.ForeignIdPersistenceServiceException - if error.public void unlink(AccountId accId, int sid, java.lang.String fid) throws ForeignIdPersistenceServiceException
ForeignIdPersistenceServiceunlink in interface ForeignIdPersistenceServiceaccId - account id.sid - source id.fid - foreign id.ForeignIdPersistenceServiceException - if error.public void unlink(int sid,
java.lang.String fid)
throws ForeignIdPersistenceServiceException
ForeignIdPersistenceServiceunlink in interface ForeignIdPersistenceServicesid - source id.fid - foreign id.ForeignIdPersistenceServiceException - if error.Copyright © 2012-2023 anotheria.net. All Rights Reserved.