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.BGExceptionpublic long getNextConnectionId()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void update(InetConnection b) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic 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.BGExceptionpublic boolean updateInetAddress(long id,
byte[] ipAddress,
int ipResourceId)
throws ru.bitel.bgbilling.common.BGException
id - ipAddress - ipResourceId - ru.bitel.bgbilling.common.BGExceptionpublic java.util.List<InetConnection> list(java.util.Set<java.lang.Integer> deviceIds, boolean checkSession) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionprotected InetConnection getFromRS(java.sql.ResultSet rs) throws java.sql.SQLException
java.sql.SQLExceptionpublic static InetConnection getConnectionFromRS(java.sql.ResultSet rs) throws java.sql.SQLException
java.sql.SQLExceptionpublic InetConnection get(long connectionId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic boolean closeConnection(long id,
java.util.Date sessionStop,
int type)
throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic void updateType(long id,
int type)
throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic java.util.List<InetConnection> list(int inetServId) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic 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.BGExceptionpublic boolean delete(long connectionId)
throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException