public ArrayList resetActivationCode(ActivationIdType activationIdType) { ArrayList activations = new ArrayList(); if (activationIdType.isSchoolId()) { /** * Parse through each family in the school and generate an actiavtion code for * each family that does not already have one generated. Retrieve all the * families from the school in an array or array-type object, and check against * the array, rather than making 1000 queries. * * The only queries that will need to be looped are UPDATE queries, when updating * the table with the new "activationCode" and "lastReset" fields. */ String schoolId = activationIdType.getId().toString(); System.out.println("RESET ACTIVATION CODE SCHOOL ID: " + schoolId); /** * Retrieve all families in the school based on the current graduation year. * * TODO: Access global variables to retrieve the current graduation year. For now, * graduation year is defaulted to 07. */ FamilyId[] families = familyData.getFamiliesBySchoolId(schoolId, "07"); System.out.println("FAMILIES LENGTH: " + families.length); } }package org.weber.controls.custom.family; import java.io.Serializable;public class FamilyId implements Serializable{ int areaCode; int phoneNumber; public FamilyId() { this.setAreaCode(0); this.setPhoneNumber(0); } public FamilyId(int areaCode, int phoneNumber) { this.setAreaCode(areaCode); this.setPhoneNumber(phoneNumber); } public int getAreaCode() { return this.areaCode; } public int getPhoneNumber() { return this.phoneNumber; } public void setAreaCode(int areaCode) { this.areaCode = areaCode; return; } public void setPhoneNumber(int phoneNumber) { this.phoneNumber = phoneNumber; return; }}