Class GateManager
java.lang.Object
ru.bitel.bgbilling.modules.phone.server.bean.GateManager
public class GateManager
extends java.lang.Object
-
Field Summary
-
Constructor Summary
Constructors Constructor Description GateManager(java.sql.Connection con, int mid)
-
Method Summary
Modifier and Type Method Description void
addContractGate(int cid, int gid)
void
delete(int id)
void
deleteContractGate(int cid, int gid)
java.util.List<Gate>
getContractGates(int cid)
Gate
getGateById(int id)
boolean
isGateTypeUsed(int gateTypeId)
boolean
isGateUsed(int gateId)
java.util.List<Gate>
list()
void
update(Gate gate)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
mid
protected int mid -
con
protected java.sql.Connection con
-
-
Constructor Details
-
GateManager
public GateManager(java.sql.Connection con, int mid)
-
-
Method Details
-
list
- Throws:
ru.bitel.bgbilling.common.BGException
-
update
- Throws:
ru.bitel.bgbilling.common.BGException
-
getGateById
- 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
- 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
-