/** * Create an instance of {@link BusinessObjectDataStorageFilesCreateRequest } * */ public BusinessObjectDataStorageFilesCreateRequest createBusinessObjectDataStorageFilesCreateRequest() { return new BusinessObjectDataStorageFilesCreateRequest(); }
Assert.hasText(businessObjectDataStorageFilesCreateRequest.getNamespace(), "A namespace must be specified."); businessObjectDataStorageFilesCreateRequest.setNamespace(businessObjectDataStorageFilesCreateRequest.getNamespace().trim()); Assert.hasText(businessObjectDataStorageFilesCreateRequest.getBusinessObjectDefinitionName(), "A business object definition name must be specified."); businessObjectDataStorageFilesCreateRequest .setBusinessObjectDefinitionName(businessObjectDataStorageFilesCreateRequest.getBusinessObjectDefinitionName().trim()); Assert.hasText(businessObjectDataStorageFilesCreateRequest.getBusinessObjectFormatUsage(), "A business object format usage must be specified."); businessObjectDataStorageFilesCreateRequest .setBusinessObjectFormatUsage(businessObjectDataStorageFilesCreateRequest.getBusinessObjectFormatUsage().trim()); Assert.hasText(businessObjectDataStorageFilesCreateRequest.getBusinessObjectFormatFileType(), "A business object format file type must be specified."); businessObjectDataStorageFilesCreateRequest .setBusinessObjectFormatFileType(businessObjectDataStorageFilesCreateRequest.getBusinessObjectFormatFileType().trim()); Assert.notNull(businessObjectDataStorageFilesCreateRequest.getBusinessObjectFormatVersion(), "A business object format version must be specified."); Assert.hasText(businessObjectDataStorageFilesCreateRequest.getPartitionValue(), "A partition value must be specified."); businessObjectDataStorageFilesCreateRequest.setPartitionValue(businessObjectDataStorageFilesCreateRequest.getPartitionValue().trim()); int subPartitionValuesCount = CollectionUtils.size(businessObjectDataStorageFilesCreateRequest.getSubPartitionValues()); Assert.isTrue(subPartitionValuesCount <= BusinessObjectDataEntity.MAX_SUBPARTITIONS, String.format("Exceeded maximum number of allowed subpartitions: %d.", BusinessObjectDataEntity.MAX_SUBPARTITIONS)); Assert.hasText(businessObjectDataStorageFilesCreateRequest.getSubPartitionValues().get(i), "A subpartition value must be specified."); businessObjectDataStorageFilesCreateRequest.getSubPartitionValues() .set(i, businessObjectDataStorageFilesCreateRequest.getSubPartitionValues().get(i).trim()); Assert.notNull(businessObjectDataStorageFilesCreateRequest.getBusinessObjectDataVersion(), "A business object data version must be specified.");
theNamespace = this.getNamespace(); strategy.appendField(locator, this, "namespace", buffer, theNamespace, (this.namespace!= null)); theBusinessObjectDefinitionName = this.getBusinessObjectDefinitionName(); strategy.appendField(locator, this, "businessObjectDefinitionName", buffer, theBusinessObjectDefinitionName, (this.businessObjectDefinitionName!= null)); theBusinessObjectFormatUsage = this.getBusinessObjectFormatUsage(); strategy.appendField(locator, this, "businessObjectFormatUsage", buffer, theBusinessObjectFormatUsage, (this.businessObjectFormatUsage!= null)); theBusinessObjectFormatFileType = this.getBusinessObjectFormatFileType(); strategy.appendField(locator, this, "businessObjectFormatFileType", buffer, theBusinessObjectFormatFileType, (this.businessObjectFormatFileType!= null)); theBusinessObjectFormatVersion = this.getBusinessObjectFormatVersion(); strategy.appendField(locator, this, "businessObjectFormatVersion", buffer, theBusinessObjectFormatVersion, (this.businessObjectFormatVersion!= null)); thePartitionValue = this.getPartitionValue(); strategy.appendField(locator, this, "partitionValue", buffer, thePartitionValue, (this.partitionValue!= null)); theSubPartitionValues = ((this.subPartitionValues!= null)?this.getSubPartitionValues():null); strategy.appendField(locator, this, "subPartitionValues", buffer, theSubPartitionValues, (this.subPartitionValues!= null)); theBusinessObjectDataVersion = this.getBusinessObjectDataVersion(); strategy.appendField(locator, this, "businessObjectDataVersion", buffer, theBusinessObjectDataVersion, (this.businessObjectDataVersion!= null)); theStorageName = this.getStorageName(); strategy.appendField(locator, this, "storageName", buffer, theStorageName, (this.storageName!= null)); theStorageFiles = ((this.storageFiles!= null)?this.getStorageFiles():null); strategy.appendField(locator, this, "storageFiles", buffer, theStorageFiles, (this.storageFiles!= null));
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy2 strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof BusinessObjectDataStorageFilesCreateRequest) { final BusinessObjectDataStorageFilesCreateRequest copy = ((BusinessObjectDataStorageFilesCreateRequest) draftCopy); if (namespaceShouldBeCopiedAndSet == Boolean.TRUE) { String sourceNamespace; sourceNamespace = this.getNamespace(); String copyNamespace = ((String) strategy.copy(LocatorUtils.property(locator, "namespace", sourceNamespace), sourceNamespace, (this.namespace!= null))); copy.setNamespace(copyNamespace); } else { if (namespaceShouldBeCopiedAndSet == Boolean.FALSE) { if (businessObjectDefinitionNameShouldBeCopiedAndSet == Boolean.TRUE) { String sourceBusinessObjectDefinitionName; sourceBusinessObjectDefinitionName = this.getBusinessObjectDefinitionName(); String copyBusinessObjectDefinitionName = ((String) strategy.copy(LocatorUtils.property(locator, "businessObjectDefinitionName", sourceBusinessObjectDefinitionName), sourceBusinessObjectDefinitionName, (this.businessObjectDefinitionName!= null))); copy.setBusinessObjectDefinitionName(copyBusinessObjectDefinitionName); } else { if (businessObjectDefinitionNameShouldBeCopiedAndSet == Boolean.FALSE) { if (businessObjectFormatUsageShouldBeCopiedAndSet == Boolean.TRUE) { String sourceBusinessObjectFormatUsage; sourceBusinessObjectFormatUsage = this.getBusinessObjectFormatUsage(); String copyBusinessObjectFormatUsage = ((String) strategy.copy(LocatorUtils.property(locator, "businessObjectFormatUsage", sourceBusinessObjectFormatUsage), sourceBusinessObjectFormatUsage, (this.businessObjectFormatUsage!= null))); copy.setBusinessObjectFormatUsage(copyBusinessObjectFormatUsage); } else { if (businessObjectFormatUsageShouldBeCopiedAndSet == Boolean.FALSE) { if (businessObjectFormatFileTypeShouldBeCopiedAndSet == Boolean.TRUE) {
BusinessObjectDataStorageFilesCreateRequest request = new BusinessObjectDataStorageFilesCreateRequest(); request.setNamespace(businessObjectDataKey.getNamespace()); request.setBusinessObjectDefinitionName(businessObjectDataKey.getBusinessObjectDefinitionName()); request.setBusinessObjectFormatUsage(businessObjectDataKey.getBusinessObjectFormatUsage()); request.setBusinessObjectFormatFileType(businessObjectDataKey.getBusinessObjectFormatFileType()); request.setBusinessObjectFormatVersion(businessObjectDataKey.getBusinessObjectFormatVersion()); request.setPartitionValue(businessObjectDataKey.getPartitionValue()); request.setSubPartitionValues(businessObjectDataKey.getSubPartitionValues()); request.setBusinessObjectDataVersion(businessObjectDataKey.getBusinessObjectDataVersion()); request.setStorageName(storageName); request.setStorageFiles(storageFiles);
@Test public void testCreateBusinessObjectDataStorageFilesUpperCaseParameters() { createDataWithSubPartitions(); // Create business object data storage files using upper case input parameters (except for case-sensitive partition values and storage file paths). BusinessObjectDataStorageFilesCreateRequest request = new BusinessObjectDataStorageFilesCreateRequest(NAMESPACE.toUpperCase(), BDEF_NAME.toUpperCase(), FORMAT_USAGE_CODE.toUpperCase(), FORMAT_FILE_TYPE_CODE.toUpperCase(), FORMAT_VERSION, PARTITION_VALUE, SUB_PARTITION_VALUES, DATA_VERSION, STORAGE_NAME.toUpperCase(), Arrays.asList(createFile(FILE_PATH_2, FILE_SIZE_1_KB, ROW_COUNT_1000)), NO_DISCOVER_STORAGE_FILES); BusinessObjectDataStorageFilesCreateResponse response = businessObjectDataStorageFileService.createBusinessObjectDataStorageFiles(request); // Validate the returned object. businessObjectDataServiceTestHelper .validateBusinessObjectDataStorageFilesCreateResponse(NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, FORMAT_VERSION, PARTITION_VALUE, SUB_PARTITION_VALUES, DATA_VERSION, STORAGE_NAME, request.getStorageFiles(), response); }
storageUnitDaoHelper.getStorageUnitEntity(businessObjectDataStorageFilesCreateRequest.getStorageName(), businessObjectDataEntity); if (BooleanUtils.isTrue(businessObjectDataStorageFilesCreateRequest.isDiscoverStorageFiles())) storageFiles = businessObjectDataStorageFilesCreateRequest.getStorageFiles();
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy2 strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof BusinessObjectDataStorageFilesCreateRequest) { final BusinessObjectDataStorageFilesCreateRequest copy = ((BusinessObjectDataStorageFilesCreateRequest) draftCopy); if (namespaceShouldBeCopiedAndSet == Boolean.TRUE) { String sourceNamespace; sourceNamespace = this.getNamespace(); String copyNamespace = ((String) strategy.copy(LocatorUtils.property(locator, "namespace", sourceNamespace), sourceNamespace, (this.namespace!= null))); copy.setNamespace(copyNamespace); } else { if (namespaceShouldBeCopiedAndSet == Boolean.FALSE) { if (businessObjectDefinitionNameShouldBeCopiedAndSet == Boolean.TRUE) { String sourceBusinessObjectDefinitionName; sourceBusinessObjectDefinitionName = this.getBusinessObjectDefinitionName(); String copyBusinessObjectDefinitionName = ((String) strategy.copy(LocatorUtils.property(locator, "businessObjectDefinitionName", sourceBusinessObjectDefinitionName), sourceBusinessObjectDefinitionName, (this.businessObjectDefinitionName!= null))); copy.setBusinessObjectDefinitionName(copyBusinessObjectDefinitionName); } else { if (businessObjectDefinitionNameShouldBeCopiedAndSet == Boolean.FALSE) { if (businessObjectFormatUsageShouldBeCopiedAndSet == Boolean.TRUE) { String sourceBusinessObjectFormatUsage; sourceBusinessObjectFormatUsage = this.getBusinessObjectFormatUsage(); String copyBusinessObjectFormatUsage = ((String) strategy.copy(LocatorUtils.property(locator, "businessObjectFormatUsage", sourceBusinessObjectFormatUsage), sourceBusinessObjectFormatUsage, (this.businessObjectFormatUsage!= null))); copy.setBusinessObjectFormatUsage(copyBusinessObjectFormatUsage); } else { if (businessObjectFormatUsageShouldBeCopiedAndSet == Boolean.FALSE) { if (businessObjectFormatFileTypeShouldBeCopiedAndSet == Boolean.TRUE) {
theNamespace = this.getNamespace(); strategy.appendField(locator, this, "namespace", buffer, theNamespace, (this.namespace!= null)); theBusinessObjectDefinitionName = this.getBusinessObjectDefinitionName(); strategy.appendField(locator, this, "businessObjectDefinitionName", buffer, theBusinessObjectDefinitionName, (this.businessObjectDefinitionName!= null)); theBusinessObjectFormatUsage = this.getBusinessObjectFormatUsage(); strategy.appendField(locator, this, "businessObjectFormatUsage", buffer, theBusinessObjectFormatUsage, (this.businessObjectFormatUsage!= null)); theBusinessObjectFormatFileType = this.getBusinessObjectFormatFileType(); strategy.appendField(locator, this, "businessObjectFormatFileType", buffer, theBusinessObjectFormatFileType, (this.businessObjectFormatFileType!= null)); theBusinessObjectFormatVersion = this.getBusinessObjectFormatVersion(); strategy.appendField(locator, this, "businessObjectFormatVersion", buffer, theBusinessObjectFormatVersion, (this.businessObjectFormatVersion!= null)); thePartitionValue = this.getPartitionValue(); strategy.appendField(locator, this, "partitionValue", buffer, thePartitionValue, (this.partitionValue!= null)); theSubPartitionValues = ((this.subPartitionValues!= null)?this.getSubPartitionValues():null); strategy.appendField(locator, this, "subPartitionValues", buffer, theSubPartitionValues, (this.subPartitionValues!= null)); theBusinessObjectDataVersion = this.getBusinessObjectDataVersion(); strategy.appendField(locator, this, "businessObjectDataVersion", buffer, theBusinessObjectDataVersion, (this.businessObjectDataVersion!= null)); theStorageName = this.getStorageName(); strategy.appendField(locator, this, "storageName", buffer, theStorageName, (this.storageName!= null)); theStorageFiles = ((this.storageFiles!= null)?this.getStorageFiles():null); strategy.appendField(locator, this, "storageFiles", buffer, theStorageFiles, (this.storageFiles!= null));
BusinessObjectDataStorageFilesCreateRequest request = new BusinessObjectDataStorageFilesCreateRequest(); request.setNamespace(businessObjectDataKey.getNamespace()); request.setBusinessObjectDefinitionName(businessObjectDataKey.getBusinessObjectDefinitionName()); request.setBusinessObjectFormatUsage(businessObjectDataKey.getBusinessObjectFormatUsage()); request.setBusinessObjectFormatFileType(businessObjectDataKey.getBusinessObjectFormatFileType()); request.setBusinessObjectFormatVersion(businessObjectDataKey.getBusinessObjectFormatVersion()); request.setPartitionValue(businessObjectDataKey.getPartitionValue()); request.setSubPartitionValues(businessObjectDataKey.getSubPartitionValues()); request.setBusinessObjectDataVersion(businessObjectDataKey.getBusinessObjectDataVersion()); request.setStorageName(storageName); request.setStorageFiles(storageFiles);
@Test public void testCreateBusinessObjectDataStorageFilesLowerCaseParameters() { createDataWithSubPartitions(); // Create business object data storage files using lower case input parameters (except for case-sensitive partition values and storage file paths). BusinessObjectDataStorageFilesCreateRequest request = new BusinessObjectDataStorageFilesCreateRequest(NAMESPACE.toLowerCase(), BDEF_NAME.toLowerCase(), FORMAT_USAGE_CODE.toLowerCase(), FORMAT_FILE_TYPE_CODE.toLowerCase(), FORMAT_VERSION, PARTITION_VALUE, SUB_PARTITION_VALUES, DATA_VERSION, STORAGE_NAME.toLowerCase(), Arrays.asList(createFile(FILE_PATH_2, FILE_SIZE_1_KB, ROW_COUNT_1000)), NO_DISCOVER_STORAGE_FILES); BusinessObjectDataStorageFilesCreateResponse response = businessObjectDataStorageFileService.createBusinessObjectDataStorageFiles(request); // Validate the returned object. businessObjectDataServiceTestHelper .validateBusinessObjectDataStorageFilesCreateResponse(NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, FORMAT_VERSION, PARTITION_VALUE, SUB_PARTITION_VALUES, DATA_VERSION, STORAGE_NAME, request.getStorageFiles(), response); }
storageUnitDaoHelper.getStorageUnitEntity(businessObjectDataStorageFilesCreateRequest.getStorageName(), businessObjectDataEntity); if (BooleanUtils.isTrue(businessObjectDataStorageFilesCreateRequest.isDiscoverStorageFiles())) storageFiles = businessObjectDataStorageFilesCreateRequest.getStorageFiles();
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy2 strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof BusinessObjectDataStorageFilesCreateRequest) { final BusinessObjectDataStorageFilesCreateRequest copy = ((BusinessObjectDataStorageFilesCreateRequest) draftCopy); if (namespaceShouldBeCopiedAndSet == Boolean.TRUE) { String sourceNamespace; sourceNamespace = this.getNamespace(); String copyNamespace = ((String) strategy.copy(LocatorUtils.property(locator, "namespace", sourceNamespace), sourceNamespace, (this.namespace!= null))); copy.setNamespace(copyNamespace); } else { if (namespaceShouldBeCopiedAndSet == Boolean.FALSE) { if (businessObjectDefinitionNameShouldBeCopiedAndSet == Boolean.TRUE) { String sourceBusinessObjectDefinitionName; sourceBusinessObjectDefinitionName = this.getBusinessObjectDefinitionName(); String copyBusinessObjectDefinitionName = ((String) strategy.copy(LocatorUtils.property(locator, "businessObjectDefinitionName", sourceBusinessObjectDefinitionName), sourceBusinessObjectDefinitionName, (this.businessObjectDefinitionName!= null))); copy.setBusinessObjectDefinitionName(copyBusinessObjectDefinitionName); } else { if (businessObjectDefinitionNameShouldBeCopiedAndSet == Boolean.FALSE) { if (businessObjectFormatUsageShouldBeCopiedAndSet == Boolean.TRUE) { String sourceBusinessObjectFormatUsage; sourceBusinessObjectFormatUsage = this.getBusinessObjectFormatUsage(); String copyBusinessObjectFormatUsage = ((String) strategy.copy(LocatorUtils.property(locator, "businessObjectFormatUsage", sourceBusinessObjectFormatUsage), sourceBusinessObjectFormatUsage, (this.businessObjectFormatUsage!= null))); copy.setBusinessObjectFormatUsage(copyBusinessObjectFormatUsage); } else { if (businessObjectFormatUsageShouldBeCopiedAndSet == Boolean.FALSE) { if (businessObjectFormatFileTypeShouldBeCopiedAndSet == Boolean.TRUE) {
theNamespace = this.getNamespace(); strategy.appendField(locator, this, "namespace", buffer, theNamespace, (this.namespace!= null)); theBusinessObjectDefinitionName = this.getBusinessObjectDefinitionName(); strategy.appendField(locator, this, "businessObjectDefinitionName", buffer, theBusinessObjectDefinitionName, (this.businessObjectDefinitionName!= null)); theBusinessObjectFormatUsage = this.getBusinessObjectFormatUsage(); strategy.appendField(locator, this, "businessObjectFormatUsage", buffer, theBusinessObjectFormatUsage, (this.businessObjectFormatUsage!= null)); theBusinessObjectFormatFileType = this.getBusinessObjectFormatFileType(); strategy.appendField(locator, this, "businessObjectFormatFileType", buffer, theBusinessObjectFormatFileType, (this.businessObjectFormatFileType!= null)); theBusinessObjectFormatVersion = this.getBusinessObjectFormatVersion(); strategy.appendField(locator, this, "businessObjectFormatVersion", buffer, theBusinessObjectFormatVersion, (this.businessObjectFormatVersion!= null)); thePartitionValue = this.getPartitionValue(); strategy.appendField(locator, this, "partitionValue", buffer, thePartitionValue, (this.partitionValue!= null)); theSubPartitionValues = ((this.subPartitionValues!= null)?this.getSubPartitionValues():null); strategy.appendField(locator, this, "subPartitionValues", buffer, theSubPartitionValues, (this.subPartitionValues!= null)); theBusinessObjectDataVersion = this.getBusinessObjectDataVersion(); strategy.appendField(locator, this, "businessObjectDataVersion", buffer, theBusinessObjectDataVersion, (this.businessObjectDataVersion!= null)); theStorageName = this.getStorageName(); strategy.appendField(locator, this, "storageName", buffer, theStorageName, (this.storageName!= null)); theStorageFiles = ((this.storageFiles!= null)?this.getStorageFiles():null); strategy.appendField(locator, this, "storageFiles", buffer, theStorageFiles, (this.storageFiles!= null));
Assert.hasText(businessObjectDataStorageFilesCreateRequest.getNamespace(), "A namespace must be specified."); businessObjectDataStorageFilesCreateRequest.setNamespace(businessObjectDataStorageFilesCreateRequest.getNamespace().trim()); Assert.hasText(businessObjectDataStorageFilesCreateRequest.getBusinessObjectDefinitionName(), "A business object definition name must be specified."); businessObjectDataStorageFilesCreateRequest .setBusinessObjectDefinitionName(businessObjectDataStorageFilesCreateRequest.getBusinessObjectDefinitionName().trim()); Assert.hasText(businessObjectDataStorageFilesCreateRequest.getBusinessObjectFormatUsage(), "A business object format usage must be specified."); businessObjectDataStorageFilesCreateRequest .setBusinessObjectFormatUsage(businessObjectDataStorageFilesCreateRequest.getBusinessObjectFormatUsage().trim()); Assert.hasText(businessObjectDataStorageFilesCreateRequest.getBusinessObjectFormatFileType(), "A business object format file type must be specified."); businessObjectDataStorageFilesCreateRequest .setBusinessObjectFormatFileType(businessObjectDataStorageFilesCreateRequest.getBusinessObjectFormatFileType().trim()); Assert.notNull(businessObjectDataStorageFilesCreateRequest.getBusinessObjectFormatVersion(), "A business object format version must be specified."); Assert.hasText(businessObjectDataStorageFilesCreateRequest.getPartitionValue(), "A partition value must be specified."); businessObjectDataStorageFilesCreateRequest.setPartitionValue(businessObjectDataStorageFilesCreateRequest.getPartitionValue().trim()); int subPartitionValuesCount = CollectionUtils.size(businessObjectDataStorageFilesCreateRequest.getSubPartitionValues()); Assert.isTrue(subPartitionValuesCount <= BusinessObjectDataEntity.MAX_SUBPARTITIONS, String.format("Exceeded maximum number of allowed subpartitions: %d.", BusinessObjectDataEntity.MAX_SUBPARTITIONS)); Assert.hasText(businessObjectDataStorageFilesCreateRequest.getSubPartitionValues().get(i), "A subpartition value must be specified."); businessObjectDataStorageFilesCreateRequest.getSubPartitionValues() .set(i, businessObjectDataStorageFilesCreateRequest.getSubPartitionValues().get(i).trim()); Assert.notNull(businessObjectDataStorageFilesCreateRequest.getBusinessObjectDataVersion(), "A business object data version must be specified.");
public BusinessObjectDataStorageFilesCreateRequest getNewBusinessObjectDataStorageFilesCreateRequest() { // Crete a test business object format (and associated data). BusinessObjectFormatEntity businessObjectFormatEntity = businessObjectFormatDaoTestHelper.createBusinessObjectFormatEntity(false); BusinessObjectDataStatusEntity businessObjectDataStatusEntity = businessObjectDataStatusDaoTestHelper .createBusinessObjectDataStatusEntity(AbstractServiceTest.BDATA_STATUS, AbstractServiceTest.DESCRIPTION, AbstractServiceTest.BDATA_STATUS_PRE_REGISTRATION_FLAG_SET); BusinessObjectDataEntity businessObjectDataEntity = businessObjectDataDaoTestHelper .createBusinessObjectDataEntity(businessObjectFormatEntity, AbstractServiceTest.PARTITION_VALUE, AbstractServiceTest.DATA_VERSION, AbstractServiceTest.LATEST_VERSION_FLAG_SET, businessObjectDataStatusEntity.getCode()); StorageEntity storageEntity = storageDaoTestHelper.createStorageEntity(); storageUnitDaoTestHelper .createStorageUnitEntity(storageEntity, businessObjectDataEntity, StorageUnitStatusEntity.ENABLED, AbstractServiceTest.NO_STORAGE_DIRECTORY_PATH); // Create a business object data storage files create request. BusinessObjectDataStorageFilesCreateRequest businessObjectDataStorageFilesCreateRequest = new BusinessObjectDataStorageFilesCreateRequest(); businessObjectDataStorageFilesCreateRequest.setNamespace(businessObjectFormatEntity.getBusinessObjectDefinition().getNamespace().getCode()); businessObjectDataStorageFilesCreateRequest.setBusinessObjectDefinitionName(businessObjectFormatEntity.getBusinessObjectDefinition().getName()); businessObjectDataStorageFilesCreateRequest.setBusinessObjectFormatUsage(businessObjectFormatEntity.getUsage()); businessObjectDataStorageFilesCreateRequest.setBusinessObjectFormatFileType(businessObjectFormatEntity.getFileType().getCode()); businessObjectDataStorageFilesCreateRequest.setBusinessObjectFormatVersion(businessObjectFormatEntity.getBusinessObjectFormatVersion()); businessObjectDataStorageFilesCreateRequest.setPartitionValue(businessObjectDataEntity.getPartitionValue()); businessObjectDataStorageFilesCreateRequest.setBusinessObjectDataVersion(businessObjectDataEntity.getVersion()); businessObjectDataStorageFilesCreateRequest.setStorageName(storageEntity.getName()); businessObjectDataStorageFilesCreateRequest.setStorageFiles(getStorageFiles()); return businessObjectDataStorageFilesCreateRequest; }
/** * Create an instance of {@link BusinessObjectDataStorageFilesCreateRequest } * */ public BusinessObjectDataStorageFilesCreateRequest createBusinessObjectDataStorageFilesCreateRequest() { return new BusinessObjectDataStorageFilesCreateRequest(); }
@Test public void testCreateBusinessObjectDataStorageFiles() { createDataWithSubPartitions(); BusinessObjectDataStorageFilesCreateRequest request = new BusinessObjectDataStorageFilesCreateRequest(NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, FORMAT_VERSION, PARTITION_VALUE, SUB_PARTITION_VALUES, DATA_VERSION, STORAGE_NAME, Arrays.asList(createFile(FILE_PATH_2, FILE_SIZE_1_KB, ROW_COUNT_1000)), NO_DISCOVER_STORAGE_FILES); BusinessObjectDataStorageFilesCreateResponse response = businessObjectDataStorageFileService.createBusinessObjectDataStorageFiles(request); // Validate the returned object. businessObjectDataServiceTestHelper .validateBusinessObjectDataStorageFilesCreateResponse(NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, FORMAT_VERSION, PARTITION_VALUE, SUB_PARTITION_VALUES, DATA_VERSION, STORAGE_NAME, request.getStorageFiles(), response); }
lhsNamespace = this.getNamespace(); String rhsNamespace; rhsNamespace = that.getNamespace(); if (!strategy.equals(LocatorUtils.property(thisLocator, "namespace", lhsNamespace), LocatorUtils.property(thatLocator, "namespace", rhsNamespace), lhsNamespace, rhsNamespace, (this.namespace!= null), (that.namespace!= null))) { return false; lhsBusinessObjectDefinitionName = this.getBusinessObjectDefinitionName(); String rhsBusinessObjectDefinitionName; rhsBusinessObjectDefinitionName = that.getBusinessObjectDefinitionName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "businessObjectDefinitionName", lhsBusinessObjectDefinitionName), LocatorUtils.property(thatLocator, "businessObjectDefinitionName", rhsBusinessObjectDefinitionName), lhsBusinessObjectDefinitionName, rhsBusinessObjectDefinitionName, (this.businessObjectDefinitionName!= null), (that.businessObjectDefinitionName!= null))) { return false; lhsBusinessObjectFormatUsage = this.getBusinessObjectFormatUsage(); String rhsBusinessObjectFormatUsage; rhsBusinessObjectFormatUsage = that.getBusinessObjectFormatUsage(); if (!strategy.equals(LocatorUtils.property(thisLocator, "businessObjectFormatUsage", lhsBusinessObjectFormatUsage), LocatorUtils.property(thatLocator, "businessObjectFormatUsage", rhsBusinessObjectFormatUsage), lhsBusinessObjectFormatUsage, rhsBusinessObjectFormatUsage, (this.businessObjectFormatUsage!= null), (that.businessObjectFormatUsage!= null))) { return false; lhsBusinessObjectFormatFileType = this.getBusinessObjectFormatFileType(); String rhsBusinessObjectFormatFileType; rhsBusinessObjectFormatFileType = that.getBusinessObjectFormatFileType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "businessObjectFormatFileType", lhsBusinessObjectFormatFileType), LocatorUtils.property(thatLocator, "businessObjectFormatFileType", rhsBusinessObjectFormatFileType), lhsBusinessObjectFormatFileType, rhsBusinessObjectFormatFileType, (this.businessObjectFormatFileType!= null), (that.businessObjectFormatFileType!= null))) { return false; lhsBusinessObjectFormatVersion = this.getBusinessObjectFormatVersion(); Integer rhsBusinessObjectFormatVersion; rhsBusinessObjectFormatVersion = that.getBusinessObjectFormatVersion(); if (!strategy.equals(LocatorUtils.property(thisLocator, "businessObjectFormatVersion", lhsBusinessObjectFormatVersion), LocatorUtils.property(thatLocator, "businessObjectFormatVersion", rhsBusinessObjectFormatVersion), lhsBusinessObjectFormatVersion, rhsBusinessObjectFormatVersion, (this.businessObjectFormatVersion!= null), (that.businessObjectFormatVersion!= null))) { return false;
/** * Create an instance of {@link BusinessObjectDataStorageFilesCreateRequest } * */ public BusinessObjectDataStorageFilesCreateRequest createBusinessObjectDataStorageFilesCreateRequest() { return new BusinessObjectDataStorageFilesCreateRequest(); }