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 Details

  • Constructor Details

    • AccountArchiveDAO

      public AccountArchiveDAO()
  • Method Details

    • getTableNames

      protected String[] getTableNames()
      Specified by:
      getTableNames in class net.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.DAOException
      SQLException
    • getAccounts

      public List<ArchivedAccount> getAccounts(Connection connection, List<net.anotheria.portalkit.services.common.AccountId> accountIdList) throws SQLException
      Throws:
      SQLException
    • getAllAccounts

      public List<ArchivedAccount> getAllAccounts(Connection connection) throws SQLException
      Throws:
      SQLException
    • createAccount

      protected boolean createAccount(Connection connection, ArchivedAccount account) throws SQLException
      Throws:
      SQLException
    • updateAccount

      protected boolean updateAccount(Connection connection, ArchivedAccount account) throws SQLException, net.anotheria.portalkit.services.common.persistence.jdbc.DAOException
      Throws:
      SQLException
      net.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:
      SQLException
      net.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:
      SQLException
      net.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:
      SQLException
      net.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:
      SQLException
      net.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:
      SQLException
      net.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:
      SQLException
      net.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:
      SQLException
      net.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