public static Object translateOutputWSRPConsumerPortlet(BaseModel<?> oldModel) { WSRPConsumerPortletClp newModel = new WSRPConsumerPortletClp(); newModel.setModelAttributes(oldModel.getModelAttributes()); newModel.setWSRPConsumerPortletRemoteModel(oldModel); return newModel; }
public static Object translateInputWSRPConsumerPortlet(BaseModel<?> oldModel) { WSRPConsumerPortletClp oldClpModel = (WSRPConsumerPortletClp) oldModel; BaseModel<?> newModel = oldClpModel.getWSRPConsumerPortletRemoteModel(); newModel.setModelAttributes(oldClpModel.getModelAttributes()); return newModel; }
@Override public Object clone() { WSRPConsumerPortletClp clone = new WSRPConsumerPortletClp(); clone.setUuid(getUuid()); clone.setWsrpConsumerPortletId(getWsrpConsumerPortletId()); clone.setCompanyId(getCompanyId()); clone.setCreateDate(getCreateDate()); clone.setModifiedDate(getModifiedDate()); clone.setWsrpConsumerId(getWsrpConsumerId()); clone.setName(getName()); clone.setPortletHandle(getPortletHandle()); return clone; }
@Override public boolean equals(Object obj) { if (obj == null) { return false; } WSRPConsumerPortletClp wsrpConsumerPortlet = null; try { wsrpConsumerPortlet = (WSRPConsumerPortletClp) obj; } catch (ClassCastException cce) { return false; } long primaryKey = wsrpConsumerPortlet.getPrimaryKey(); if (getPrimaryKey() == primaryKey) { return true; } else { return false; } }