@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof SyncDLObjectClp)) { return false; } SyncDLObjectClp syncDLObject = (SyncDLObjectClp) obj; long primaryKey = syncDLObject.getPrimaryKey(); if (getPrimaryKey() == primaryKey) { return true; } else { return false; } }
@Override public Object clone() { SyncDLObjectClp clone = new SyncDLObjectClp(); clone.setSyncDLObjectId(getSyncDLObjectId()); clone.setCompanyId(getCompanyId()); clone.setCreateTime(getCreateTime()); clone.setModifiedTime(getModifiedTime()); clone.setRepositoryId(getRepositoryId()); clone.setParentFolderId(getParentFolderId()); clone.setName(getName()); clone.setExtension(getExtension()); clone.setMimeType(getMimeType()); clone.setDescription(getDescription()); clone.setChangeLog(getChangeLog()); clone.setExtraSettings(getExtraSettings()); clone.setVersion(getVersion()); clone.setSize(getSize()); clone.setChecksum(getChecksum()); clone.setEvent(getEvent()); clone.setLockExpirationDate(getLockExpirationDate()); clone.setLockUserId(getLockUserId()); clone.setLockUserName(getLockUserName()); clone.setType(getType()); clone.setTypePK(getTypePK()); clone.setTypeUuid(getTypeUuid()); return clone; }