Ejemplo n.º 1
0
  @Override
  public Object clone() {
    AkismetDataClp clone = new AkismetDataClp();

    clone.setAkismetDataId(getAkismetDataId());
    clone.setModifiedDate(getModifiedDate());
    clone.setMbMessageId(getMbMessageId());
    clone.setType(getType());
    clone.setPermalink(getPermalink());
    clone.setReferrer(getReferrer());
    clone.setUserAgent(getUserAgent());
    clone.setUserIP(getUserIP());
    clone.setUserURL(getUserURL());

    return clone;
  }
Ejemplo n.º 2
0
  @Override
  public boolean equals(Object obj) {
    if (obj == null) {
      return false;
    }

    AkismetDataClp akismetData = null;

    try {
      akismetData = (AkismetDataClp) obj;
    } catch (ClassCastException cce) {
      return false;
    }

    long primaryKey = akismetData.getPrimaryKey();

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