statement.setString(1, acc.getAPIKey()); PreparedStatement ps = databaseInfo.getConnection().prepareStatement(insertCommand); ps.setString(1, acc.getUserId()); ps.setString(2, acc.getAPIKey()); ps.setBoolean(3, acc.isBlocked()); ps.setLong(4, acc.getTimeIssued()); ps.setBoolean(2, acc.isBlocked()); ps.setInt(3, acc.getUses()); ps.setString(4, acc.getAPIKey());
if (acc != null) { if (acc.isBlocked()) { Logger.getLogger().api("Attempted to use blocked API Key: " + acc.getAPIKey(), request.getRemoteAddr());
if (acc != null) { if (acc.isBlocked()) { Logger.getLogger().api("Attempted to use blocked API Key: " + acc.getAPIKey(), request.getRemoteAddr());
if (acc != null) { if (acc.isBlocked()) { Logger.getLogger().api("Attempted to use blocked API Key: " + acc.getAPIKey(), request.getRemoteAddr());