Class PartyDAO

java.lang.Object
ru.bgcrm.dao.CommonDAO
org.bgerp.plugin.clb.team.dao.PartyDAO

public class PartyDAO extends CommonDAO
Party DAO
  • Constructor Details

  • Method Details

    • update

      public void update(Party party) throws SQLException
      Creates or updates a party
      Parameters:
      party -
      Throws:
      SQLException
    • get

      public Party get(String secret) throws SQLException
      Selects a single entity by secret
      Parameters:
      secret - a secret string
      Returns:
      the party, or null if not found
      Throws:
      SQLException
    • getOrCreateMember

      public PartyMember getOrCreateMember(int partyId, String title) throws SQLException
      Selects existing or creates a party member
      Parameters:
      partyId -
      title -
      Returns:
      the existing or newly created party member
      Throws:
      SQLException
    • getMembersWithPayments

      public List<PartyMember> getMembersWithPayments(int partyId) throws SQLException
      Selects party members with payments
      Parameters:
      partyId - party ID
      Returns:
      the party members with payments
      Throws:
      SQLException
    • memberUpdate

      public void memberUpdate(PartyMember member) throws SQLException
      Creates or updates a party member
      Parameters:
      member -
      Throws:
      SQLException
    • memberDelete

      public void memberDelete(int id) throws SQLException
      Deletes a party member
      Parameters:
      id - member DB entity ID
      Throws:
      SQLException
    • paymentUpdate

      public void paymentUpdate(PartyPayment payment) throws SQLException
      Throws:
      SQLException
    • paymentDelete

      public void paymentDelete(int id) throws SQLException
      Throws:
      SQLException