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.BGExceptionpublic void update(Gate gate) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic Gate getGateById(int id) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic void delete(int id)
throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic boolean isGateTypeUsed(int gateTypeId)
throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic java.util.List<Gate> getContractGates(int cid) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic void addContractGate(int cid,
int gid)
throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic void deleteContractGate(int cid,
int gid)
throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic boolean isGateUsed(int gateId)
throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException