Class AccountArchiveDAO
java.lang.Object
net.anotheria.portalkit.services.common.persistence.jdbc.AbstractDAO
net.anotheria.portalkit.services.accountarchive.persistence.jdbc.AccountArchiveDAO
- All Implemented Interfaces:
net.anotheria.portalkit.services.common.persistence.jdbc.DAO
public class AccountArchiveDAO
extends net.anotheria.portalkit.services.common.persistence.jdbc.AbstractDAO
implements net.anotheria.portalkit.services.common.persistence.jdbc.DAO
- Since:
- 22.04.14 11:59
- Author:
- VKoulakov
-
Field Summary
FieldsFields inherited from class net.anotheria.portalkit.services.common.persistence.jdbc.AbstractDAO
ATT_DAO_CREATED, ATT_DAO_UPDATED, DAO_STD_FIELD_DECL, DAO_STD_FIELD_VALUES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancreateAccount(Connection connection, ArchivedAccount account) voiddeleteAccount(Connection connection, net.anotheria.portalkit.services.common.AccountId id) getAccount(Connection connection, net.anotheria.portalkit.services.common.AccountId id) Collection<net.anotheria.portalkit.services.common.AccountId> getAccountIds(Connection connection) List<net.anotheria.portalkit.services.common.AccountId> getAccountIdsByType(Connection connection, int type) getAccounts(Connection connection, List<net.anotheria.portalkit.services.common.AccountId> accountIdList) getAccountsByQuery(Connection connection, ArchivedAccountQuery query) getAllAccounts(Connection connection) getCustomNote(Connection connection, net.anotheria.portalkit.services.common.AccountId id) net.anotheria.portalkit.services.common.AccountIdgetIdByEmail(Connection connection, String email) protected net.anotheria.portalkit.services.common.AccountIdgetIdByField(Connection connection, String fieldName, String fieldValue) net.anotheria.portalkit.services.common.AccountIdgetIdByName(Connection connection, String name) protected String[]voidsaveAccount(Connection connection, ArchivedAccount account) booleansaveCustomNote(Connection connection, net.anotheria.portalkit.services.common.AccountId accountId, String customNote) protected booleanupdateAccount(Connection connection, ArchivedAccount account) Methods inherited from class net.anotheria.portalkit.services.common.persistence.jdbc.AbstractDAO
cleanupFromUnitTests, fillCreatedStatementMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.anotheria.portalkit.services.common.persistence.jdbc.DAO
cleanupFromUnitTests
-
Field Details
-
TABLE_NAME
- See Also:
-
-
Constructor Details
-
AccountArchiveDAO
public AccountArchiveDAO()
-
-
Method Details
-
getTableNames
- Specified by:
getTableNamesin classnet.anotheria.portalkit.services.common.persistence.jdbc.AbstractDAO
-
getAccount
public ArchivedAccount getAccount(Connection connection, net.anotheria.portalkit.services.common.AccountId id) throws net.anotheria.portalkit.services.common.persistence.jdbc.DAOException, SQLException - Throws:
net.anotheria.portalkit.services.common.persistence.jdbc.DAOExceptionSQLException
-
getAccounts
public List<ArchivedAccount> getAccounts(Connection connection, List<net.anotheria.portalkit.services.common.AccountId> accountIdList) throws SQLException - Throws:
SQLException
-
getAllAccounts
- Throws:
SQLException
-
createAccount
- Throws:
SQLException
-
updateAccount
protected boolean updateAccount(Connection connection, ArchivedAccount account) throws SQLException, net.anotheria.portalkit.services.common.persistence.jdbc.DAOException - Throws:
SQLExceptionnet.anotheria.portalkit.services.common.persistence.jdbc.DAOException
-
saveAccount
public void saveAccount(Connection connection, ArchivedAccount account) throws SQLException, net.anotheria.portalkit.services.common.persistence.jdbc.DAOException - Throws:
SQLExceptionnet.anotheria.portalkit.services.common.persistence.jdbc.DAOException
-
deleteAccount
public void deleteAccount(Connection connection, net.anotheria.portalkit.services.common.AccountId id) throws SQLException, net.anotheria.portalkit.services.common.persistence.jdbc.DAOException - Throws:
SQLExceptionnet.anotheria.portalkit.services.common.persistence.jdbc.DAOException
-
getCustomNote
public String getCustomNote(Connection connection, net.anotheria.portalkit.services.common.AccountId id) throws SQLException, net.anotheria.portalkit.services.common.persistence.jdbc.DAOException - Throws:
SQLExceptionnet.anotheria.portalkit.services.common.persistence.jdbc.DAOException
-
saveCustomNote
public boolean saveCustomNote(Connection connection, net.anotheria.portalkit.services.common.AccountId accountId, String customNote) throws SQLException, net.anotheria.portalkit.services.common.persistence.jdbc.DAOException - Throws:
SQLExceptionnet.anotheria.portalkit.services.common.persistence.jdbc.DAOException
-
getIdByName
public net.anotheria.portalkit.services.common.AccountId getIdByName(Connection connection, String name) throws SQLException, net.anotheria.portalkit.services.common.persistence.jdbc.DAOException - Throws:
SQLExceptionnet.anotheria.portalkit.services.common.persistence.jdbc.DAOException
-
getIdByField
protected net.anotheria.portalkit.services.common.AccountId getIdByField(Connection connection, String fieldName, String fieldValue) throws SQLException, net.anotheria.portalkit.services.common.persistence.jdbc.DAOException - Throws:
SQLExceptionnet.anotheria.portalkit.services.common.persistence.jdbc.DAOException
-
getIdByEmail
public net.anotheria.portalkit.services.common.AccountId getIdByEmail(Connection connection, String email) throws SQLException, net.anotheria.portalkit.services.common.persistence.jdbc.DAOException - Throws:
SQLExceptionnet.anotheria.portalkit.services.common.persistence.jdbc.DAOException
-
getAccountIds
public Collection<net.anotheria.portalkit.services.common.AccountId> getAccountIds(Connection connection) throws SQLException - Throws:
SQLException
-
getAccountIdsByType
public List<net.anotheria.portalkit.services.common.AccountId> getAccountIdsByType(Connection connection, int type) throws SQLException - Throws:
SQLException
-
getAccountsByQuery
public List<ArchivedAccount> getAccountsByQuery(Connection connection, ArchivedAccountQuery query) throws SQLException - Throws:
SQLException
-