instruction
string
input
string
output
string
source_file
string
priority
int64
请在Spring Boot框架中完成以下Java代码
public class ServiceBeanIdConflictProcessor implements MergedBeanDefinitionPostProcessor, DisposableBean, PriorityOrdered { /** * The key is the class names of interfaces that were exported by {@link ServiceBean} * The value is bean names of {@link ServiceBean} or {@link ServiceConfig}. */ priva...
@Override public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException { return bean; } /** * Keep the order being higher than {@link CommonAnnotationBeanPostProcessor#getOrder()} that is * {@link Ordered#LOWEST_PRECEDENCE} * * @return {@link ...
repos\dubbo-spring-boot-project-master\dubbo-spring-boot-compatible\autoconfigure\src\main\java\org\apache\dubbo\spring\boot\beans\factory\config\ServiceBeanIdConflictProcessor.java
2
请完成以下Java代码
public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getBody() { return body; } public void ...
if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Foo other = (Foo) obj; if (id == null) { if (other.id != null) return false; } else if (!id.equals(other.id...
repos\tutorials-master\spring-boot-modules\spring-boot-springdoc-2\src\main\java\com\baeldung\restdocopenapi\Foo.java
1
请在Spring Boot框架中完成以下Java代码
public ConfigurationProperty getProperty() { return this.property; } /** * Return the {@link ConfigDataResource} of the invalid property or {@code null} if * the source was not loaded from {@link ConfigData}. * @return the config data location or {@code null} */ public @Nullable ConfigDataResource getLoca...
if (property != null) { throw new InvalidConfigDataPropertyException(property, true, null, contributor.getResource()); } }); } } } private static String getMessage(ConfigurationProperty property, boolean profileSpecific, @Nullable ConfigurationPropertyName replacement, @Nullable ConfigDataReso...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\context\config\InvalidConfigDataPropertyException.java
2
请在Spring Boot框架中完成以下Java代码
public String getDISCOUNTPERCENT() { return discountpercent; } /** * Sets the value of the discountpercent property. * * @param value * allowed object is * {@link String } * */ public void setDISCOUNTPERCENT(String value) { this.discountperce...
public void setDISCOUNTAMOUNT(String value) { this.discountamount = value; } /** * Gets the value of the paymentdesc property. * * @return * possible object is * {@link String } * */ public String getPAYMENTDESC() { return paymentdesc; } ...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_stepcom_desadv\de\metas\edi\esb\jaxb\stepcom\desadv\HPAYT1.java
2
请完成以下Java代码
public final boolean equals(final Object obj) { if (this == obj) { return true; } if (obj instanceof ModelInterceptor2ModelValidatorWrapper) { final ModelInterceptor2ModelValidatorWrapper wrapper = (ModelInterceptor2ModelValidatorWrapper)obj; return interceptor.equals(wrapper.interceptor); } el...
interceptor.onDocValidate(po, timing); return null; } @Override public final String login(final int AD_Org_ID, final int AD_Role_ID, final int AD_User_ID) { interceptor.onUserLogin(AD_Org_ID, AD_Role_ID, AD_User_ID); return null; } @Override public void onUserLogin(final int AD_Org_ID, final int AD_Role_...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\modelvalidator\ModelInterceptor2ModelValidatorWrapper.java
1
请完成以下Java代码
public Date calculateRemovalTime(HistoricDecisionInstanceEntity historicRootDecisionInstance, DecisionDefinition decisionDefinition) { Integer historyTimeToLive = decisionDefinition.getHistoryTimeToLive(); if (historyTimeToLive != null) { Date evaluationTime = historicRootDecisionInstance.getEvaluationT...
protected Integer getTTLByBatchOperation(String batchOperation) { return Context.getCommandContext() .getProcessEngineConfiguration() .getParsedBatchOperationsForHistoryCleanup() .get(batchOperation); } protected boolean isProcessInstanceRunning(HistoricProcessInstanceEventEntity historicProc...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\history\DefaultHistoryRemovalTimeProvider.java
1
请完成以下Java代码
protected String getTrxProperyName() { return COLLECTOR_TRXPROPERTYNAME; } @Override protected String extractTrxNameFromItem(@NonNull final TableRecordReference item) { final Object model = item.getModel(Object.class); return InterfaceWrapperHelper.getTrxName(model); } @Override protected List<TableReco...
return new ArrayList<>(); } @Override protected void collectItem(@NonNull final List<TableRecordReference> collector, @NonNull final TableRecordReference item) { collector.add(item); } @Override protected void processCollector(@NonNull final List<TableRecordReference> collector) { trxManager.runInNewTrx((...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\invoicecandidate\modelvalidator\ilhandler\CreateCandidatesOnCommitCollector.java
1
请在Spring Boot框架中完成以下Java代码
public class ExternalConnector { private static final String PATH_BY_ID = "/data/{id}"; private final WebClient webClient; public Mono<String> getData(String stockId) { return webClient.get() .uri(PATH_BY_ID, stockId) .accept(MediaType.APPLICATION_JSON) .retrie...
.retrieve() .bodyToMono(String.class) .retryWhen(Retry.fixedDelay(3, Duration.ofSeconds(2))); } public Mono<String> getDataWithRetryBackoff(String stockId) { return webClient.get() .uri(PATH_BY_ID, stockId) .accept(MediaType.APPLICATION_JSON) ...
repos\tutorials-master\spring-reactive-modules\spring-webflux\src\main\java\com\baeldung\spring\retry\ExternalConnector.java
2
请完成以下Java代码
public long getId() { return id; } public void setId(long id) { this.id = id; } public String getUserName() { return UserName; } public void setUserName(String userName) { UserName = userName; } public String getUserPassword() { return UserPass...
public String getRoles() { return roles; } public void setRoles(String roles) { this.roles = roles; } public String getPermission() { return permission; } public void setPermission(String permission) { this.permission = permission; } }
repos\SpringBoot-Projects-FullStack-master\Part-8 Spring Boot Real Projects\9.PosilkaAdmin\src\main\java\posilka\admin\model\User.java
1
请完成以下Java代码
public class Sentence implements Comparable { /** * 词语id */ private int[] words; /** * 词性 */ private int[] tags; private int[] brownCluster4thPrefix; private int[] brownCluster6thPrefix; private int[] brownClusterFullString; public Sentence(ArrayList<Integer> token...
if (sentence.words.length != words.length) return false; for (int i = 0; i < sentence.words.length; i++) { if (sentence.words[i] != words[i]) return false; if (sentence.tags[i] != tags[i]) return false; ...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\dependency\perceptron\structures\Sentence.java
1
请在Spring Boot框架中完成以下Java代码
public void setHistogramFlavor(HistogramFlavor histogramFlavor) { this.histogramFlavor = histogramFlavor; } public int getMaxScale() { return this.maxScale; } public void setMaxScale(int maxScale) { this.maxScale = maxScale; } public int getMaxBucketCount() { return this.maxBucketCount; } public voi...
* Histogram type when histogram publishing is enabled. */ private @Nullable HistogramFlavor histogramFlavor; public @Nullable Integer getMaxBucketCount() { return this.maxBucketCount; } public void setMaxBucketCount(@Nullable Integer maxBucketCount) { this.maxBucketCount = maxBucketCount; } publ...
repos\spring-boot-4.0.1\module\spring-boot-micrometer-metrics\src\main\java\org\springframework\boot\micrometer\metrics\autoconfigure\export\otlp\OtlpMetricsProperties.java
2
请完成以下Java代码
public String getPassword() { return password; } @Override public void setPassword(String password) { this.password = password; } @Override public String getName() { return key; } @Override public String getUsername() { return value; } @Ove...
} @Override public void setParentId(String parentId) { this.parentId = parentId; } @Override public Map<String, String> getDetails() { return details; } @Override public void setDetails(Map<String, String> details) { this.details = details; } }
repos\flowable-engine-main\modules\flowable-idm-engine\src\main\java\org\flowable\idm\engine\impl\persistence\entity\IdentityInfoEntityImpl.java
1
请在Spring Boot框架中完成以下Java代码
public static class Pageable { /** * Page index parameter name. */ private String pageParameter = "page"; /** * Page size parameter name. */ private String sizeParameter = "size"; /** * Whether to expose and assume 1-based page number indexes. Defaults to "false", * meaning a page number ...
} public int getDefaultPageSize() { return this.defaultPageSize; } public void setDefaultPageSize(int defaultPageSize) { this.defaultPageSize = defaultPageSize; } public int getMaxPageSize() { return this.maxPageSize; } public void setMaxPageSize(int maxPageSize) { this.maxPageSize = maxPa...
repos\spring-boot-4.0.1\module\spring-boot-data-commons\src\main\java\org\springframework\boot\data\autoconfigure\web\DataWebProperties.java
2
请在Spring Boot框架中完成以下Java代码
public void setBeanFactory(BeanFactory beanFactory) throws BeansException { this.beanFactory = beanFactory; } } static class Jsr250MethodSecurityMetadataSourceBeanFactory extends AbstractGrantedAuthorityDefaultsBeanFactory { private Jsr250MethodSecurityMetadataSource source = new Jsr250MethodSecurityMetadat...
} /** * Delays setting a bean of a given name to be lazyily initialized until after all the * beans are registered. * * @author Rob Winch * @since 3.2 */ private static final class LazyInitBeanDefinitionRegistryPostProcessor implements BeanDefinitionRegistryPostProcessor { private final String bean...
repos\spring-security-main\config\src\main\java\org\springframework\security\config\method\GlobalMethodSecurityBeanDefinitionParser.java
2
请完成以下Java代码
public void patchRow(final IEditableView.RowEditingContext ctx, final List<JSONDocumentChangedEvent> fieldChangeRequests) { rowsHolder.changeRowById(ctx.getRowId(), row -> applyChanges(row, fieldChangeRequests)); headerPropertiesHolder.setValue(null); ViewChangesCollector.getCurrentOrAutoflush().collectHeaderPr...
rowsHolder.changeRowsByIds(rowIds, row -> row.withSelected(true)); headerPropertiesHolder.setValue(null); } public boolean hasSelectedRows() { return rowsHolder.anyMatch(OIRow::isSelected); } public void clearUserInput() { rowsHolder.changeRowsByIds(DocumentIdsSelection.ALL, OIRow::withUserInputCleared); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.webui\src\main\java\de\metas\acct\gljournal_sap\select_open_items\OIViewData.java
1
请完成以下Java代码
public void setId(Integer id) { this.id = id; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getContent() { return content; } public void setContent(String content) { this.c...
return imagePath; } public void setImagePath(String imagePath) { this.imagePath = imagePath; } public Integer getReadSum() { return readSum; } public void setReadSum(Integer readSum) { this.readSum = readSum; } }
repos\springBoot-master\springboot-dynamicDataSource\src\main\java\cn\abel\bean\News.java
1
请在Spring Boot框架中完成以下Java代码
public class User { @Id @GeneratedValue private Long id; private String name; private String email; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(St...
this.email = email; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; User user = (User) o; return Objects.equals(id, user.id) && Objects.equals(name, user.name) && Obj...
repos\tutorials-master\persistence-modules\spring-data-jpa-repo\src\main\java\com\baeldung\spring\data\persistence\customrepository\model\User.java
2
请完成以下Java代码
public class SwitchStatement { private static final Logger LOGGER = LoggerFactory.getLogger(SwitchStatement.class); public String exampleOfIF(String animal) { String result; if (animal.equals("DOG") || animal.equals("CAT")) { result = "domestic animal"; } else if (animal....
switch (animal) { case "DOG": LOGGER.debug("domestic animal"); result = "domestic animal"; default: LOGGER.debug("unknown animal"); result = "unknown animal"; } return result; } public String constantCaseValue(String animal) { ...
repos\tutorials-master\core-java-modules\core-java-lang-syntax\src\main\java\com\baeldung\switchstatement\SwitchStatement.java
1
请完成以下Java代码
public class RfqTopicBL implements IRfqTopicBL { @Override public boolean isProductIncluded(final I_C_RfQ_TopicSubscriber subscriber, final int M_Product_ID) { final List<I_C_RfQ_TopicSubscriberOnly> restrictions = Services.get(IRfqTopicDAO.class).retrieveRestrictions(subscriber); // No restrictions if (restri...
return true; } // Product Category if (Services.get(IProductBL.class).isProductInCategory(ProductId.ofRepoIdOrNull(M_Product_ID), ProductCategoryId.ofRepoIdOrNull(restriction.getM_Product_Category_ID()))) { return true; } } // must be on "positive" list return false; } // isIncluded }
repos\metasfresh-new_dawn_uat\backend\de.metas.rfq\src\main\java\de\metas\rfq\impl\RfqTopicBL.java
1
请在Spring Boot框架中完成以下Java代码
public final class ServletWebSecurityAutoConfiguration { @Configuration(proxyBeanMethods = false) @ConditionalOnBean(DispatcherServletPath.class) @ConditionalOnClass(DispatcherServletPath.class) static class PathPatternRequestMatcherBuilderConfiguration { @Bean @ConditionalOnMissingBean PathPatternRequestMa...
http.formLogin(withDefaults()); http.httpBasic(withDefaults()); return http.build(); } } /** * Adds the {@link EnableWebSecurity @EnableWebSecurity} annotation if Spring Security * is on the classpath. This will make sure that the annotation is present with * default security auto-configuration and al...
repos\spring-boot-4.0.1\module\spring-boot-security\src\main\java\org\springframework\boot\security\autoconfigure\web\servlet\ServletWebSecurityAutoConfiguration.java
2
请完成以下Java代码
public int getC_Payment_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_C_Payment_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Line No. @param Line Unique line for this document */ @Override public void setLine (int Line) { set_Value (COLUMNNAME_Line, Integer.valueOf(Lin...
return "Y".equals(oo); } return false; } /** Set Referenznummer. @param ReferenceNo Ihre Kunden- oder Lieferantennummer beim Geschäftspartner */ @Override public void setReferenceNo (java.lang.String ReferenceNo) { set_Value (COLUMNNAME_ReferenceNo, ReferenceNo); } /** Get Referenznummer. @retu...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.base\src\main\java-gen\de\metas\banking\model\X_C_BankStatementLine_Ref.java
1
请完成以下Java代码
public void setProcessing (final boolean Processing) { set_Value (COLUMNNAME_Processing, Processing); } @Override public boolean isProcessing() { return get_ValueAsBoolean(COLUMNNAME_Processing); } @Override public void setRecord_ID (final int Record_ID) { if (Record_ID < 0) set_Value (COLUMNNAME_...
} /** * WFState AD_Reference_ID=305 * Reference name: WF_Instance State */ public static final int WFSTATE_AD_Reference_ID=305; /** NotStarted = ON */ public static final String WFSTATE_NotStarted = "ON"; /** Running = OR */ public static final String WFSTATE_Running = "OR"; /** Suspended = OS */ public...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_WF_Activity.java
1
请在Spring Boot框架中完成以下Java代码
public String getIsDeliveryClosed() { return isDeliveryClosed; } /** * Sets the value of the isDeliveryClosed property. * * @param value * allowed object is * {@link String } * */ public void setIsDeliveryClosed(String value) { this.isDeliver...
} /** * Gets the value of the gtintu property. * * @return * possible object is * {@link String } * */ public String getGTINTU() { return gtintu; } /** * Sets the value of the gtintu property. * * @param value * allowed ...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_metasfreshinhousev2\de\metas\edi\esb\jaxb\metasfreshinhousev2\EXPMInOutDesadvLineVType.java
2
请完成以下Java代码
private List<OLCandCreateRequest> toOLCandCreateRequestsList(final MSV3OrderSyncRequest request) { final IProductDAO productDAO = Services.get(IProductDAO.class); final IProductBL productBL = Services.get(IProductBL.class); final IInputDataSourceDAO inputDataSourceDAO = Services.get(IInputDataSourceDAO.class); ...
} } return olCandRequests; } private static BPartnerInfo toOLCandBPartnerInfo(final BPartnerId bpartnerId) { if (bpartnerId == null) { return null; } final de.metas.bpartner.BPartnerId bPartnerId = de.metas.bpartner.BPartnerId.ofRepoIdOrNull(bpartnerId.getBpartnerId()); final BPartnerLocationId b...
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\listeners\OrderCreateRequestRabbitMQListener.java
1
请完成以下Java代码
public void setDocumentNo (final @Nullable java.lang.String DocumentNo) { set_Value (COLUMNNAME_DocumentNo, DocumentNo); } @Override public java.lang.String getDocumentNo() { return get_ValueAsString(COLUMNNAME_DocumentNo); } @Override public void setHelp (final @Nullable java.lang.String Help) { set_...
@Override public void setRevision (final @Nullable java.lang.String Revision) { set_Value (COLUMNNAME_Revision, Revision); } @Override public java.lang.String getRevision() { return get_ValueAsString(COLUMNNAME_Revision); } @Override public void setValidFrom (final @Nullable java.sql.Timestamp ValidFrom...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\eevolution\model\X_DD_NetworkDistribution.java
1
请在Spring Boot框架中完成以下Java代码
public class C_OrderLine { private final OrderCostService orderCostService; public C_OrderLine( @NonNull final OrderCostService orderCostService) { this.orderCostService = orderCostService; } @NonNull private static OrderAndLineId extractOrderAndLineId(final I_C_OrderLine record) {return OrderAndLineId.ofR...
final OrderCostDetailOrderLinePart lineInfo = OrderCostDetailOrderLinePart.ofOrderLine(record); if (lineInfo.equals(lineInfoBeforeChanges)) { return null; // no changes } return lineInfo; } @ModelChange(timings = ModelValidator.TYPE_BEFORE_DELETE) public void onBeforeDelete(final I_C_OrderLine record) ...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\order\costs\interceptor\C_OrderLine.java
2
请完成以下Java代码
public String getFailedActivityId() { return failedActivityId; } public String getCauseIncidentId() { return causeIncidentId; } public String getRootCauseIncidentId() { return rootCauseIncidentId; } public String getConfiguration() { return configuration; } public String getIncidentM...
dto.executionId = incident.getExecutionId(); dto.incidentTimestamp = incident.getIncidentTimestamp(); dto.incidentType = incident.getIncidentType(); dto.activityId = incident.getActivityId(); dto.failedActivityId = incident.getFailedActivityId(); dto.causeIncidentId = incident.getCauseIncidentId(); ...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\runtime\IncidentDto.java
1
请完成以下Java代码
public final class OAuth2TokenClaimNames { /** * {@code iss} - the Issuer claim identifies the principal that issued the OAuth 2.0 * Token */ public static final String ISS = "iss"; /** * {@code sub} - the Subject claim identifies the principal that is the subject of the * OAuth 2.0 Token */ public st...
/** * {@code iat} - The Issued at claim identifies the time at which the OAuth 2.0 Token * was issued */ public static final String IAT = "iat"; /** * {@code jti} - The ID claim provides a unique identifier for the OAuth 2.0 Token */ public static final String JTI = "jti"; private OAuth2TokenClaimNames(...
repos\spring-security-main\oauth2\oauth2-authorization-server\src\main\java\org\springframework\security\oauth2\server\authorization\token\OAuth2TokenClaimNames.java
1
请完成以下Java代码
public void writeComment(String data) throws XMLStreamException { writer.writeComment(data); } public void writeProcessingInstruction(String target) throws XMLStreamException { writer.writeProcessingInstruction(target); } public void writeProcessingInstruction(String target, String dat...
writer.writeCharacters(text); } public void writeCharacters(char[] text, int start, int len) throws XMLStreamException { writer.writeCharacters(text, start, len); } public String getPrefix(String uri) throws XMLStreamException { return writer.getPrefix(uri); } public void setP...
repos\Activiti-develop\activiti-core\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\DelegatingXMLStreamWriter.java
1
请完成以下Java代码
public String getCamundaPriority() { return camundaPriorityAttribute.getValue(this); } public void setCamundaPriority(String camundaPriority) { camundaPriorityAttribute.setValue(this, camundaPriority); } public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuild...
.namespace(CAMUNDA_NS) .build(); camundaDueDateAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_DUE_DATE) .namespace(CAMUNDA_NS) .build(); camundaFollowUpDateAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_FOLLOW_UP_DATE) .namespace(CAMUNDA_NS) .build(); c...
repos\camunda-bpm-platform-master\model-api\cmmn-model\src\main\java\org\camunda\bpm\model\cmmn\impl\instance\HumanTaskImpl.java
1
请在Spring Boot框架中完成以下Java代码
public @Nullable FieldNamingPolicy getFieldNamingPolicy() { return this.fieldNamingPolicy; } public void setFieldNamingPolicy(@Nullable FieldNamingPolicy fieldNamingPolicy) { this.fieldNamingPolicy = fieldNamingPolicy; } public @Nullable Boolean getPrettyPrinting() { return this.prettyPrinting; } public ...
* {@link com.google.gson.Strictness} that was introduced in Gson 2.11. To maximize * backwards compatibility, the Gson enum is not used directly. */ public enum Strictness { /** * Lenient compliance. */ LENIENT, /** * Strict compliance with some small deviations for legacy reasons. */ LEGACY_...
repos\spring-boot-4.0.1\module\spring-boot-gson\src\main\java\org\springframework\boot\gson\autoconfigure\GsonProperties.java
2
请在Spring Boot框架中完成以下Java代码
public class DubboRelaxedBinding2AutoConfiguration { public PropertyResolver dubboScanBasePackagesPropertyResolver(ConfigurableEnvironment environment) { ConfigurableEnvironment propertyResolver = new AbstractEnvironment() { @Override protected void customizePropertySources(MutableP...
*/ @ConditionalOnMissingBean(name = BASE_PACKAGES_BEAN_NAME) @Bean(name = BASE_PACKAGES_BEAN_NAME) public Set<String> dubboBasePackages(ConfigurableEnvironment environment) { PropertyResolver propertyResolver = dubboScanBasePackagesPropertyResolver(environment); return propertyResolver.getPr...
repos\dubbo-spring-boot-project-master\dubbo-spring-boot-autoconfigure\src\main\java\org\apache\dubbo\spring\boot\autoconfigure\DubboRelaxedBinding2AutoConfiguration.java
2
请完成以下Java代码
public JobDeclaration<BatchJobContext, MessageEntity> getJobDeclaration() { return JOB_DECLARATION; } protected MigrationBatchConfigurationJsonConverter getJsonConverterInstance() { return MigrationBatchConfigurationJsonConverter.INSTANCE; } @Override protected MigrationBatchConfiguration createJobC...
MigrationPlanExecutionBuilder executionBuilder = commandContext.getProcessEngineConfiguration() .getRuntimeService() .newMigration(migrationPlan) .processInstanceIds(batchConfiguration.getIds()); if (batchConfiguration.isSkipCustomListeners()) { executionBuilder.skipCustomListeners();...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\migration\batch\MigrationBatchJobHandler.java
1
请在Spring Boot框架中完成以下Java代码
public void setC_POS_Payment(final de.metas.pos.repository.model.I_C_POS_Payment C_POS_Payment) { set_ValueFromPO(COLUMNNAME_C_POS_Payment_ID, de.metas.pos.repository.model.I_C_POS_Payment.class, C_POS_Payment); } @Override public void setC_POS_Payment_ID (final int C_POS_Payment_ID) { if (C_POS_Payment_ID < ...
/** * Type AD_Reference_ID=541892 * Reference name: C_POS_JournalLine_Type */ public static final int TYPE_AD_Reference_ID=541892; /** CashPayment = CASH_PAY */ public static final String TYPE_CashPayment = "CASH_PAY"; /** CardPayment = CARD_PAY */ public static final String TYPE_CardPayment = "CARD_PAY"; ...
repos\metasfresh-new_dawn_uat\backend\de.metas.pos.base\src\main\java-gen\de\metas\pos\repository\model\X_C_POS_JournalLine.java
2
请完成以下Java代码
public int getSetupTimeReal() { return get_ValueAsInt(COLUMNNAME_SetupTimeReal); } @Override public void setSetupTimeRequiered (final int SetupTimeRequiered) { set_Value (COLUMNNAME_SetupTimeRequiered, SetupTimeRequiered); } @Override public int getSetupTimeRequiered() { return get_ValueAsInt(COLUMNN...
{ set_Value (COLUMNNAME_WaitingTime, WaitingTime); } @Override public int getWaitingTime() { return get_ValueAsInt(COLUMNNAME_WaitingTime); } @Override public void setYield (final int Yield) { set_Value (COLUMNNAME_Yield, Yield); } @Override public int getYield() { return get_ValueAsInt(COLUMNN...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\eevolution\model\X_PP_Order_Node.java
1
请完成以下Java代码
public ProducerRecord<String, String> onSend(ProducerRecord<String, String> record) { Headers headers = new RecordHeaders(); headers.add("traceId", UUID.randomUUID().toString().getBytes(Charset.forName("UTF8"))); // 修改消息 return new ProducerRecord<>(record.topic(), record.partition(), re...
@Override public void onAcknowledgement(RecordMetadata metadata, Exception exception) { if (Objects.isNull(exception)) { // TODO 出错了 } } /** * 关闭 interceptor,主要用于执行一些资源清理工作,只调用一次 */ @Override public void close() { System.out.println("==========close===...
repos\spring-boot-student-master\spring-boot-student-kafka\src\main\java\com\xiaolyuh\interceptor\TraceInterceptor.java
1
请完成以下Java代码
public class Foo implements Serializable { private long id; private String name; public Foo() { super(); } public Foo(final String name) { super(); this.name = name; } // API public long getId() { return id; } public void setId(final long i...
} if (getClass() != obj.getClass()) { return false; } final Foo other = (Foo) obj; if (name == null) { if (other.name != null) { return false; } } else if (!name.equals(other.name)) { return false; } ...
repos\tutorials-master\spring-security-modules\spring-security-web-mvc-custom\src\main\java\com\baeldung\web\dto\Foo.java
1
请完成以下Java代码
public static List<List<Integer>> combinations(List<Integer> inputSet, int k) { List<List<Integer>> results = new ArrayList<>(); combinationsInternal(inputSet, k, results, new ArrayList<>(), 0); return results; } private static void combinationsInternal( List<Integer> inputSet, in...
} private static void powerSetInternal( List<Character> set, List<List<Character>> powerSet, List<Character> accumulator, int index) { if (index == set.size()) { powerSet.add(new ArrayList<>(accumulator)); } else { accumulator.add(set.get(index)); powerSet...
repos\tutorials-master\algorithms-modules\algorithms-miscellaneous-5\src\main\java\com\baeldung\algorithms\combinatorics\Combinatorics.java
1
请完成以下Java代码
public void init() { Faker faker = new Faker(Locale.ENGLISH); final com.github.javafaker.Book book = faker.book(); this.items = IntStream.range(1, faker.random() .nextInt(10, 20)) .mapToObj(i -> new Book(i, book.title(), book.author(), book.genre())) .collect(...
public Optional<Book> getById(int id) { return this.items.stream() .filter(item -> id == item.getId()) .findFirst(); } public void save(int id, Book book) { IntStream.range(0, items.size()) .filter(i -> items.get(i) .getId() == id) ...
repos\tutorials-master\spring-web-modules\spring-5-mvc\src\main\java\com\baeldung\idc\BookRepository.java
1
请完成以下Java代码
public int getC_DunningLevel_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_C_DunningLevel_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Dunning Run. @param C_DunningRun_ID Dunning Run */ public void setC_DunningRun_ID (int C_DunningRun_ID) { if (C_DunningRun_ID < 1) ...
*/ 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. @param Processing Process Now */ public void setProcessing (...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_DunningRun.java
1
请完成以下Java代码
private String message() { return "This is a Local Class within if clause"; } } Local local = new Local(); return local.message(); } else return "Welcome to " + name; } // Anonymous Inner class extending a class pub...
return "Inner class within an interface"; } } // Nested interface within an interfaces interface HelloSomeone { public String greet(String name); } // Enum within an interface enum Directon { NORTH, SOUTH, EAST, WEST; } } enum Level { LOW, MEDIUM, HIGH; } enu...
repos\tutorials-master\core-java-modules\core-java-lang-oop-types-3\src\main\java\com\baeldung\classfile\Outer.java
1
请完成以下Java代码
private Integer getAttributeValueIdOrSpecialCodeOrNull() { if (type == AttributeKeyPartType.AttributeValueId) { return attributeValueId.getRepoId(); } else if (type == AttributeKeyPartType.All || type == AttributeKeyPartType.Other || type == AttributeKeyPartType.None) { return specialCode; } ...
{ if (i1 == null) { return +1; } else if (i2 == null) { return -1; } else { return i1 - i2; } } }
repos\metasfresh-new_dawn_uat\backend\de.metas.material\event\src\main\java\de\metas\material\event\commons\AttributesKeyPart.java
1
请完成以下Java代码
public Builder addDetail(@Nullable final DocumentLayoutDetailDescriptor detail) { if (detail == null) { return this; } if (detail.isEmpty()) { logger.trace("Skip adding detail to layout because it is empty; detail={}", detail); return this; } details.add(detail); return this; }...
} public Builder putDebugProperty(final String name, final String value) { debugProperties.put(name, value); return this; } public Builder setStopwatch(final Stopwatch stopwatch) { this.stopwatch = stopwatch; return this; } } }
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\descriptor\DocumentLayoutDescriptor.java
1
请在Spring Boot框架中完成以下Java代码
public List<SysPermissionDataRule> getPermRuleListByDeptIdAndPermId(String departId, String permissionId) { SysDepartPermission departPermission = this.getOne(new QueryWrapper<SysDepartPermission>().lambda().eq(SysDepartPermission::getDepartId, departId).eq(SysDepartPermission::getPermissionId, permissionId)); ...
} if(oConvertUtils.isEmpty(main)) { return Arrays.asList(diff.split(",")); } String[] mainArr = main.split(","); String[] diffArr = diff.split(","); Map<String, Integer> map = new HashMap(5); for (String string : mainArr) { map.put(string, 1); ...
repos\JeecgBoot-main\jeecg-boot\jeecg-module-system\jeecg-system-biz\src\main\java\org\jeecg\modules\system\service\impl\SysDepartPermissionServiceImpl.java
2
请完成以下Java代码
public void setPosted (final boolean Posted) { set_Value (COLUMNNAME_Posted, Posted); } @Override public boolean isPosted() { return get_ValueAsBoolean(COLUMNNAME_Posted); } @Override public void setPostingError_Issue_ID (final int PostingError_Issue_ID) { if (PostingError_Issue_ID < 1) set_Value ...
@Override public org.compiere.model.I_S_TimeExpenseLine getS_TimeExpenseLine() { return get_ValueAsPO(COLUMNNAME_S_TimeExpenseLine_ID, org.compiere.model.I_S_TimeExpenseLine.class); } @Override public void setS_TimeExpenseLine(final org.compiere.model.I_S_TimeExpenseLine S_TimeExpenseLine) { set_ValueFromPO(...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_ProjectIssue.java
1
请完成以下Java代码
static Builder newBuilder() { return new Builder(); } /** * Standard Builder to create the Arbiter. */ static final class Builder implements org.apache.logging.log4j.core.util.Builder<SpringProfileArbiter> { private static final Logger statusLogger = StatusLogger.getLogger(); @PluginBuilderAttribute @...
} @Override public SpringProfileArbiter build() { Environment environment = Log4J2LoggingSystem.getEnvironment(this.loggerContext); if (environment == null) { statusLogger.debug("Creating Arbiter without a Spring Environment"); } String name = this.configuration.getStrSubstitutor().replace(this.nam...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\logging\log4j2\SpringProfileArbiter.java
1
请完成以下Java代码
public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getGenre() { return genre; } public void setG...
public void setAge(int age) { this.age = age; } public Blob getAvatar() { return avatar; } public void setAvatar(Blob avatar) { this.avatar = avatar; } public Clob getBiography() { return biography; } public void setBiography(Clob biography) { ...
repos\Hibernate-SpringBoot-master\HibernateSpringBootMappingLobToClobAndBlob\src\main\java\com\bookstore\entity\Author.java
1
请完成以下Java代码
public Collection<Object> values() { return variableScope.getVariables().values(); } @Override public void putAll(Map<? extends String, ? extends Object> toMerge) { throw new UnsupportedOperationException(); } @Override public Object remove(Object key) { if (UNSTORED_KE...
} @Override public boolean containsValue(Object value) { throw new UnsupportedOperationException(); } @Override public boolean isEmpty() { throw new UnsupportedOperationException(); } public void addUnstoredKey(String unstoredKey) { UNSTORED_KEYS.add(unstoredKey); ...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\scripting\ScriptBindings.java
1
请完成以下Java代码
public void setCode (java.lang.String Code) { set_Value (COLUMNNAME_Code, Code); } /** Get Validierungscode. @return Validation Code */ @Override public java.lang.String getCode () { return (java.lang.String)get_Value(COLUMNNAME_Code); } /** Set Beschreibung. @param Description Beschreibung */ ...
public boolean isShowAllParams () { Object oo = get_Value(COLUMNNAME_IsShowAllParams); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Name. @param Name Alphanumeric identifier of the entity */ @Ove...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_UserQuery.java
1
请完成以下Java代码
private Amount extractStatementLineAmt(final I_C_BankStatementLine record) { final CurrencyId currencyId = CurrencyId.ofRepoId(record.getC_Currency_ID()); final CurrencyCode currencyCode = currencyRepository.getCurrencyCodeById(currencyId); final Amount statementLineAmt = Amount.of(record.getStmtAmt(), currencyC...
return PaymentToReconcileRow.builder() .paymentId(paymentId) .inboundPayment(record.isReceipt()) .documentNo(record.getDocumentNo()) .dateTrx(TimeUtil.asLocalDate(record.getDateTrx())) .bpartner(bpartnerLookup.findById(record.getC_BPartner_ID())) .invoiceDocumentNos(invoiceDocumentNos) .payA...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\bankstatement_reconciliation\BankStatementLineAndPaymentsToReconcileRepository.java
1
请完成以下Java代码
public class OrderSchedulingContext { @NonNull OrderId orderId; @Nullable LocalDate orderDate; @Nullable LocalDate letterOfCreditDate; @Nullable LocalDate billOfLadingDate; @Nullable LocalDate ETADate; @Nullable LocalDate invoiceDate; @NonNull Money grandTotal; @NonNull CurrencyPrecision precision; @NonNull Pa...
{ switch (referenceDateType) { case OrderDate: return getOrderDate(); case LetterOfCreditDate: return getLetterOfCreditDate(); case BillOfLadingDate: return getBillOfLadingDate(); case ETADate: return getETADate(); case InvoiceDate: return getInvoiceDate(); default: return ...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\order\paymentschedule\OrderSchedulingContext.java
1
请在Spring Boot框架中完成以下Java代码
public class ContentLengthController { @GetMapping("/hello") public ResponseEntity<String> hello() { String body = "Hello Spring MVC!"; byte[] bytes = body.getBytes(StandardCharsets.UTF_8); return ResponseEntity.ok() .contentLength(bytes.length) .body(body); } ...
.body(resource); } @GetMapping("/manual") public ResponseEntity<String> manual() { String body = "Manual Content-Length"; byte[] bytes = body.getBytes(StandardCharsets.UTF_8); HttpHeaders headers = new HttpHeaders(); headers.setContentLength(bytes.length); return R...
repos\tutorials-master\spring-web-modules\spring-rest-http-3\src\main\java\com\baeldung\contentlenght\ContentLengthController.java
2
请在Spring Boot框架中完成以下Java代码
public class StudentController { @Autowired private StudentService studentService; @GetMapping() public List<Course> retrieveCoursesForStudent(@PathVariable String studentId) { return studentService.retrieveCourses(studentId); } @PostMapping() public ResponseEntity<Void> registerS...
URI location = ServletUriComponentsBuilder.fromCurrentRequest() .path("/{id}") .buildAndExpand(course.id()) .toUri(); return ResponseEntity.created(location).build(); } @GetMapping("/{courseId}") public Course retrieveDetailsForCourse(@PathVariable S...
repos\spring-boot-examples-master\spring-boot-rest-services\src\main\java\com\in28minutes\springboot\controller\StudentController.java
2
请完成以下Java代码
public boolean equals(Object o) { if (this == o) { return true; } if (getClass() != o.getClass()) { return false; } Book other = (Book) o; return Objects.equals(isbn, other.getIsbn()); // including sku // return ...
@Override public int hashCode() { return Objects.hash(isbn); // including sku // return Objects.hash(isbn, sku); } @Override public String toString() { return "Book{" + "id=" + id + ", title=" + title + ", isbn=" + isbn + ", price=" + price + '}'; // including sk...
repos\Hibernate-SpringBoot-master\HibernateSpringBootNaturalId\src\main\java\com\bookstore\entity\Book.java
1
请完成以下Java代码
public String getInitiator() { return initiator; } public void setInitiator(String initiator) { this.initiator = initiator; } public String getFormKey() { return formKey; } public void setFormKey(String formKey) { this.formKey = formKey; } public boole...
return clone; } public void setValues(StartEvent otherEvent) { super.setValues(otherEvent); setInitiator(otherEvent.getInitiator()); setFormKey(otherEvent.getFormKey()); setInterrupting(otherEvent.isInterrupting); formProperties = new ArrayList<FormProperty>(); ...
repos\Activiti-develop\activiti-core\activiti-bpmn-model\src\main\java\org\activiti\bpmn\model\StartEvent.java
1
请完成以下Java代码
public boolean isDropShip() { return BPartnerLocationId.ofRepoIdOrNull(getDropShip_BPartner_ID(), getDropShip_Location_ID()) != null; } @Override public int getDropShip_BPartner_ID() { return delegate.getDropShip_BPartner_ID(); } @Override public void setDropShip_BPartner_ID(final int DropShip_BPartner_ID...
{ IDocumentDeliveryLocationAdapter.super.setRenderedAddressAndCapturedLocation(from); } @Override public void setRenderedAddress(final @NonNull RenderedAddressAndCapturedLocation from) { IDocumentDeliveryLocationAdapter.super.setRenderedAddress(from); } @Override public Optional<DocumentLocation> toPlainD...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\location\adapter\ContractDropshipLocationAdapter.java
1
请完成以下Java代码
public void clearFields(final GridTab gridTab) { final I_C_Order order = InterfaceWrapperHelper.create(gridTab, I_C_Order.class); order.setM_HU_PI_Item_Product_ID(-1); order.setQty_FastInput_TU(null); // these changes will be propagated to the GUI component gridTab.setValue(I_C_Order.COLUMNNAME_M_HU_PI_Item...
} final int huPIPId = order.getM_HU_PI_Item_Product_ID(); if (huPIPId <= 0 && gridTab.getField(I_C_Order.COLUMNNAME_M_HU_PI_Item_Product_ID).isDisplayed()) { gridTab.getField(I_C_Order.COLUMNNAME_M_HU_PI_Item_Product_ID).requestFocus(); return true; } // no focus was requested return false; } ...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\adempiere\gui\search\impl\HUOrderFastInputHandler.java
1
请在Spring Boot框架中完成以下Java代码
public void saveEmployee(Employee employee) { this.employeeRepository.save(employee); } @Override public Employee getEmployeeById(long id) { Optional<Employee> optional = employeeRepository.findById(id); Employee employee = null; if( optional.isPresent()) { emplo...
public void deleteEmployeeById(long id) { this.employeeRepository.deleteById(id); } @Override public Page<Employee> findPaginated(int pageNo, int pageSize, String sortField, String sortDirection) { Sort sort = sortDirection.equalsIgnoreCase(Sort.Direction.ASC.name()) ? Sort.by(sortField).a...
repos\Spring-Boot-Advanced-Projects-main\Registration-FullStack-Springboot\src\main\java\pagination\sort\service\EmployeeServiceImpl.java
2
请完成以下Java代码
public int getAD_Issue_ID() { return get_ValueAsInt(COLUMNNAME_AD_Issue_ID); } @Override public void setErrorMsg (java.lang.String ErrorMsg) { set_Value (COLUMNNAME_ErrorMsg, ErrorMsg); } @Override public java.lang.String getErrorMsg() { return (java.lang.String)get_Value(COLUMNNAME_ErrorMsg); } @...
public java.lang.String getJsonResponse() { return (java.lang.String)get_Value(COLUMNNAME_JsonResponse); } @Override public void setPP_Cost_Collector_ImportAudit_ID (int PP_Cost_Collector_ImportAudit_ID) { if (PP_Cost_Collector_ImportAudit_ID < 1) set_ValueNoCheck (COLUMNNAME_PP_Cost_Collector_ImportAudi...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\eevolution\model\X_PP_Cost_Collector_ImportAudit.java
1
请完成以下Spring Boot application配置
# Spring Boot application.properties for the HTTP Session State Caching Example application. spring.application.name=HttpSessionCachingApplication spring.data.gemfire.cache.log-level=${gemfire.log-level:error} spring.session.data.gemfire.cache.client
.pool.name=DEFAULT spring.session.data.gemfire.session.region.name=Sessions server.servlet.session.timeout=15
repos\spring-boot-data-geode-main\spring-geode-samples\caching\http-session\src\main\resources\application.properties
2
请完成以下Java代码
protected OrderingProperty validateAndGetLastConfiguredProperty() { OrderingProperty lastConfiguredProperty = getLastConfiguredProperty(); if (lastConfiguredProperty == null) { throw LOG.unspecifiedOrderByMethodException(); } return lastConfiguredProperty; } /** * Validates ordering prop...
protected SortingField field; protected Direction direction; /** * Static factory method to create {@link OrderingProperty} out of a field and its corresponding {@link Direction}. */ public static OrderingProperty of(SortingField field, Direction direction) { OrderingProperty result = new O...
repos\camunda-bpm-platform-master\clients\java\client\src\main\java\org\camunda\bpm\client\task\OrderingConfig.java
1
请完成以下Java代码
public void setQtyBOM (final @Nullable BigDecimal QtyBOM) { set_Value (COLUMNNAME_QtyBOM, QtyBOM); } @Override public BigDecimal getQtyBOM() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_QtyBOM); return bd != null ? bd : BigDecimal.ZERO; } @Override public void setScrap (final @Nullable BigD...
} /** * VariantGroup AD_Reference_ID=540490 * Reference name: VariantGroup */ public static final int VARIANTGROUP_AD_Reference_ID=540490; /** 01 = 01 */ public static final String VARIANTGROUP_01 = "01"; /** 02 = 02 */ public static final String VARIANTGROUP_02 = "02"; /** 03 = 03 */ public static fina...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\eevolution\model\X_PP_Product_BOMLine.java
1
请完成以下Java代码
public int getResultSetConcurrency() { return m_resultSetConcurrency; } /** * Get ResultSet Type * * @return rs type */ public int getResultSetType() { return m_resultSetType; } /** * @return transaction name */ public String getTrxName() { return m_trxName; } public final void clearDebu...
public final void setDebugSqlParam(final int parameterIndex, final Object parameterValue) { if (debugSqlParams == null) { debugSqlParams = new TreeMap<>(); } debugSqlParams.put(parameterIndex, parameterValue); } public final Map<Integer, Object> getDebugSqlParams() { final Map<Integer, Object> debugSq...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\util\CStatementVO.java
1
请完成以下Java代码
public OriginalAndCurrentQuantities1 getOrgnlAndCurFaceAmt() { return orgnlAndCurFaceAmt; } /** * Sets the value of the orgnlAndCurFaceAmt property. * * @param value * allowed object is * {@link OriginalAndCurrentQuantities1 } * */ public void setOrg...
* {@link ProprietaryQuantity1 } * */ public ProprietaryQuantity1 getPrtry() { return prtry; } /** * Sets the value of the prtry property. * * @param value * allowed object is * {@link ProprietaryQuantity1 } * */ public void set...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.camt53\src\main\java-xjc\de\metas\banking\camt53\jaxb\camt053_001_04\TransactionQuantities2Choice.java
1
请完成以下Java代码
public void setIsInvoiceable (final boolean IsInvoiceable) { set_Value (COLUMNNAME_IsInvoiceable, IsInvoiceable); } @Override public boolean isInvoiceable() { return get_ValueAsBoolean(COLUMNNAME_IsInvoiceable); } @Override public void setLength (final @Nullable BigDecimal Length) { set_Value (COLUMNN...
} @Override public int getM_Product_ID() { return get_ValueAsInt(COLUMNNAME_M_Product_ID); } @Override public void setName (final java.lang.String Name) { set_Value (COLUMNNAME_Name, Name); } @Override public java.lang.String getName() { return get_ValueAsString(COLUMNNAME_Name); } @Override p...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java-gen\de\metas\handlingunits\model\X_M_HU_PackingMaterial.java
1
请完成以下Java代码
public void onRemoteSessionCloseCommand(UUID sessionId, SessionCloseNotificationProto sessionCloseNotification) { log.trace("[{}] Received the remote command to close the session: {}", sessionId, sessionCloseNotification.getMessage()); } @Override public void onToTransportUpdateCredentials(ToTransp...
this.rpcHandler.onToServerRpcResponse(toServerResponse); } @Override public void operationComplete(Future<? super Void> future) throws Exception { log.info("[{}] operationComplete", future); } @Override public void onResourceUpdate(TransportProtos.ResourceUpdateMsg resourceUpdateMsgOp...
repos\thingsboard-master\common\transport\lwm2m\src\main\java\org\thingsboard\server\transport\lwm2m\server\LwM2mSessionMsgListener.java
1
请完成以下Java代码
public DecisionExecutionAuditContainer getAuditContainer() { return auditContainer; } public void setAuditContainer(DecisionExecutionAuditContainer auditContainer) { this.auditContainer = auditContainer; } public Map<String, List<Object>> getOutputValues() { return outputValues...
public void setInstanceId(String instanceId) { this.instanceId = instanceId; } public String getScopeType() { return scopeType; } public void setScopeType(String scopeType) { this.scopeType = scopeType; } public String getTenantId() { return tenantId; } ...
repos\flowable-engine-main\modules\flowable-dmn-engine\src\main\java\org\flowable\dmn\engine\impl\el\ELExecutionContext.java
1
请完成以下Java代码
public void setDeserializerDelegateExpression(String deserializerDelegateExpression) { this.deserializerDelegateExpression = deserializerDelegateExpression; } public String getPayloadExtractorDelegateExpression() { return payloadExtractorDelegateExpression; } public void setPayloadExtr...
} public ChannelEventKeyDetection getChannelEventKeyDetection() { return channelEventKeyDetection; } public void setChannelEventKeyDetection(ChannelEventKeyDetection channelEventKeyDetection) { this.channelEventKeyDetection = channelEventKeyDetection; } public ChannelEventTenantId...
repos\flowable-engine-main\modules\flowable-event-registry-model\src\main\java\org\flowable\eventregistry\model\InboundChannelModel.java
1
请完成以下Java代码
public void setC_BPartner_Location_ID (final int C_BPartner_Location_ID) { if (C_BPartner_Location_ID < 1) set_Value (COLUMNNAME_C_BPartner_Location_ID, null); else set_Value (COLUMNNAME_C_BPartner_Location_ID, C_BPartner_Location_ID); } @Override public int getC_BPartner_Location_ID() { return get...
@Override public int getEDI_cctop_000_v_ID() { return get_ValueAsInt(COLUMNNAME_EDI_cctop_000_v_ID); } @Override public void setEdiInvoicRecipientGLN (final @Nullable java.lang.String EdiInvoicRecipientGLN) { set_ValueNoCheck (COLUMNNAME_EdiInvoicRecipientGLN, EdiInvoicRecipientGLN); } @Override public ...
repos\metasfresh-new_dawn_uat\backend\de.metas.edi\src\main\java-gen\de\metas\esb\edi\model\X_EDI_cctop_000_v.java
1
请完成以下Java代码
public ProcessPreconditionsResolution checkPreconditionsApplicable(final @NonNull I_C_Order order) { final DocStatus quotationDocStatus = DocStatus.ofNullableCodeOrUnknown(order.getDocStatus()); if (!quotationDocStatus.isCompleted()) { return ProcessPreconditionsResolution.rejectWithInternalReason("not a comp...
{ final I_C_Order newSalesOrder = CreateSalesOrderFromProposalCommand.builder() .fromProposalId(OrderId.ofRepoId(getRecord_ID())) .newOrderDocTypeId(newOrderDocTypeId) .newOrderDateOrdered(newOrderDateOrdered) .poReference(poReference) .completeIt(completeIt) .isKeepProposalPrices(keepProposal...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\order\process\C_Order_CreateFromProposal.java
1
请完成以下Java代码
protected Mono<Void> doNotify(InstanceEvent event, Instance instance) { if (authToken == null) { return Mono.error(new IllegalStateException("'authToken' must not be null.")); } HttpHeaders headers = new HttpHeaders(); headers.setContentType(MediaType.APPLICATION_JSON); headers.setBearerAuth(authToken); ...
public void setRestTemplate(RestTemplate restTemplate) { this.restTemplate = restTemplate; } public URI getUrl() { return url; } public void setUrl(URI url) { this.url = url; } @Nullable public String getAuthToken() { return authToken; } public void setAuthToken(@Nullable String authToken) { this...
repos\spring-boot-admin-master\spring-boot-admin-server\src\main\java\de\codecentric\boot\admin\server\notify\WebexNotifier.java
1
请完成以下Java代码
protected Method getNoParameterMethod(String methodName) { try { return functionClass().getDeclaredMethod(methodName); } catch (Exception e) { throw new FlowableException("Error getting method " + methodName, e); } } protected Method getSingleObjectParameterMetho...
protected Method getThreeObjectParameterMethod(String methodName) { try { return functionClass().getDeclaredMethod(methodName, Object.class, Object.class, Object.class); } catch (Exception e) { throw new FlowableException("Error getting method " + methodName, e); } } ...
repos\flowable-engine-main\modules\flowable-engine-common\src\main\java\org\flowable\common\engine\impl\el\AbstractFlowableFunctionDelegate.java
1
请完成以下Java代码
public class ExternalTaskFailureDto extends HandleExternalTaskDto { //short error description protected String errorMessage; //full stack trace or error information protected String errorDetails; protected long retryTimeout; protected int retries; protected Map<String, VariableValueDto> variables; prot...
return errorDetails; } public void setErrorDetails(String errorDetails) { this.errorDetails = errorDetails; } public Map<String, VariableValueDto> getVariables() { return variables; } public void setVariables(Map<String, VariableValueDto> variables) { this.variables = variables; } public...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\externaltask\ExternalTaskFailureDto.java
1
请完成以下Java代码
public class DefaultDestinationTopicProcessor implements DestinationTopicProcessor { private final DestinationTopicResolver destinationTopicResolver; public DefaultDestinationTopicProcessor(DestinationTopicResolver destinationTopicResolver) { this.destinationTopicResolver = destinationTopicResolver; } @Overrid...
@Override public void processRegisteredDestinations(Consumer<Collection<String>> topicsCallback, Context context) { context .destinationsByTopicMap .values() .forEach(topicDestinations -> this.destinationTopicResolver.addDestinationTopics( context.listenerId, topicDestinations)); topicsCallback.a...
repos\spring-kafka-main\spring-kafka\src\main\java\org\springframework\kafka\retrytopic\DefaultDestinationTopicProcessor.java
1
请完成以下Java代码
protected void text(ObjectNode parent, TextCapability capability) { ObjectNode text = nodeFactory.objectNode(); text.put("type", capability.getType().getName()); String defaultValue = capability.getContent(); if (StringUtils.hasText(defaultValue)) { text.put("default", defaultValue); } parent.set(capabil...
return result; } private ObjectNode mapVersionMetadata(MetadataElement value) { ObjectNode result = nodeFactory.objectNode(); result.put("id", formatVersion(value.getId())); result.put("name", value.getName()); return result; } protected String formatVersion(String versionId) { Version version = Version...
repos\initializr-main\initializr-web\src\main\java\io\spring\initializr\web\mapper\InitializrMetadataV2JsonMapper.java
1
请完成以下Java代码
public abstract class AbstractEntityProfileQueryProcessor<T extends EntityFilter> extends AbstractSimpleQueryProcessor<T> { private final Set<UUID> entityProfileIds = new HashSet<>(); private final Pattern pattern; public AbstractEntityProfileQueryProcessor(TenantRepo repo, QueryContext ctx, EdqsQuery que...
protected abstract String getEntityNameFilter(T filter); protected abstract List<String> getProfileNames(T filter); protected abstract EntityType getProfileEntityType(); @Override protected boolean matches(EntityData<?> ed) { ProfileAwareData<?> profileAwareData = (ProfileAwareData<?>) ed; ...
repos\thingsboard-master\common\edqs\src\main\java\org\thingsboard\server\edqs\query\processor\AbstractEntityProfileQueryProcessor.java
1
请完成以下Java代码
public int getAD_User_ID() { return get_ValueAsInt(COLUMNNAME_AD_User_ID); } @Override public void setPP_Workstation_UserAssign_ID (final int PP_Workstation_UserAssign_ID) { if (PP_Workstation_UserAssign_ID < 1) set_ValueNoCheck (COLUMNNAME_PP_Workstation_UserAssign_ID, null); else set_ValueNoCheck...
} @Override public void setWorkStation_ID (final int WorkStation_ID) { if (WorkStation_ID < 1) set_ValueNoCheck (COLUMNNAME_WorkStation_ID, null); else set_ValueNoCheck (COLUMNNAME_WorkStation_ID, WorkStation_ID); } @Override public int getWorkStation_ID() { return get_ValueAsInt(COLUMNNAME_Work...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_PP_Workstation_UserAssign.java
1
请完成以下Java代码
protected void initializePrivilege(String restAdminId, String privilegeName) { boolean restApiPrivilegeMappingExists = false; Privilege privilege = idmIdentityService.createPrivilegeQuery().privilegeName(privilegeName).singleResult(); if (privilege != null) { restApiPrivilegeMappingE...
.addClasspathResource("createTimersProcess.bpmn20.xml") .addClasspathResource("oneTaskProcess.bpmn20.xml") .addClasspathResource("VacationRequest.bpmn20.xml") .addClasspathResource("VacationRequest.png") .addClasspathResource("FixSystemFailureProcess.bpmn2...
repos\flowable-engine-main\modules\flowable-app-rest\src\main\java\org\flowable\rest\conf\BootstrapConfiguration.java
1
请在Spring Boot框架中完成以下Java代码
public int hashCode() { return Objects.hash(amount, buyerUsername, closedDate, openDate, orderId, paymentDisputeId, paymentDisputeStatus, reason, respondByDate); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentDisputeSummary {\n"); sb.append(" amou...
} /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\de-metas-camel-ebay\ebay-api-client\src\main\java\de\metas\camel\externalsystems\ebay\api\model\PaymentDisputeSummary.java
2
请完成以下Java代码
public String getErrorMessage() { return typedValueField.getErrorMessage(); } @Override public void setByteArrayId(String id) { byteArrayField.setByteArrayId(id); } @Override public String getSerializerName() { return typedValueField.getSerializerName(); } @Override public void setSerial...
} @Override public String toString() { return this.getClass().getSimpleName() + "[variableName=" + variableName + ", variableInstanceId=" + variableInstanceId + ", revision=" + revision + ", serializerName=" + serializerName + ", longValue=" + longValue ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\HistoricDetailVariableInstanceUpdateEntity.java
1
请完成以下Java代码
public class CustomPhysicalNamingStrategy implements PhysicalNamingStrategy { @Override public Identifier toPhysicalCatalogName(final Identifier identifier, final JdbcEnvironment jdbcEnv) { return convertToSnakeCase(identifier); } @Override public Identifier toPhysicalColumnName(final Iden...
} @Override public Identifier toPhysicalTableName(final Identifier identifier, final JdbcEnvironment jdbcEnv) { return convertToSnakeCase(identifier); } private Identifier convertToSnakeCase(final Identifier identifier) { if (identifier == null) { return identifier; ...
repos\tutorials-master\persistence-modules\hibernate5\src\main\java\com\baeldung\hibernate\namingstrategy\CustomPhysicalNamingStrategy.java
1
请在Spring Boot框架中完成以下Java代码
public Date getPosted() { return posted; } /** * @param posted * the posted to set */ public void setPosted(Date posted) { this.posted = posted; } /* * (non-Javadoc) * * @see java.lang.Object#hashCode() */ @Override public int hashCode() { final int prime = 31; int result = 1;...
} /* * (non-Javadoc) * * @see java.lang.Object#toString() */ @Override public String toString() { return "CommentDTO [taskId=" + taskId + ", comment=" + comment + ", posted=" + posted + "]"; } } /** * Custom date serializer that converts the date to long before sending it out * * @author anilallew...
repos\spring-boot-microservices-master\comments-webservice\src\main\java\com\rohitghatol\microservices\comments\dtos\CommentDTO.java
2
请在Spring Boot框架中完成以下Java代码
public class SignatureVerificationType { @XmlElement(name = "SignatureVerificationResult") protected SignatureVerificationResultType signatureVerificationResult; @XmlElement(name = "SignatureVerificationOmittedErrorCode") protected String signatureVerificationOmittedErrorCode; @XmlAttribute(name = ...
* */ public void setSignatureVerificationOmittedErrorCode(String value) { this.signatureVerificationOmittedErrorCode = value; } /** * Gets the value of the signatureVerified property. * */ public boolean isSignatureVerified() { return signatureVerified; } ...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_ecosio_remadv\at\erpel\schemas\_1p0\messaging\header\SignatureVerificationType.java
2
请在Spring Boot框架中完成以下Java代码
private static Saml2MessageBinding getSingleLogoutServiceBinding(Element relyingPartyRegistrationElt) { String singleLogoutServiceBinding = relyingPartyRegistrationElt.getAttribute(ATT_SINGLE_LOGOUT_SERVICE_BINDING); if (StringUtils.hasText(singleLogoutServiceBinding)) { return Saml2MessageBinding.valueOf(single...
} private static Saml2X509Credential getSaml2Credential(String certificateLocation, Saml2X509Credential.Saml2X509CredentialType credentialType) { X509Certificate certificate = readCertificate(certificateLocation); return new Saml2X509Credential(certificate, credentialType); } private static RSAPrivateKey re...
repos\spring-security-main\config\src\main\java\org\springframework\security\config\saml2\RelyingPartyRegistrationsBeanDefinitionParser.java
2
请完成以下Java代码
protected String doIt() throws Exception { final List<I_M_HU> fromHUs = getSelectedPickingSlotTopLevelHUs(); final IAllocationSource source = HUListAllocationSourceDestination.of(fromHUs) .setDestroyEmptyHUs(true); final IHUProducerAllocationDestination destination = createHUProducer(); HULoader.of(source...
@Override protected void postProcess(final boolean success) { if (!success) { return; } // Invalidate views getPickingSlotsClearingView().invalidateAll(); getPackingHUsView().invalidateAll(); } private IHUProducerAllocationDestination createHUProducer() { final PickingSlotRow pickingRow = getRoo...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\pickingslotsClearing\process\WEBUI_PickingSlotsClearingView_TakeOutMultiHUsAndAddToNewHU.java
1
请完成以下Java代码
public static boolean verifSignData(final byte[] signedData) throws CMSException, IOException, OperatorCreationException, CertificateException { ByteArrayInputStream bIn = new ByteArrayInputStream(signedData); ASN1InputStream aIn = new ASN1InputStream(bIn); CMSSignedData s = new CMSSignedData(Co...
} return encryptedData; } public static byte[] decryptData(final byte[] encryptedData, final PrivateKey decryptionKey) throws CMSException { byte[] decryptedData = null; if (null != encryptedData && null != decryptionKey) { CMSEnvelopedData envelopedData = new CMSEnvelopedDa...
repos\tutorials-master\libraries-security\src\main\java\com\baeldung\bouncycastle\BouncyCastleCrypto.java
1
请完成以下Java代码
public void setSourceVariableName(String sourceVariableName) { this.sourceVariableName = sourceVariableName; } public Expression getSourceExpression() { return sourceExpression; } public void setSourceExpression(Expression sourceExpression) { this.sourceExpression = sourceExpression; } public...
public void setDestinationExpression(Expression destinationExpression) { this.destinationExpression = destinationExpression; } public String getLink() { return link; } public void setLink(String link) { this.link = link; } public Expression getLinkExpression() { return linkExpression; }...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\variable\VariableDeclaration.java
1
请完成以下Java代码
public class ValidateV5EntitiesCmd implements Command<Void> { private static final Logger LOGGER = LoggerFactory.getLogger(ValidateV5EntitiesCmd.class); @Override public Void execute(CommandContext commandContext) { ProcessEngineConfigurationImpl processEngineConfiguration = CommandContextUtil.get...
for (ProcessDefinition processDefinition : processDefinitions) { LOGGER.error("Found v5 process definition with id: {}, and key: {}", processDefinition.getId(), processDefinition.getKey()); } throw new FlowableException(message); } ...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\cmd\ValidateV5EntitiesCmd.java
1
请完成以下Java代码
public ProcessPreconditionsResolution checkPreconditionsApplicable(final @NonNull IProcessPreconditionsContext context) { if (!context.isSingleSelection()) { return ProcessPreconditionsResolution.rejectBecauseNotSingleSelection(); } return ProcessPreconditionsResolution.accept(); } @Override protected S...
.orgId(currentRow.getOrgId()) .productId(currentRow.getProductId()) .attributesKey(currentRow.getAttributesKey()) .onlyNonZeroReservedQty(true) .build(); final List<TableRecordReference> recordReferences = shipmentScheduleRepository.getIdsByQuery(shipmentScheduleQuery) .stream() .map(id -> Ta...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\material\process\QtyDemand_QtySupply_V_to_ShipmentSchedule.java
1
请完成以下Spring Boot application配置
spring.datasource.primary.jdbc-url=jdbc:mysql://localhost:3306/test1?serverTimezone=UTC&useUnicode=true&characterEncoding=utf-8&useSSL=true spring.datasource.primary.username=root spring.datasource.primary.password=root spring.datasource.primary.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.secondary.jd...
spring.datasource.secondary.username=root spring.datasource.secondary.password=root spring.datasource.secondary.driver-class-name=com.mysql.cj.jdbc.Driver spring.server.maxThreads=600
repos\spring-boot-leaning-master\2.x_42_courses\第 3-1 课: Spring Boot 使用 JDBC 操作数据库\spring-boot-multi-jdbc\src\main\resources\application.properties
2
请完成以下Java代码
public abstract class RemoteInvocationUtils { /** * Fill the current client-side stack trace into the given exception. * <p>The given exception is typically thrown on the server and serialized * as-is, with the client wanting it to contain the client-side portion * of the stack trace as well. What we can do h...
Set<Throwable> visitedExceptions = new HashSet<>(); Throwable exToUpdate = ex; while (exToUpdate != null && !visitedExceptions.contains(exToUpdate)) { StackTraceElement[] serverStack = exToUpdate.getStackTrace(); StackTraceElement[] combinedStack = new StackTraceElement[serverStack.length + clientStack.le...
repos\spring-amqp-main\spring-amqp\src\main\java\org\springframework\amqp\support\converter\RemoteInvocationUtils.java
1
请完成以下Java代码
public class HttpCallScheduler { private CompletableFuture<Void> executorFuture; private final LinkedBlockingQueue<ScheduledRequest> requestsQueue; private final Executor executor; public HttpCallScheduler() { this.requestsQueue = new LinkedBlockingQueue<>(); this.executor = Executors.newFixedThreadPool(1); ...
final ScheduledRequest scheduleRequest = requestsQueue.poll(); try { final ApiResponse response = scheduleRequest.getHttpResponseSupplier().get(); scheduleRequest.getCompletableFuture().complete(response); } catch (final Exception exception) { scheduleRequest.getCompletableFuture().c...
repos\metasfresh-new_dawn_uat\backend\de.metas.util.web\src\main\java\de\metas\util\web\audit\HttpCallScheduler.java
1
请完成以下Java代码
public void update(Collection<Integer> featureVector, float value, double[] total, int[] timestamp, int current) { for (Integer i : featureVector) update(i, value, total, timestamp, current); } /** * 根据答案和预测更新参数 * * @param index 特征向量的下标 * @param value 更新量 ...
{ int passed = current - timestamp[index]; total[index] += passed * parameter[index]; parameter[index] += value; timestamp[index] = current; } public void average(double[] total, int[] timestamp, int current) { for (int i = 0; i < parameter.length; i++) { ...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\model\perceptron\model\AveragedPerceptron.java
1
请完成以下Java代码
public static Object extractJSONValue( @NonNull final IAttributeStorage attributesStorage, @NonNull final IAttributeValue attributeValue, @NonNull final JSONOptions jsonOpts) { final Object value = extractValueAndResolve(attributesStorage, attributeValue); return Values.valueToJsonObject(value, jsonOpts)...
private static Optional<DocumentLayoutElementDescriptor> getClearanceNoteLayoutElement(@NonNull final I_M_HU hu) { if (Check.isBlank(hu.getClearanceNote())) { return Optional.empty(); } final boolean isDisplayedClearanceStatus = Services.get(ISysConfigBL.class).getBooleanValue(SYS_CONFIG_CLEARANCE, true); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\handlingunits\HUEditorRowAttributesHelper.java
1
请完成以下Java代码
public void actionPerformed (ActionEvent e) { if (e.getActionCommand().equals(ConfirmPanel.A_CANCEL)) { dispose(); return; } String columnName = null; String from_Info = null; String to_Info = null; int from_ID = 0; int to_ID = 0; // get first merge pair for (int i = 0; (i < m_columnNam...
confirmPanel.getOKButton().setEnabled(false); // boolean success = merge (columnName, from_ID, to_ID); postMerge(columnName, to_ID); // confirmPanel.getOKButton().setEnabled(true); panel.setCursor(Cursor.getDefaultCursor()); // if (success) { ADialog.info(m_WindowNo, panel, "MergeSuccess", msg...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\apps\form\VMerge.java
1
请完成以下Java代码
public JwsHeader.Builder getJwsHeader() { return get(JwsHeader.Builder.class); } /** * Returns the {@link JwtClaimsSet.Builder claims} allowing the ability to add, * replace, or remove. * @return the {@link JwtClaimsSet.Builder} */ public JwtClaimsSet.Builder getClaims() { return get(JwtClaimsSet.Builde...
Assert.notNull(claimsBuilder, "claimsBuilder cannot be null"); put(JwsHeader.Builder.class, jwsHeaderBuilder); put(JwtClaimsSet.Builder.class, claimsBuilder); } /** * Builds a new {@link JwtEncodingContext}. * @return the {@link JwtEncodingContext} */ @Override public JwtEncodingContext build() ...
repos\spring-security-main\oauth2\oauth2-authorization-server\src\main\java\org\springframework\security\oauth2\server\authorization\token\JwtEncodingContext.java
1
请完成以下Java代码
public class SubmitTaskFormCmd extends NeedsActiveTaskCmd<Void> { private static final long serialVersionUID = 1L; protected String taskId; protected Map<String, String> properties; protected boolean completeTask; public SubmitTaskFormCmd(String taskId, Map<String, String> properties, boolean com...
.recordFormPropertiesSubmitted(executionEntity, properties, taskId, processEngineConfiguration.getClock().getCurrentTime()); FormHandlerHelper formHandlerHelper = processEngineConfiguration.getFormHandlerHelper(); TaskFormHandler taskFormHandler = formHandlerHelper.getTaskFormHandlder(task); i...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\cmd\SubmitTaskFormCmd.java
1
请完成以下Java代码
public void registerPermanentCustomizer(@NonNull final IConnectionCustomizer connectionCustomizer) { permanentCustomizers.add(connectionCustomizer); } @Override public AutoCloseable registerTemporaryCustomizer(@NonNull final ITemporaryConnectionCustomizer connectionCustomizer) { temporaryCustomizers.get().add...
public String toString() { return "ConnectionCustomizerService [permanentCustomizers=" + permanentCustomizers + ", (thread-local-)temporaryCustomizers=" + temporaryCustomizers.get() + ", (thread-local-)currentlyInvokedCustomizers=" + currentlyInvokedCustomizers + "]"; } private List<IConnectionCustomizer> getRegi...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\connection\impl\ConnectionCustomizerService.java
1
请完成以下Java代码
public static HardwareTrayId ofRepoId(final int printerId, final int trayId) { return new HardwareTrayId(HardwarePrinterId.ofRepoId(printerId), trayId); } public static HardwareTrayId ofRepoIdOrNull( @Nullable final Integer printerId, @Nullable final Integer trayId) { return printerId != null && printerI...
{ return printerId != null && trayId > 0 ? ofRepoId(printerId, trayId) : null; } private HardwareTrayId(@NonNull final HardwarePrinterId printerId, final int trayId) { this.repoId = Check.assumeGreaterThanZero(trayId, "trayId"); this.printerId = printerId; } public static int toRepoId(@Nullable final Hardw...
repos\metasfresh-new_dawn_uat\backend\de.metas.printing\de.metas.printing.base\src\main\java\de\metas\printing\HardwareTrayId.java
1
请完成以下Java代码
public OrderCheckupBuilder setWarehouseId(@Nullable final WarehouseId warehouseId) { this._warehouseId = warehouseId; return this; } private WarehouseId getWarehouseId() { return _warehouseId; } public OrderCheckupBuilder setPlantId(ResourceId plantId) { this._plantId = plantId; return this; } pri...
{ this._reponsibleUserId = reponsibleUserId; return this; } private UserId getReponsibleUserId() { return _reponsibleUserId; } public OrderCheckupBuilder setDocumentType(String documentType) { this._documentType = documentType; return this; } private String getDocumentType() { Check.assumeNotEmp...
repos\metasfresh-new_dawn_uat\backend\de.metas.fresh\de.metas.fresh.base\src\main\java\de\metas\fresh\ordercheckup\impl\OrderCheckupBuilder.java
1