コード例 #1
0
  @Override
  public Object clone() {
    SyncDLObjectImpl syncDLObjectImpl = new SyncDLObjectImpl();

    syncDLObjectImpl.setSyncDLObjectId(getSyncDLObjectId());
    syncDLObjectImpl.setCompanyId(getCompanyId());
    syncDLObjectImpl.setUserId(getUserId());
    syncDLObjectImpl.setUserName(getUserName());
    syncDLObjectImpl.setCreateTime(getCreateTime());
    syncDLObjectImpl.setModifiedTime(getModifiedTime());
    syncDLObjectImpl.setRepositoryId(getRepositoryId());
    syncDLObjectImpl.setParentFolderId(getParentFolderId());
    syncDLObjectImpl.setTreePath(getTreePath());
    syncDLObjectImpl.setName(getName());
    syncDLObjectImpl.setExtension(getExtension());
    syncDLObjectImpl.setMimeType(getMimeType());
    syncDLObjectImpl.setDescription(getDescription());
    syncDLObjectImpl.setChangeLog(getChangeLog());
    syncDLObjectImpl.setExtraSettings(getExtraSettings());
    syncDLObjectImpl.setVersion(getVersion());
    syncDLObjectImpl.setVersionId(getVersionId());
    syncDLObjectImpl.setSize(getSize());
    syncDLObjectImpl.setChecksum(getChecksum());
    syncDLObjectImpl.setEvent(getEvent());
    syncDLObjectImpl.setLanTokenKey(getLanTokenKey());
    syncDLObjectImpl.setLastPermissionChangeDate(getLastPermissionChangeDate());
    syncDLObjectImpl.setLockExpirationDate(getLockExpirationDate());
    syncDLObjectImpl.setLockUserId(getLockUserId());
    syncDLObjectImpl.setLockUserName(getLockUserName());
    syncDLObjectImpl.setType(getType());
    syncDLObjectImpl.setTypePK(getTypePK());
    syncDLObjectImpl.setTypeUuid(getTypeUuid());

    syncDLObjectImpl.resetOriginalValues();

    return syncDLObjectImpl;
  }
コード例 #2
0
  public SyncDLObject toEntityModel() {
    SyncDLObjectImpl syncDLObjectImpl = new SyncDLObjectImpl();

    syncDLObjectImpl.setObjectId(objectId);
    syncDLObjectImpl.setCompanyId(companyId);
    syncDLObjectImpl.setCreateTime(createTime);
    syncDLObjectImpl.setModifiedTime(modifiedTime);
    syncDLObjectImpl.setRepositoryId(repositoryId);
    syncDLObjectImpl.setParentFolderId(parentFolderId);

    if (name == null) {
      syncDLObjectImpl.setName(StringPool.BLANK);
    } else {
      syncDLObjectImpl.setName(name);
    }

    if (extension == null) {
      syncDLObjectImpl.setExtension(StringPool.BLANK);
    } else {
      syncDLObjectImpl.setExtension(extension);
    }

    if (mimeType == null) {
      syncDLObjectImpl.setMimeType(StringPool.BLANK);
    } else {
      syncDLObjectImpl.setMimeType(mimeType);
    }

    if (description == null) {
      syncDLObjectImpl.setDescription(StringPool.BLANK);
    } else {
      syncDLObjectImpl.setDescription(description);
    }

    if (changeLog == null) {
      syncDLObjectImpl.setChangeLog(StringPool.BLANK);
    } else {
      syncDLObjectImpl.setChangeLog(changeLog);
    }

    if (extraSettings == null) {
      syncDLObjectImpl.setExtraSettings(StringPool.BLANK);
    } else {
      syncDLObjectImpl.setExtraSettings(extraSettings);
    }

    if (version == null) {
      syncDLObjectImpl.setVersion(StringPool.BLANK);
    } else {
      syncDLObjectImpl.setVersion(version);
    }

    syncDLObjectImpl.setSize(size);

    if (checksum == null) {
      syncDLObjectImpl.setChecksum(StringPool.BLANK);
    } else {
      syncDLObjectImpl.setChecksum(checksum);
    }

    if (event == null) {
      syncDLObjectImpl.setEvent(StringPool.BLANK);
    } else {
      syncDLObjectImpl.setEvent(event);
    }

    if (lockExpirationDate == Long.MIN_VALUE) {
      syncDLObjectImpl.setLockExpirationDate(null);
    } else {
      syncDLObjectImpl.setLockExpirationDate(new Date(lockExpirationDate));
    }

    syncDLObjectImpl.setLockUserId(lockUserId);

    if (lockUserName == null) {
      syncDLObjectImpl.setLockUserName(StringPool.BLANK);
    } else {
      syncDLObjectImpl.setLockUserName(lockUserName);
    }

    if (type == null) {
      syncDLObjectImpl.setType(StringPool.BLANK);
    } else {
      syncDLObjectImpl.setType(type);
    }

    syncDLObjectImpl.setTypePK(typePK);

    if (typeUuid == null) {
      syncDLObjectImpl.setTypeUuid(StringPool.BLANK);
    } else {
      syncDLObjectImpl.setTypeUuid(typeUuid);
    }

    syncDLObjectImpl.resetOriginalValues();

    return syncDLObjectImpl;
  }