FiltredPreparedStatement statement = null;
ResultSet rset = null;
try
{
con = L2DatabaseFactory.getInstance().getConnection();
BannedIp temp;
statement = con.prepareStatement("SELECT ip,admin FROM banned_ips");
rset = statement.executeQuery();
while(rset.next())
{
temp = new BannedIp();
temp.ip = rset.getString("ip");
temp.admin = rset.getString("admin");
result.add(temp);
}
}