public class InetConnectionDao
extends java.lang.Object
Constructor and Description |
---|
InetConnectionDao(java.sql.Connection con,
int moduleId) |
Modifier and Type | Method and Description |
---|---|
boolean |
closeConnection(long id,
java.util.Date sessionStop,
int type) |
boolean |
delete(long connectionId) |
InetConnection |
get(long connectionId) |
static InetConnection |
getConnectionFromRS(java.sql.ResultSet rs) |
protected InetConnection |
getFromRS(java.sql.ResultSet rs) |
long |
getNextConnectionId() |
void |
insert(InetConnection b) |
java.util.List<InetConnection> |
list(int inetServId) |
java.util.List<InetConnection> |
list(java.util.Set<java.lang.Integer> deviceIds,
boolean checkSession) |
static void |
main(java.lang.String[] args) |
void |
recycle() |
void |
update(InetConnection b) |
void |
updateDeviceStateAndOptions(long id,
int state,
java.util.Set<java.lang.Integer> inetOptions,
int accessCode) |
boolean |
updateInetAddress(long id,
byte[] ipAddress,
int ipResourceId)
Метод обновляет ipAddress для соединения, если он еще не установлен.
|
void |
updateIpNets(long connectionId,
java.util.List<IpNet> routeList) |
void |
updateType(long id,
int type) |
public InetConnectionDao(java.sql.Connection con, int moduleId)
public void insert(InetConnection b) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public long getNextConnectionId() throws java.sql.SQLException
java.sql.SQLException
public void update(InetConnection b) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void updateDeviceStateAndOptions(long id, int state, java.util.Set<java.lang.Integer> inetOptions, int accessCode) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public boolean updateInetAddress(long id, byte[] ipAddress, int ipResourceId) throws ru.bitel.bgbilling.common.BGException
id
- ipAddress
- ipResourceId
- ru.bitel.bgbilling.common.BGException
public java.util.List<InetConnection> list(java.util.Set<java.lang.Integer> deviceIds, boolean checkSession) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
protected InetConnection getFromRS(java.sql.ResultSet rs) throws java.sql.SQLException
java.sql.SQLException
public static InetConnection getConnectionFromRS(java.sql.ResultSet rs) throws java.sql.SQLException
java.sql.SQLException
public InetConnection get(long connectionId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public boolean closeConnection(long id, java.util.Date sessionStop, int type) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void updateType(long id, int type) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<InetConnection> list(int inetServId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public static void main(java.lang.String[] args)
public void recycle()
public void updateIpNets(long connectionId, java.util.List<IpNet> routeList) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public boolean delete(long connectionId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException