public static MessagingRedirectLink toModel(MessagingRedirectLinkSoap soapModel) { MessagingRedirectLink model = new MessagingRedirectLinkImpl(); model.setRedirectId(soapModel.getRedirectId()); model.setLink(soapModel.getLink()); model.setMessageId(soapModel.getMessageId()); model.setCreateDate(soapModel.getCreateDate()); return model; }
public boolean equals(Object obj) { if (obj == null) { return false; } MessagingRedirectLink messagingRedirectLink = null; try { messagingRedirectLink = (MessagingRedirectLink) obj; } catch (ClassCastException cce) { return false; } Long pk = messagingRedirectLink.getPrimaryKey(); if (getPrimaryKey().equals(pk)) { return true; } else { return false; } }
public MessagingRedirectLink toEscapedModel() { if (isEscapedModel()) { return (MessagingRedirectLink) this; } else { MessagingRedirectLink model = new MessagingRedirectLinkImpl(); model.setNew(isNew()); model.setEscapedModel(true); model.setRedirectId(getRedirectId()); model.setLink(HtmlUtil.escape(getLink())); model.setMessageId(getMessageId()); model.setCreateDate(getCreateDate()); model = (MessagingRedirectLink) Proxy.newProxyInstance( MessagingRedirectLink.class.getClassLoader(), new Class[] {MessagingRedirectLink.class}, new ReadOnlyBeanHandler(model)); return model; } }
public int compareTo(MessagingRedirectLink messagingRedirectLink) { Long pk = messagingRedirectLink.getPrimaryKey(); return getPrimaryKey().compareTo(pk); }