Package beans.user.client.updater

Examples of beans.user.client.updater.ClientUniq


        ArrayList<Client> pacientsA = new ArrayList<Client>(pacients.values());
        HashMap<ClientUniq, ArrayList<Client>> pacientsMap = new HashMap<ClientUniq, ArrayList<Client>>();
        for (int i = 0; i < pacientsA.size(); i++) {
            Client c = pacientsA.get(i);
            ClientDetails det = c.getDetails(this);
            ClientUniq p =
                    new ClientUniq(det.surnameId, det.nameId, det.pathronId, det.born);
            ArrayList<Client> clA = pacientsMap.get(p);
            if (clA == null) {
                clA = new ArrayList<Client>();
            }
            clA.add(c);
View Full Code Here


         * сначала надо составить белый список LNUMBER, участвующих в статталонах
         * затем при дублировании чанк из белого списка может вытеснить чанк не
         * из белого списка
         */
        for (ClientChunk chunk : chunks) {
            ClientUniq cu = new ClientUniq(chunk.famID, chunk.nameID, chunk.patronID, chunk.dateBorn);
            ClientChunk oldChunk = target.get(cu);
            if (oldChunk == null) {
                target.put(cu, chunk);
            } else {
                if (whiteList.contains(chunk.lnumber)) {
View Full Code Here

        String sql = "select e.id, e.client.surname, e.client.name, e.client.pathronymic, e.client.born from Emc e";
        Query query = manager.createQuery(sql);
        @SuppressWarnings("unchecked")
        List<Object[]> list = query.getResultList();
        for (Object[] line: list) {
            ClientUniq cu = new ClientUniq();
            Integer emcID = (Integer) line[0];
            Surname surname = (Surname) line[1];
            Name name = (Name) line[2];
            Patronymic pathronymic = (Patronymic) line[3];

            cu.surnameID = surname == null ? 0 : surname.getId();
            cu.nameID = name == null ? 0 : name.getId();
            cu.pathronID = pathronymic == null ? 0 : pathronymic.getId();
            cu.dateBorn = (Date) line[4];
            mapEmc.put(cu, emcID);
        }
    for (LNumberChunk c: lNumberChunkList) {
            ClientUniq cu = new ClientUniq();
            cu.surnameID = c.famID;
            cu.nameID = c.nameID;
            cu.pathronID = c.patronID;
            cu.dateBorn = c.born;
            Integer emcID = mapEmc.get(cu);
View Full Code Here

TOP

Related Classes of beans.user.client.updater.ClientUniq

Copyright © 2018 www.massapicom. 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.