Package com.nexirius.util

Examples of com.nexirius.util.SortedVector.firstObject()


    public void getAllMembers(ArrayModel members) {
        members.clear();
        SortedVector all = FilePersistence.getInstance().getAll(MemberModel.class);

        for (MemberModel m = (MemberModel) all.firstObject(); m != null; m = (MemberModel) all.nextObject()) {
            members.append(m);

            m.getPerson().setInstanceName(m.getPersonId());

            FilePersistence.getInstance().read(m.getPerson());
View Full Code Here


    public void getAddressesForMember(MemberModel member) {
        member.getAddresses().clear();
        SortedVector all = FilePersistence.getInstance().getAll(AddressModel.class, ITeamPersistence.FOREIGN_KEY, member.getInstanceName());

        for (AddressModel am = (AddressModel) all.firstObject(); am != null; am = (AddressModel) all.nextObject()) {
            member.getAddresses().append(am);
        }
    }

    public void getPhonesForMember(MemberModel member) {
View Full Code Here

    public void getPhonesForMember(MemberModel member) {
        member.getPhones().clear();
        SortedVector all = FilePersistence.getInstance().getAll(PhoneModel.class, ITeamPersistence.FOREIGN_KEY, member.getInstanceName());

        for (PhoneModel pm = (PhoneModel) all.firstObject(); pm != null; pm = (PhoneModel) all.nextObject()) {
            member.getPhones().append(pm);
        }
    }

    public void update(DataModel model) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.