instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
public static void middleIterable2(BinTreeNode<String> root, List<String> list) { Stack<BinTreeNode<String>> stack = new Stack<>(); while (root != null || !stack.isEmpty()) { while (root != null) { stack.push(root); root = root.left; } ...
} } /** * 层序遍历 * * @param root * @return */ public static void layerIterable2(BinTreeNode<String> root, List<String> list) { LinkedList<BinTreeNode<String>> queue = new LinkedList<>(); if (root == null) { return; } queue.addLast(root); ...
repos\spring-boot-student-master\spring-boot-student-concurrent\src\main\java\com\xiaolyuh\BinTreeIterable.java
1
请完成以下Java代码
private Timestamp retrieveSinceValue() { final ProcessInfo processInfo = getProcessInfo(); return pInstanceDAO.getLastRunDate(processInfo.getAdProcessId(), processInfo.getPinstanceId()); } private Map<String, String> extractParameters(@NonNull final ExternalSystemParentConfig externalSystemParentConfig) { fi...
@Nullable protected Timestamp getSinceParameterValue() { return since; } protected abstract IExternalSystemChildConfigId getExternalChildConfigId(); protected abstract Map<String, String> extractExternalSystemParameters(ExternalSystemParentConfig externalSystemParentConfig); protected abstract String getTabN...
repos\metasfresh-new_dawn_uat\backend\de.metas.externalsystem\src\main\java\de\metas\externalsystem\process\InvokeExternalSystemProcess.java
1
请完成以下Java代码
public class MigrationMergeToFrom extends JavaProcess { private I_AD_Migration migrationFrom; private I_AD_Migration migrationTo; private boolean isDeleteFrom = false; @Override protected void prepare() { int migrationId = -1; boolean isMergeTo = false; for (ProcessInfoParameter p : getParametersAsArray())...
@Override protected String doIt() throws Exception { if (migrationFrom == null || migrationFrom.getAD_Migration_ID() <= 0 || migrationTo == null || migrationTo.getAD_Migration_ID() <= 0 || migrationFrom.getAD_Migration_ID() == migrationTo.getAD_Migration_ID()) { throw new AdempiereException("Two diffe...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\adempiere\ad\migration\process\MigrationMergeToFrom.java
1
请完成以下Java代码
public PageData<DashboardInfo> findMobileDashboardsByTenantIdAndCustomerId(UUID tenantId, UUID customerId, PageLink pageLink) { List<SortOrder> sortOrders = new ArrayList<>(); sortOrders.add(new SortOrder("mobileOrder", SortOrder.Direction.ASC)); if (pageLink.getSortOrder() != null) { ...
} @Override public List<DashboardInfo> findByTenantAndImageLink(TenantId tenantId, String imageLink, int limit) { return DaoUtil.convertDataList(dashboardInfoRepository.findByTenantAndImageLink(tenantId.getId(), imageLink, limit)); } @Override public List<DashboardInfo> findByImageLink(Str...
repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\sql\dashboard\JpaDashboardInfoDao.java
1
请完成以下Java代码
public ProcessInstance execute(CommandContext commandContext) { ProcessEngineConfigurationImpl processEngineConfiguration = CommandContextUtil.getProcessEngineConfiguration(commandContext); ProcessDefinition processDefinition = getProcessDefinition(processEngineConfiguration, commandContext); pr...
return processInstance; } protected void executeAsynchronous(ExecutionEntity execution, Process process, CommandContext commandContext) { ProcessEngineConfigurationImpl processEngineConfiguration = CommandContextUtil.getProcessEngineConfiguration(commandContext); JobService jobService = process...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\cmd\StartProcessInstanceAsyncCmd.java
1
请完成以下Java代码
protected boolean afterDelete (boolean success) { if (!success) return success; // StringBuffer sb = new StringBuffer ("DELETE FROM AD_TreeNodeCMT ") .append (" WHERE Node_ID=").append (get_IDOld ()).append ( " AND AD_Tree_ID=").append (getAD_Tree_ID ()); int no = DB.executeUpdateAndSaveErrorOnFail(s...
rs.close (); pstmt.close (); pstmt = null; } catch (SQLException ex) { log.error(sql, ex); } try { if (pstmt != null) pstmt.close (); } catch (SQLException ex1) { } pstmt = null; if (AdCats != null && AdCats.length > 0) { MAd[] returnAds = new MAd[AdCats.length]; for (int...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\MTemplate.java
1
请完成以下Java代码
public String getId() { return id; } /** * Sets the value of the id property. * * @param value * allowed object is * {@link String } * */ public void setId(String value) { this.id = value; } /** * Gets the value of the uri prope...
this.uri = value; } /** * Gets the value of the type property. * * @return * possible object is * {@link String } * */ public String getType() { return type; } /** * Sets the value of the type property. * * @param value ...
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\ReferenceType2.java
1
请完成以下Java代码
public class X_M_PricingSystem extends PO implements I_M_PricingSystem, I_Persistent { /** * */ private static final long serialVersionUID = 20081221L; /** Standard Constructor */ public X_M_PricingSystem (Properties ctx, int M_PricingSystem_ID, String trxName) { super (ctx, M_PricingSystem_I...
/** Set Preise. @param M_PricingSystem_ID Preise */ public void setM_PricingSystem_ID (int M_PricingSystem_ID) { if (M_PricingSystem_ID < 1) set_ValueNoCheck (COLUMNNAME_M_PricingSystem_ID, null); else set_ValueNoCheck (COLUMNNAME_M_PricingSystem_ID, Integer.valueOf(M_PricingSystem_ID)); } /** Get ...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java-gen\org\compiere\model\X_M_PricingSystem.java
1
请完成以下Java代码
public void close() { CloseCaseInstanceCmd command = new CloseCaseInstanceCmd(this); executeCommand(command); } public void terminate() { TerminateCaseExecutionCmd command = new TerminateCaseExecutionCmd(this); executeCommand(command); } protected void executeCommand(Command<?> command) { ...
return caseExecutionId; } public VariableMap getVariables() { return variables; } public VariableMap getVariablesLocal() { return variablesLocal; } public Collection<String> getVariableDeletions() { return variableDeletions; } public Collection<String> getVariableLocalDeletions() { r...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\cmmn\CaseExecutionCommandBuilderImpl.java
1
请在Spring Boot框架中完成以下Java代码
public class Author { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "id") private Long id; @Column(name = "name") private String name; @ManyToMany(mappedBy = "authors") private Set<Book> books = new HashSet<>(); // standard getters and setters public...
this.name = name; } public Set<Book> getBooks() { return books; } public void setBooks(Set<Book> books) { this.books = books; } @PreRemove private void removeBookAssociations() { for (Book book : this.books) { book.getAuthors().remove(this); } ...
repos\tutorials-master\persistence-modules\spring-jpa-2\src\main\java\com\baeldung\manytomanyremoval\Author.java
2
请完成以下Java代码
public String getSuperProcessInstanceId() { return superProcessInstanceId; } public String getSubProcessInstanceId() { return subProcessInstanceId; } public boolean isExcludeSubprocesses() { return excludeSubprocesses; } public String getInvolvedUser() { return...
} public String getDeploymentId() { return deploymentId; } public List<String> getDeploymentIds() { return deploymentIds; } public boolean isIncludeProcessVariables() { return includeProcessVariables; } public boolean isWithJobException() { return withJobE...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\ProcessInstanceQueryImpl.java
1
请完成以下Java代码
private Set<String> findPalindromes(String input, int low, int high) { Set<String> result = new HashSet<>(); while (low >= 0 && high < input.length() && input.charAt(low) == input.charAt(high)) { result.add(input.substring(low, high + 1)); low--; high++; } ...
max++; radius[j][i] = max; int k = 1; while ((radius[j][i - k] != max - k) && (k < max)) { radius[j][i + k] = Math.min(radius[j][i - k], max - k); k++; } max = Math.max(max - k, 0); i ...
repos\tutorials-master\algorithms-modules\algorithms-miscellaneous-4\src\main\java\com\baeldung\algorithms\string\SubstringPalindrome.java
1
请完成以下Java代码
private static PartialPriceChange toPartialPriceChange( final List<JSONDocumentChangedEvent> fieldChangeRequests, final CurrencyId defaultCurrencyId) { final PartialPriceChangeBuilder builder = PartialPriceChange.builder() .defaultCurrencyId(defaultCurrencyId); for (final JSONDocumentChangedEvent fiel...
} else if (PricingConditionsRow.FIELDNAME_PricingSystemSurcharge.equals(fieldName)) { builder.pricingSystemSurchargeAmt(fieldChangeRequest.getValueAsBigDecimal(BigDecimal.ZERO)); } else if (PricingConditionsRow.FIELDNAME_BasePrice.equals(fieldName)) { builder.fixedPriceAmt(fieldChangeRequest.getV...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\order\pricingconditions\view\PricingConditionsRowActions.java
1
请完成以下Java代码
private InvokeRequest toRequest(String requestBody, String functionName, String qualifier) { return new InvokeRequest() .withFunctionName(functionName) .withPayload(requestBody) .withQualifier(qualifier); } private String getPayload(InvokeResult invokeRes...
.build(); } @Override public void destroy() { if (client != null) { try { client.shutdown(); } catch (Exception e) { log.error("Failed to shutdown Lambda client during destroy", e); } } } }
repos\thingsboard-master\rule-engine\rule-engine-components\src\main\java\org\thingsboard\rule\engine\aws\lambda\TbAwsLambdaNode.java
1
请完成以下Java代码
private boolean isPharmaProductImport(final I_I_Product iproduct) { return !Check.isEmpty(iproduct.getPharmaProductCategory_Name(), true); } private void onPharmaProductImported(@NonNull final I_I_Product iproduct, @NonNull final I_M_Product product ) { product.setIsPrescription(iproduct.isPrescription()); p...
.productId(importRecord.getM_Product_ID()) .validDate(firstDayYear) .taxCategoryId(taxDAO.findTaxCategoryId(query)) .build(); final ProductPriceImporter command = new ProductPriceImporter(request); command.createProductPrice_And_PriceListVersionIfNeeded(); } private void createAEP(@NonNull final I_I...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma\src\main\java\de\metas\impexp\product\PharmaImportProductInterceptor.java
1
请完成以下Java代码
private static List<PurchaseCandidate> getPurchaseCandidates( final PurchaseCandidatesGroup candidatesGroup, final Map<PurchaseCandidateId, PurchaseCandidate> existingPurchaseCandidatesById) { return candidatesGroup.getPurchaseCandidateIds() .stream() .map(existingPurchaseCandidatesById::get) .filt...
private Quantity getQtyToPurchaseTarget(final PurchaseCandidate candidate) { final OrderAndLineId orderAndLineId = candidate.getSalesOrderAndLineIdOrNull(); if (orderAndLineId != null) { return orderLineBL .getQtyToDeliver(orderAndLineId) .toZeroIfNegative(); } else { // TODO: handle this c...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\order\sales\purchasePlanning\view\PurchaseRowsSaver.java
1
请在Spring Boot框架中完成以下Java代码
public Result<?> edit(@RequestBody SysTableWhiteList sysTableWhiteList) { if (sysTableWhiteListService.edit(sysTableWhiteList)) { return Result.OK("编辑成功!"); } else { return Result.error("编辑失败!"); } } /** * 通过id删除 * * @param id * @return *...
} else { return Result.error("批量删除失败!"); } } /** * 通过id查询 * * @param id * @return */ @AutoLog(value = "系统表白名单-通过id查询") @Operation(summary = "系统表白名单-通过id查询") // @RequiresRoles("admin") @RequiresPermissions("system:tableWhite:queryById") @GetMapping...
repos\JeecgBoot-main\jeecg-boot\jeecg-module-system\jeecg-system-biz\src\main\java\org\jeecg\modules\system\controller\SysTableWhiteListController.java
2
请完成以下Java代码
public List<Integer> getRoomList() { return roomList; } @ValueRangeProvider(id = "availablePeriods") @ProblemFactCollectionProperty public List<Integer> getPeriodList() { return periodList; } @PlanningEntityCollectionProperty public List<Lecture> getLectureList() { ...
@PlanningScore public HardSoftScore getScore() { return score; } public void setScore(HardSoftScore score) { this.score = score; } public void printCourseSchedule() { lectureList.stream() .map(c -> "Lecture in Room " + c.getRoomNumber().toString() + " during...
repos\tutorials-master\drools\src\main\java\com\baeldung\drools\optaplanner\CourseSchedule.java
1
请完成以下Java代码
public int getSpanX() { return spanX; } public int getSpanY() { return spanY; } public static final class Builder { private int displayLength = 0; private int columnDisplayLength = 0; private boolean sameLine = false; private int spanX = 1; private int spanY = 1; private Builder() { super...
this.columnDisplayLength = columnDisplayLength; return this; } public Builder setSameLine(final boolean sameLine) { this.sameLine = sameLine; return this; } public Builder setSpanX(final int spanX) { this.spanX = spanX; return this; } public Builder setSpanY(final int spanY) { thi...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\GridFieldLayoutConstraints.java
1
请完成以下Java代码
default IQueryBuilder<Object> createQueryBuilder(final String modelTableName) { return createQueryBuilder(modelTableName, Env.getCtx(), ITrx.TRXNAME_ThreadInherited); } /** * @return query builder using current context and thread inherited transaction */ default <T> IQueryBuilder<T> createQueryBuilder(final ...
<T> IQueryOrderByBuilder<T> createQueryOrderByBuilder(Class<T> modelClass); IQueryOrderBy createSqlQueryOrderBy(String orderBy); /** * @param modelClass the model class. Assumes that the table name can be obtained from the model class via {@link InterfaceWrapperHelper#getTableName(Class)}. */ <T> ICompositeQue...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\dao\IQueryBL.java
1
请完成以下Java代码
public String getRootProcessInstanceId() { return rootProcessInstanceId; } public void setRootProcessInstanceId(String rootProcessInstanceId) { this.rootProcessInstanceId = rootProcessInstanceId; } @Override public String toString() { return this.getClass().getSimpleName() + "[taskId"...
+ ", durationInMillis=" + durationInMillis + ", startTime=" + startTime + ", endTime=" + endTime + ", id=" + id + ", eventType=" + eventType + ", executionId=" + executionId + ", processDefinitionId=" + processDefinitionId + ", rootProcessInst...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\history\event\HistoricTaskInstanceEventEntity.java
1
请完成以下Java代码
public boolean matches(HttpServletRequest request) { return matcher(request).isMatch(); } @Override public MatchResult matcher(HttpServletRequest request) { String parameterValue = request.getParameter(this.name); return this.matcher.matcher(parameterValue); } private interface ValueMatcher { MatchResul...
default MatchResult matcher(String value) { if (matches(value)) { return MatchResult.match(); } else { return MatchResult.notMatch(); } } boolean matches(String value); } }
repos\spring-security-main\web\src\main\java\org\springframework\security\web\util\matcher\ParameterRequestMatcher.java
1
请在Spring Boot框架中完成以下Java代码
public UpdateProcessDefinitionSuspensionStateBuilderImpl executionDate(Date date) { this.executionDate = date; return this; } @Override public UpdateProcessDefinitionSuspensionStateBuilderImpl processDefinitionWithoutTenantId() { this.processDefinitionTenantId = null; this.isTenantIdSet = true; ...
if(processDefinitionId != null && isTenantIdSet) { throw LOG.exceptionUpdateSuspensionStateForTenantOnlyByProcessDefinitionKey(); } ensureNotNull("commandExecutor", commandExecutor); } public String getProcessDefinitionKey() { return processDefinitionKey; } public String getProcessDefinitio...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\repository\UpdateProcessDefinitionSuspensionStateBuilderImpl.java
2
请完成以下Java代码
void write(OutputStream outputStream) throws IOException { outputStream.write(0x80 | this.type.code); if (this.payload.length < 126) { outputStream.write(this.payload.length & 0x7F); } else { outputStream.write(0x7E); outputStream.write(this.payload.length >> 8 & 0xFF); outputStream.write(this.paylo...
* Close frame. */ CLOSE(0x08), /** * Ping frame. */ PING(0x09), /** * Pong frame. */ PONG(0x0A); private final int code; Type(int code) { this.code = code; } static Type forCode(int code) { for (Type type : values()) { if (type.code == code) { return type; } }...
repos\spring-boot-4.0.1\module\spring-boot-devtools\src\main\java\org\springframework\boot\devtools\livereload\Frame.java
1
请在Spring Boot框架中完成以下Java代码
public class BookstoreService { private static final Logger log = Logger.getLogger(BookstoreService.class.getName()); private final TransactionTemplate template; private final AuthorRepository authorRepository; public BookstoreService(AuthorRepository authorRepository, TransactionTemplate template) {...
template.execute(new TransactionCallbackWithoutResult() { @Override protected void doInTransactionWithoutResult( TransactionStatus status) { log.info("Starting second transaction ..."); Author author =...
repos\Hibernate-SpringBoot-master\HibernateSpringBootPessimisticLocks\src\main\java\com\bookstore\service\BookstoreService.java
2
请完成以下Java代码
public class JdbcSecurityUtil { /** * 连接驱动漏洞 最新版本修复后,可删除相应的key * postgre:authenticationPluginClassName, sslhostnameverifier, socketFactory, sslfactory, sslpasswordcallback * https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-v7wg-cpwc-24m4 * */ public static final String[] notA...
if(jdbcUrl.indexOf(urlConcatChar)<0){ return; } String argString = jdbcUrl.substring(jdbcUrl.indexOf(urlConcatChar)+1); String[] keyAndValues = argString.split("&"); for(String temp: keyAndValues){ String key = temp.split("=")[0]; for(String prop: notA...
repos\JeecgBoot-main\jeecg-boot\jeecg-boot-base-core\src\main\java\org\jeecg\common\util\security\JdbcSecurityUtil.java
1
请在Spring Boot框架中完成以下Java代码
public class PmsOperatorRoleDaoImpl extends PermissionBaseDaoImpl<PmsOperatorRole> implements PmsOperatorRoleDao { /** * 根据操作员ID查找该操作员关联的角色. * * @param operatorId * . * @return list . */ public List<PmsOperatorRole> listByOperatorId(Long operatorId) { return super.getSessionTemplate().selec...
super.getSessionTemplate().delete(getStatement("deleteByOperatorId"), operatorId); } /** * 根据角色ID删除操作员与角色的关联关系. * * @param roleId * . */ public void deleteByRoleId(Long roleId) { super.getSessionTemplate().delete(getStatement("deleteByRoleId"), roleId); } /** * 根据角色ID和操作员ID删除关联数据(用于更新操作...
repos\roncoo-pay-master\roncoo-pay-service\src\main\java\com\roncoo\pay\permission\dao\impl\PmsOperatorRoleDaoImpl.java
2
请完成以下Java代码
public void afterConnectionEstablished(WebSocketSession session) throws Exception { logger.info("Server connection opened"); sessions.add(session); TextMessage message = new TextMessage("one-time message from server"); logger.info("Server sends: {}", message); session.se...
String response = String.format("response from server to '%s'", HtmlUtils.htmlEscape(request)); logger.info("Server sends: {}", response); session.sendMessage(new TextMessage(response)); } @Override public void handleTransportError(WebSocketSession session, Throwable exception) { ...
repos\tutorials-master\spring-web-modules\spring-websockets\src\main\java\com\baeldung\rawwebsocket\ServerWebSocketHandler.java
1
请在Spring Boot框架中完成以下Java代码
public class BookstoreService { private final AuthorRepository authorRepository; private final BookRepository bookRepository; public BookstoreService(AuthorRepository authorRepository, BookRepository bookRepository) { this.authorRepository = authorRepository; this.bookRepository = bookRepo...
@Transactional public void updateAuthorsAndBooks() { List<Author> authors = authorRepository.fetchAll(); for (Author author : authors) { author.setAge(author.getAge() + 1); for (Book book : author.getBooks()) { book.setIsbn(book.getIsbn() + "-2020"); ...
repos\Hibernate-SpringBoot-master\HibernateSpringBootBatchUpdateOrder\src\main\java\com\bookstore\service\BookstoreService.java
2
请在Spring Boot框架中完成以下Java代码
public String getId() { return id; } public String getName() { return name; } public String getSource() { return source; } public Date getDeploymentTime() { return deploymentTime; }
public String getTenantId() { return tenantId; } public static DeploymentDto fromDeployment(Deployment deployment) { DeploymentDto dto = new DeploymentDto(); dto.id = deployment.getId(); dto.name = deployment.getName(); dto.source = deployment.getSource(); dto.deploymentTime = deployment.ge...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\repository\DeploymentDto.java
2
请完成以下Java代码
public void setPeriodNo (int PeriodNo) { set_Value (COLUMNNAME_PeriodNo, Integer.valueOf(PeriodNo)); } /** Get Period No. @return Unique Period Number */ public int getPeriodNo () { Integer ii = (Integer)get_Value(COLUMNNAME_PeriodNo); if (ii == null) return 0; return ii.intValue(); } /** Pos...
/** Get Processed. @return The document has been processed */ 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 Process Now. ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_A_Depreciation_Build.java
1
请完成以下Java代码
protected String doIt() { final String sqlParsed = StringExpressionCompiler.instance .compile(getSql()) .evaluate(getEvalContext(), OnVariableNotFound.Fail); final Stopwatch stopwatch = Stopwatch.createStarted(); final String msg; final List<String> warningMessages; addLog("Executing: " + sqlParsed...
.orElseThrow(() -> new AdempiereException("@FillMandatory@ @SQLStatement@")); return rawSql .replaceAll("--.*[\r\n\t]", "") // remove one-line-comments (comments within /* and */ are OK) .replaceAll("[\r\n\t]", " "); // replace line-breaks with spaces } private Evaluatee getEvalContext() { final List<Ev...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\process\ExecuteUpdateSQL.java
1
请在Spring Boot框架中完成以下Java代码
public class HierarchicalStateMachineConfiguration extends StateMachineConfigurerAdapter<String, String> { @Override public void configure(StateMachineConfigurationConfigurer<String, String> config) throws Exception { config .withConfiguration() .autoStartup(...
.initial("SUB1") .state("SUB2") .end("SUBEND"); } @Override public void configure(StateMachineTransitionConfigurer<String, String> transitions) throws Exception { transitions.withExternal() .source("SI").target("SF").event("end") ...
repos\tutorials-master\spring-state-machine\src\main\java\com\baeldung\spring\statemachine\config\HierarchicalStateMachineConfiguration.java
2
请在Spring Boot框架中完成以下Java代码
public class DocOutBoundRecipientId implements RepoIdAware { int repoId; @JsonCreator public static DocOutBoundRecipientId ofRepoId(final int repoId) { return new DocOutBoundRecipientId(repoId); } public static DocOutBoundRecipientId ofRepoIdOrNull(int repoId) { if (repoId <= 0) { return null; } r...
throw new AdempiereException("Only regular users are allowed as recipients"); } return ofRepoId(userId.getRepoId()); } private DocOutBoundRecipientId(final int repoId) { this.repoId = Check.assumeGreaterThanZero(repoId, "repoId"); } @Override @JsonValue public int getRepoId() { return repoId; } pu...
repos\metasfresh-new_dawn_uat\backend\de.metas.document.archive\de.metas.document.archive.base\src\main\java\de\metas\document\archive\mailrecipient\DocOutBoundRecipientId.java
2
请完成以下Java代码
public static void setDebuggingLoggable(@Nullable final ILoggable debuggingLoggable) { Loggables.debuggingLoggable = debuggingLoggable; } private static ILoggable composeWithDebuggingLoggable(@Nullable final ILoggable loggable) { return CompositeLoggable2.compose(loggable, debuggingLoggable); } /** * @ret...
} } public static ILoggable withLogger(@NonNull final ILoggable loggable, @NonNull final Logger logger, @NonNull final Level level) { return new LoggableWithLogger(loggable, logger, level); } public static ILoggable withWarnLoggerToo(@NonNull final Logger logger) { return withLogger(logger, Level.WARN); } ...
repos\metasfresh-new_dawn_uat\backend\de.metas.util\src\main\java\de\metas\util\Loggables.java
1
请完成以下Java代码
public @Nullable Process getRunningProcess() { return this.process; } /** * Return if the process was stopped. * @return {@code true} if stopped */ public boolean handleSigInt() { if (allowChildToHandleSigInt()) { return true; } return doKill(); } private boolean allowChildToHandleSigInt() { P...
return false; } /** * Kill this process. */ public void kill() { doKill(); } private boolean doKill() { // destroy the running process Process process = this.process; if (process != null) { try { process.destroy(); process.waitFor(); this.process = null; return true; } catch ...
repos\spring-boot-4.0.1\loader\spring-boot-loader-tools\src\main\java\org\springframework\boot\loader\tools\RunProcess.java
1
请在Spring Boot框架中完成以下Java代码
public void stop(StopContext arg0) { provider.accept(null); ManagedReference reference = null; try { // get the process application component ProcessApplicationInterface processApplication = null; if(paComponentViewSupplier != null) { ComponentView componentView = paComponentView...
} } catch (Exception e) { LOGGER.log(Level.WARNING, "Exception while invoking BpmPlatformPlugin.postProcessApplicationUndeploy", e); } finally { if(reference != null) { reference.release(); } } } }
repos\camunda-bpm-platform-master\distro\wildfly\subsystem\src\main\java\org\camunda\bpm\container\impl\jboss\service\ProcessApplicationStopService.java
2
请在Spring Boot框架中完成以下Java代码
public class DataSourceSecondaryConfig { @Autowired private DruidConfigSecondaryProperties druidConfigSecondaryProperties; @Bean(name = "secondaryDataSource",initMethod = "init", destroyMethod = "close") public DataSource testDataSource() throws SQLException { DruidDataSource druidDataSource =...
druidDataSource.setMaxPoolPreparedStatementPerConnectionSize(druidConfigSecondaryProperties.getMaxPoolPreparedStatementPerConnectionSize()); druidDataSource.setFilters(druidConfigSecondaryProperties.getFilters()); return druidDataSource; } @Bean(name = "secondarySqlSessionFactory") public S...
repos\spring-boot-quick-master\quick-multi-data\src\main\java\com\quick\mulit\config\DataSourceSecondaryConfig.java
2
请完成以下Java代码
public void setCntrValAmt(AmountAndCurrencyExchangeDetails3 value) { this.cntrValAmt = value; } /** * Gets the value of the anncdPstngAmt property. * * @return * possible object is * {@link AmountAndCurrencyExchangeDetails3 } * */ public AmountAndCur...
* <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the prtryAmt property. * * <p> * For exampl...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.camt53\src\main\java-xjc\de\metas\banking\camt53\jaxb\camt053_001_02\AmountAndCurrencyExchange3.java
1
请完成以下Java代码
@Override public void exitBlank(LabeledExprParser.BlankContext ctx) { } /** * {@inheritDoc} * * <p>The default implementation does nothing.</p> */ @Override public void enterParens(LabeledExprParser.ParensContext ctx) { } /** * {@inheritDoc} * * <p>The default implementation does nothing.</p> */ @Ov...
/** * {@inheritDoc} * * <p>The default implementation does nothing.</p> */ @Override public void exitInt(LabeledExprParser.IntContext ctx) { } /** * {@inheritDoc} * * <p>The default implementation does nothing.</p> */ @Override public void enterEveryRule(ParserRuleContext ctx) { } /** * {@inherit...
repos\springboot-demo-master\ANTLR\src\main\java\com\et\antlr\LabeledExprBaseListener.java
1
请完成以下Java代码
public class DataAssociationParser implements BpmnXMLConstants { protected static final Logger LOGGER = LoggerFactory.getLogger(DataAssociationParser.class.getName()); public static void parseDataAssociation(DataAssociation dataAssociation, String elementName, XMLStreamReader xtr) { boolean readyWithD...
} else if (xtr.isStartElement() && ELEMENT_FROM.equals(xtr.getLocalName())) { String from = xtr.getElementText(); if (assignment != null && StringUtils.isNotEmpty(from)) { assignment.setFrom(from.trim()); } } else if (xt...
repos\Activiti-develop\activiti-core\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\child\DataAssociationParser.java
1
请完成以下Java代码
public void setAge(Integer age) { this.age = age; } public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } public Person(Long id, String name, Integer age, String address) { super(); this.id = i...
this.address = address; } @Override public String toString() { return "Person{" + "id=" + id + ", name=" + name + ", age=" + age + ", address=" + address + '}'; } }
repos\springBoot-master\springboot-Cache2\src\main\java\com\us\example\bean\Person.java
1
请完成以下Java代码
private static QtyRejectedWithReason getQtyRejectedWithReason(final @NonNull PPOrderIssueScheduleProcessRequest request, final @NonNull I_C_UOM uom) { if (request.getQtyRejectedReasonCode() == null) { return null; } final Quantity qtyRejected = Quantity.of(Check.assumeNotNull(request.getQtyRejected(), "Qty...
return issueSchedule; } final PPOrderIssueSchedule issueScheduleChanged = issueSchedule.withSeqNo(newSeqNo); issueScheduleRepository.saveChanges(issueScheduleChanged); return issueScheduleChanged; } public void updateQtyToIssue( @NonNull final PPOrderIssueScheduleId issueScheduleId, @NonNull final Qua...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\pporder\api\issue_schedule\PPOrderIssueScheduleService.java
1
请完成以下Java代码
private void addConfig(HttpRequest request, ExecutorConfig config) { if (Objects.isNull(config)) { return; } if (MapUtil.isNotEmpty(config.getHeader())) { request.headerMap(config.getHeader(), true); } if (Objects.nonNull(config.getProxy())) { ...
HttpRequest request = HttpUtil.createRequest(Method.valueOf(method.name()), url); if (MapUtil.isNotEmpty(params)) { if (HttpMethod.GET.equals(method)) { request.form(params); } else if (HttpMethod.POST.equals(method)) { request.body(JSONUtil.toJsonStr(pa...
repos\spring-boot-quick-master\quick-api-invoker\src\main\java\com\quick\api\invoker\executor\HttpExecutorAdapter.java
1
请在Spring Boot框架中完成以下Java代码
public String getProductGroupId() { return productGroupId; } public void setProductGroupId(String productGroupId) { this.productGroupId = productGroupId; } public InsuranceContractMaximumAmountForProductGroups quantity(InsuranceContractQuantity quantity) { this.quantity = quantity; return this...
return Objects.equals(this.productGroupId, insuranceContractMaximumAmountForProductGroups.productGroupId) && Objects.equals(this.quantity, insuranceContractMaximumAmountForProductGroups.quantity); } @Override public int hashCode() { return Objects.hash(productGroupId, quantity); } @Override p...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\alberta\alberta-article-api\src\main\java\io\swagger\client\model\InsuranceContractMaximumAmountForProductGroups.java
2
请完成以下Java代码
public Matrix row(int i) { double[][] X = new double[1][n]; for (int j = 0; j < n; j++) { X[0][j] = A[i][j]; } return new Matrix(X); } public Matrix block(int i, int j, int p, int q) { return getMatrix(i, i + p - 1, j, j + q - 1); } /...
public void save(DataOutputStream out) throws Exception { out.writeInt(m); out.writeInt(n); for (int i = 0; i < m; i++) { for (int j = 0; j < n; j++) { out.writeDouble(A[i][j]); } } } public boolean load(ByteArray b...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\dependency\nnparser\Matrix.java
1
请在Spring Boot框架中完成以下Java代码
public class VideoRepository { private static final String TABLE_NAME = "videos"; private final CqlSession session; public VideoRepository(CqlSession session) { this.session = session; } public void createTable() { createTable(null); } public void createTable(String keys...
public List<Video> selectAll() { return selectAll(null); } public List<Video> selectAll(String keyspace) { Select select = QueryBuilder.selectFrom(TABLE_NAME).all(); ResultSet resultSet = executeStatement(select.build(), keyspace); List<Video> result = new ArrayList<>(); ...
repos\tutorials-master\persistence-modules\java-cassandra\src\main\java\com\baeldung\datastax\cassandra\repository\VideoRepository.java
2
请完成以下Java代码
public String getFoosBySimplePathWithPathVariables(@PathVariable final long fooid, @PathVariable final long barid) { return "Get a specific Bar with id=" + barid + " from a Foo with id=" + fooid; } // other HTTP verbs @RequestMapping(value = "/foos", method = RequestMethod.POST) @ResponseBody ...
return "Fallback for All Requests"; } @RequestMapping(value = "/foos/multiple", method = { RequestMethod.PUT, RequestMethod.POST }) @ResponseBody public String putAndPostFoos() { return "Advanced - PUT and POST within single method"; } // --- Ambiguous Mapping @GetMapping(value ...
repos\tutorials-master\spring-web-modules\spring-rest-http\src\main\java\com\baeldung\requestmapping\FooMappingExamplesController.java
1
请完成以下Java代码
protected void configureQuery(ListQueryParameterObject parameter) { getAuthorizationManager().configureExternalTaskFetch(parameter); getTenantManager().configureQuery(parameter); } protected ListQueryParameterObject configureParameterizedQuery(Object parameter) { return getTenantManager().configureQuer...
} public void fireExternalTaskAvailableEvent() { Context.getCommandContext() .getTransactionContext() .addTransactionListener(TransactionState.COMMITTED, new TransactionListener() { @Override public void execute(CommandContext commandContext) { ProcessEngineImpl.EX...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\ExternalTaskManager.java
1
请在Spring Boot框架中完成以下Java代码
public List<BPartnerContact> getContacts() { return getBPartnerComposite().getContacts(); } @Nullable public BPartnerContact getDefaultContactOrNull() { return getBPartnerComposite() .extractContact(c -> c.getContactType().getIsBillToDefaultOr(false)) .orElse(null); } @Nullable public BPartnerCon...
@Nullable public BPartnerContact getPurchaseDefaultContactOrNull() { return getBPartnerComposite() .extractContact(c -> c.getContactType().getIsPurchaseDefaultOr(false)) .orElse(null); } @Nullable public BPartnerContact getSalesDefaultContactOrNull() { return getBPartnerComposite() .extractConta...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\bpartner\service\OrgChangeBPartnerComposite.java
2
请完成以下Java代码
public class HalCaseDefinition extends HalResource<HalCaseDefinition> implements HalIdResource { public static final HalRelation REL_SELF = HalRelation.build("self", CaseDefinitionRestService.class, UriBuilder.fromPath(CaseDefinitionRestService.PATH).path("{id}")); public static final HalRelation REL_DEPLOYMENT...
} public String getCategory() { return category; } public String getName() { return name; } public int getVersion() { return version; } public String getResource() { return resource; } public String getDeploymentId() { return deploymentId; } public String getContextPath()...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\hal\caseDefinition\HalCaseDefinition.java
1
请在Spring Boot框架中完成以下Java代码
public class KeyStoreServiceImpl implements KeyStoreService { private final KeyStore keystore; private final Key caKey; private final Map<UserId, KeyPair> keyCache; private final KeyPairGenerator keyPairGenerator; public KeyStoreServiceImpl() throws KeyStoreInitializationException { try { ...
//TODO: sign user's certificate using company CA. keyCache.put(userId, keyPair); return keyPair.getPrivate(); } @Override public Optional<Key> getUserKey(UserId userId) { KeyPair pair = keyCache.get(userId); if (pair != null) { return Optional.of(keyCache.get(use...
repos\spring-examples-java-17\spring-security-jwt\src\main\java\itx\examples\springboot\security\springsecurity\jwt\services\KeyStoreServiceImpl.java
2
请在Spring Boot框架中完成以下Java代码
public static Saml2LogoutValidatorResult success() { return NO_ERRORS; } /** * Construct a {@link Saml2LogoutValidatorResult.Builder}, starting with the given * {@code errors}. * * Note that a result with no errors is considered a success. * @param errors * @return */ public static Saml2LogoutValida...
Assert.noNullElements(errors, "errors cannot have null elements"); this.errors = new ArrayList<>(errors); } public Builder errors(Consumer<Collection<Saml2Error>> errorsConsumer) { errorsConsumer.accept(this.errors); return this; } public Saml2LogoutValidatorResult build() { return new Saml2Logout...
repos\spring-security-main\saml2\saml2-service-provider\src\main\java\org\springframework\security\saml2\provider\service\authentication\logout\Saml2LogoutValidatorResult.java
2
请完成以下Java代码
public void setName(String name) { this.name = name; } public Optional<Integer> getAge() { return Optional.of(age); } public void setAge(int age) { this.age = age; } public void setPassword(String password) { this.password = password; } public Optional...
.filter(p -> p.getName().equals(name)) .filter(p -> p.getAge().get() >= ageFilter) .collect(Collectors.toList()); } public static List<Person> search(List<Person> people, String name) { return doSearch(people, name, 0); } public static List<Person> search(List<P...
repos\tutorials-master\core-java-modules\core-java-11-2\src\main\java\com\baeldung\optional\Person.java
1
请完成以下Java代码
public Builder claim(String name, Object value) { Assert.hasText(name, "name cannot be empty"); Assert.notNull(value, "value cannot be null"); this.claims.put(name, value); return this; } /** * A {@code Consumer} to be provided access to the claims allowing the ability to * add, replace, or remov...
// Attempt to convert to URL. Object issuer = this.claims.get(OAuth2TokenClaimNames.ISS); if (issuer != null) { URL convertedValue = ClaimConversionService.getSharedInstance().convert(issuer, URL.class); if (convertedValue != null) { this.claims.put(OAuth2TokenClaimNames.ISS, convertedValue); } ...
repos\spring-security-main\oauth2\oauth2-authorization-server\src\main\java\org\springframework\security\oauth2\server\authorization\token\OAuth2TokenClaimsSet.java
1
请完成以下Java代码
public Map<DocumentId, InOutCostRow> getDocumentId2TopLevelRows() { return rowsHolder.getDocumentId2TopLevelRows(); } @Override public DocumentIdsSelection getDocumentIdsToInvalidate(final TableRecordReferenceSet recordRefs) { return DocumentIdsSelection.EMPTY; } @Override public void invalidateAll() { ...
} private ViewHeaderProperties computeHeaderProperties() { return ViewHeaderProperties.builder() .group(ViewHeaderPropertiesGroup.builder() .entry(ViewHeaderProperty.builder() .caption(TranslatableStrings.adElementOrMessage("InvoiceOpenAmt")) .value(TranslatableStrings.amount(viewDataServ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\invoice\match_inout_costs\InOutCostsViewData.java
1
请完成以下Java代码
private TbNode initComponent(RuleNode ruleNode) throws Exception { TbNode tbNode = null; if (ruleNode != null) { Class<?> componentClazz = Class.forName(ruleNode.getType()); tbNode = (TbNode) (componentClazz.getDeclaredConstructor().newInstance()); tbNode.init(default...
.setTenantIdMSB(tenantId.getId().getMostSignificantBits()) .setTenantIdLSB(tenantId.getId().getLeastSignificantBits()) .setTbMsgProto(TbMsg.toProto(tbMsg)) .build(); systemContext.getClusterService().pushMsgToRuleEngine(tpi, tbMsg.getId(), toQueueMsg, null); ...
repos\thingsboard-master\application\src\main\java\org\thingsboard\server\actors\ruleChain\RuleNodeActorMessageProcessor.java
1
请完成以下Java代码
public final class VersionProperty implements Serializable, Comparable<VersionProperty> { @Serial private static final long serialVersionUID = 1L; private static final List<Character> SUPPORTED_CHARS = Arrays.asList('.', '-'); private final String property; private final boolean internal; private VersionProp...
} return sb.toString(); } public String toStandardFormat() { return this.property; } private static String validateFormat(String property) { for (char c : property.toCharArray()) { if (Character.isUpperCase(c)) { throw new IllegalArgumentException("Invalid property '" + property + "', must not contai...
repos\initializr-main\initializr-generator\src\main\java\io\spring\initializr\generator\version\VersionProperty.java
1
请在Spring Boot框架中完成以下Java代码
public class MSV3ServerConfig { OptionalInt fixedQtyAvailableToPromise; @Getter(AccessLevel.NONE) Optional<Supplier<WarehousePickingGroup>> warehousePickingGroupSupplier; Set<ProductCategoryId> productCategoryIds; @Builder private MSV3ServerConfig( final int fixedQtyAvailableToPromise, final Supplier<Wareh...
public boolean hasProducts() { return !getProductCategoryIds().isEmpty() && !getWarehouseIds().isEmpty(); } public Set<WarehouseId> getWarehouseIds() { return warehousePickingGroupSupplier .map(Supplier::get) .map(WarehousePickingGroup::getWarehouseIds) .orElse(ImmutableSet.of()); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma.msv3.server-peer-metasfresh\src\main\java\de\metas\vertical\pharma\msv3\server\peer\metasfresh\model\MSV3ServerConfig.java
2
请在Spring Boot框架中完成以下Java代码
public class Foo { @Id @GeneratedValue(strategy = GenerationType.AUTO) private long id; private String name; public Foo() { super(); } public Foo(final String name) { super(); this.name = name; } public Foo(final long id, final String name) { sup...
result = prime * result + ((name == null) ? 0 : name.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; ...
repos\tutorials-master\spring-5\src\main\java\com\baeldung\web\Foo.java
2
请完成以下Java代码
public static boolean containsNewLine(String str) { return str != null && str.contains("\n"); } public static boolean writeIOParameters(String elementName, List<IOParameter> parameterList, boolean didWriteParameterStartElement, XMLStreamWriter xtw) throws Exception { if (parameterList == null ...
} if (StringUtils.isNotEmpty(ioParameter.getSourceExpression())) { xtw.writeAttribute(ATTRIBUTE_IOPARAMETER_SOURCE_EXPRESSION, ioParameter.getSourceExpression()); } if (StringUtils.isNotEmpty(ioParameter.getTarget())) { xtw.writeAttribute(ATTRIBUTE_IOP...
repos\flowable-engine-main\modules\flowable-cmmn-converter\src\main\java\org\flowable\cmmn\converter\util\CmmnXmlUtil.java
1
请完成以下Java代码
public static final HUProducerDestination ofVirtualPI() { return of(HuPackingInstructionsId.VIRTUAL) .setMaxHUsToCreate(1); // we want one VHU } private static final ArrayKey SHARED_CurrentHUKey = ArrayKey.of(0); private final AllocationStrategyFactory allocationStrategyFactory = SpringContextHolder.instanc...
return maxHUsToCreate == 1 ? SHARED_CurrentHUKey : super.extractCurrentHUKey(request); } @Override public boolean isAllowCreateNewHU() { // Check if we already reached the maximum number of HUs that we are allowed to create return getCreatedHUsCount() < maxHUsToCreate; } public HUProducerDestination...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\allocation\impl\HUProducerDestination.java
1
请完成以下Java代码
public void setIsUseAd (boolean IsUseAd) { set_Value (COLUMNNAME_IsUseAd, Boolean.valueOf(IsUseAd)); } /** Get Use Ad. @return Whether or not this templates uses Ad's */ public boolean isUseAd () { Object oo = get_Value(COLUMNNAME_IsUseAd); if (oo != null) { if (oo instanceof Boolean) ret...
/** Set Process Now. @param Processing Process Now */ public void setProcessing (boolean Processing) { set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); } /** Get Process Now. @return Process Now */ public boolean isProcessing () { Object oo = get_Value(COLUMNNAME_Processing); if (oo...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_CM_Template.java
1
请完成以下Java代码
private void collectPart(final Part part) { try { final ContentType contentType = new ContentType(part.getContentType()); final String disposition = part.getDisposition(); if (Part.ATTACHMENT.equalsIgnoreCase(disposition)) { collectAttachment(part.getFileName(), contentType, part.getInputStream())...
{ if (text == null || text.isEmpty()) { return; } if (contentType == null || contentType.match("text/plain")) { logger.debug("Collecting text: {}", text); this.text.append(text); } else if (contentType == null || contentType.match("text/html")) { logger.debug("Collecting html: {}", text); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.inbound.mail\src\main\java\de\metas\inbound\mail\MailContentCollector.java
1
请完成以下Java代码
public ReferenceList getReferenceList() { return referenceList; } /** * Sets the value of the referenceList property. * * @param value * allowed object is * {@link ReferenceList } * */ public void setReferenceList(ReferenceList value) { this....
* {@link String } * */ public String getRecipient() { return recipient; } /** * Sets the value of the recipient property. * * @param value * allowed object is * {@link String } * */ public void setRecipient(String value) { ...
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\EncryptedKeyType.java
1
请完成以下Java代码
public class AttachmentDto extends LinkableDto { private String id; private String name; private String description; private String taskId; private String type; private String url; private Date createTime; private Date removalTime; private String rootProcessInstanceId; public AttachmentDto() { }...
this.createTime = createTime; } public Date getRemovalTime() { return removalTime; } public void setRemovalTime(Date removalTime) { this.removalTime = removalTime; } public String getRootProcessInstanceId() { return rootProcessInstanceId; } public void setRootProcessInstanceId(String roo...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\task\AttachmentDto.java
1
请完成以下Java代码
public void init() { cacheThreadPool = threadPool; cachePollingPersist = pollingPersist; startThread(); } private void startThread() { LOG.info("==>startThread"); cacheThreadPool.execute(new Runnable() { public void run() { try { ...
cacheThreadPool.execute(new Runnable() { public void run() { tasks.remove(task); task.run(); // 执行通知处理 LOG.info("==>tasks.size():" + tasks.size()); ...
repos\roncoo-pay-master\roncoo-pay-app-order-polling\src\main\java\com\roncoo\pay\AppOrderPollingApplication.java
1
请完成以下Java代码
public PingResponseDto pong(OffsetDateTime pong) { this.pong = pong; return this; } /** * Get pong * @return pong */ @Valid @Schema(name = "pong", requiredMode = RequiredMode.REQUIRED) public OffsetDateTime getPong() { return pong; } public void setPon...
@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PingResponseDto {\n"); sb.append(" pong: ") .append(toIndentedString(pong)) .append("\n"); sb.append("}"); return sb.toString(); } /** * Conv...
repos\tutorials-master\spring-boot-modules\spring-boot-springdoc-2\src\main\java\com\baeldung\defaultglobalsecurityscheme\dto\PingResponseDto.java
1
请在Spring Boot框架中完成以下Java代码
public OrderedArticleLine updated(OffsetDateTime updated) { this.updated = updated; return this; } /** * Der Zeitstempel der letzten Änderung * @return updated **/ @Schema(description = "Der Zeitstempel der letzten Änderung") public OffsetDateTime getUpdated() { return updated; } publ...
@Override public int hashCode() { return Objects.hash(_id, salesLineId, articleId, articleCustomerNumber, quantity, unit, duration, isRentalEquipment, isPrivateSale, updated); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OrderedArticleLine {\n"); ...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\alberta\alberta-orders-api\src\main\java\io\swagger\client\model\OrderedArticleLine.java
2
请在Spring Boot框架中完成以下Java代码
public void checkBrandParam(BrandInsertReq brandInsertReq){ if (StringUtils.isEmpty(brandInsertReq.getBrand())){ throw new CommonBizException(ExpCodeEnum.BRADN_NAME_NULL); }else if (StringUtils.isEmpty(brandInsertReq.getBrandLogoUrl())){ throw new CommonBizException(ExpCodeEnum.B...
private CategoryEntity makeCateInsert(CategoryEntity categoryEntity){ CategoryEntity newCategory = new CategoryEntity(); BeanUtils.copyProperties(categoryEntity,newCategory); newCategory.setId(KeyGenerator.getKey()); return newCategory; } /** * 组装新增品牌对象 * @param brandI...
repos\SpringBoot-Dubbo-Docker-Jenkins-master\Gaoxi-Product\src\main\java\com\gaoxi\product\service\ProductServiceImpl.java
2
请完成以下Java代码
public void setC_JobCategory_ID (int C_JobCategory_ID) { if (C_JobCategory_ID < 1) set_ValueNoCheck (COLUMNNAME_C_JobCategory_ID, null); else set_ValueNoCheck (COLUMNNAME_C_JobCategory_ID, Integer.valueOf(C_JobCategory_ID)); } /** Get Position Category. @return Job Position Category */ public int ...
*/ public String getHelp () { return (String)get_Value(COLUMNNAME_Help); } /** 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 */ public String...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_JobCategory.java
1
请完成以下Java代码
public class ShortWrapperLookup extends Lookup { private Short[] elements; private final short pivot = 2; @Override @Setup public void prepare() { short common = 1; elements = new Short[s]; for (int i = 0; i < s - 1; i++) { elements[i] = common; } ...
@BenchmarkMode(Mode.AverageTime) public int findPosition() { int index = 0; Short pivotWrapper = pivot; while (!pivotWrapper.equals(elements[index])) { index++; } return index; } @Override public String getSimpleClassName() { return ShortWrap...
repos\tutorials-master\core-java-modules\core-java-lang-2\src\main\java\com\baeldung\primitive\ShortWrapperLookup.java
1
请完成以下Java代码
public void setNameAndDescription(final I_M_HU_PI_Item_Product itemProduct) { // // Build itemProduct's name from scratch final String nameBuilt = buildDisplayName() .setM_HU_PI_Item_Product(itemProduct) .buildItemProductDisplayName(); // build it from scratch // Set it as Name and Description itemP...
if (hupiItemProductId != null) { return huPIItemProductDAO.getRecordById(hupiItemProductId); } else { final ProductId productId = ProductId.ofRepoId(orderLine.getM_Product_ID()); final BPartnerId buyerBPartnerId = BPartnerId.ofRepoId(order.getC_BPartner_ID()); final ZoneId timeZone = orgDAO.getTimeZ...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\impl\HUPIItemProductBL.java
1
请完成以下Java代码
public InOutGenerateResult getResult() { return result; } @Override public IInOutProducerFromShipmentScheduleWithHU setProcessShipments(final boolean processShipments) { this.processShipments = processShipments; return this; } @Override public IInOutProducerFromShipmentScheduleWithHU setCreatePackingLin...
{ this.calculateShippingDateRule = calculateShippingDateRule; return this; } @Override public IInOutProducerFromShipmentScheduleWithHU setScheduleIdToExternalInfo(@NonNull final ImmutableMap<ShipmentScheduleId, ShipmentScheduleExternalInfo> scheduleId2ExternalInfo) { this.scheduleId2ExternalInfo.putAll(sched...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\shipmentschedule\spi\impl\InOutProducerFromShipmentScheduleWithHU.java
1
请完成以下Java代码
public void onMsg(TbContext ctx, TbMsg msg) { if (msg.isTypeOf(TbMsgType.DELAY_TIMEOUT_SELF_MSG)) { TbMsg pendingMsg = pendingMsgs.remove(UUID.fromString(msg.getData())); if (pendingMsg != null) { ctx.enqueueForTellNext( TbMsg.newMsg() ...
periodInSeconds = Integer.parseInt(TbNodeUtils.processPattern(config.getPeriodInSecondsPattern(), msg)); } else { throw new RuntimeException("Can't parse period in seconds from metadata using pattern: " + config.getPeriodInSecondsPattern()); } } else { periodI...
repos\thingsboard-master\rule-engine\rule-engine-components\src\main\java\org\thingsboard\rule\engine\delay\TbMsgDelayNode.java
1
请完成以下Java代码
public Optional<LocatorId> suggestAfterPickingLocatorId(final int locatorRepoId) { Check.assumeGreaterThanZero(locatorRepoId, "locatorRepoId"); final I_M_Locator locator = InterfaceWrapperHelper.create( warehouseDAO.getLocatorByRepoId(locatorRepoId), I_M_Locator.class); // // If given locator is "afte...
@Override @NonNull public WarehouseId retrieveFirstQualityReturnWarehouseId() { final Set<WarehouseId> warehouseIds = retrieveQualityReturnWarehouseIds(); return warehouseIds.iterator().next(); } private Set<WarehouseId> retrieveQualityReturnWarehouseIds() { final Set<WarehouseId> warehouseIds = queryBL.cr...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\impl\HUWarehouseDAO.java
1
请在Spring Boot框架中完成以下Java代码
public void setApplicationPath(@Nullable String applicationPath) { this.applicationPath = applicationPath; } public enum Type { SERVLET, FILTER } public static class Filter { /** * Jersey filter chain order. */ private int order; public int getOrder() { return this.order; } public void...
} } public static class Servlet { /** * Load on startup priority of the Jersey servlet. */ private int loadOnStartup = -1; public int getLoadOnStartup() { return this.loadOnStartup; } public void setLoadOnStartup(int loadOnStartup) { this.loadOnStartup = loadOnStartup; } } }
repos\spring-boot-4.0.1\module\spring-boot-jersey\src\main\java\org\springframework\boot\jersey\autoconfigure\JerseyProperties.java
2
请完成以下Java代码
public @Nullable Object invoke(InvocationContext context) { validateRequiredParameters(context); Method method = this.operationMethod.getMethod(); @Nullable Object[] resolvedArguments = resolveArguments(context); ReflectionUtils.makeAccessible(method); return ReflectionUtils.invokeMethod(method, this.target, ...
private @Nullable Object[] resolveArguments(InvocationContext context) { return this.operationMethod.getParameters() .stream() .map((parameter) -> resolveArgument(parameter, context)) .toArray(); } private @Nullable Object resolveArgument(OperationParameter parameter, InvocationContext context) { Object...
repos\spring-boot-4.0.1\module\spring-boot-actuator\src\main\java\org\springframework\boot\actuate\endpoint\invoke\reflect\ReflectiveOperationInvoker.java
1
请完成以下Spring Boot application配置
# rocketmq 配置项,对应 RocketMQProperties 配置类 rocketmq: name-server: http://onsaddr.mq-internet-access.mq-internet.aliyuncs.com:80 # 阿里云 RocketMQ Namesrv access-channel: CLOUD # 设置使用阿里云 # Producer 配置项 producer: group: GID_PRODUCER_GROUP_YUNAI_TEST # 生产者分组 access-key: #
设置阿里云的 RocketMQ 的 access key !!!这里涉及到隐私,所以这里艿艿没有提供 secret-key: # 设置阿里云的 RocketMQ 的 secret key !!!这里涉及到隐私,所以这里艿艿没有提供
repos\SpringBoot-Labs-master\lab-31\lab-31-rocketmq-ons\src\main\resources\application.yaml
2
请完成以下Java代码
public void onQtyDeliveredChanged(final I_C_OrderLine orderLine) { // Do nothing if it's not eligible if (!isEligibleForTrackingQtyDelivered(orderLine)) { return; } // // Calculate QtyDelivered (diff) final BigDecimal qtyDeliveredNew = orderLine.getQtyDelivered(); final I_C_OrderLine orderLineOld =...
} final Timestamp date = CoalesceUtil.coalesceSuppliers( () -> orderLine.getDatePromised(), () -> orderLine.getC_Order().getDatePromised()); // Create the event to update PMM_Balance's QtyDelivered final PMMBalanceChangeEvent event = PMMBalanceChangeEvent.builder() .setC_BPartner_ID(orderLine.getC_B...
repos\metasfresh-new_dawn_uat\backend\de.metas.procurement.base\src\main\java\de\metas\procurement\base\order\interceptor\C_OrderLine.java
1
请完成以下Java代码
private static DocumentFilterDescriptor createHUIdsFilterDescriptor() { return DocumentFilterDescriptor.builder() .setFilterId(HU_IDS_FilterId) .setFrequentUsed(true) .addParameter(DocumentFilterParamDescriptor.builder() .fieldName(PARAM_ConsiderAttributes) .displayName(Services.get(IMsgBL.cl...
} final boolean considerAttributes = filter.getParameterValueAsBoolean(PARAM_ConsiderAttributes, false); final List<Integer> huIds = retrieveAvailableHuIdsForCurrentShipmentScheduleId(shipmentScheduleId, considerAttributes); if (huIds.isEmpty()) { return FilterSql.allowNoneWithComment("no M_HU_IDs"); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\picking\husToPick\HUsToPickViewFilters.java
1
请完成以下Java代码
public void removeVariableLocal(String variableName) { removeVariableLocal(variableName, getSourceActivityVariableScope()); } protected AbstractVariableScope getSourceActivityVariableScope() { return this; } protected void removeVariableLocal(String variableName, AbstractVariableScope sourceActivityEx...
} public ELContext getCachedElContext() { return cachedElContext; } public void setCachedElContext(ELContext cachedElContext) { this.cachedElContext = cachedElContext; } @Override public void dispatchEvent(VariableEvent variableEvent) { // default implementation does nothing } }
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\core\variable\scope\AbstractVariableScope.java
1
请完成以下Java代码
public class ExchangeBuilder extends BaseExchangeBuilder<ExchangeBuilder> { /** * Construct an instance of the appropriate type. * @param name the exchange name * @param type the type name * @since 1.6.7 * @see ExchangeTypes */ public ExchangeBuilder(String name, String type) { super(name, type); } ...
*/ public static ConsistentHashExchangeBuilder consistentHashExchange(String name) { return new ConsistentHashExchangeBuilder(name); } /** * An {@link ExchangeBuilder} extension for the {@link ConsistentHashExchange}. * * @since 3.2 */ public static final class ConsistentHashExchangeBuilder extends BaseE...
repos\spring-amqp-main\spring-amqp\src\main\java\org\springframework\amqp\core\ExchangeBuilder.java
1
请完成以下Java代码
public void setDescription (String Description) { set_Value (COLUMNNAME_Description, Description); } /** Get Description. @return Optional short description of the record */ public String getDescription () { return (String)get_Value(COLUMNNAME_Description); } /** Set Increment. @param IncrementNo ...
/** Get Prefix. @return Prefix before the sequence number */ public String getPrefix () { return (String)get_Value(COLUMNNAME_Prefix); } /** Set Start No. @param StartNo Starting number/position */ public void setStartNo (int StartNo) { set_Value (COLUMNNAME_StartNo, Integer.valueOf(StartNo)); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_LotCtl.java
1
请完成以下Java代码
public boolean contains(String jobId) { return acquiredJobs.contains(jobId); } public int size() { return acquiredJobs.size(); } public void removeJobId(String id) { numberOfJobsFailedToLock++; acquiredJobs.remove(id); Iterator<List<String>> batchIterator = acquiredJobBatches.iterator();...
if(batch.isEmpty()) { batchIterator.remove(); } } } public int getNumberOfJobsFailedToLock() { return numberOfJobsFailedToLock; } public int getNumberOfJobsAttemptedToAcquire() { return numberOfJobsAttemptedToAcquire; } }
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\jobexecutor\AcquiredJobs.java
1
请完成以下Spring Boot application配置
spring: #数据库配置 datasource: driver-class-name: com.mysql.jdbc.Driver url: jdbc:mysql://localhost:3306/test username: root password: root #jpa配置 jpa: database: mysql show-sql: true generate-ddl: true hibernate:
ddl-auto: update #mongo配置 data: mongodb: database: test uri: mongodb://localhost:27017
repos\spring-boot-leaning-master\2.x_data\2-3 Spring Boot 和 MongodDB 多数据源,混合数据源的使用\spring-boot-multi-mysql-mongodb\src\main\resources\application.yml
2
请完成以下Java代码
public static MCashBook get(Properties ctx, int C_CashBook_ID, String trxName) { Integer key = new Integer (C_CashBook_ID); MCashBook retValue = (MCashBook) s_cache.get (key); if (retValue != null) return retValue; retValue = new MCashBook (ctx, C_CashBook_ID, trxName); if (retValue.get_ID () != 0) s_c...
* @param ctx context * @param C_CashBook_ID id * @param trxName transaction */ public MCashBook (Properties ctx, int C_CashBook_ID, String trxName) { super (ctx, C_CashBook_ID, trxName); } // MCashBook /** * Load Constructor * @param ctx context * @param rs result set * @param trxName transaction ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\MCashBook.java
1
请完成以下Java代码
public class RegisterRequestDto { private String username; private String email; private String password; private Role role; public RegisterRequestDto() { } public RegisterRequestDto(String username, String email, String password, Role role) { this.username = username; this...
} public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public Role getRole() { return role; } public void setRole(Role role) { this.role = role; } }
repos\tutorials-master\spring-security-modules\spring-security-authorization\spring-security-url-http-method-auth\src\main\java\com\baeldung\springsecurity\dto\request\RegisterRequestDto.java
1
请在Spring Boot框架中完成以下Java代码
public void setTotalNum(Integer totalNum) { this.totalNum = totalNum; } /** * 最后ID * * @return */ public Long getLastId() { return lastId; } /** * 最后ID * * @return */ public void setLastId(Long lastId) { this.lastId = lastId; }
/** * 风险预存期 */ public Integer getRiskDay() { return riskDay; } /** * 风险预存期 */ public void setRiskDay(Integer riskDay) { this.riskDay = riskDay; } }
repos\roncoo-pay-master\roncoo-pay-service\src\main\java\com\roncoo\pay\account\vo\DailyCollectAccountHistoryVo.java
2
请完成以下Java代码
public void setLoginName(String loginName) { this.loginName = loginName; } public void setNickName(String nickName) { this.nickName = nickName; } public ShiroUser(Long userId, String loginName, String nickName) { this.userId = userId; this.loginName = loginName; ...
public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } ShiroUser other = (ShiroUser) obj; if (loginName == null) { ...
repos\springBoot-master\springboot-shiro2\src\main\java\cn\abel\rest\shiro\ShiroUser.java
1
请完成以下Java代码
protected ThrowMessageDelegate createThrowMessageDelegate(MessageEventDefinition messageEventDefinition) { Map<String, List<ExtensionAttribute>> attributes = messageEventDefinition.getAttributes(); return checkClassDelegate(attributes) .map(this::createThrowMessageJavaDelegate) ...
} protected Optional<String> checkClassDelegate(Map<String, List<ExtensionAttribute>> attributes) { return getAttributeValue(attributes, "class"); } protected Optional<String> checkDelegateExpression(Map<String, List<ExtensionAttribute>> attributes) { return getAttributeValue(attributes, "...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\parser\factory\DefaultActivityBehaviorFactory.java
1
请完成以下Java代码
public class RelatedDocumentsPermissionsFactory { public static RelatedDocumentsPermissions ofRolePermissions(@NonNull final IUserRolePermissions rolePermissions) { return new RoleBasedRelatedDocumentsPermissions(rolePermissions); } public static RelatedDocumentsPermissions allowAll() { return AllowAllRelated...
{ return sql; } } @ToString private static class RoleBasedRelatedDocumentsPermissions implements RelatedDocumentsPermissions { private final IUserRolePermissions rolePermissions; private RoleBasedRelatedDocumentsPermissions(@NonNull final IUserRolePermissions rolePermissions) { this.rolePermissions ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\document\references\related_documents\RelatedDocumentsPermissionsFactory.java
1
请在Spring Boot框架中完成以下Java代码
public class BPartnerQuery { BPartnerId bPartnerId; ExternalId externalId; String bpartnerValue; String bpartnerName; String glnLookupLabel; ImmutableSet<GLN> glns; /** * If there are multiple orgIds, they are {@code OR}ed. * Note that this is is not required for security reasons. */ @Singular Immutable...
this.userSalesRepSet = userSalesRepSet; validate(); } private void validate() { if (isEmpty()) { throw new AdempiereException("At least one of the given bpartnerValue, bpartnerName, glns or externalId needs to be non-empty: " + this); } } public boolean isEmpty() { return bPartnerId == null &&...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\bpartner\service\BPartnerQuery.java
2
请完成以下Java代码
public ProcessPreconditionsResolution checkPreconditionsApplicable(@NonNull final IProcessPreconditionsContext context) { final SelectionSize selectionSize = context.getSelectionSize(); if (selectionSize.isNoSelection()) { return ProcessPreconditionsResolution.rejectBecauseNoSelection(); } if (selectionS...
.createQueryBuilder(I_C_Doc_Outbound_Log.class) .addOnlyActiveRecordsFilter() .filter(filter) .create() .iterateAndStream() .filter(this::hasAttachmentToStore); return stream.iterator(); } private boolean hasAttachmentToStore(@NonNull final I_C_Doc_Outbound_Log docoutBoundLogRecord) { final...
repos\metasfresh-new_dawn_uat\backend\de.metas.document.archive\de.metas.document.archive.base\src\main\java\de\metas\document\archive\storage\attachments\process\C_Doc_Outbound_Log_StoreAttachments.java
1
请完成以下Java代码
private final String createDisplayName(final I_M_HU hu) { final StringBuilder sb = new StringBuilder(); final String huDisplayName = handlingUnitsBL.getDisplayName(hu); sb.append(huDisplayName); final I_M_HU parentHU = handlingUnitsDAO.retrieveParent(hu); if (parentHU != null) { final String parentHUD...
@Override public List<IHUDocumentLine> getLines() { return documentLinesRO; } @Override public IHUDocument getReversal() { // Always null, there is no reversal return null; } @Override public I_M_HU getInnerHandlingUnit() { return innerHU; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\document\impl\HandlingUnitHUDocument.java
1
请完成以下Java代码
public class MessageCorrelationResultDto { private MessageCorrelationResultType resultType; //restul type execution private ExecutionDto execution; //result type process definition private ProcessInstanceDto processInstance; public static MessageCorrelationResultDto fromMessageCorrelationResult(MessageC...
return resultType; } public void setResultType(MessageCorrelationResultType resultType) { this.resultType = resultType; } public ExecutionDto getExecution() { return execution; } public void setExecution(ExecutionDto execution) { this.execution = execution; } public ProcessInstanceDto ge...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\message\MessageCorrelationResultDto.java
1
请完成以下Java代码
public static boolean isQueryProjectIDServer(final String TableName, final int AD_Client_ID) { if (isAdempiereSys(AD_Client_ID)) { s_log.debug("Returning 'false' because isAdempiereSys()==true for AD_Client_ID {}", AD_Client_ID); return false; } if (Ini.getRunMode() == RunMode.BACKEND && !MigrationScript...
|| isQueryProjectIDServer(TableName, AD_Client_ID); } /** * @return true if the external ID system is enabled (e.g. centralized ID server, project ID server) */ public static boolean isExternalIDSystemEnabled() { final ISysConfigBL sysConfigBL = Services.get(ISysConfigBL.class); if (sysConfigBL.getBoolean...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\MSequence.java
1
请完成以下Java代码
public void exportStatusMassUpdate( @NonNull final Map<PPOrderId, APIExportStatus> exportStatuses) { if (exportStatuses.isEmpty()) { return; } final HashMultimap<APIExportStatus, PPOrderId> orderIdsByExportStatus = HashMultimap.create(); for (final Map.Entry<PPOrderId, APIExportStatus> entry : exportS...
.addEqualsFilter(I_PP_OrderCandidate_PP_Order.COLUMNNAME_PP_Order_ID, ppOrderId.getRepoId()) .create() .listImmutable(I_PP_OrderCandidate_PP_Order.class); } @NonNull public ImmutableList<I_PP_Order> getByProductBOMId(@NonNull final ProductBOMId productBOMId) { return queryBL .createQueryBuilder(I_PP_...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing\src\main\java\org\eevolution\api\impl\PPOrderDAO.java
1
请完成以下Java代码
private void addPostProcessor(BeanDefinitionRegistry registry, Set<String> packagesToScan) { ServletComponentRegisteringPostProcessorBeanDefinition definition = new ServletComponentRegisteringPostProcessorBeanDefinition( packagesToScan); registry.registerBeanDefinition(BEAN_NAME, definition); } private Set<S...
ServletComponentRegisteringPostProcessorBeanDefinition(Collection<String> packageNames) { setBeanClass(ServletComponentRegisteringPostProcessor.class); setRole(BeanDefinition.ROLE_INFRASTRUCTURE); addPackageNames(packageNames); } @Override public Supplier<?> getInstanceSupplier() { return () -> new S...
repos\spring-boot-4.0.1\module\spring-boot-web-server\src\main\java\org\springframework\boot\web\server\servlet\context\ServletComponentScanRegistrar.java
1
请完成以下Java代码
public List<I_C_RfQResponseLine> retrieveActiveResponseLines(final Properties ctx, final int bpartnerId) { return retrieveActiveResponseLinesQuery(ctx) .addEqualsFilter(I_C_RfQResponseLine.COLUMNNAME_C_BPartner_ID, bpartnerId) .create() .list(I_C_RfQResponseLine.class); } @Override public List<I_C_Rf...
public List<I_C_RfQResponseLine> retrieveResponseLines(final I_C_RfQResponse rfqResponse) { return Services.get(IRfqDAO.class).retrieveResponseLines(rfqResponse, I_C_RfQResponseLine.class); } @Override public List<I_C_RfQResponseLineQty> retrieveResponseLineQtys(de.metas.rfq.model.I_C_RfQResponseLine rfqResponse...
repos\metasfresh-new_dawn_uat\backend\de.metas.procurement.base\src\main\java\de\metas\procurement\base\impl\PMM_RfQ_DAO.java
1