コード例 #1
0
ファイル: EdoVoteRecord.java プロジェクト: kuali-mirror/kpme
    public static Builder create(EdoVoteRecordContract contract) {
      if (contract == null) {
        throw new IllegalArgumentException("contract was null");
      }
      // TODO if create() is modified to accept required parameters, this will need to be modified
      Builder builder = create();
      builder.setVoteSubRound(contract.getVoteSubRound());
      builder.setAbstainCount(contract.getAbstainCount());
      builder.setEdoVoteRecordId(contract.getEdoVoteRecordId());
      builder.setEdoDossierId(contract.getEdoDossierId());
      builder.setAbsentCount(contract.getAbsentCount());
      builder.setEdoReviewLayerDefinitionId(contract.getEdoReviewLayerDefinitionId());
      builder.setNoCount(contract.getNoCount());
      builder.setVoteRound(contract.getVoteRound());
      builder.setYesCount(contract.getYesCount());
      builder.setAoeCode(contract.getAoeCode());
      builder.setVoteType(contract.getVoteType());
      builder.setVersionNumber(contract.getVersionNumber());
      builder.setObjectId(contract.getObjectId());

      builder.setCreatedAt(contract.getCreatedAt());
      builder.setUpdatedAt(contract.getUpdatedAt());
      builder.setCreatedBy(contract.getCreatedBy());
      return builder;
    }