java.lang.Object
ru.bitel.bgbilling.modules.phone.server.bean.GateManager

public class GateManager extends Object
  • Field Details

    • mid

      protected int mid
    • con

      protected Connection con
  • Constructor Details

    • GateManager

      public GateManager(Connection con, int mid)
  • Method Details

    • list

      public List<Gate> list() throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • update

      public void update(Gate gate) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getGateById

      public Gate getGateById(int id) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • delete

      public void delete(int id) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • isGateTypeUsed

      public boolean isGateTypeUsed(int gateTypeId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getContractGates

      public List<Gate> getContractGates(int cid) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • addContractGate

      public void addContractGate(int cid, int gid) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • deleteContractGate

      public void deleteContractGate(int cid, int gid) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • isGateUsed

      public boolean isGateUsed(int gateId) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException