public static Object translateOutputWSRPConsumer(BaseModel<?> oldModel) {
    WSRPConsumerClp newModel = new WSRPConsumerClp();

    newModel.setModelAttributes(oldModel.getModelAttributes());

    newModel.setWSRPConsumerRemoteModel(oldModel);

    return newModel;
  }
  public static Object translateInputWSRPConsumer(BaseModel<?> oldModel) {
    WSRPConsumerClp oldClpModel = (WSRPConsumerClp) oldModel;

    BaseModel<?> newModel = oldClpModel.getWSRPConsumerRemoteModel();

    newModel.setModelAttributes(oldClpModel.getModelAttributes());

    return newModel;
  }
Example #3
0
  public Object clone() {
    WSRPConsumerClp clone = new WSRPConsumerClp();

    clone.setWsrpConsumerId(getWsrpConsumerId());
    clone.setCompanyId(getCompanyId());
    clone.setCreateDate(getCreateDate());
    clone.setModifiedDate(getModifiedDate());
    clone.setName(getName());
    clone.setUrl(getUrl());
    clone.setWsdl(getWsdl());
    clone.setRegistrationContextString(getRegistrationContextString());
    clone.setRegistrationPropertiesString(getRegistrationPropertiesString());

    return clone;
  }
Example #4
0
  public boolean equals(Object obj) {
    if (obj == null) {
      return false;
    }

    WSRPConsumerClp wsrpConsumer = null;

    try {
      wsrpConsumer = (WSRPConsumerClp) obj;
    } catch (ClassCastException cce) {
      return false;
    }

    long pk = wsrpConsumer.getPrimaryKey();

    if (getPrimaryKey() == pk) {
      return true;
    } else {
      return false;
    }
  }