instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
public List<I_AD_User_SortPref_Line_Product> retrieveSortPreferenceLineProducts(final I_AD_User_SortPref_Line sortPreferenceLine) { // // Services final IQueryBL queryBL = Services.get(IQueryBL.class); final Object contextProvider = sortPreferenceLine; final IQueryBuilder<I_AD_User_SortPref_Line_Product> qu...
{ final IQueryBL queryBL = Services.get(IQueryBL.class); int count = 0; final List<I_AD_User_SortPref_Line> linesToDelete = retrieveSortPreferenceLines(hdr); for (final I_AD_User_SortPref_Line line : linesToDelete) { final int countProductLinesDeleted = queryBL.createQueryBuilder(I_AD_User_SortPref_Line_...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\user\api\impl\UserSortPrefDAO.java
1
请完成以下Java代码
public boolean hasNext() { if (finished) { return false; } if (currentPageIterator == null || !currentPageIterator.hasNext()) { final Collection<E> currentPage = getAndIncrementPage(); if (currentPage == null) { currentPageIterator = null; finished = true; return false; } else ...
@lombok.Value public static final class Page<E> { public static <E> Page<E> ofRows(final List<E> rows) { final Integer lastRow = null; return new Page<>(rows, lastRow); } public static <E> Page<E> ofRowsOrNull(final List<E> rows) { return rows != null && !rows.isEmpty() ? ofRows(rows) : ...
repos\metasfresh-new_dawn_uat\backend\de.metas.util\src\main\java\de\metas\util\collections\PagedIterator.java
1
请完成以下Java代码
private void exportCollectedHUsIfRequired(@NonNull final Collection<ExportHUCandidate> huCandidates) { if (huCandidates.isEmpty()) { Loggables.withLogger(logger, Level.DEBUG).addLog("HuId list to sync empty! No action is performed!"); return; } if (!externalSystemConfigRepo.isAnyConfigActive(getExternal...
{ final I_M_HU topLevelParent = handlingUnitsBL.getTopLevelParent(exportHUCandidate.getHuId()); final TableRecordReference topLevelRef = TableRecordReference.of(I_M_HU.Table_Name, topLevelParent.getM_HU_ID()); exportToExternalSystemIfRequired(topLevelRef, () -> getAdditionalExternalSystemConfigIds(exportHUCa...
repos\metasfresh-new_dawn_uat\backend\de.metas.externalsystem\src\main\java\de\metas\externalsystem\export\hu\ExportHUToExternalSystemService.java
1
请完成以下Java代码
public final class ExchangeTypes { /** * Direct exchange. */ public static final String DIRECT = "direct"; /** * Topic exchange. */ public static final String TOPIC = "topic"; /** * Fanout exchange. */ public static final String FANOUT = "fanout"; /** * Headers exchange. */ public static fin...
* Consistent Hash exchange. * @since 3.2 */ public static final String CONSISTENT_HASH = "x-consistent-hash"; /** * System exchange. * @deprecated with no replacement (for removal): there is no such an exchange type in AMQP. */ @Deprecated(since = "3.2", forRemoval = true) public static final String SYST...
repos\spring-amqp-main\spring-amqp\src\main\java\org\springframework\amqp\core\ExchangeTypes.java
1
请完成以下Java代码
private Stream<POInfoColumn> streamCustomRestAPIColumns(final POInfo poInfo) { final RESTApiTableInfo tableInfo = repository.getByTableNameOrNull(poInfo.getTableName()); if (tableInfo == null) { return Stream.empty(); } else { return poInfo.streamColumns(tableInfo::isCustomRestAPIColumn); } } pr...
@NonNull private CustomColumnsJsonValues convertToJsonValues(final @NonNull PO record, final ZoneId zoneId) { final POInfo poInfo = record.getPOInfo(); final ImmutableMap.Builder<String, Object> map = ImmutableMap.builder(); streamCustomRestAPIColumns(poInfo) .forEach(customColumn -> { final String c...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\persistence\custom_columns\CustomColumnService.java
1
请完成以下Java代码
public class DataImporter { private final ActorSystem actorSystem; private final AverageRepository averageRepository = new AverageRepository(); public DataImporter(ActorSystem actorSystem) { this.actorSystem = actorSystem; } private List<Integer> parseLine(String line) { String[] ...
Flow<String, Double, NotUsed> calculateAverage() { return Flow.of(String.class) .via(parseContent()) .via(computeAverage()); } private Sink<Double, CompletionStage<Done>> storeAverages() { return Flow.of(Double.class) .mapAsyncUnordered(4, average...
repos\tutorials-master\akka-modules\akka-streams\src\main\java\com\baeldung\akkastreams\DataImporter.java
1
请在Spring Boot框架中完成以下Java代码
public class TellerService { private final BankAccountService bankAccountService; private final AuditService auditService; private final UserTransaction userTransaction; @Autowired public TellerService(BankAccountService bankAccountService, AuditService auditService, UserTransaction userTransaction...
} public void executeTransferProgrammaticTx(String fromAccontId, String toAccountId, BigDecimal amount) throws Exception { userTransaction.begin(); bankAccountService.transfer(fromAccontId, toAccountId, amount); auditService.log(fromAccontId, toAccountId, amount); BigDecimal balance...
repos\tutorials-master\persistence-modules\spring-data-jpa-enterprise\src\main\java\com\baeldung\jtademo\services\TellerService.java
2
请完成以下Java代码
public void prepare() { int common = 1; elements = new float[s]; for (int i = 0; i < s - 1; i++) { elements[i] = common; } elements[s - 1] = pivot; } @TearDown @Override public void clean() { elements = null; }
@Benchmark @BenchmarkMode(Mode.AverageTime) public int findPosition() { int index = 0; while (pivot != elements[index]) { index++; } return index; } @Override public String getSimpleClassName() { return FloatPrimitiveLookup.class.getSimpleName(); ...
repos\tutorials-master\core-java-modules\core-java-lang-2\src\main\java\com\baeldung\primitive\FloatPrimitiveLookup.java
1
请完成以下Java代码
public static Integer toValue(@Nullable final JsonMetasfreshId externalId) { if (externalId == null) { return null; } return externalId.getValue(); } public static int toValueInt(@Nullable final JsonMetasfreshId externalId) { if (externalId == null) { return -1; } return externalId.getValue()...
public static <T> T mapToOrNull(@Nullable final JsonMetasfreshId externalId, @NonNull final Function<Integer, T> mapper) { return toValueOptional(externalId).map(mapper).orElse(null); } @Nullable public static String toValueStrOrNull(@Nullable final JsonMetasfreshId externalId) { if (externalId == null) { ...
repos\metasfresh-new_dawn_uat\misc\de-metas-common\de-metas-common-rest_api\src\main\java\de\metas\common\rest_api\common\JsonMetasfreshId.java
1
请完成以下Java代码
public String getTableName() { return InterfaceWrapperHelper.getModelTableName(model); } @Override public int getRecordId() { return InterfaceWrapperHelper.getId(model); } @Override public TableRecordReference getRootRecordReferenceOrNull() { return null;
} @Override public Integer getValueAsInt(final String columnName, final Integer defaultValue) { final Object valueObj = InterfaceWrapperHelper.getValueOrNull(model, columnName); return NumberUtils.asInteger(valueObj, defaultValue); } @Override public boolean isValueChanged(final String columnName) { retu...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\cache\model\ModelCacheSourceModel.java
1
请在Spring Boot框架中完成以下Java代码
private void updateConfirmedByUser() { this.confirmedByUser = computeConfirmedByUser(); } private boolean computeConfirmedByUser() { if (pricePromised.compareTo(pricePromisedUserEntered) != 0) { return false; } for (final RfqQty rfqQty : quantities) { if (!rfqQty.isConfirmedByUser()) { re...
} } return true; } public void closeIt() { this.closed = true; } public void confirmByUser() { this.pricePromised = getPricePromisedUserEntered(); quantities.forEach(RfqQty::confirmByUser); updateConfirmedByUser(); } }
repos\metasfresh-new_dawn_uat\misc\services\procurement-webui\procurement-webui-backend\src\main\java\de\metas\procurement\webui\model\Rfq.java
2
请完成以下Java代码
public int getRevision() { return revision; } public void setRevision(int revision) { this.revision = revision; } public String getVariableName() { return name; } public void setName(String name) { this.name = name; } public String getName() { ...
return textValue2; } public void setTextValue2(String textValue2) { this.textValue2 = textValue2; } public Object getCachedValue() { return cachedValue; } public void setCachedValue(Object cachedValue) { this.cachedValue = cachedValue; } // common methods ////...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\persistence\entity\HistoricDetailVariableInstanceUpdateEntityImpl.java
1
请完成以下Java代码
public List<String> segment(String text) { List<String> wordList = new LinkedList<String>(); segment(text, CharTable.convert(text), wordList); return wordList; } @Override public void segment(String text, String normalized, List<String> wordList) { perceptronSegment...
} }; } @Override protected String getDefaultFeatureTemplate() { return "# Unigram\n" + "U0:%x[-1,0]\n" + "U1:%x[0,0]\n" + "U2:%x[1,0]\n" + "U3:%x[-2,0]%x[-1,0]\n" + "U4:%x[-1,0]%x[0,0]\n" + "U5:%x[0,0]%x[1,0]\n" + ...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\model\crf\CRFSegmenter.java
1
请完成以下Java代码
private String getTopicSuffix(int backOffIndex, long thisBackOffValue) { if (this.isSameIntervalReuse && this.retryTopicsAmount == 1) { return this.destinationTopicSuffixes.getRetrySuffix(); } else if (this.isFixedDelay) { return joinWithRetrySuffix(backOffIndex); } else { String retrySuffix = joinWi...
} private DestinationTopic.Properties createProperties(long delayMs, String suffix) { return new DestinationTopic.Properties(delayMs, suffix, getDestinationTopicType(delayMs), this.maxAttempts, this.numPartitions, this.dltStrategy, this.kafkaOperations, this.shouldRetryOn, this.timeout); } private String joi...
repos\spring-kafka-main\spring-kafka\src\main\java\org\springframework\kafka\retrytopic\DestinationTopicPropertiesFactory.java
1
请完成以下Java代码
public void setM_Package_ID (int M_Package_ID) { if (M_Package_ID < 1) set_Value (COLUMNNAME_M_Package_ID, null); else set_Value (COLUMNNAME_M_Package_ID, Integer.valueOf(M_Package_ID)); } /** Get PackstĂĽck. @return Shipment Package */ public int getM_Package_ID () { Integer ii = (Integer)get...
set_ValueNoCheck (COLUMNNAME_M_PackageTree_ID, null); else set_ValueNoCheck (COLUMNNAME_M_PackageTree_ID, Integer.valueOf(M_PackageTree_ID)); } /** Get Virtual Package. @return Virtual Package */ public int getM_PackageTree_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_M_PackageTree_ID); if (ii...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java-gen\org\compiere\model\X_M_PackageTree.java
1
请完成以下Java代码
public static DmnDecisionResult evaluateDecision(DecisionDefinition decisionDefinition, VariableMap variables) throws Exception { DecisionInvocation invocation = createInvocation(decisionDefinition, variables); invoke(invocation); return invocation.getInvocationResult(); } public static DmnDecisionTabl...
protected static DecisionInvocation createInvocation(DecisionDefinition decisionDefinition, VariableMap variables) { return createInvocation(decisionDefinition, variables.asVariableContext()); } protected static DecisionInvocation createInvocation(DecisionDefinition decisionDefinition, AbstractVariableScope va...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\util\DecisionEvaluationUtil.java
1
请完成以下Java代码
public class SpringUtil implements ApplicationContextAware, DisposableBean { private static ApplicationContext applicationContext = null; /** * 取得存储在静态变量中的ApplicationContext. */ public static ApplicationContext getApplicationContext() { return applicationContext; } /** * 实现...
applicationContext = null; } /** * 发布事件 * * @param event 事件 */ public static void publishEvent(ApplicationEvent event) { if (applicationContext == null) { return; } applicationContext.publishEvent(event); } /** * 实现DisposableBean接口, 在Con...
repos\spring-boot-demo-master\demo-dynamic-datasource\src\main\java\com\xkcoding\dynamic\datasource\utils\SpringUtil.java
1
请完成以下Java代码
protected CleanableHistoricDecisionInstanceReport createNewQuery(ProcessEngine engine) { return engine.getHistoryService().createCleanableHistoricDecisionInstanceReport(); } @Override protected void applyFilters(CleanableHistoricDecisionInstanceReport query) { if (decisionDefinitionIdIn != null && decisi...
if (tenantIdIn != null && tenantIdIn.length > 0) { query.tenantIdIn(tenantIdIn); } if (Boolean.TRUE.equals(compact)) { query.compact(); } } @Override protected void applySortBy(CleanableHistoricDecisionInstanceReport query, String sortBy, Map<String, Object> parameters, ProcessEngine engi...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\history\CleanableHistoricDecisionInstanceReportDto.java
1
请在Spring Boot框架中完成以下Java代码
public Long sAdd(String key, Object... values) { return redisTemplate.opsForSet().add(key, values); } @Override public Long sAdd(String key, long time, Object... values) { Long count = redisTemplate.opsForSet().add(key, values); expire(key, time); return count; } @O...
@Override public Long lPush(String key, Object value, long time) { Long index = redisTemplate.opsForList().rightPush(key, value); expire(key, time); return index; } @Override public Long lPushAll(String key, Object... values) { return redisTemplate.opsForList().rightPush...
repos\mall-master\mall-common\src\main\java\com\macro\mall\common\service\impl\RedisServiceImpl.java
2
请在Spring Boot框架中完成以下Java代码
public class JobController { private final JobService jobService; private static final String ENTITY_NAME = "job"; @ApiOperation("导出岗位数据") @GetMapping(value = "/download") @PreAuthorize("@el.check('job:list')") public void exportJob(HttpServletResponse response, JobQueryCriteria criteria) thro...
@Log("修改岗位") @ApiOperation("修改岗位") @PutMapping @PreAuthorize("@el.check('job:edit')") public ResponseEntity<Object> updateJob(@Validated(Job.Update.class) @RequestBody Job resources){ jobService.update(resources); return new ResponseEntity<>(HttpStatus.NO_CONTENT); } @Log("删除岗位"...
repos\eladmin-master\eladmin-system\src\main\java\me\zhengjie\modules\system\rest\JobController.java
2
请在Spring Boot框架中完成以下Java代码
public class PasswordStorageWebSecurityConfigurer { @Bean public AuthenticationManager authManager(HttpSecurity http) throws Exception { AuthenticationManagerBuilder authenticationManagerBuilder = http.getSharedObject(AuthenticationManagerBuilder.class); authenticationManagerBuilder.eraseCreden...
public PasswordEncoder passwordEncoder() { // set up the list of supported encoders and their prefixes PasswordEncoder defaultEncoder = new StandardPasswordEncoder(); Map<String, PasswordEncoder> encoders = new HashMap<>(); encoders.put("bcrypt", new BCryptPasswordEncoder()); enc...
repos\tutorials-master\spring-security-modules\spring-security-web-rest-basic-auth\src\main\java\com\baeldung\passwordstorage\PasswordStorageWebSecurityConfigurer.java
2
请完成以下Java代码
public void setNamespaceUri(String namespaceUri) { this.namespaceUri = namespaceUri; } /** * @return the namespaceUri */ public String getNamespaceUri() { return namespaceUri; } public boolean isIdAttribute() { return isIdAttribute; } /** * Indicate whether this attribute is an Id ...
} } /** * @return the incomingReferences */ public List<Reference<?>> getIncomingReferences() { return incomingReferences; } /** * @return the outgoingReferences */ public List<Reference<?>> getOutgoingReferences() { return outgoingReferences; } public void registerOutgoingReferen...
repos\camunda-bpm-platform-master\model-api\xml-model\src\main\java\org\camunda\bpm\model\xml\impl\type\attribute\AttributeImpl.java
1
请在Spring Boot框架中完成以下Java代码
public class MainApplication { // Running the application should result in // org.springframework.orm.ObjectOptimisticLockingFailureException private final InventoryService inventoryService; public MainApplication(InventoryService inventoryService) { this.inventoryService = inventoryServ...
return args -> { ExecutorService executor = Executors.newFixedThreadPool(2); executor.execute(inventoryService); // Thread.sleep(2000); -> adding a sleep here will break the transactions concurrency executor.execute(inventoryService); executor.shutdown(); ...
repos\Hibernate-SpringBoot-master\HibernateSpringBootSimulateVersionedOptimisticLocking\src\main\java\com\bookstore\MainApplication.java
2
请完成以下Java代码
public int getDoc_User_ID(DocumentTableFields docFields) { return extractShipmentDeclaration(docFields).getCreatedBy(); } @Override public String completeIt(DocumentTableFields docFields) { final I_M_Shipment_Declaration shipmentDeclaration = extractShipmentDeclaration(docFields); shipmentDeclaration.setPro...
@Override public void reactivateIt(DocumentTableFields docFields) { final I_M_Shipment_Declaration shipmentDeclaration = extractShipmentDeclaration(docFields); shipmentDeclaration.setProcessed(false); shipmentDeclaration.setDocAction(IDocument.ACTION_Complete); } private static I_M_Shipment_Declaration ext...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\shipment\document\ShipmentDeclarationDocumentHandler.java
1
请完成以下Java代码
public void setUrlMappings(Collection<String> urlMappings) { Assert.notNull(urlMappings, "'urlMappings' must not be null"); this.urlMappings = new LinkedHashSet<>(urlMappings); } /** * Return a mutable collection of the URL mappings, as defined in the Servlet * specification, for the servlet. * @return the...
return "servlet " + getServletName(); } @Override protected ServletRegistration.Dynamic addRegistration(String description, ServletContext servletContext) { String name = getServletName(); return servletContext.addServlet(name, this.servlet); } /** * Configure registration settings. Subclasses can override...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\web\servlet\ServletRegistrationBean.java
1
请完成以下Java代码
public void setBackupValue (java.lang.String BackupValue) { set_Value (COLUMNNAME_BackupValue, BackupValue); } /** Get Backup Value. @return The value of the column prior to migration. */ @Override public java.lang.String getBackupValue () { return (java.lang.String)get_Value(COLUMNNAME_BackupValue); ...
public boolean isOldNull () { Object oo = get_Value(COLUMNNAME_IsOldNull); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set New Value. @param NewValue New field value */ @Override public void setNew...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\adempiere\ad\migration\model\X_AD_MigrationData.java
1
请在Spring Boot框架中完成以下Java代码
protected Map<TopicPartitionInfo, List<ListenableFuture<?>>> onAddedPartitions(Set<TopicPartitionInfo> addedPartitions) { var result = new HashMap<TopicPartitionInfo, List<ListenableFuture<?>>>(); try { log.info("Initializing tenant states."); updateLock.lock(); try {...
} else { log.debug("[{}][{}] Tenant doesn't belong to current partition. tpi [{}]", tenant.getName(), tenant.getId(), tpi); } } } finally { updateLock.unlock(); } } catch (Exception e) { log.warn("Unk...
repos\thingsboard-master\application\src\main\java\org\thingsboard\server\service\apiusage\DefaultTbApiUsageStateService.java
2
请在Spring Boot框架中完成以下Java代码
public class MyProperties { /** * excel模板文件路径 */ private String excelPath = ""; /** * 文件保存路径 */ private String filesPath = ""; /** * 图片保存路径 */ private String picsPath = ""; /** * 图片访问URL前缀 */ private String picsUrlPrefix = ""; /** * 文件访问UR...
} public Integer getSessionValidationInterval() { return sessionValidationInterval; } public void setSessionValidationInterval(Integer sessionValidationInterval) { this.sessionValidationInterval = sessionValidationInterval; } public String getFilesUrlPrefix() { return file...
repos\SpringBootBucket-master\springboot-shiro\src\main\java\com\xncoding\pos\config\properties\MyProperties.java
2
请完成以下Java代码
public boolean isRuecknahmeangebotVereinbart() { return ruecknahmeangebotVereinbart; } /** * Sets the value of the ruecknahmeangebotVereinbart property. * */ public void setRuecknahmeangebotVereinbart(boolean value) { this.ruecknahmeangebotVereinbart = value; } /** ...
/** * Gets the value of the kundenKennung property. * * @return * possible object is * {@link String } * */ public String getKundenKennung() { return kundenKennung; } /** * Sets the value of the kundenKennung property. * * @param valu...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma.msv3.schema.v2\src\main\java-xjc\de\metas\vertical\pharma\vendor\gateway\msv3\schema\v2\VertragsdatenAntwort.java
1
请完成以下Java代码
public Object getPersistentState() { return CommentEntityImpl.class; } public byte[] getFullMessageBytes() { return (fullMessage != null ? fullMessage.getBytes() : null); } public void setFullMessageBytes(byte[] fullMessageBytes) { fullMessage = (fullMessageBytes != null ? new ...
this.message = message; } public Date getTime() { return time; } public void setTime(Date time) { this.time = time; } public String getProcessInstanceId() { return processInstanceId; } public void setProcessInstanceId(String processInstanceId) { this.p...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\persistence\entity\CommentEntityImpl.java
1
请完成以下Java代码
public class GetIdentityLinksForTaskCmd implements Command<List<IdentityLink>>, Serializable { private static final long serialVersionUID = 1L; protected String taskId; public GetIdentityLinksForTaskCmd(String taskId) { this.taskId = taskId; } public List<IdentityLink> execute(CommandContext commandCon...
IdentityLinkEntity identityLink = new IdentityLinkEntity(); identityLink.setUserId(task.getAssignee()); identityLink.setTask(task); identityLink.setType(IdentityLinkType.ASSIGNEE); identityLinks.add(identityLink); } if (task.getOwner() != null) { IdentityLinkEntity identityLink = n...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\cmd\GetIdentityLinksForTaskCmd.java
1
请完成以下Java代码
public void setProperty(String name, Object value) { if (properties == null) { properties = new HashMap<>(); } properties.put(name, value); } @Override public Object getProperty(String name) { if (properties == null) { return null; } r...
return properties; } // getters and setters ////////////////////////////////////////////////////// @Override public String getId() { return id; } public void setProperties(Map<String, Object> properties) { this.properties = properties; } @Override public ProcessDe...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\pvm\process\ProcessElementImpl.java
1
请完成以下Java代码
public boolean isProcessed () { Object oo = get_Value(COLUMNNAME_Processed); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Write-off Amount. @param WriteOffAmt Amount to write-off */ @Override pu...
set_Value (COLUMNNAME_WriteOffAmt, WriteOffAmt); } /** Get Write-off Amount. @return Amount to write-off */ @Override public java.math.BigDecimal getWriteOffAmt () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_WriteOffAmt); if (bd == null) return Env.ZERO; return bd; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_CashLine.java
1
请在Spring Boot框架中完成以下Java代码
public class AppDefinitionQueryProperty implements QueryProperty { private static final long serialVersionUID = 1L; private static final Map<String, AppDefinitionQueryProperty> properties = new HashMap<>(); public static final AppDefinitionQueryProperty APP_DEFINITION_KEY = new AppDefinitionQueryProperty...
public AppDefinitionQueryProperty(String name) { this.name = name; properties.put(name, this); } @Override public String getName() { return name; } public static AppDefinitionQueryProperty findByName(String propertyName) { return properties.get(propertyName); } ...
repos\flowable-engine-main\modules\flowable-app-engine\src\main\java\org\flowable\app\engine\impl\repository\AppDefinitionQueryProperty.java
2
请完成以下Java代码
public int getAD_BoilerPlate_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_AD_BoilerPlate_ID); if (ii == null) return 0; return ii.intValue(); } @Override public de.metas.letters.model.I_AD_BoilerPlate getRef_BoilerPlate() throws RuntimeException { return get_ValueAsPO(COLUMNNAME_Ref_BoilerPlate...
@Override public void setRef_BoilerPlate_ID (int Ref_BoilerPlate_ID) { if (Ref_BoilerPlate_ID < 1) set_ValueNoCheck (COLUMNNAME_Ref_BoilerPlate_ID, null); else set_ValueNoCheck (COLUMNNAME_Ref_BoilerPlate_ID, Integer.valueOf(Ref_BoilerPlate_ID)); } /** Get Referenced template. @return Referenced temp...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\de\metas\letters\model\X_AD_BoilerPlate_Ref.java
1
请完成以下Java代码
public ProcessPreconditionsResolution checkPreconditionsApplicable(@NonNull final IProcessPreconditionsContext context) { if (context.isNoSelection()) { return ProcessPreconditionsResolution.rejectBecauseNoSelection(); } return ProcessPreconditionsResolution.accept(); } @Override protected String doIt(...
return queryBuilder .create() .setRequiredAccess(Access.READ) .createSelection(adPInstanceId); } protected IQueryBuilder<I_PP_Order_Candidate> createOCQueryBuilder() { final IQueryFilter<I_PP_Order_Candidate> userSelectionFilter = getProcessInfo().getQueryFilterOrElse(null); if (userSelectionFilter...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing\src\main\java\org\eevolution\productioncandidate\process\PP_Order_Candidate_EnqueueSelectionForOrdering.java
1
请完成以下Java代码
public boolean isFailOnFirstError() { return failOnFirstError; } @Override public void setFailOnFirstError(final boolean failOnFirstError) { this.failOnFirstError = failOnFirstError; } @Override public IMigrationExecutorProvider getMigrationExecutorProvider() { return factory; } @Override public vo...
public boolean isSkipMissingColumns() { // TODO configuration to be implemented return true; } @Override public boolean isSkipMissingTables() { // TODO configuration to be implemented return true; } @Override public void addPostponedExecutable(IPostponedExecutable executable) { Check.assumeNotNull(...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\migration\executor\impl\MigrationExecutorContext.java
1
请完成以下Java代码
public int print(final Graphics graphics, final PageFormat pageFormat, final int pageIndex) throws PrinterException { if (!havePage(pageIndex)) return Printable.NO_SUCH_PAGE; // Rectangle r = new Rectangle(0, 0, (int)getPaper().getWidth(true), (int)getPaper().getHeight(true)); Page page = getPage(pageInd...
* job's attribute set. */ @Override public DocAttributeSet getAttributes() { return null; } // getAttributes /** * Obtains a reader for extracting character print data from this doc. * (Doc Interface) * * @return null * @throws IOException */ @Override public Reader getReaderForText() throws ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\print\layout\LayoutEngine.java
1
请在Spring Boot框架中完成以下Java代码
private Options copy(Consumer<EnumSet<Option>> processor) { EnumSet<Option> options = (!this.options.isEmpty()) ? EnumSet.copyOf(this.options) : EnumSet.noneOf(Option.class); processor.accept(options); return new Options(options); } /** * Create a new instance with the given {@link Option} values....
/** * Ignore all profile activation and include properties. * @since 2.4.3 */ IGNORE_PROFILES, /** * Indicates that the source is "profile specific" and should be included after * profile specific sibling imports. * @since 2.4.5 */ PROFILE_SPECIFIC } }
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\context\config\ConfigData.java
2
请完成以下Java代码
public class ImportUtils { private static Logger log = LogManager.getLogger(ImportUtils.class); public static List<String> lines(String json) { if (json == null) return Collections.emptyList(); String[] split = json.split("[\\r\\n]+"); return Arrays.asList(split); } ...
return null; } } public static List<String> linesFromResource(String resource) { Resource input = new ClassPathResource(resource); try { Path path = input.getFile() .toPath(); return Files.readAllLines(path); } catch (IOException e) { ...
repos\tutorials-master\persistence-modules\spring-boot-persistence-mongodb-2\src\main\java\com\baeldung\boot\json\convertfile\ImportUtils.java
1
请在Spring Boot框架中完成以下Java代码
public void setTaxBaseAmt(final BigDecimal taxBaseAmt) { this.taxBaseAmt = taxBaseAmt; } public BigDecimal getTotalAmt() { return totalAmt; } public void setTotalAmt(final BigDecimal totalAmt) { this.totalAmt = totalAmt; } public BigDecimal getTaxAmtSumTaxBaseAmt() { return taxAmtSumTaxBaseAmt; } ...
} } else if (!rate.equals(other.rate)) { return false; } if (taxAmt == null) { if (other.taxAmt != null) { return false; } } else if (!taxAmt.equals(other.taxAmt)) { return false; } if (taxAmtSumTaxBaseAmt == null) { if (other.taxAmtSumTaxBaseAmt != null) { return fa...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java\de\metas\edi\esb\invoicexport\compudata\Cctop901991V.java
2
请完成以下Java代码
public final <T> IQueryBuilder<T> getLockedRecordsQueryBuilder(final Class<T> modelClass, final Object contextProvider) { final String keyColumnName = InterfaceWrapperHelper.getKeyColumnName(modelClass); final String joinColumnNameFQ = InterfaceWrapperHelper.getTableName(modelClass) + "." + keyColumnName; final...
logger.warn("*** retrieveAndLockMultipleRecords: not all retrieved records could be locked! expectedLockedSize: {}, actualLockedSize: {}" , models.size(), lockedModels.size()); } return lockedModels; } public <T> IQuery<T> addNotLockedClause(final IQuery<T> query) { return retrieveNotLockedQuery(query);...
repos\metasfresh-new_dawn_uat\backend\de.metas.async\src\main\java\de\metas\lock\api\impl\AbstractLockDatabase.java
1
请在Spring Boot框架中完成以下Java代码
public class M_InOut_Receipt { /** * When a receipt is reversed we need to reverse the allocations too. * * Precisely, we create {@link I_M_ReceiptSchedule_Alloc} records to allocate reversal lines to initial {@link I_M_ReceiptSchedule} * * @param receipt */ @DocValidate(timings = { ModelValidator.TIMIN...
private void reverseAllocation(I_M_ReceiptSchedule_Alloc lineAlloc, I_M_InOutLine reversalLine) { final I_M_ReceiptSchedule_Alloc reversalLineAlloc = Services.get(IReceiptScheduleBL.class).reverseAllocation(lineAlloc); reversalLineAlloc.setM_InOutLine(reversalLine); InterfaceWrapperHelper.save(reversalLineAlloc)...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\inoutcandidate\modelvalidator\M_InOut_Receipt.java
2
请完成以下Java代码
public String getType() { if (type == null) { return "15"; } else { return type; } } /** * Sets the value of the type property. * * @param value * allowed object is * {@link String } * */ public void setType(St...
/** * Sets the value of the referenceNumber property. * * @param value * allowed object is * {@link String } * */ public void setReferenceNumber(String value) { this.referenceNumber = value; } /** * Gets the value of the codingLine property. ...
repos\metasfresh-new_dawn_uat\backend\vertical-healthcare_ch\forum_datenaustausch_ch.invoice_440_request\src\main\java-xjc\de\metas\vertical\healthcare_ch\forum_datenaustausch_ch\invoice_440\request\Esr5Type.java
1
请完成以下Java代码
private void prepareAD_PInstance(final ProcessInfo pi) { // // Save process info to database, including parameters. adPInstanceDAO.saveProcessInfo(pi); } private ProcessInfo getProcessInfo() { return processInfo; } public Builder setListener(final IProcessExecutionListener listener) { thi...
*/ public Builder switchContextWhenRunning() { this.switchContextWhenRunning = true; return this; } /** * Sets the callback to be executed after AD_PInstance is created but before the actual process is started. * If the callback fails, the exception is propagated, so the process will not be started...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\process\ProcessExecutor.java
1
请完成以下Java代码
public static void main(String[] args) { // Create a new document object Document document = new Document(); // Load document content from the specified file document.loadFromFile("/Users/liuhaihua/tmp/WordDocument.docx"); // Create a fixed layout document object FixedL...
section.cloneSectionPropertiesTo(newSection); // Copy the content of the original document's page to the new document for (int i = startIndex; i <=endIndex; i++) { newSection.getBody().getChildObjects().add(section.getBody().getChildObjects().get(i).deepClone()); } ...
repos\springboot-demo-master\spire-doc\src\main\java\com\et\spire\doc\ReadOnePage.java
1
请完成以下Java代码
public void setM_Product_Proxy_ID (final int M_Product_Proxy_ID) { if (M_Product_Proxy_ID < 1) set_Value (COLUMNNAME_M_Product_Proxy_ID, null); else set_Value (COLUMNNAME_M_Product_Proxy_ID, M_Product_Proxy_ID); } @Override public int getM_Product_Proxy_ID() { return get_ValueAsInt(COLUMNNAME_M_Pro...
set_ValueNoCheck (COLUMNNAME_M_ProductGroup_ID, M_ProductGroup_ID); } @Override public int getM_ProductGroup_ID() { return get_ValueAsInt(COLUMNNAME_M_ProductGroup_ID); } @Override public void setName (final java.lang.String Name) { set_Value (COLUMNNAME_Name, Name); } @Override public java.lang.Stri...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java-gen\de\metas\invoicecandidate\model\X_M_ProductGroup.java
1
请完成以下Java代码
private static BPartnerVendorAccounts fromRecord(@NonNull final I_C_BP_Vendor_Acct record) { return BPartnerVendorAccounts.builder() .acctSchemaId(AcctSchemaId.ofRepoId(record.getC_AcctSchema_ID())) .V_Liability_Acct(Account.of(AccountId.ofRepoId(record.getV_Liability_Acct()), BPartnerVendorAccountType.V_Lia...
.addEqualsFilter(I_C_BP_Customer_Acct.COLUMNNAME_C_BPartner_ID, bpartnerId) .create() .stream() .map(BPartnerAccountsRepository::fromRecord) .collect(ImmutableMap.toImmutableMap(BPartnerCustomerAccounts::getAcctSchemaId, accts -> accts)); } @NonNull private static BPartnerCustomerAccounts fromRecord...
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java\de\metas\acct\accounts\BPartnerAccountsRepository.java
1
请完成以下Java代码
public void setVariables(Map<String, Object> variables) { this.variables = variables; } @Override public Map<String, Object> getVariables() { return this.variables; } public void setExtensions(Map<String, Object> extensions) { this.extensions = extensions; } @Override public Map<String, Object> getExte...
@Override public String getDocument() { if (this.query == null) { if (this.extensions.get("persistedQuery") != null) { return PersistedQuerySupport.PERSISTED_QUERY_MARKER; } throw new ServerWebInputException("No 'query'"); } return this.query; } @Override public Map<String, Object> toMap() { t...
repos\spring-graphql-main\spring-graphql\src\main\java\org\springframework\graphql\server\support\SerializableGraphQlRequest.java
1
请完成以下Java代码
public JsonWorkplace assignWorkplace(@PathVariable("workplaceId") @NonNull final Integer workplaceIdInt) { final WorkplaceId workplaceId = WorkplaceId.ofRepoId(workplaceIdInt); workplaceService.assignWorkplace(WorkplaceAssignmentCreateRequest.builder() .workplaceId(workplaceId) .userId(Env.getLoggedUserId...
{ final Workplace workplace = workplaceService.getById(workplaceId); return toJson(workplace); } private JsonWorkplace toJson(final Workplace workplace) { return JsonWorkplace.builder() .id(workplace.getId()) .name(workplace.getName()) .qrCode(WorkplaceQRCode.ofWorkplace(workplace).toGlobalQRCodeJ...
repos\metasfresh-new_dawn_uat\backend\de.metas.business.rest-api-impl\src\main\java\de\metas\rest_api\v2\workplace\WorkplaceRestController.java
1
请完成以下Java代码
public Exception getException() { return exception; } public int incrementHitCount() { dateLastRequest = new Date(); return hitCount.incrementAndGet(); } } private final transient Logger logger = LogManager.getLogger(getClass()); private final Map<Integer, BlackListItem> blacklist = new Concurre...
public void assertNotBlacklisted(final int workpackageProcessorId) { final BlackListItem blacklistItem = blacklist.get(workpackageProcessorId); if (blacklistItem != null) { blacklistItem.incrementHitCount(); throw new ConfigurationException("Already blacklisted: " + blacklistItem, blacklistItem.getExceptio...
repos\metasfresh-new_dawn_uat\backend\de.metas.async\src\main\java\de\metas\async\processor\impl\WorkpackageProcessorBlackList.java
1
请在Spring Boot框架中完成以下Java代码
public void loadPolicy(Model model) { if (classPath.equals("")) { // throw new Error("invalid file path, file path cannot be empty"); return; } loadPolicyClassPath(model, Helper::loadPolicyLine); } @Override public void savePolicy(Model model) { LOG....
@Override public void removeFilteredPolicy(String sec, String ptype, int fieldIndex, String... fieldValues) { throw new Error("not implemented"); } private void loadPolicyClassPath(Model model, Helper.loadPolicyLineHandler<String, Model> handler) { InputStream is = IsAdapter.class.getResour...
repos\spring-examples-java-17\spring-jcasbin\src\main\java\itx\examples\springboot\security\config\IsAdapter.java
2
请完成以下Java代码
public class MovePlanItemDefinitionIdContainer { protected List<String> planItemDefinitionIds; protected List<String> moveToPlanItemDefinitionIds; protected String newAssigneeId; public MovePlanItemDefinitionIdContainer(String singlePlanItemDefinitionId, String moveToPlanItemDefinitionId) { th...
public void setPlanItemDefinitionIds(List<String> planItemDefinitionIds) { this.planItemDefinitionIds = planItemDefinitionIds; } public List<String> getMoveToPlanItemDefinitionIds() { return moveToPlanItemDefinitionIds; } public void setMoveToPlanItemDefinitionIds(List<String> moveToPl...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\runtime\MovePlanItemDefinitionIdContainer.java
1
请完成以下Java代码
public Resource concatenatePDF( @NonNull final Resource documentPdfData, @NonNull final List<PdfDataProvider> pdfDataToConcatenate) { if (pdfDataToConcatenate.isEmpty()) { return documentPdfData; } final PdfDataProvider pdfData = PdfDataProvider.forData(documentPdfData); final ImmutableList<PdfDat...
document.close(); } catch (final Exception e) { throw AdempiereException.wrapIfNeeded(e); } } private static void appendPdfPages(@NonNull final PdfCopy copyDestination, @NonNull final PdfDataProvider pdfData) throws IOException, BadPdfFormatException { final Resource data = pdfData.getPdfData(); fin...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\report\ExecuteReportStrategyUtil.java
1
请完成以下Java代码
public void setQtyIssued (java.math.BigDecimal QtyIssued) { set_Value (COLUMNNAME_QtyIssued, QtyIssued); } /** Get Ausgelagerte Menge. @return Ausgelagerte Menge */ @Override public java.math.BigDecimal getQtyIssued () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyIssued); if (bd == null) ...
return BigDecimal.ZERO; return bd; } /** Set Datensatz-ID. @param Record_ID Direct internal record ID */ @Override public void setRecord_ID (int Record_ID) { if (Record_ID < 0) set_Value (COLUMNNAME_Record_ID, null); else set_Value (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); } /**...
repos\metasfresh-new_dawn_uat\backend\de.metas.materialtracking\src\main\java-gen\de\metas\materialtracking\model\X_M_Material_Tracking_Ref.java
1
请完成以下Java代码
public String toString() { return MoreObjects.toStringHelper(this) .add("collectModels", collectModels) .add("workpackageProcessorClass", getWorkpackageProcessorClass()) .add("modelType", modelType) .toString(); } @Override protected Properties extractCtxFromItem(final ModelType item) ...
return InterfaceWrapperHelper.getTrxName(item); } @Nullable @Override protected Object extractModelToEnqueueFromItem(final Collector collector, final ModelType item) { return collectModels ? item : null; } @Override protected boolean isEnqueueWorkpackageWhenNoModelsEnqueued() { return !collect...
repos\metasfresh-new_dawn_uat\backend\de.metas.async\src\main\java\de\metas\async\spi\WorkpackagesOnCommitSchedulerTemplate.java
1
请完成以下Java代码
protected HistoricActivityStatisticsQuery createNewQuery(ProcessEngine engine) { return engine.getHistoryService().createHistoricActivityStatisticsQuery(processDefinitionId); } @Override protected void applyFilters(HistoricActivityStatisticsQuery query) { if (includeCanceled != null && includeCanceled) ...
if (finishedBefore != null) { query.finishedBefore(finishedBefore); } if (processInstanceIdIn != null) { query.processInstanceIdIn(processInstanceIdIn); } } @Override protected void applySortBy(HistoricActivityStatisticsQuery query, String sortBy, Map<String, Object> parameters, ProcessE...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\impl\history\HistoricActivityStatisticsQueryDto.java
1
请完成以下Java代码
public Date toDate(Object value) { if (value instanceof String) { return parse((String) value); } if (value instanceof Date) { return (Date) value; } if (value instanceof Long) { return new Date((long) value); } if (value ins...
} if (value instanceof LocalDateTime) { return Date.from(((LocalDateTime) value).atZone(getZoneId()).toInstant()); } if (value instanceof ZonedDateTime) { return Date.from(((ZonedDateTime) value).toInstant()); } throw new DateTimeException( ...
repos\Activiti-develop\activiti-core-common\activiti-common-util\src\main\java\org\activiti\common\util\DateFormatterProvider.java
1
请完成以下Java代码
public WritablePdxInstance createWriter() { return getDelegate().createWriter(); } /** * @inheritDoc */ @Override public boolean hasField(String fieldName) { return getDelegate().hasField(fieldName); } /** * @inheritDoc */ @Override public void sendTo(DataOutput out) throws IOException { PdxIns...
private String toStringArray(Object value, String indent) { Object[] array = (Object[]) value; StringBuilder buffer = new StringBuilder(ARRAY_BEGIN); boolean addComma = false; for (Object element : array) { buffer.append(addComma ? COMMA_SPACE : EMPTY_STRING); buffer.append(toStringObject(element, ind...
repos\spring-boot-data-geode-main\spring-geode-project\apache-geode-extensions\src\main\java\org\springframework\geode\pdx\PdxInstanceWrapper.java
1
请完成以下Java代码
public boolean equals(final Object obj) { if (this == obj) { return true; } final RuleCalloutInstance other = EqualsBuilder.getOther(this, obj); if (other == null) { return false; } return new EqualsBuilder() .append(id, other.id) .isEqual(); } @Override public void execute(final IC...
final Object valueOld = field.getOldValue(); final GridField gridField = (field instanceof GridField ? (GridField)field : null); try { scriptExecutorSupplier.get() .putContext(ctx, windowNo) .putArgument("Value", value) .putArgument("OldValue", valueOld) .putArgument("Field", gridField) ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\callout\api\impl\RuleCalloutInstance.java
1
请在Spring Boot框架中完成以下Java代码
public class DubboServicesMetadata extends AbstractDubboMetadata { public Map<String, Map<String, Object>> services() { Map<String, ServiceBean> serviceBeansMap = getServiceBeansMap(); Map<String, Map<String, Object>> servicesMetadata = new LinkedHashMap<>(serviceBeansMap.size()); for (M...
private Object resolveServiceBean(String serviceBeanName, ServiceBean serviceBean) { int index = serviceBeanName.indexOf("#"); if (index > -1) { Class<?> interfaceClass = serviceBean.getInterfaceClass(); String serviceName = serviceBeanName.substring(index + 1); ...
repos\dubbo-spring-boot-project-master\dubbo-spring-boot-compatible\actuator\src\main\java\org\apache\dubbo\spring\boot\actuate\endpoint\metadata\DubboServicesMetadata.java
2
请完成以下Java代码
public boolean isOneAssetPerUOM () { Object oo = get_Value(COLUMNNAME_IsOneAssetPerUOM); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Owned. @param IsOwned The asset is owned by the organization *...
Enable tracking issues for this asset */ public void setIsTrackIssues (boolean IsTrackIssues) { set_Value (COLUMNNAME_IsTrackIssues, Boolean.valueOf(IsTrackIssues)); } /** Get Track Issues. @return Enable tracking issues for this asset */ public boolean isTrackIssues () { Object oo = get_Value(COLUM...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_A_Asset_Group.java
1
请完成以下Java代码
public URL lookupBpmPlatformXmlLocationFromJndi() { String jndi = "java:comp/env/" + BPM_PLATFORM_XML_LOCATION; try { String bpmPlatformXmlLocation = InitialContext.doLookup(jndi); URL fileLocation = checkValidBpmPlatformXmlResourceLocation(bpmPlatformXmlLocation); if (fileLocation != null)...
public URL lookupBpmPlatformXmlFromClassPath() { return lookupBpmPlatformXmlFromClassPath(BPM_PLATFORM_XML_RESOURCE_LOCATION); } public URL lookupBpmPlatformXml() { URL fileLocation = lookupBpmPlatformXmlLocationFromJndi(); if (fileLocation == null) { fileLocation = lookupBpmPlatformXmlLocationF...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\container\impl\deployment\AbstractParseBpmPlatformXmlStep.java
1
请完成以下Java代码
public List<I_M_HU_Item_Storage> retrieveItemStorages(final I_M_HU_Item huItem) { final IQueryBuilder<I_M_HU_Item_Storage> queryBuilder = Services.get(IQueryBL.class) .createQueryBuilder(I_M_HU_Item_Storage.class, huItem) .filter(new EqualsQueryFilter<I_M_HU_Item_Storage>(I_M_HU_Item_Storage.COLUMNNAME_M_HU_...
return huItemStorages; } @Override public void save(final I_M_HU_Item_Storage storageLine) { InterfaceWrapperHelper.save(storageLine); } @Override public void save(final I_M_HU_Item item) { InterfaceWrapperHelper.save(item); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\storage\impl\HUStorageDAO.java
1
请完成以下Java代码
public void loadImage() { if (file == null) { return; } ImageIcon tmpIcon = new ImageIcon(file.getPath()); if (tmpIcon.getIconWidth() > 90) { thumbnail = new ImageIcon(tmpIcon.getImage(). getScaledInstance(90, -1, ...
} } } public void paintComponent(Graphics g) { if (thumbnail == null) { loadImage(); } if (thumbnail != null) { int x = getWidth()/2 - thumbnail.getIconWidth()/2; int y = getHeight()/2 - thumbnail.getIconHeight()/2; if (y < 0) { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\net\sf\memoranda\ui\htmleditor\filechooser\ImagePreview.java
1
请完成以下Java代码
public static List<Integer> findPairsWithForLoop(int[] input, int sum) { final List<Integer> allDifferentPairs = new ArrayList<>(); // Aux. hash map final Map<Integer, Integer> pairs = new HashMap<>(); for (int i : input) { if (pairs.containsKey(i)) { if (pair...
final Map<Integer, Integer> pairs = new HashMap<>(); IntStream.range(0, input.length).forEach(i -> { if (pairs.containsKey(input[i])) { if (pairs.get(input[i]) != null) { // Add pair to returned list allDifferent...
repos\tutorials-master\core-java-modules\core-java-numbers-9\src\main\java\com\baeldung\pairsaddupnumber\DifferentPairs.java
1
请在Spring Boot框架中完成以下Java代码
public void updateOauth2Clients(@PathVariable UUID id, @RequestBody UUID[] clientIds) throws ThingsboardException { DomainId domainId = new DomainId(id); Domain domain = checkDomainId(domainId, Operation.WRITE); List<OAuth2ClientId> oAuth2ClientIds = getOAuth2...
} @ApiOperation(value = "Get Domain info by Id (getDomainInfoById)", notes = SYSTEM_AUTHORITY_PARAGRAPH) @PreAuthorize("hasAnyAuthority('SYS_ADMIN')") @GetMapping(value = "/domain/info/{id}") public DomainInfo getDomainInfoById(@PathVariable UUID id) throws ThingsboardException { DomainId domai...
repos\thingsboard-master\application\src\main\java\org\thingsboard\server\controller\DomainController.java
2
请完成以下Java代码
public class ScalaFeelLogger extends BaseLogger { public static final String PROJECT_CODE = "FEEL/SCALA"; public static final String PROJECT_LOGGER = "org.camunda.bpm.dmn.feel.scala"; public static final ScalaFeelLogger LOGGER = createLogger(ScalaFeelLogger.class, PROJECT_CODE, PROJECT_LOGGER, "01"); pro...
"005", "Error while looking up or registering Spin value mapper", cause)); } public FeelException functionCountExceededException() { return new FeelException(exceptionMessage( "006", "Only set one return value or a function.")); } public FeelException customFunctionNotFoundException() { return n...
repos\camunda-bpm-platform-master\engine-dmn\feel-scala\src\main\java\org\camunda\bpm\dmn\feel\impl\scala\ScalaFeelLogger.java
1
请完成以下Java代码
public void updateDropshipAddress(final I_C_Flatrate_Term term) { documentLocationBL.updateRenderedAddressAndCapturedLocation(ContractDocumentLocationAdapterFactory.dropShipLocationAdapter(term)); } @ModelChange(timings = { ModelValidator.TYPE_BEFORE_NEW, ModelValidator.TYPE_BEFORE_CHANGE }, ifColumnsCh...
flatrateBL.ensureOneContractOfGivenType(term, TypeConditions.MARGIN_COMMISSION); final TypeConditions contractType = TypeConditions.ofCode(term.getType_Conditions()); switch (contractType) { case MEDIATED_COMMISSION: case MARGIN_COMMISSION: case LICENSE_FEE: flatrateBL.ensureOneContractOfGivenType(t...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\interceptor\C_Flatrate_Term.java
1
请完成以下Java代码
public String getDescription () { return (String)get_Value(COLUMNNAME_Description); } /** Set Name. @param Name Alphanumeric identifier of the entity */ public void setName (String Name) { set_Value (COLUMNNAME_Name, Name); } /** Get Name. @return Alphanumeric identifier of the entity */ pub...
/** Set Click Count. @param W_ClickCount_ID Web Click Management */ public void setW_ClickCount_ID (int W_ClickCount_ID) { if (W_ClickCount_ID < 1) set_ValueNoCheck (COLUMNNAME_W_ClickCount_ID, null); else set_ValueNoCheck (COLUMNNAME_W_ClickCount_ID, Integer.valueOf(W_ClickCount_ID)); } /** Ge...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_W_ClickCount.java
1
请在Spring Boot框架中完成以下Java代码
public synchronized void delete(String id) { try { repository.delete(Mono.just(id)).subscribe(); this.publisher.publishEvent(new RefreshRoutesEvent(this)); }catch (Exception e){ log.warn(e.getMessage(),e); } } /** * 更新路由 * * @param defi...
} } /** * 增加路由 * * @param definition * @return */ public synchronized String add(RouteDefinition definition) { log.info("gateway add route {}", definition); try { repository.save(Mono.just(definition)).subscribe(); } catch (Exception e) { ...
repos\JeecgBoot-main\jeecg-boot\jeecg-server-cloud\jeecg-cloud-gateway\src\main\java\org\jeecg\loader\repository\DynamicRouteService.java
2
请完成以下Java代码
protected InternalsImpl resolveDynamicData() { InternalsImpl result = new InternalsImpl(); Map<String, Metric> metrics = calculateMetrics(); result.setMetrics(metrics); // command counts are modified after the metrics are retrieved, because // metric retrieval can fail and resetting the command co...
if (metricsRegistry != null) { Map<String, Meter> telemetryMeters = metricsRegistry.getDiagnosticsMeters(); for (String metricToReport : METRICS_TO_REPORT) { long value = telemetryMeters.get(metricToReport).get(); // add public names metrics.put(MetricsUtil.resolvePublicName(metric...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\diagnostics\DiagnosticsCollector.java
1
请完成以下Java代码
public class MapConfigurationPropertySource implements IterableConfigurationPropertySource { private static final PropertyMapper[] DEFAULT_MAPPERS = { DefaultPropertyMapper.INSTANCE }; private final Map<String, Object> source; private final IterableConfigurationPropertySource delegate; /** * Create a new empt...
public Object getUnderlyingSource() { return this.source; } @Override public @Nullable ConfigurationProperty getConfigurationProperty(ConfigurationPropertyName name) { return this.delegate.getConfigurationProperty(name); } @Override public Iterator<ConfigurationPropertyName> iterator() { return this.deleg...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\context\properties\source\MapConfigurationPropertySource.java
1
请完成以下Java代码
public class StringMinusOperations { public static String removeLastCharBySubstring(String sentence) { return sentence.substring(0, sentence.length() - 1); } public static String removeTrailingStringBySubstring(String sentence, String lastSequence) { var trailing = sentence.substring(sente...
public static String minusByReplace(String sentence, char removeMe) { return sentence.replace(String.valueOf(removeMe), ""); } public static String minusByReplace(String sentence, String removeMe) { return sentence.replace(removeMe, ""); } public static String minusByStream(String sent...
repos\tutorials-master\core-java-modules\core-java-string-operations-12\src\main\java\com\baeldung\minusoperation\StringMinusOperations.java
1
请完成以下Java代码
protected POInfo initPO (Properties ctx) { POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName()); return poi; } public String toString() { StringBuffer sb = new StringBuffer ("X_PA_SLA_Criteria[") .append(get_ID()).append("]"); return sb.toString(); } /** Se...
public void setName (String Name) { set_Value (COLUMNNAME_Name, Name); } /** Get Name. @return Alphanumeric identifier of the entity */ public String getName () { return (String)get_Value(COLUMNNAME_Name); } /** Get Record ID/ColumnName @return ID/ColumnName pair */ public KeyNam...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_PA_SLA_Criteria.java
1
请在Spring Boot框架中完成以下Java代码
public void setQtyPromised(@NonNull final LocalDate date, @NonNull final BigDecimal qtyPromised) { final RfqQty rfqQty = getOrCreateQty(date); rfqQty.setQtyPromisedUserEntered(qtyPromised); updateConfirmedByUser(); } private RfqQty getOrCreateQty(@NonNull final LocalDate date) { final RfqQty existingRfqQty...
{ return false; } for (final RfqQty rfqQty : quantities) { if (!rfqQty.isConfirmedByUser()) { return false; } } return true; } public void closeIt() { this.closed = true; } public void confirmByUser() { this.pricePromised = getPricePromisedUserEntered(); quantities.forEach(RfqQ...
repos\metasfresh-new_dawn_uat\misc\services\procurement-webui\procurement-webui-backend\src\main\java\de\metas\procurement\webui\model\Rfq.java
2
请完成以下Java代码
public class CmsHelp implements Serializable { private Long id; private Long categoryId; private String icon; private String title; private Integer showStatus; private Date createTime; private Integer readCount; private String content; private static final long serialVersionU...
} public Integer getReadCount() { return readCount; } public void setReadCount(Integer readCount) { this.readCount = readCount; } public String getContent() { return content; } public void setContent(String content) { this.content = content; } @Ov...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\CmsHelp.java
1
请完成以下Java代码
public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof AnnotatedBean)) { return false; } AnnotatedBean other = (AnnotatedBean) obj; return Objects.equals(name, other.name) && Ob...
public static Function<EnableProcessApplication, Optional<String>> getAnnotationValue = annotation -> Optional.of(annotation) .map(EnableProcessApplication::value) .filter(StringUtils::isNotBlank); public static Function<AnnotatedBean, String> getName = pair -> Optional.of(pair.getAnnotation()).f...
repos\camunda-bpm-platform-master\spring-boot-starter\starter\src\main\java\org\camunda\bpm\spring\boot\starter\util\GetProcessApplicationNameFromAnnotation.java
1
请在Spring Boot框架中完成以下Java代码
protected void performUndeployment() { final ProcessEngine processEngine = processEngineSupplier.get(); try { if(deployment != null) { // always unregister Set<String> deploymentIds = deployment.getProcessApplicationRegistration().getDeploymentIds(); processEngine.getManagementSe...
} @Override public ProcessApplicationDeploymentService getValue() throws IllegalStateException, IllegalArgumentException { return this; } public ProcessApplicationDeployment getDeployment() { return deployment; } public String getProcessEngineName() { return processEngineSupplier.get().getNam...
repos\camunda-bpm-platform-master\distro\wildfly\subsystem\src\main\java\org\camunda\bpm\container\impl\jboss\service\ProcessApplicationDeploymentService.java
2
请完成以下Java代码
public String getType() { if (type == null) { return "invoice"; } else { return type; } } /** * Sets the value of the type property. * * @param value * allowed object is * {@link String } * */ public void setTy...
* */ public void setCopy(Boolean value) { this.copy = value; } /** * Gets the value of the creditAdvice property. * * @return * possible object is * {@link Boolean } * */ public boolean isCreditAdvice() { if (creditAdvice == nul...
repos\metasfresh-new_dawn_uat\backend\vertical-healthcare_ch\forum_datenaustausch_ch.invoice_440_request\src\main\java-xjc\de\metas\vertical\healthcare_ch\forum_datenaustausch_ch\invoice_440\request\PayloadType.java
1
请完成以下Java代码
public static CostingDocumentRef ofProjectIssueId(final int projectIssueId) { return new CostingDocumentRef(TABLE_NAME_C_ProjectIssue, ProjectIssueId.ofRepoId(projectIssueId), I_M_CostDetail.COLUMNNAME_C_ProjectIssue_ID, null); } public static CostingDocumentRef ofCostCollectorId(final int ppCostCollectorId) { ...
public boolean isMatchInv() { return isTableName(TABLE_NAME_M_MatchInv); } public PPCostCollectorId getCostCollectorId() { return getId(PPCostCollectorId.class); } public <T extends RepoIdAware> T getId(final Class<T> idClass) { if (idClass.isInstance(id)) { return idClass.cast(id); } else { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\costing\CostingDocumentRef.java
1
请完成以下Java代码
public int getM_AttributeSetInstance_ID() { return get_ValueAsInt(COLUMNNAME_M_AttributeSetInstance_ID); } @Override public void setQty_Reported (final @Nullable BigDecimal Qty_Reported) { set_Value (COLUMNNAME_Qty_Reported, Qty_Reported); } @Override public BigDecimal getQty_Reported() { final BigDe...
return bd != null ? bd : BigDecimal.ZERO; } @Override public void setSeqNo (final int SeqNo) { set_Value (COLUMNNAME_SeqNo, SeqNo); } @Override public int getSeqNo() { return get_ValueAsInt(COLUMNNAME_SeqNo); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java-gen\de\metas\contracts\model\X_C_Flatrate_DataEntry_Detail.java
1
请完成以下Java代码
private ITranslatableString getOriginalProcessCaption() { final I_AD_Process adProcess = adProcessSupplier.get(); return InterfaceWrapperHelper.getModelTranslationMap(adProcess) .getColumnTrl(I_AD_Process.COLUMNNAME_Name, adProcess.getName()); } public String getDescription(final String adLanguage) { fin...
} return Images.getImageIcon2(iconName); } private ProcessPreconditionsResolution getPreconditionsResolution() { return preconditionsResolutionSupplier.get(); } public boolean isEnabled() { return getPreconditionsResolution().isAccepted(); } public boolean isSilentRejection() { return getPreconditi...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\process\ui\SwingRelatedProcessDescriptor.java
1
请完成以下Java代码
public void setState(String state) { this.state = state; } public String getCity() { return city; } public void setCity(String city) { this.city = city; } public String getAddress() { return address; } public void setAddress(String address) { t...
public String getPhone() { return phone; } public void setPhone(String phone) { this.phone = phone; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } }
repos\thingsboard-master\common\data\src\main\java\org\thingsboard\server\common\data\ContactBased.java
1
请完成以下Java代码
public int getK_IndexLog_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_K_IndexLog_ID); if (ii == null) return 0; return ii.intValue(); } /** QuerySource AD_Reference_ID=391 */ public static final int QUERYSOURCE_AD_Reference_ID=391; /** Collaboration Management = C */ public static final String Q...
Source of the Query */ public void setQuerySource (String QuerySource) { set_Value (COLUMNNAME_QuerySource, QuerySource); } /** Get Query Source. @return Source of the Query */ public String getQuerySource () { return (String)get_Value(COLUMNNAME_QuerySource); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_K_IndexLog.java
1
请完成以下Java代码
public String getExporterVersion() { return exporterVersionAttribute.getValue(this); } public void setExporterVersion(String exporterVersion) { exporterVersionAttribute.setValue(this, exporterVersion); } public Collection<Import> getImports() { return importCollection.get(this); } public Coll...
typeLanguageAttribute = typeBuilder.stringAttribute(DMN_ATTRIBUTE_TYPE_LANGUAGE) .defaultValue("http://www.omg.org/spec/FEEL/20140401") .build(); namespaceAttribute = typeBuilder.stringAttribute(DMN_ATTRIBUTE_NAMESPACE) .required() .build(); exporterAttribute = typeBuilder.stringAttrib...
repos\camunda-bpm-platform-master\model-api\dmn-model\src\main\java\org\camunda\bpm\model\dmn\impl\instance\DefinitionsImpl.java
1
请在Spring Boot框架中完成以下Java代码
public class GetJobExceptionStacktraceCmd implements Command<String>, Serializable { private static final long serialVersionUID = 1L; protected JobServiceConfiguration jobServiceConfiguration; protected String jobId; protected JobType jobType; public GetJobExceptionStacktraceCmd(String j...
case SUSPENDED: job = jobServiceConfiguration.getSuspendedJobEntityManager().findById(jobId); break; case DEADLETTER: job = jobServiceConfiguration.getDeadLetterJobEntityManager().findById(jobId); break; case EXTERNAL_WORKER: job = jobServiceCo...
repos\flowable-engine-main\modules\flowable-job-service\src\main\java\org\flowable\job\service\impl\cmd\GetJobExceptionStacktraceCmd.java
2
请完成以下Java代码
private Bucket getBucket(String bucketName) { bucket = storage.get(bucketName); if (bucket == null) { System.out.println("Creating new bucket."); bucket = storage.create(BucketInfo.of(bucketName)); } return bucket; } // Save a string to a blob private...
private String getString(String name) { Page<Blob> blobs = bucket.list(); for (Blob blob: blobs.getValues()) { if (name.equals(blob.getName())) { return new String(blob.getContent()); } } return "Blob not found"; } // Update a blob pri...
repos\tutorials-master\google-cloud\src\main\java\com\baeldung\google\cloud\storage\GoogleCloudStorage.java
1
请完成以下Java代码
public void setAD_UI_ElementGroup_ID (int AD_UI_ElementGroup_ID) { if (AD_UI_ElementGroup_ID < 1) set_ValueNoCheck (COLUMNNAME_AD_UI_ElementGroup_ID, null); else set_ValueNoCheck (COLUMNNAME_AD_UI_ElementGroup_ID, Integer.valueOf(AD_UI_ElementGroup_ID)); } /** Get UI Element Group. @return UI Element ...
/** Get Reihenfolge. @return Zur Bestimmung der Reihenfolge der Einträge; die kleinste Zahl kommt zuerst */ @Override public int getSeqNo () { Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); if (ii == null) return 0; return ii.intValue(); } /** Set UI Style. @param UIStyle UI Style */ @Ove...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_UI_ElementGroup.java
1
请在Spring Boot框架中完成以下Java代码
public class WeightingSpecificationsRepository { private final IQueryBL queryBL = Services.get(IQueryBL.class); private final CCache<Integer, WeightingSpecificationsMap> cache = CCache.<Integer, WeightingSpecificationsMap>builder() .tableName(I_PP_Weighting_Spec.Table_Name) .build(); public WeightingSpecific...
.map(WeightingSpecificationsRepository::fromRecord) .collect(ImmutableList.toImmutableList()); return new WeightingSpecificationsMap(list); } public static WeightingSpecifications fromRecord(I_PP_Weighting_Spec record) { return WeightingSpecifications.builder() .id(WeightingSpecificationsId.ofRepoId(re...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing\src\main\java\de\metas\manufacturing\order\weighting\spec\WeightingSpecificationsRepository.java
2
请完成以下Java代码
public void setPosts(List<Post> posts) { this.posts = posts; } public void setGroups(List<Group> groups) { this.groups = groups; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getCla...
User user = (User) o; return Objects.equals(id, user.id); } @Override public int hashCode() { return id != null ? id.hashCode() : 0; } public String toString() { return "User(id=" + this.getId() + ", username=" + this.getUsername() + ", email=" + this.getEmail() + ", profi...
repos\tutorials-master\persistence-modules\spring-boot-persistence-4\src\main\java\com\baeldung\listvsset\eager\list\fulldomain\User.java
1
请在Spring Boot框架中完成以下Java代码
public void setDeploymentUrl(String deploymentUrl) { this.deploymentUrl = deploymentUrl; } @ApiModelProperty(example = "Examples") public String getCategory() { return category; } public void setCategory(String category) { this.category = category; } public void se...
return diagramResource; } public void setGraphicalNotationDefined(boolean graphicalNotationDefined) { this.graphicalNotationDefined = graphicalNotationDefined; } @ApiModelProperty(value = "Indicates the process definition contains graphical information (BPMN DI).") public boolean isGraphic...
repos\flowable-engine-main\modules\flowable-rest\src\main\java\org\flowable\rest\service\api\repository\ProcessDefinitionResponse.java
2
请完成以下Spring Boot application配置
server: context-path: /web spring: datasource: druid: # 数据库访问配置, 使用druid数据源 # 数据源1 mysql mysql: type: com.alibaba.druid.pool.DruidDataSource driver-class-name: com.mysql.jdbc.Driver url: jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=UTF-8&rewriteBa...
stat-filter: enabled: true # 添加过滤规则 url-pattern: /* # 忽略过滤的格式 exclusions: '*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*' # StatViewServlet配置 stat-view-servlet: enabled: true # 访问路径为/druid时,跳转到StatViewServlet url-pattern: /druid/* ...
repos\SpringAll-master\05.Spring-Boot-MyBatis-MultiDataSource\src\main\resources\application.yml
2
请完成以下Java代码
public void mouseEntered(final MouseEvent me) { result.setBorderPainted(true); result.setIcon(icon); } @Override public void mouseExited(final MouseEvent me) { result.setBorderPainted(false); result.setIcon(darkerIcon); ...
public boolean loadPDF(final byte[] data) { return loadPDF(new ByteArrayInputStream(data)); } public boolean loadPDF(final InputStream is) { if (tmpFile != null) { tmpFile.delete(); } try { tmpFile = File.createTempFile("adempiere", ".pdf"); tm...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\adempiere\pdf\viewer\PDFViewerBean.java
1
请完成以下Java代码
public static boolean notAllOf(Object collection, Object value) { if (collection == null) { throw new IllegalArgumentException("collection cannot be null"); } if (value == null) { throw new IllegalArgumentException("value cannot be null"); } // collecti...
protected static Collection getTargetCollection(Object collection, Object value) { Collection targetCollection; if (!DMNParseUtil.isCollection(collection)) { if (DMNParseUtil.isParseableCollection(collection)) { targetCollection = DMNParseUtil.parseCollection(collection, valu...
repos\flowable-engine-main\modules\flowable-dmn-engine\src\main\java\org\flowable\dmn\engine\impl\el\util\CollectionUtil.java
1
请完成以下Java代码
class RolloutMigrationConfig { public static final String DEFAULT_SETTINGS_FILENAME = "local_settings.properties"; @Default boolean canRun = false; @NonNull @Default String rolloutDirName = CommandlineParams.DEFAULT_RolloutDirectory; /** * If specified, the tools shall load the {@link #dbConnectionSettings}...
*/ @Default boolean storeVersion = true; /** * If the DB version is already ahead of our local rollout package usually means that something is wrong, so by default the rollout shall fail. */ @Default boolean failIfRolloutIsGreaterThanDB = true; @Default String templateDBName = null; @Default String newD...
repos\metasfresh-new_dawn_uat\backend\de.metas.migration\de.metas.migration.cli\src\main\java\de\metas\migration\cli\rollout_migrate\RolloutMigrationConfig.java
1
请完成以下Java代码
public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(SequenceFlow.class, BPMN_ELEMENT_SEQUENCE_FLOW) .namespaceUri(BPMN20_NS) .extendsType(FlowElement.class) .instanceProvider(new ModelTypeInstanceProvider<SequenceFlow>() { ...
public void setSource(FlowNode source) { sourceRefAttribute.setReferenceTargetElement(this, source); } public FlowNode getTarget() { return targetRefAttribute.getReferenceTargetElement(this); } public void setTarget(FlowNode target) { targetRefAttribute.setReferenceTargetElement(this, target); }...
repos\camunda-bpm-platform-master\model-api\bpmn-model\src\main\java\org\camunda\bpm\model\bpmn\impl\instance\SequenceFlowImpl.java
1
请完成以下Java代码
public void setShipment_DocumentNo (final @Nullable java.lang.String Shipment_DocumentNo) { throw new IllegalArgumentException ("Shipment_DocumentNo is virtual column"); } @Override public java.lang.String getShipment_DocumentNo() { return get_ValueAsString(COLUMNNAME_Shipment_DocumentNo); } @Override pub...
{ set_Value (COLUMNNAME_SumOrderedInStockingUOM, SumOrderedInStockingUOM); } @Override public BigDecimal getSumOrderedInStockingUOM() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_SumOrderedInStockingUOM); return bd != null ? bd : BigDecimal.ZERO; } @Override public void setUserFlag (final @N...
repos\metasfresh-new_dawn_uat\backend\de.metas.edi\src\main\java-gen\de\metas\esb\edi\model\X_EDI_Desadv.java
1
请完成以下Java代码
public void setMKTG_Platform_ID (int MKTG_Platform_ID) { if (MKTG_Platform_ID < 1) set_ValueNoCheck (COLUMNNAME_MKTG_Platform_ID, null); else set_ValueNoCheck (COLUMNNAME_MKTG_Platform_ID, Integer.valueOf(MKTG_Platform_ID)); } /** Get MKTG_Platform. @return MKTG_Platform */ @Override public int ge...
Alphanumeric identifier of the entity */ @Override public void setName (java.lang.String Name) { set_Value (COLUMNNAME_Name, Name); } /** Get Name. @return Alphanumeric identifier of the entity */ @Override public java.lang.String getName () { return (java.lang.String)get_Value(COLUMNNAME_Name); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.marketing\base\src\main\java-gen\de\metas\marketing\base\model\X_MKTG_Platform.java
1
请完成以下Java代码
public boolean isInterrupting() { return interrupting; } public void setInterrupting(boolean interrupting) { this.interrupting = interrupting; } public String getVariableName() { return variableName; } public void setVariableName(String variableName) { this.variableName = variableName; ...
((variableName == null || event.getVariableInstance().getName().equals(variableName)) && ((variableEvents == null || variableEvents.isEmpty()) || variableEvents.contains(event.getEventName()))); } public boolean evaluate(DelegateExecution execution) { if (condition...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\bpmn\parser\ConditionalEventDefinition.java
1