All pastes #224950 Raw Edit

Migs

public java v1 · immutable
#224950 ·published 2006-10-27 17:35 UTC
rendered paste body
    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);         } }