Examples of freeze()


Examples of in.partake.model.dto.User.freeze()

        String userId = twitterLinkage.getUserId();
        User user = daos.getUserAccess().find(con, userId);
        if (user == null) {
            user = new User(userId, twitterLinkage.getScreenName(), twitterLinkage.getProfileImageURL(), TimeUtil.getCurrentDateTime(), null, false);
            daos.getUserAccess().put(con, user);
            user.freeze();
        } else {
            if (!verifyUserProfiles(user, twitterLinkage)) {
                user = new User(user);
                user.setScreenName(twitterLinkage.getScreenName());
                user.setProfileImageURL(twitterLinkage.getProfileImageURL());
View Full Code Here

Examples of in.partake.model.dto.User.freeze()

            if (!verifyUserProfiles(user, twitterLinkage)) {
                user = new User(user);
                user.setScreenName(twitterLinkage.getScreenName());
                user.setProfileImageURL(twitterLinkage.getProfileImageURL());
                daos.getUserAccess().put(con, user);
                user.freeze();
            }
        }
        return new UserEx(user, twitterLinkage);
    }
View Full Code Here

Examples of in.partake.model.dto.UserImage.freeze()

            throw new DAOException(e);
        }
        UserImage imageData = new UserImage(obj);
        imageData.setData(entity.getOpt());

        return imageData.freeze();
    }
}

public class Postgres9UserImageDao extends Postgres9Dao implements IUserImageAccess {
    static final String ENTITY_TABLE_NAME = "UserImageEntities";
View Full Code Here

Examples of in.partake.model.dto.UserOpenIDLink.freeze()

            while (it.hasNext()) {
                UserOpenIDLink t = it.next();
                if (t == null)
                    continue;

                results.add(t.freeze());
            }

            return results;
        } finally {
            it.close();
View Full Code Here

Examples of in.partake.model.dto.UserThumbnail.freeze()

            throw new DAOException(e);
        }
        UserThumbnail thumbnailData = new UserThumbnail(obj);
        thumbnailData.setData(entity.getOpt());

        return thumbnailData.freeze();
    }
}

public class Postgres9UserThumbnailDao extends Postgres9Dao implements IUserThumbnailAccess {
    static final String ENTITY_TABLE_NAME = "UserThumbnailEntities";
View Full Code Here

Examples of javassist.CtClass.freeze()

         return null;
      }

      javassist.bytecode.annotation.Annotation an = attr.getAnnotation(annotation.getName());

      ctClass.freeze();

      return an != null ? ((StringMemberValue) an.getMemberValue(name)).getValue() : null;
   }

   /**
 
View Full Code Here

Examples of net.sf.ehcache.transaction.SoftLock.freeze()

        Object objectKey = getObjectKey();

        SoftLock softLock = softLockFactory.createSoftLock(transactionId, objectKey, newElement, oldElement);
        softLockedElement = createElement(objectKey, softLock);
        softLock.lock();
        softLock.freeze();

        if (oldElement == null) {
            Element previousElement = store.putIfAbsent(softLockedElement);
            if (previousElement != null) {
                softLock.unfreeze();
View Full Code Here

Examples of net.stinfoservices.pacifiq.shared.dto.DSP5DTO.freeze()

        DSP5 dsp5 = dSP5DAO.find(id);
        DSP5DTO dto = new DSP5DTO(dsp5, DTOPath.DSP5_DOC);
        dto.setOverConsumption(isConsumedItemCountTooBig(dsp5));
        if (readOnly) {
            dto.freeze();
        }
        return dto;
    }

    @Override
View Full Code Here

Examples of net.stinfoservices.pacifiq.shared.dto.ProgramDTO.freeze()

            }
            return programDTO;
        } else if (hasRights && readOnly && readOnlySpecific) {
            // simple pure reader
            ProgramDTO programDTO = new ProgramDTO(programDAO.find(id), DTOPath.PROGRAM_DOC);
            programDTO.freeze();
            if (isAdmin || (programDTO.getEcmManager() != null && programDTO.getEcmManager().getId() == user.getId())
                    || (programDTO.getProgramManager() != null && programDTO.getProgramManager().getId() == user.getId())) {
                programDTO.enableGC4LaunchButton();
            }
            return programDTO;
View Full Code Here

Examples of net.stinfoservices.pacifiq.shared.dto.TAADTO.freeze()

            readOnly = true;
        }

        TAADTO taaDTO = new TAADTO(tAADAO.find(id), DTOPath.TAA_DOC);
        if (readOnly) {
            taaDTO.freeze();
        }

        return taaDTO;
    }
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.