public class GateManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.sql.Connection |
con |
protected int |
mid |
Constructor and Description |
---|
GateManager(java.sql.Connection con,
int mid) |
Modifier and Type | Method and 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) |
public java.util.List<Gate> list() throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void update(Gate gate) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public Gate getGateById(int id) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void delete(int id) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public boolean isGateTypeUsed(int gateTypeId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<Gate> getContractGates(int cid) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void addContractGate(int cid, int gid) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void deleteContractGate(int cid, int gid) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public boolean isGateUsed(int gateId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException