public BusinessObjectDataEntity createBusinessObjectDataEntity(BusinessObjectFormatEntity businessObjectFormatEntity,String businessObjectDataPartitionValue,List<String> businessObjectDataSubPartitionValues,Integer businessObjectDataVersion,Boolean businessObjectDataLatestVersion,BusinessObjectDataStatusEntity businessObjectDataStatusEntity){
  BusinessObjectDataEntity businessObjectDataEntity=new BusinessObjectDataEntity();
  businessObjectDataEntity.setVersion(businessObjectDataVersion);
  businessObjectDataEntity.setPartitionValue(businessObjectDataPartitionValue);
  if (businessObjectDataSubPartitionValues != null) {
    businessObjectDataEntity.setPartitionValue2(businessObjectDataSubPartitionValues.size() > 0 ? businessObjectDataSubPartitionValues.get(0) : null);
    businessObjectDataEntity.setPartitionValue3(businessObjectDataSubPartitionValues.size() > 1 ? businessObjectDataSubPartitionValues.get(1) : null);
    businessObjectDataEntity.setPartitionValue4(businessObjectDataSubPartitionValues.size() > 2 ? businessObjectDataSubPartitionValues.get(2) : null);
    businessObjectDataEntity.setPartitionValue5(businessObjectDataSubPartitionValues.size() > 3 ? businessObjectDataSubPartitionValues.get(3) : null);
  }
  businessObjectDataEntity.setBusinessObjectFormat(businessObjectFormatEntity);
  businessObjectDataEntity.setLatestVersion(businessObjectDataLatestVersion);
  businessObjectDataEntity.setStatus(businessObjectDataStatusEntity);
  BusinessObjectDataStatusHistoryEntity businessObjectDataStatusHistoryEntity=new BusinessObjectDataStatusHistoryEntity();
  businessObjectDataStatusHistoryEntity.setBusinessObjectData(businessObjectDataEntity);
  businessObjectDataStatusHistoryEntity.setStatus(businessObjectDataStatusEntity);
  List<BusinessObjectDataStatusHistoryEntity> businessObjectDataStatusHistoryEntities=new ArrayList<>();
  businessObjectDataStatusHistoryEntities.add(businessObjectDataStatusHistoryEntity);
  businessObjectDataEntity.setHistoricalStatuses(businessObjectDataStatusHistoryEntities);
  return businessObjectDataDao.saveAndRefresh(businessObjectDataEntity);
}

public BusinessObjectDataEntity createBusinessObjectDataEntity ( BusinessObjectFormatEntity businessObjectFormatEntity , String businessObjectDataPartitionValue , List < String > businessObjectDataSubPartitionValues , Integer businessObjectDataVersion , Boolean businessObjectDataLatestVersion , BusinessObjectDataStatusEntity businessObjectDataStatusEntity ) { BusinessObjectDataEntity businessObjectDataEntity = new BusinessObjectDataEntity ( ) ; businessObjectDataEntity . setVersion ( businessObjectDataVersion ) ; businessObjectDataEntity . setPartitionValue ( businessObjectDataPartitionValue ) ; if ( businessObjectDataSubPartitionValues != null ) { businessObjectDataEntity . setPartitionValue2 ( businessObjectDataSubPartitionValues . size ( ) > 0 ? businessObjectDataSubPartitionValues . get ( 0 ) : null ) ; businessObjectDataEntity . setPartitionValue3 ( businessObjectDataSubPartitionValues . size ( ) > 1 ? businessObjectDataSubPartitionValues . get ( 1 ) : null ) ; businessObjectDataEntity . setPartitionValue4 ( businessObjectDataSubPartitionValues . size ( ) > 2 ? businessObjectDataSubPartitionValues . get ( 2 ) : null ) ; businessObjectDataEntity . setPartitionValue5 ( businessObjectDataSubPartitionValues . size ( ) > 3 ? businessObjectDataSubPartitionValues . get ( 3 ) : null ) ; } businessObjectDataEntity . setBusinessObjectFormat ( businessObjectFormatEntity ) ; businessObjectDataEntity . setLatestVersion ( businessObjectDataLatestVersion ) ; businessObjectDataEntity . setStatus ( businessObjectDataStatusEntity ) ; BusinessObjectDataStatusHistoryEntity businessObjectDataStatusHistoryEntity = new BusinessObjectDataStatusHistoryEntity ( ) ; businessObjectDataStatusHistoryEntity . setBusinessObjectData ( businessObjectDataEntity ) ; businessObjectDataStatusHistoryEntity . setStatus ( businessObjectDataStatusEntity ) ; List < BusinessObjectDataStatusHistoryEntity > businessObjectDataStatusHistoryEntities = new ArrayList < > ( ) ; businessObjectDataStatusHistoryEntities . add ( businessObjectDataStatusHistoryEntity ) ; businessObjectDataEntity . setHistoricalStatuses ( businessObjectDataStatusHistoryEntities ) ; return businessObjectDataDao . saveAndRefresh ( businessObjectDataEntity ) ; }
creates and persists a new business object data entity .
