public class ForeignIdDAO extends AbstractDAO implements DAO
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACCOUNTID_FIELD_NAME |
static java.lang.String |
FOREIGN_FIELD_NAME |
static java.lang.String |
SOURCEID_FIELD_NAME |
static java.lang.String |
TABLE_NAME |
ATT_DAO_CREATED, ATT_DAO_UPDATED, DAO_STD_FIELD_DECL, DAO_STD_FIELD_VALUES| Constructor and Description |
|---|
ForeignIdDAO() |
| Modifier and Type | Method and Description |
|---|---|
AccountId |
getAccountIdByForeignId(java.sql.Connection connection,
int sid,
java.lang.String fid)
Gets
AccountId by foreign id fields. |
java.util.List<ForeignId> |
getForeignIdsByAccountId(java.sql.Connection connection,
AccountId accId)
|
protected java.lang.String[] |
getTableNames() |
void |
link(java.sql.Connection connection,
AccountId accId,
int sid,
java.lang.String fid)
Links account to foreign system.
|
void |
unlink(java.sql.Connection connection,
AccountId accId,
int sid,
java.lang.String fid)
Unlink
AccountId from foreign system. |
void |
unlink(java.sql.Connection connection,
int sid,
java.lang.String fid) |
cleanupFromUnitTests, fillCreatedStatementclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcleanupFromUnitTestspublic static final java.lang.String TABLE_NAME
public static final java.lang.String ACCOUNTID_FIELD_NAME
public static final java.lang.String SOURCEID_FIELD_NAME
public static final java.lang.String FOREIGN_FIELD_NAME
protected java.lang.String[] getTableNames()
getTableNames in class AbstractDAOpublic void link(java.sql.Connection connection,
AccountId accId,
int sid,
java.lang.String fid)
throws DAOException,
java.sql.SQLException
connection - database connection.accId - account id.sid - source id.fid - foreign id.DAOException - if error.java.sql.SQLException - if error.public AccountId getAccountIdByForeignId(java.sql.Connection connection, int sid, java.lang.String fid) throws DAOException, java.sql.SQLException
AccountId by foreign id fields.connection - database connection.sid - source id.fid - foreign id.AccountIdDAOException - if error.java.sql.SQLException - if error.public java.util.List<ForeignId> getForeignIdsByAccountId(java.sql.Connection connection, AccountId accId) throws DAOException, java.sql.SQLException
connection - database connection.accId - account id.ForeignIdDAOException - if error.java.sql.SQLException - if error.public void unlink(java.sql.Connection connection,
AccountId accId,
int sid,
java.lang.String fid)
throws DAOException,
java.sql.SQLException
AccountId from foreign system.connection - database connection.accId - account id.sid - source id.fid - foreign id.DAOException - if error.java.sql.SQLException - if error.public void unlink(java.sql.Connection connection,
int sid,
java.lang.String fid)
throws DAOException,
java.sql.SQLException
connection - database connection.sid - source id.fid - foreign id.DAOException - if error.java.sql.SQLException - if error.Copyright © 2012-2023 anotheria.net. All Rights Reserved.