public class IPsTable extends Table
db, tableName, usingMySQL
Modifier and Type | Method and Description |
---|---|
boolean |
createTable() |
List<InetAddress> |
getIPAddresses(int userId) |
boolean |
removeUserIps(int userId) |
void |
saveIPList(int userId,
Set<InetAddress> ips) |
close, execute, getConnection, getTableName, getVersion, prepareStatement, removeAllData
public IPsTable(SQLDB db, boolean usingMySQL)
db
- usingMySQL
- public boolean createTable()
createTable
in class Table
public boolean removeUserIps(int userId)
userId
- public List<InetAddress> getIPAddresses(int userId) throws SQLException
userId
- SQLException
public void saveIPList(int userId, Set<InetAddress> ips) throws SQLException
userId
- ips
- SQLException
Copyright © 2017. All rights reserved.