instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Spring Boot application配置
#spring.datasource.url=jdbc:postgresql://some-postgresql-host/some-postgresql-database #spring.datasource.username=your-postgresql-username #spring.datasource.password=your-postgresql-password #spring.liquibase.c
hange-log=classpath:liquibase/changelog.xml #spring.liquibase.default-schema=user_management
repos\tutorials-master\persistence-modules\liquibase\src\main\resources\application.properties
2
请完成以下Java代码
public List<Object> getValues(@NonNull final ShipmentScheduleWithHU schedWithHU) { final List<Object> values = new ArrayList<>(); values.add(VERSION); final I_M_HU vhu = schedWithHU.getVHU(); values.addAll(getValues(vhu)); final I_M_HU tuHU = schedWithHU.getM_TU_HU(); values.addAll(getValues(tuHU)); ...
final List<I_M_ShippingPackage> shippingPackages = huShipperTransportationBL.getShippingPackagesForHU(hu); for (final I_M_ShippingPackage shippingPackage : shippingPackages) { final int packagePartnerId = shippingPackage.getC_BPartner_ID(); values.add(packagePartnerId); final int packageLocationId = shipp...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\inoutcandidate\agg\key\impl\HUShipmentScheduleKeyValueHandler.java
1
请在Spring Boot框架中完成以下Java代码
public static TaskExecutor camundaTaskExecutor(CamundaBpmProperties properties) { int corePoolSize = properties.getJobExecution().getCorePoolSize(); int maxPoolSize = properties.getJobExecution().getMaxPoolSize(); int queueCapacity = properties.getJobExecution().getQueueCapacity(); final Thread...
Optional.ofNullable(jobExecution.getMaxWait()).ifPresent(springJobExecutor::setMaxWait); Optional.ofNullable(jobExecution.getBackoffTimeInMillis()).ifPresent(springJobExecutor::setBackoffTimeInMillis); Optional.ofNullable(jobExecution.getMaxBackoff()).ifPresent(springJobExecutor::setMaxBackoff); Optio...
repos\camunda-bpm-platform-master\spring-boot-starter\starter\src\main\java\org\camunda\bpm\spring\boot\starter\configuration\impl\DefaultJobConfiguration.java
2
请完成以下Java代码
public class TbRateLimits { private final LocalBucket bucket; @Getter private final String configuration; public TbRateLimits(String limitsConfiguration) { this(limitsConfiguration, false); } public TbRateLimits(String limitsConfiguration, boolean refillIntervally) { List<Rate...
Bandwidth bandwidth = refillIntervally ? bandwidthBuilder.refillIntervally(entry.capacity(), Duration.ofSeconds(entry.durationSeconds())).build() : bandwidthBuilder.refillGreedy(entry.capacity(), Duration.ofSeconds(entry.durationSeconds())).build(); localBucket.addLim...
repos\thingsboard-master\common\message\src\main\java\org\thingsboard\server\common\msg\tools\TbRateLimits.java
1
请完成以下Java代码
public TbQueueConsumer<TbProtoQueueMsg<TransportProtos.ToEdgeMsg>> createEdgeMsgConsumer() { return new InMemoryTbQueueConsumer<>(storage, topicService.buildTopicName(edgeSettings.getTopic())); } @Override public TbQueueProducer<TbProtoQueueMsg<TransportProtos.ToEdgeMsg>> createEdgeMsgProducer() { ...
} @Override public TbQueueRequestTemplate<TbProtoQueueMsg<ToEdqsMsg>, TbProtoQueueMsg<FromEdqsMsg>> createEdqsRequestTemplate() { TbQueueProducer<TbProtoQueueMsg<ToEdqsMsg>> requestProducer = new InMemoryTbQueueProducer<>(storage, edqsConfig.getRequestsTopic()); TbQueueConsumer<TbProtoQueueMsg<...
repos\thingsboard-master\common\queue\src\main\java\org\thingsboard\server\queue\provider\InMemoryMonolithQueueFactory.java
1
请在Spring Boot框架中完成以下Java代码
public String getExceptionMessage() { return exceptionMessage; } public void setExceptionMessage(String exceptionMessage) { this.exceptionMessage = exceptionMessage; } @ApiModelProperty(example = "2023-06-03T22:05:05.474+0000") public Date getCreateTime() { return createTim...
@ApiModelProperty(example = "custom value") public String getCustomValues() { return customValues; } public void setCustomValues(String customValues) { this.customValues = customValues; } @ApiModelProperty(example = "node1") public String getLockOwner() { return loc...
repos\flowable-engine-main\modules\flowable-cmmn-rest\src\main\java\org\flowable\cmmn\rest\service\api\management\HistoryJobResponse.java
2
请在Spring Boot框架中完成以下Java代码
public class DocOutBoundRecipientService { @NonNull private final IBPartnerBL bpartnerBL; public DocOutBoundRecipient getById(@NonNull final DocOutBoundRecipientId id) { return getByUserId(id.toUserId()); } public DocOutBoundRecipient getByUserId(@NonNull final UserId userId) { final User user = bpartnerBL....
} private boolean computeInvoiceAsEmail(@Nullable final I_C_BPartner bpartnerRecord, @NonNull final OptionalBoolean defaultValue) { return extractInvoiceEmailEnabled(bpartnerRecord) .ifUnknown(defaultValue) .orElseFalse(); } private static OptionalBoolean extractInvoiceEmailEnabled(@Nullable final I_C_B...
repos\metasfresh-new_dawn_uat\backend\de.metas.document.archive\de.metas.document.archive.base\src\main\java\de\metas\document\archive\mailrecipient\DocOutBoundRecipientService.java
2
请在Spring Boot框架中完成以下Java代码
public class Application { /** * 作者:栈长 * 来源微信公众号:Java技术栈 */ public static void main(String[] args) { SpringApplication springApplication = new SpringApplication(Application.class); // 允许循环引用 springApplication.setAllowCircularReferences(true); // 启动详细日志 s...
springApplication.run(args); } /** * 作者:栈长 * 来源微信公众号:Java技术栈 */ @Bean @Order(500) public CommandLineRunner commandLineRunner() { return (args) -> { // throw new JavastackException("Java技术栈异常"); }; } }
repos\spring-boot-best-practice-master\spring-boot-features\src\main\java\cn\javastack\springboot\features\Application.java
2
请完成以下Java代码
public class ReactivateEventListener extends UserEventListener { /** * The optional, default reactivation rule to be considered, if a plan item does not specify an explicit one, if this one is not provided either, such * a plan item will be ignored for reactivation. */ protected ReactivationRule...
return defaultReactivationRule; } public void setDefaultReactivationRule(ReactivationRule defaultReactivationRule) { this.defaultReactivationRule = defaultReactivationRule; } public String getReactivationAvailableConditionExpression() { return reactivationAvailableConditionExpression; ...
repos\flowable-engine-main\modules\flowable-cmmn-model\src\main\java\org\flowable\cmmn\model\ReactivateEventListener.java
1
请完成以下Java代码
public boolean isUseBPartnerAddress () { Object oo = get_Value(COLUMNNAME_IsUseBPartnerAddress); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Massenaustritt. @param IsWriteOff Massenaustritt */ @Over...
{ if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Process Now. @param Processing Process Now */ @Override public void setProcessing (boolean Processing) { set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); } /...
repos\metasfresh-new_dawn_uat\backend\de.metas.dunning\src\main\java-gen\de\metas\dunning\model\X_C_DunningDoc.java
1
请完成以下Java代码
public SecuritiesAccount13 getSfkpgAcct() { return sfkpgAcct; } /** * Sets the value of the sfkpgAcct property. * * @param value * allowed object is * {@link SecuritiesAccount13 } * */ public void setSfkpgAcct(SecuritiesAccount13 value) { thi...
* possible object is * {@link String } * */ public String getAddtlTxInf() { return addtlTxInf; } /** * Sets the value of the addtlTxInf property. * * @param value * allowed object is * {@link String } * */ public void ...
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\EntryTransaction4.java
1
请完成以下Java代码
public void setDateAcct (Timestamp DateAcct) { set_Value (COLUMNNAME_DateAcct, DateAcct); } /** Get Account Date. @return Accounting Date */ public Timestamp getDateAcct () { return (Timestamp)get_Value(COLUMNNAME_DateAcct); } /** Set Document Date. @param DateDoc Date of the Document */ pub...
public String getPostingType () { return (String)get_Value(COLUMNNAME_PostingType); } /** Set Processed. @param Processed The document has been processed */ public void setProcessed (boolean Processed) { set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); } /** Get Processed. @return T...
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代码
public void setPA_BenchmarkData_ID (int PA_BenchmarkData_ID) { if (PA_BenchmarkData_ID < 1) set_ValueNoCheck (COLUMNNAME_PA_BenchmarkData_ID, null); else set_ValueNoCheck (COLUMNNAME_PA_BenchmarkData_ID, Integer.valueOf(PA_BenchmarkData_ID)); } /** Get Benchmark Data. @return Performance Benchmark Dat...
Performance Benchmark */ public void setPA_Benchmark_ID (int PA_Benchmark_ID) { if (PA_Benchmark_ID < 1) set_ValueNoCheck (COLUMNNAME_PA_Benchmark_ID, null); else set_ValueNoCheck (COLUMNNAME_PA_Benchmark_ID, Integer.valueOf(PA_Benchmark_ID)); } /** Get Benchmark. @return Performance Benchmark ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_PA_BenchmarkData.java
1
请完成以下Java代码
protected String obtainPassword(HttpServletRequest request) { return request.getParameter(this.passwordParameter); } /** * Enables subclasses to override the composition of the username, such as by * including additional values and a separator. * @param request so that request attributes can be retrieved *...
} /** * Sets the parameter name which will be used to obtain the password from the login * request. * @param passwordParameter the parameter name. Defaults to "password". */ public void setPasswordParameter(String passwordParameter) { Assert.hasText(passwordParameter, "Password parameter must not be empty ...
repos\spring-security-main\web\src\main\java\org\springframework\security\web\authentication\UsernamePasswordAuthenticationFilter.java
1
请完成以下Java代码
protected static VariableSerializers getCurrentPaSerializers() { if (Context.getCurrentProcessApplication() != null) { ProcessApplicationReference processApplicationReference = Context.getCurrentProcessApplication(); try { ProcessApplicationInterface processApplicationInterface = processApplicat...
*/ public String getTypeName() { if (serializerName == null) { return ValueType.NULL.getName(); } else { return getSerializer().getType().getName(); } } /** * If the variable value could not be loaded, this returns the error message. * * @return an error message indicating why th...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\util\TypedValueField.java
1
请完成以下Java代码
public class WEBUI_PP_Order_ReverseCandidate extends WEBUI_PP_Order_Template implements IProcessPrecondition { // services private final transient IHUPPOrderQtyBL huPPOrderQtyBL = Services.get(IHUPPOrderQtyBL.class); private final transient IHUPPOrderQtyDAO huPPOrderQtyDAO = Services.get(IHUPPOrderQtyDAO.class);...
} @Override protected String doIt() throws Exception { final PPOrderQtyId ppOrderQtyId = getSingleSelectedRow().getPpOrderQtyId(); final I_PP_Order_Qty candidate = huPPOrderQtyDAO.retrieveById(ppOrderQtyId); huPPOrderQtyBL.reverseDraftCandidate(candidate); return MSG_OK; } @Override protected void pos...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\pporder\process\WEBUI_PP_Order_ReverseCandidate.java
1
请完成以下Java代码
public class TopicSubscriptionManagerLogger extends ExternalTaskClientLogger { protected void exceptionWhilePerformingFetchAndLock(EngineClientException e) { logError( "001", "Exception while fetching and locking task.", e); } public void exceptionWhileExecutingExternalTaskHandler(String topicName, Th...
protected void exceptionWhileAcquiringTasks(Throwable e) { logError( "006", "Exception while acquiring tasks.", e); } public void taskHandlerIsNull(String topicName) { logError( "007", String.format("Task handler is null for topic '%s'.", topicName)); } protected void fetchAndLock(Li...
repos\camunda-bpm-platform-master\clients\java\client\src\main\java\org\camunda\bpm\client\topic\impl\TopicSubscriptionManagerLogger.java
1
请完成以下Java代码
public abstract class AbstractRetryEntryPoint implements ChannelEntryPoint { protected final Log logger = LogFactory.getLog(getClass()); private PortMapper portMapper = new PortMapperImpl(); /** * The scheme ("http://" or "https://") */ private final String scheme; /** * The standard port for the scheme ...
protected final PortMapper getPortMapper() { return this.portMapper; } public void setPortMapper(PortMapper portMapper) { Assert.notNull(portMapper, "portMapper cannot be null"); this.portMapper = portMapper; } /** * Sets the strategy to be used for redirecting to the required channel URL. A * {@code De...
repos\spring-security-main\access\src\main\java\org\springframework\security\web\access\channel\AbstractRetryEntryPoint.java
1
请完成以下Java代码
public static List<Term> segment(String text) { return segment(text.toCharArray()); } /** * 分词 * * @param text 文本 * @return 分词结果 */ public static List<Term> segment(char[] text) { List<Term> resultList = SEGMENT.seg(text); ListIterator<Term> listIter...
* @param filterArrayChain 自定义过滤器链 * @return */ public static List<List<Term>> seg2sentence(String text, Filter... filterArrayChain) { List<List<Term>> sentenceList = SEGMENT.seg2sentence(text); for (List<Term> sentence : sentenceList) { ListIterator<Term> listIterat...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\tokenizer\NotionalTokenizer.java
1
请在Spring Boot框架中完成以下Java代码
public class RedirectController { @RequestMapping(value = "/redirectWithXMLConfig", method = RequestMethod.GET) public ModelAndView redirectWithUsingXMLConfig(final ModelMap model) { model.addAttribute("attribute", "redirectWithXMLConfig"); return new ModelAndView("RedirectedUrl", model); }...
@RequestMapping(value = "/redirectedUrl", method = RequestMethod.GET) public ModelAndView redirection(final ModelMap model, @ModelAttribute("flashAttribute") final Object flashAttribute) { model.addAttribute("redirectionAttribute", flashAttribute); return new ModelAndView("redirection", model); ...
repos\tutorials-master\spring-boot-modules\spring-boot-runtime\src\main\java\com\baeldung\sampleapp\web\controller\redirect\RedirectController.java
2
请完成以下Java代码
public static ServerWebExchangeMatcher pathMatchers(@Nullable HttpMethod method, PathPattern... pathPatterns) { List<ServerWebExchangeMatcher> matchers = new ArrayList<>(pathPatterns.length); for (PathPattern pathPattern : pathPatterns) { matchers.add(new PathPatternParserServerWebExchangeMatcher(pathPattern, me...
* Matches any exchange * @return the matcher to use */ @SuppressWarnings("Convert2Lambda") public static ServerWebExchangeMatcher anyExchange() { // we don't use a lambda to ensure a unique equals and hashcode // which otherwise can cause problems with adding multiple entries to an ordered // LinkedHashMap ...
repos\spring-security-main\web\src\main\java\org\springframework\security\web\server\util\matcher\ServerWebExchangeMatchers.java
1
请完成以下Java代码
public void setIsSelfService (boolean IsSelfService) { set_Value (COLUMNNAME_IsSelfService, Boolean.valueOf(IsSelfService)); } /** Get Self-Service. @return This is a Self-Service entry or this entry can be changed via Self-Service */ public boolean isSelfService () { Object oo = get_Value(COLUMNNAME_Is...
/** Get Record ID/ColumnName @return ID/ColumnName pair */ public KeyNamePair getKeyNamePair() { return new KeyNamePair(get_ID(), getName()); } /** Set Sequence. @param SeqNo Method of ordering records; lowest number comes first */ public void setSeqNo (int SeqNo) { set_...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_A_RegistrationAttribute.java
1
请完成以下Java代码
public void reviewPicking(final BigDecimal qtyReview) { assertDraft(); if (!pickStatus.isEligibleForReview()) { throw new AdempiereException("Picking candidate cannot be approved because it's not picked or packed yet: " + this); } this.qtyReview = qtyReview; approvalStatus = computeApprovalStatus(qtyP...
return PickingCandidateApprovalStatus.APPROVED; } else { return PickingCandidateApprovalStatus.REJECTED; } } private static PickingCandidatePickStatus computePickOrPackStatus(@Nullable final PackToSpec packToSpec) { return packToSpec != null ? PickingCandidatePickStatus.PACKED : PickingCandidatePickSta...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\picking\PickingCandidate.java
1
请完成以下Java代码
public void setup() { StringBuilder sb = new StringBuilder(tokenCount * 8); for (int i = 0; i < tokenCount; i++) { sb.append("token").append(i); if (i < tokenCount - 1) sb.append(DELIM); } text = sb.toString(); commaPattern = Pattern.compile(","); } ...
public void patternSplit(Blackhole bh) { String[] parts = commaPattern.split(text); bh.consume(parts.length); } @Benchmark public void manualSplit(Blackhole bh) { List<String> tokens = new ArrayList<>(tokenCount); int start = 0, idx; while ((idx = text.indexOf(DELIM,...
repos\tutorials-master\core-java-modules\core-java-string-operations-12\src\main\java\com\baeldung\splitstringperformance\SplitStringPerformance.java
1
请完成以下Java代码
public void setM_HU(final de.metas.handlingunits.model.I_M_HU M_HU) { set_ValueFromPO(COLUMNNAME_M_HU_ID, de.metas.handlingunits.model.I_M_HU.class, M_HU); } @Override public void setM_HU_ID (final int M_HU_ID) { if (M_HU_ID < 1) set_ValueNoCheck (COLUMNNAME_M_HU_ID, null); else set_ValueNoCheck (CO...
} @Override public void setM_PickingSlot_ID (final int M_PickingSlot_ID) { if (M_PickingSlot_ID < 1) set_ValueNoCheck (COLUMNNAME_M_PickingSlot_ID, null); else set_ValueNoCheck (COLUMNNAME_M_PickingSlot_ID, M_PickingSlot_ID); } @Override public int getM_PickingSlot_ID() { return get_ValueAsInt(C...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java-gen\de\metas\handlingunits\model\X_M_PickingSlot_HU.java
1
请完成以下Java代码
private static PPOrderRoutingActivityStatus toPPOrderRoutingActivityStatus(final @NonNull WFActivityStatus wfActivityStatus) { switch (wfActivityStatus) { case NOT_STARTED: return PPOrderRoutingActivityStatus.NOT_STARTED; case IN_PROGRESS: return PPOrderRoutingActivityStatus.IN_PROGRESS; case COMP...
{ return withRawMaterialsIssue(rawMaterialsIssue.withChangedRawMaterialsIssueStep(issueScheduleId, mapper)); } else { return this; } } public ManufacturingJobActivity withRawMaterialsIssue(@Nullable RawMaterialsIssue rawMaterialsIssue) { return Objects.equals(this.rawMaterialsIssue, rawMaterialsIssu...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing.rest-api\src\main\java\de\metas\manufacturing\job\model\ManufacturingJobActivity.java
1
请在Spring Boot框架中完成以下Java代码
class DataJpaRepositoriesRegistrar extends AbstractRepositoryConfigurationSourceSupport { private @Nullable BootstrapMode bootstrapMode; @Override protected Class<? extends Annotation> getAnnotation() { return EnableJpaRepositories.class; } @Override protected Class<?> getConfiguration() { return EnableJpa...
} private void configureBootstrapMode(Environment environment) { String property = environment.getProperty("spring.data.jpa.repositories.bootstrap-mode"); if (StringUtils.hasText(property)) { this.bootstrapMode = BootstrapMode.valueOf(property.toUpperCase(Locale.ENGLISH)); } } @EnableJpaRepositories priv...
repos\spring-boot-4.0.1\module\spring-boot-data-jpa\src\main\java\org\springframework\boot\data\jpa\autoconfigure\DataJpaRepositoriesRegistrar.java
2
请在Spring Boot框架中完成以下Java代码
public Header[] getResponseHeaders() { return responseHeaders; } public void setResponseHeaders(Header[] responseHeaders) { this.responseHeaders = responseHeaders; } public byte[] getByteResult() { if (byteResult != null) { return byteResult; } if (s...
public void setByteResult(byte[] byteResult) { this.byteResult = byteResult; } public String getStringResult() throws UnsupportedEncodingException { if (stringResult != null) { return stringResult; } if (byteResult != null) { return new String(byteResult,...
repos\roncoo-pay-master\roncoo-pay-service\src\main\java\com\roncoo\pay\reconciliation\utils\alipay\httpClient\HttpResponse.java
2
请在Spring Boot框架中完成以下Java代码
public class BatchBankToCustomerStatementV02Wrapper { private static final AdMessageKey MSG_BATCH_TRANSACTIONS_NOT_SUPPORTED = AdMessageKey.of("de.metas.banking.camt53.wrapper.NoBatchBankToCustomerStatementV02Wrapper.BatchTransactionsNotSupported"); @NonNull BankToCustomerStatementV02 bankToCustomerStatementV02; ...
*/ private static void validateAccountStatement2(@NonNull final AccountStatement2 accountStatement2) { accountStatement2.getNtry().forEach(BatchBankToCustomerStatementV02Wrapper::validateNoBatchedTrxPresent); } private static void validateNoBatchedTrxPresent(@NonNull final ReportEntry2 reportEntry) { if (isBa...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.camt53\src\main\java\de\metas\banking\camt53\wrapper\v02\BatchBankToCustomerStatementV02Wrapper.java
2
请完成以下Spring Boot application配置
# Server configuration server.port=8080 spring.mvc.view.prefix=/views/ spring.mvc.view.suffix=.jsp #Database related properties #database.driver=com.mysql.cj.jdbc.Driver #database.url=jdbc:mysql://localhost:3306/ecomjava #database.user=root #database.password= # ##Hibernate related properties #hibernate.dialect=org.hi...
#spring.datasource.url=jdbc:mysql://localhost:3306/ecommjava?createDatabaseIfNotExist=true #spring.datasource.username=root #spring.datasource.password= #spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver #spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect #spring.jpa.show-sql=true ...
repos\E-commerce-project-springBoot-master2\JtProject\src\main\resources\application.properties
2
请完成以下Java代码
public static void fillBpmnTypes( Map<Class<? extends BaseElement>, Class<? extends BaseBpmnJsonConverter>> convertersToJsonMap ) { convertersToJsonMap.put(BusinessRuleTask.class, BusinessRuleTaskJsonConverter.class); } protected String getStencilId(BaseElement baseElement) { return...
protected FlowElement convertJsonToElement( JsonNode elementNode, JsonNode modelNode, Map<String, JsonNode> shapeMap ) { BusinessRuleTask task = new BusinessRuleTask(); task.setClassName(getPropertyValueAsString(PROPERTY_RULETASK_CLASS, elementNode)); task.setInputVar...
repos\Activiti-develop\activiti-core\activiti-json-converter\src\main\java\org\activiti\editor\language\json\converter\BusinessRuleTaskJsonConverter.java
1
请在Spring Boot框架中完成以下Java代码
public void setDefaultDestination(@Nullable String defaultDestination) { this.defaultDestination = defaultDestination; } public @Nullable Duration getDeliveryDelay() { return this.deliveryDelay; } public void setDeliveryDelay(@Nullable Duration deliveryDelay) { this.deliveryDelay = deliveryDelay; }...
return this.transacted; } public void setTransacted(boolean transacted) { this.transacted = transacted; } } } public enum DeliveryMode { /** * Does not require that the message be logged to stable storage. This is the * lowest-overhead delivery mode but can lead to lost of message if the b...
repos\spring-boot-4.0.1\module\spring-boot-jms\src\main\java\org\springframework\boot\jms\autoconfigure\JmsProperties.java
2
请在Spring Boot框架中完成以下Java代码
public class ConsumerController { @Autowired private DemoProviderFeignClient demoProviderFeignClient; @GetMapping("/hello02") public String hello02(String name) { // 使用 Feign 调用接口 String response = demoProviderFeignClient.echo(name); // 返回结果 return "consumer:" + respons...
} else { // 方式三 Map<String, Object> params = new HashMap<>(); params.put("username", demoDTO.getUsername()); params.put("password", demoDTO.getPassword()); return demoProviderFeignClient.getDemo(params); } } @GetMapping("/test_post_demo") ...
repos\SpringBoot-Labs-master\labx-03-spring-cloud-feign\labx-03-sc-feign-demo04-consumer\src\main\java\cn\iocoder\springcloud\labx03\feigndemo\consumer\controller\ConsumerController.java
2
请完成以下Java代码
public Model getModel() { return model; } public ModelElementType registerGenericType(String namespaceUri, String localName) { ModelElementType elementType = model.getTypeForName(namespaceUri, localName); if (elementType == null) { elementType = modelBuilder.defineGenericType(localName, namespace...
@SuppressWarnings("unchecked") public <T extends ModelElementInstance> Collection<T> getModelElementsByType(Class<T> referencingClass) { return (Collection<T>) getModelElementsByType(getModel().getType(referencingClass)); } @Override public ModelInstance clone() { return new ModelInstanceImpl(model, ...
repos\camunda-bpm-platform-master\model-api\xml-model\src\main\java\org\camunda\bpm\model\xml\impl\ModelInstanceImpl.java
1
请在Spring Boot框架中完成以下Java代码
public class FlowableJobConfiguration { @Bean @ConditionalOnMissingBean public org.springframework.core.task.AsyncTaskExecutor taskExecutor() { ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor(); executor.setCorePoolSize(8); executor.setMaxPoolSize(8); executor.s...
public AsyncTaskExecutorConfiguration flowableAsyncTaskInvokerTaskExecutorConfiguration() { AsyncTaskExecutorConfiguration configuration = new AsyncTaskExecutorConfiguration(); configuration.setQueueSize(100); configuration.setThreadPoolNamingPattern("flowable-async-task-invoker-%d"); re...
repos\flowable-engine-main\modules\flowable-spring-boot\flowable-spring-boot-starters\flowable-spring-boot-autoconfigure\src\main\java\org\flowable\spring\boot\FlowableJobConfiguration.java
2
请完成以下Spring Boot application配置
spring: ai: openai: api-key: "<YOUR-API-KEY>" chat: options: model: "gpt-4o" # Avoid starting docker from
the shared codebase docker: compose: enabled: false
repos\tutorials-master\spring-ai-modules\spring-ai-2\src\main\resources\application-image.yml
2
请完成以下Java代码
public int getCapacity() { return capacity; } public void setCapacity(int capacity) { this.capacity = capacity; } public long getSecondsToLive() { return secondsToLive; } public void setSecondsToLive(long secondsToLive) { this.secondsToLive = secondsToLive; } public int size() { ...
} else { remainingResources.add(resource); } if (size() <= getCapacity()) { // abort if capacity is reached return; } } // if still exceed capacity remove oldest while (remainingResources.size() > capacity) { HalResourceCacheEntry...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\hal\cache\DefaultHalResourceCache.java
1
请完成以下Java代码
public TimerPayload getTimerPayload() { return timerPayload; } public void setTimerPayload(TimerPayload timerPayload) { this.timerPayload = timerPayload; } @Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime ...
BPMNTimerImpl other = (BPMNTimerImpl) obj; if (timerPayload == null) { if (other.timerPayload != null) return false; } else if (!timerPayload.equals(other.timerPayload)) return false; return true; } @Override public String toString() { return ( "BPMNA...
repos\Activiti-develop\activiti-core\activiti-api-impl\activiti-api-process-model-impl\src\main\java\org\activiti\api\runtime\model\impl\BPMNTimerImpl.java
1
请在Spring Boot框架中完成以下Java代码
public class WhatsAppController { @Value("${whatsapp.verify_token}") private String verifyToken; @Autowired private WhatsAppService whatsAppService; @PostMapping("/api/whatsapp/send") public String sendWhatsAppMessage(@RequestParam String to, @RequestParam String message) { wh...
public String verifyWebhook(@RequestParam("hub.mode") String mode, @RequestParam("hub.verify_token") String token, @RequestParam("hub.challenge") String challenge) { if ("subscribe".equals(mode) && verifyToken.equals(token)) { return ch...
repos\tutorials-master\spring-boot-modules\spring-boot-3-3\src\main\java\com\baeldung\chatbot\controller\WhatsAppController.java
2
请完成以下Java代码
public void setExceptionIfMaximumExceeded(boolean exceptionIfMaximumExceeded) { this.exceptionIfMaximumExceeded = exceptionIfMaximumExceeded; } /** * Sets the <tt>sessionLimit</tt> property. The default value is 1. Use -1 for * unlimited sessions. * @param maximumSessions the maximum number of permitted sess...
Assert.notNull(sessionLimit, "sessionLimit cannot be null"); this.sessionLimit = sessionLimit; } /** * Sets the {@link MessageSource} used for reporting errors back to the user when the * user has exceeded the maximum number of authentications. */ @Override public void setMessageSource(MessageSource messag...
repos\spring-security-main\web\src\main\java\org\springframework\security\web\authentication\session\ConcurrentSessionControlAuthenticationStrategy.java
1
请完成以下Java代码
public void setIsWriteOff (boolean IsWriteOff) { set_Value (COLUMNNAME_IsWriteOff, Boolean.valueOf(IsWriteOff)); } /** Get Massenaustritt. @return Massenaustritt */ @Override public boolean isWriteOff () { Object oo = get_Value(COLUMNNAME_IsWriteOff); if (oo != null) { if (oo instanceof Boolean...
/** Set Verarbeitet. @param Processed Checkbox sagt aus, ob der Beleg verarbeitet wurde. */ @Override public void setProcessed (boolean Processed) { set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); } /** Get Verarbeitet. @return Checkbox sagt aus, ob der Beleg verarbeitet wurde. */ ...
repos\metasfresh-new_dawn_uat\backend\de.metas.dunning\src\main\java-gen\de\metas\dunning\model\X_C_DunningDoc_Line_Source.java
1
请完成以下Java代码
public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; NameAnalysisEntity other = (NameAnalysisEntity) obj; if (name == null) { if (other.name...
if (other.countries != null) return false; } else if (!countries.equals(other.countries)) return false; if (gender == null) { if (other.gender != null) return false; } else if (!gender.equals(other.gender)) return false; ...
repos\tutorials-master\spring-web-modules\spring-thymeleaf-attributes\accessing-session-attributes\src\main\java\com\baeldung\accesing_session_attributes\business\entities\NameAnalysisEntity.java
1
请在Spring Boot框架中完成以下Java代码
public FlowableServlet getServlet() { return servlet; } /** * Whether the App engine needs to be started. */ private boolean enabled = true; public String getResourceLocation() { return resourceLocation; } public void setResourceLocation(String resourceLocati...
public boolean isDeployResources() { return deployResources; } public void setDeployResources(boolean deployResources) { this.deployResources = deployResources; } public boolean isEnabled() { return enabled; } public void setEnabled(boolean enabled) { this.enab...
repos\flowable-engine-main\modules\flowable-spring-boot\flowable-spring-boot-starters\flowable-spring-boot-autoconfigure\src\main\java\org\flowable\spring\boot\app\FlowableAppProperties.java
2
请完成以下Java代码
public void setDLM_Partition_Size_Per_Table_V_ID(final int DLM_Partition_Size_Per_Table_V_ID) { if (DLM_Partition_Size_Per_Table_V_ID < 1) { set_ValueNoCheck(COLUMNNAME_DLM_Partition_Size_Per_Table_V_ID, null); } else { set_ValueNoCheck(COLUMNNAME_DLM_Partition_Size_Per_Table_V_ID, Integer.valueOf(DLM_...
/** * Get Anz. zugeordneter Datensätze. * * @return Anz. zugeordneter Datensätze */ @Override public int getPartitionSize() { final Integer ii = (Integer)get_Value(COLUMNNAME_PartitionSize); if (ii == null) { return 0; } return ii.intValue(); } /** * Set Name der DB-Tabelle. * * @para...
repos\metasfresh-new_dawn_uat\backend\de.metas.dlm\base\src\main\java-gen\de\metas\dlm\model\X_DLM_Partition_Size_Per_Table_V.java
1
请完成以下Java代码
public Integer getGender() { return gender; } public void setGender(Integer gender) { this.gender = gender; } public Date getBirthday() { return birthday; } public void setBirthday(Date birthday) { this.birthday = birthday; } public String getCity() { ...
public Integer getGrowth() { return growth; } public void setGrowth(Integer growth) { this.growth = growth; } public Integer getLuckeyCount() { return luckeyCount; } public void setLuckeyCount(Integer luckeyCount) { this.luckeyCount = luckeyCount; } pu...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\UmsMember.java
1
请完成以下Java代码
default void setInitParameters(Map<String, String> initParameters) { getSettings().setInitParameters(initParameters); } /** * Sets {@link CookieSameSiteSupplier CookieSameSiteSuppliers} that should be used to * obtain the {@link SameSite} attribute of any added cookie. This method will replace * any previous...
* Add {@link CookieSameSiteSupplier CookieSameSiteSuppliers} to those that should be * used to obtain the {@link SameSite} attribute of any added cookie. * @param cookieSameSiteSuppliers the suppliers to add * @see #setCookieSameSiteSuppliers */ default void addCookieSameSiteSuppliers(CookieSameSiteSupplier......
repos\spring-boot-4.0.1\module\spring-boot-web-server\src\main\java\org\springframework\boot\web\server\servlet\ConfigurableServletWebServerFactory.java
1
请在Spring Boot框架中完成以下Java代码
public class FactAcctListenersService implements IFactAcctListenersService { private final CopyOnWriteArrayList<IFactAcctListener> listeners = new CopyOnWriteArrayList<>(); public FactAcctListenersService() { super(); registerListener(FactAcctListener2ModelValidationEngineAdapter.instance); } @Override pub...
private FactAcctListener2ModelValidationEngineAdapter() { } private final void fireDocValidate(final Object document, final int timing) { final Object model; if (document instanceof IDocument) { model = ((IDocument)document).getDocumentModel(); } else { model = document; } Mode...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\acct\api\impl\FactAcctListenersService.java
2
请完成以下Java代码
static UriComponents oauth(String issuer) { UriComponents uri = UriComponentsBuilder.fromUriString(issuer).build(); // @formatter:off return UriComponentsBuilder.newInstance().uriComponents(uri) .replacePath(OAUTH_METADATA_PATH + uri.getPath()) .build(); // @formatter:on } private static Mono<Map<Str...
return Mono.just(configuration); }) .onErrorContinue((ex) -> ex instanceof WebClientResponseException && ((WebClientResponseException) ex).getStatusCode().is4xxClientError(), (ex, object) -> { }) .onErrorMap(RuntimeException.class, (ex) -> (ex instanceof IllegalArgumentException) ? ex : n...
repos\spring-security-main\oauth2\oauth2-jose\src\main\java\org\springframework\security\oauth2\jwt\ReactiveJwtDecoderProviderConfigurationUtils.java
1
请在Spring Boot框架中完成以下Java代码
public long findTaskCountByQueryCriteria(TaskQueryImpl taskQuery) { setSafeInValueLists(taskQuery); return (Long) getDbSqlSession().selectOne("selectTaskCountByQueryCriteria", taskQuery); } @Override @SuppressWarnings("unchecked") public List<Task> findTasksByNativeQuery(Map<String, Obj...
protected void setSafeInValueLists(TaskQueryImpl taskQuery) { if (taskQuery.getCandidateGroups() != null) { taskQuery.setSafeCandidateGroups(createSafeInValuesList(taskQuery.getCandidateGroups())); } if (taskQuery.getInvolvedGroups() != null) { taskQuery.setSafeI...
repos\flowable-engine-main\modules\flowable-task-service\src\main\java\org\flowable\task\service\impl\persistence\entity\data\impl\MybatisTaskDataManager.java
2
请完成以下Java代码
protected org.compiere.model.POInfo initPO (Properties ctx) { org.compiere.model.POInfo poi = org.compiere.model.POInfo.getPOInfo (ctx, Table_Name, get_TrxName()); return poi; } /** Set Page_Identifier. @param Page_Identifier Page_Identifier */ @Override public void setPage_Identifier (java....
/** Set Result_Time. @param Result_Time Result_Time */ @Override public void setResult_Time (java.sql.Timestamp Result_Time) { set_ValueNoCheck (COLUMNNAME_Result_Time, Result_Time); } /** Get Result_Time. @return Result_Time */ @Override public java.sql.Timestamp getResult_Time () { return (java....
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\de\metas\dao\selection\model\X_T_Query_Selection_Pagination.java
1
请在Spring Boot框架中完成以下Java代码
DirectExchange orderTtlDirect() { return ExchangeBuilder .directExchange(QueueEnum.QUEUE_TTL_ORDER_CANCEL.getExchange()) .durable(true) .build(); } /** * 订单实际消费队列 */ @Bean public Queue orderQueue() { return new Queue(QueueEnum.QU...
Binding orderBinding(DirectExchange orderDirect,Queue orderQueue){ return BindingBuilder .bind(orderQueue) .to(orderDirect) .with(QueueEnum.QUEUE_ORDER_CANCEL.getRouteKey()); } /** * 将订单延迟队列绑定到交换机 */ @Bean Binding orderTtlBinding(DirectE...
repos\mall-master\mall-portal\src\main\java\com\macro\mall\portal\config\RabbitMqConfig.java
2
请完成以下Java代码
public class PersonDTOWithType { private List<KeyValuePair> person; public PersonDTOWithType() { } public List<KeyValuePair> getPerson() { return person; } public void setPerson(List<KeyValuePair> person) { this.person = person; } public static class KeyValuePair { ...
public KeyValuePair(String key, Object value) { this.key = key; this.value = value; } public String getKey() { return key; } public void setKey(String key) { this.key = key; } public Object getValue() { return...
repos\tutorials-master\jackson-modules\jackson-conversions-3\src\main\java\com\baeldung\jackson\specifictype\dtos\PersonDTOWithType.java
1
请完成以下Java代码
private void unlinkAllChildReferences() { List<ModelElementType> childElementTypes = elementType.getAllChildElementTypes(); for (ModelElementType type : childElementTypes) { Collection<ModelElementInstance> childElementsForType = getChildElementsByType(type); for (ModelElementInstance childElement :...
return domElement.hashCode(); } @Override public boolean equals(Object obj) { if(obj == null) { return false; } else if(obj == this) { return true; } else if(!(obj instanceof ModelElementInstanceImpl)) { return false; } else { ModelElementInstanceImpl other = (ModelElement...
repos\camunda-bpm-platform-master\model-api\xml-model\src\main\java\org\camunda\bpm\model\xml\impl\instance\ModelElementInstanceImpl.java
1
请完成以下Java代码
public class ContextSpecificDeserializationFilterFactory implements BinaryOperator<ObjectInputFilter> { @Override public ObjectInputFilter apply(ObjectInputFilter current, ObjectInputFilter next) { if (current == null) { Class<?> caller = findInStack(DeserializationService.class); ...
return ObjectInputFilter.merge(current, next); } private static Class<?> findInStack(Class<?> superType) { for (StackTraceElement element : Thread.currentThread() .getStackTrace()) { try { Class<?> subType = Class.forName(element.getClassName()); ...
repos\tutorials-master\core-java-modules\core-java-17\src\main\java\com\baeldung\deserializationfilters\ContextSpecificDeserializationFilterFactory.java
1
请完成以下Java代码
public static CostingDocumentRef ofOutboundMovementLineId(final MovementLineId movementLineId) { return new CostingDocumentRef(TABLE_NAME_M_MovementLine, movementLineId, I_M_CostDetail.COLUMNNAME_M_MovementLine_ID, true); } public static CostingDocumentRef ofInboundMovementLineId(final int movementLineId) { re...
@NonNull final String costDetailColumnName, @Nullable final Boolean outboundTrx) { this.tableName = tableName; this.id = id; this.costDetailColumnName = costDetailColumnName; this.outboundTrx = outboundTrx; } public boolean isTableName(final String expectedTableName) {return Objects.equals(tableName, exp...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\costing\CostingDocumentRef.java
1
请完成以下Java代码
public String getType() { return TYPE; } @Override public void execute(JobEntity job, String configuration, VariableScope variableScope, CommandContext commandContext) { CmmnEngineConfiguration engineConfiguration = CommandContextUtil.getCmmnEngineConfiguration(); BatchService batch...
} else { if (batchParts.size() == 0) { updateBatchStatus(batch, batchService); job.setRepeat(null); } else { updateBatchStatus(batch, batchService); } } } protected void updateBatchStatus(Batch batch, BatchService batc...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\job\CaseInstanceMigrationStatusJobHandler.java
1
请完成以下Java代码
public List<I_C_Queue_WorkPackage> retrieveUnprocessedWorkPackagesByEnqueuedRecord( @NonNull final Class<? extends IWorkpackageProcessor> packageProcessorClass, @NonNull final TableRecordReference recordRef) { final int workpackageProcessorId = retrievePackageProcessorIdByClass(packageProcessorClass); retur...
private final CCache<String, QueuePackageProcessorId> classname2QueuePackageProcessorId = CCache .<String, QueuePackageProcessorId>builder() .tableName(I_C_Queue_PackageProcessor.Table_Name) .build(); // we will only ever have a handful of processors, so there is nothing much to worry about wrt cache-size @N...
repos\metasfresh-new_dawn_uat\backend\de.metas.async\src\main\java\de\metas\async\api\impl\AbstractQueueDAO.java
1
请完成以下Java代码
protected org.compiere.model.POInfo initPO(final Properties ctx) { return org.compiere.model.POInfo.getPOInfo(Table_Name); } @Override public void setColor (final @Nullable java.lang.String Color) { set_Value (COLUMNNAME_Color, Color); } @Override public java.lang.String getColor() { return get_ValueA...
@Override public int getM_Allergen_ID() { return get_ValueAsInt(COLUMNNAME_M_Allergen_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); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_Allergen.java
1
请完成以下Java代码
public Integer getClickCount() { return clickCount; } public void setClickCount(Integer clickCount) { this.clickCount = clickCount; } public Integer getOrderCount() { return orderCount; } public void setOrderCount(Integer orderCount) { this.orderCount = orderCo...
sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", name=").append(name); sb.append(", type=").append(type); sb.append(", pic=").append(pic); sb.append(", startTime=").append(...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\SmsHomeAdvertise.java
1
请完成以下Java代码
public ExplainedOptional<T> ifPresent(@NonNull final Consumer<T> consumer) { if (isPresent()) { consumer.accept(value); } return this; } @SuppressWarnings("UnusedReturnValue") public ExplainedOptional<T> ifAbsent(@NonNull final Consumer<ITranslatableString> consumer) { if (!isPresent()) { consum...
* @see #resolve(Function, Function) */ public <R> Optional<R> mapIfAbsent(@NonNull final Function<ITranslatableString, R> mapper) { return isPresent() ? Optional.empty() : Optional.ofNullable(mapper.apply(getExplanation())); } /** * @see #mapIfAbsent(Function) */ public <R> R resolve( @NonNull ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\i18n\ExplainedOptional.java
1
请完成以下Java代码
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.authToken = authToken; } @Nullable public String getRoomId() { return roomId; } public void setRoomId(@Nullable String roomId) { this.roomId = roomId; } }
repos\spring-boot-admin-master\spring-boot-admin-server\src\main\java\de\codecentric\boot\admin\server\notify\WebexNotifier.java
1
请完成以下Java代码
public class AD_Ref_List_GenerateJavaConstants { public static void main(final String[] args) { // // Start ADempiere AdempiereToolsHelper.getInstance().startupMinimal(); LogManager.setLevel(Level.DEBUG); MigrationScriptFileLoggerHolder.setEnabled(false); // metas: don't log migration scripts final Table...
// // Get the AD_Reference list info final ListInfo listInfo = repository.getListInfo(adReferenceId).orElse(null); if (listInfo == null) { throw new AdempiereException("No list info found for AD_Reference_ID=" + adReferenceId); } // // Generate the Java code final String javacode = ADRefListGenerato...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\adempiere\tools\AD_Ref_List_GenerateJavaConstants.java
1
请完成以下Java代码
public static <T> AllAuthoritiesReactiveAuthorizationManager<T> hasAllRoles(String... roles) { return hasAllPrefixedAuthorities(ROLE_PREFIX, roles); } /** * Creates an instance of {@link AllAuthoritiesReactiveAuthorizationManager} with the * provided authorities. * @param prefix the prefix for <code>authorit...
*/ public static <T> AllAuthoritiesReactiveAuthorizationManager<T> hasAllAuthorities(String... authorities) { Assert.notEmpty(authorities, "authorities cannot be empty"); Assert.noNullElements(authorities, "authorities cannot contain null values"); return new AllAuthoritiesReactiveAuthorizationManager<>(authorit...
repos\spring-security-main\core\src\main\java\org\springframework\security\authorization\AllAuthoritiesReactiveAuthorizationManager.java
1
请完成以下Java代码
public int getC_Greeting_ID() { return get_ValueAsInt(COLUMNNAME_C_Greeting_ID); } @Override public void setEMail (final @Nullable java.lang.String EMail) { set_Value (COLUMNNAME_EMail, EMail); } @Override public java.lang.String getEMail() { return get_ValueAsString(COLUMNNAME_EMail); } @Override...
{ return get_ValueAsBoolean(COLUMNNAME_IsNewsletter); } @Override public void setLastname (final @Nullable java.lang.String Lastname) { set_Value (COLUMNNAME_Lastname, Lastname); } @Override public java.lang.String getLastname() { return get_ValueAsString(COLUMNNAME_Lastname); } @Override public vo...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_BPartner_Contact_QuickInput.java
1
请在Spring Boot框架中完成以下Java代码
public void setMinIdle(Integer minIdle) { this.minIdle = minIdle; } public Integer getMaxActive() { return maxActive; } public void setMaxActive(Integer maxActive) { this.maxActive = maxActive; } public Integer getMaxWait() { return maxWait; } public v...
public void setTestOnReturn(Boolean testOnReturn) { this.testOnReturn = testOnReturn; } public Boolean getPoolPreparedStatements() { return poolPreparedStatements; } public void setPoolPreparedStatements(Boolean poolPreparedStatements) { this.poolPreparedStatements = poolPrepar...
repos\SpringBootBucket-master\springboot-batch\src\main\java\com\xncoding\trans\config\properties\DruidProperties.java
2
请在Spring Boot框架中完成以下Java代码
public ProcessEngineFactoryBean processEngine(SpringProcessEngineConfiguration configuration) throws Exception { ProcessEngineFactoryBean processEngineFactoryBean = new ProcessEngineFactoryBean(); processEngineFactoryBean.setProcessEngineConfiguration(configuration); inv...
} @Bean @ConditionalOnMissingBean public ProcessMigrationService processInstanceMigrationService(ProcessEngine processEngine) { return processEngine.getProcessMigrationService(); } @Bean @ConditionalOnMissingBean public FormService formServiceBean(ProcessEngine processEngine) { ...
repos\flowable-engine-main\modules\flowable-spring-boot\flowable-spring-boot-starters\flowable-spring-boot-autoconfigure\src\main\java\org\flowable\spring\boot\ProcessEngineServicesAutoConfiguration.java
2
请完成以下Java代码
public int getM_ProductDownload_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_M_ProductDownload_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Referrer. @param Referrer Referring web address */ public void setReferrer (String Referrer) { set_ValueNoCheck (COLUMNNAME_Refer...
/** Set Serial No. @param SerNo Product Serial Number */ public void setSerNo (String SerNo) { set_ValueNoCheck (COLUMNNAME_SerNo, SerNo); } /** Get Serial No. @return Product Serial Number */ public String getSerNo () { return (String)get_Value(COLUMNNAME_SerNo); } /** Set URL. @param U...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_A_Asset_Delivery.java
1
请完成以下Java代码
private static String appendToName(final String name, final String namePartToAppend) { if (name == null || name.isEmpty()) { return namePartToAppend != null ? namePartToAppend.trim() : ""; } else if (Check.isEmpty(namePartToAppend, true)) { return name.trim(); } else { return name.trim() + " "...
Check.assumeNotEmpty(name, "name is not empty"); int i = 2; String nameUnique = StringUtils.trunc(name, maxLength); while (existingNames.contains(nameUnique)) { final String suffix = " (" + i + ")"; nameUnique = StringUtils.trunc(name, maxLength - suffix.length()) + suffix; i++; } return nameUniq...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\MakeUniqueLocationNameCommand.java
1
请完成以下Java代码
public List<RelatedDocumentsCandidateGroup> retrieveRelatedDocumentsCandidates( @NonNull final IZoomSource fromDocument, @Nullable final AdWindowId targetWindowId) { if (!I_AD_Table.Table_Name.equals(fromDocument.getTableName())) { return ImmutableList.of(); } if (!fromDocument.isSingleKeyRecord()) ...
} private ImmutableSet<AdWindowId> getTargetAdWindowIds(final AdTableId adTableId, final @Nullable AdWindowId onlyWindowId) { final ImmutableSet<AdWindowId> eligibleWindowIds = adWindowDAO.retrieveAllAdWindowIdsByTableId(adTableId); if (onlyWindowId == null) { return eligibleWindowIds; } else if (eligib...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\table\api\TableRelatedDocumentsProvider.java
1
请完成以下Java代码
public List<String> getExternal() { return external; } public void setExternal(List<String> external) { this.external = external; } public class Component { private Idm idm = new Idm(); private Service service = new Service(); public Idm getIdm() { ...
this.password = password; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } } public class Service { private String url; private Str...
repos\tutorials-master\spring-boot-modules\spring-boot-properties\src\main\java\com\baeldung\yaml\YAMLConfig.java
1
请在Spring Boot框架中完成以下Java代码
public class Phone { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private long id; private String number; @ManyToOne private Employee employee; public long getId() { return id; } public void setId(long id) { this.id = id;
} public String getNumber() { return number; } public void setNumber(String number) { this.number = number; } public Employee getEmployee() { return employee; } public void setEmployee(Employee employee) { this.employee = employee; } }
repos\tutorials-master\persistence-modules\spring-data-jpa-query\src\main\java\com\baeldung\joins\model\Phone.java
2
请完成以下Java代码
public TableCalloutsMap getCallouts(final Properties ctx, final String tableName) { return registeredCalloutsByTableId.getOrDefault(tableName, TableCalloutsMap.EMPTY); } public static final class Builder { private Map<String, TableCalloutsMap> registeredCalloutsByTableId = null; private Builder() { sup...
return new ImmutablePlainCalloutProvider(this); } public Builder addCallout(final String tableName, final String columnName, final ICalloutInstance callout) { Check.assumeNotNull(tableName, "TableName not null"); Check.assumeNotNull(columnName, "ColumnName not null"); Check.assumeNotNull(callout, "callo...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\callout\spi\ImmutablePlainCalloutProvider.java
1
请完成以下Java代码
public class PmsAlbumPic implements Serializable { private Long id; private Long albumId; private String pic; private static final long serialVersionUID = 1L; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getAlbumId(...
this.pic = pic; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", albumId=").append(album...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\PmsAlbumPic.java
1
请完成以下Java代码
public String getWhereClause (int ID) { String ColumnName = getElementType().getColumnName(); // MTreeNode node = m_tree.getRoot().findNode(ID); log.trace("Root=" + node); // StringBuilder result = null; if (node != null && node.isSummary ()) { Enumeration<TreeNode> en = node.preorderEnumeration...
if (!nn.isSummary()) { list.add(new Integer(nn.getNode_ID())); log.trace("- " + nn); } else log.trace("- skipped parent (" + nn + ")"); } } else // not found or not summary list.add(new Integer(ID)); // Integer[] retValue = new Integer[list.size()]; list.toArray(retValue); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\report\MReportTree.java
1
请在Spring Boot框架中完成以下Java代码
public void sync(List<ColumnInfo> columnInfos, List<ColumnInfo> columnInfoList) { // 第一种情况,数据库类字段改变或者新增字段 for (ColumnInfo columnInfo : columnInfoList) { // 根据字段名称查找 List<ColumnInfo> columns = columnInfos.stream().filter(c -> c.getColumnName().equals(columnInfo.getColumnName())).c...
@Override public void generator(GenConfig genConfig, List<ColumnInfo> columns) { if (genConfig.getId() == null) { throw new BadRequestException(CONFIG_MESSAGE); } try { GenUtil.generatorCode(columns, genConfig); } catch (IOException e) { log.error(...
repos\eladmin-master\eladmin-generator\src\main\java\me\zhengjie\service\impl\GeneratorServiceImpl.java
2
请完成以下Java代码
public java.math.BigDecimal getQtyInvoiced () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyInvoiced); if (bd == null) return Env.ZERO; return bd; } @Override public org.compiere.model.I_M_RMALine getRef_RMALine() throws RuntimeException { return get_ValueAsPO(COLUMNNAME_Ref_RMALine_ID, org.c...
if (Ref_RMALine_ID < 1) set_Value (COLUMNNAME_Ref_RMALine_ID, null); else set_Value (COLUMNNAME_Ref_RMALine_ID, Integer.valueOf(Ref_RMALine_ID)); } /** Get Referenced RMA Line. @return Referenced RMA Line */ @Override public int getRef_RMALine_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_Re...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_RMALine.java
1
请完成以下Java代码
public class AD_Role_Included { public static final transient AD_Role_Included instance = new AD_Role_Included(); @ModelChange(timings = { ModelValidator.TYPE_BEFORE_NEW, ModelValidator.TYPE_BEFORE_CHANGE }) public void validate(I_AD_Role_Included roleIncluded) { if (roleIncluded.getAD_Role_ID() == roleIncluded....
pstmt = DB.prepareStatement(sql, ITrx.TRXNAME_ThreadInherited); DB.setParameters(pstmt, roleId); rs = pstmt.executeQuery(); while (rs.next()) { final RoleId childId = RoleId.ofRepoId(rs.getInt(1)); if (trace2.contains(childId)) { trace.clear(); trace.addAll(trace2); trace.add(chil...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\security\model\interceptor\AD_Role_Included.java
1
请完成以下Java代码
public class MyHttpServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException { PrintWriter writer = response.getWriter(); writer.println(request.getParameter("function")); if ("getContextPath".equals(request.getParameter("fu...
} else if ("getServerName".equals(request.getParameter("function"))) { writer.println(request.getServerName()); } else if ("getServerPort".equals(request.getParameter("function"))) { writer.println(request.getServerPort()); } else if ("getServletPath".equals(request.getParameter(...
repos\tutorials-master\web-modules\jakarta-servlets-2\src\main\java\com\baeldung\MyHttpServlet.java
1
请完成以下Java代码
protected void ensureProcessInstanceExist(String processInstanceId, ExecutionEntity processInstance) { if (processInstance == null) { throw LOG.processInstanceDoesNotExist(processInstanceId); } } protected String getLogEntryOperation() { return UserOperationLogEntry.OPERATION_TYPE_MODIFY_PROCESS_...
protected void deletePropagate(ExecutionEntity processInstance, String deleteReason, boolean skipCustomListeners, boolean skipIoMappings, boolean externallyTerminated) { ExecutionEntity topmostDeletableExecution = processInstance; ExecutionEntity parentScopeExecution = (ExecutionEntity) topmostDeletableExecutio...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\cmd\ModifyProcessInstanceCmd.java
1
请完成以下Spring Boot application配置
spring.application.name=spring-ai-custom-groq-demo groq.base-url=https://api.groq.com/openai groq.api-key=gsk_XXXX spring.autoconfigure.exclude=org
.springframework.ai.autoconfigure.openai.OpenAiAutoConfiguration
repos\tutorials-master\spring-ai-modules\spring-ai-2\src\main\resources\application-customgroq.properties
2
请完成以下Java代码
public class ProductDto { protected String name; protected String version; protected String edition; protected InternalsDto internals; public ProductDto(String name, String version, String edition, InternalsDto internals) { this.name = name; this.version = version; this.edition = edition; th...
this.edition = edition; } public InternalsDto getInternals() { return internals; } public void setInternals(InternalsDto internals) { this.internals = internals; } public static ProductDto fromEngineDto(Product other) { return new ProductDto( other.getName(), other.getVersion(...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\telemetry\ProductDto.java
1
请完成以下Java代码
public void setM_HU_Storage(final de.metas.handlingunits.model.I_M_HU_Storage M_HU_Storage) { set_ValueFromPO(COLUMNNAME_M_HU_Storage_ID, de.metas.handlingunits.model.I_M_HU_Storage.class, M_HU_Storage); } @Override public void setM_HU_Storage_ID (final int M_HU_Storage_ID) { if (M_HU_Storage_ID < 1) set_...
else set_Value (COLUMNNAME_M_Product_ID, M_Product_ID); } @Override public int getM_Product_ID() { return get_ValueAsInt(COLUMNNAME_M_Product_ID); } @Override public void setQty (final BigDecimal Qty) { set_Value (COLUMNNAME_Qty, Qty); } @Override public BigDecimal getQty() { final BigDecimal...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java-gen\de\metas\handlingunits\model\X_M_HU_Storage_Snapshot.java
1
请在Spring Boot框架中完成以下Java代码
private Consumer<Throwable> errorCallBack(String clientId) { return throwable -> { log.error("SseEmitterServiceImpl[errorCallBack]:连接异常,客户端ID:{}", clientId); // 推送消息失败后,每隔10s推送一次,推送5次 for (int i = 0; i < 5; i++) { try { Thread.sleep(10000)...
}; } /** * 移除用户连接 * * @param clientId 客户端ID * @author re * @date 2021/12/14 **/ private void removeUser(String clientId) { sseCache.remove(clientId); log.info("SseEmitterServiceImpl[removeUser]:移除用户:{}", clientId); } }
repos\spring-boot-quick-master\quick-sse\src\main\java\com\quick\service\SseEmitterServiceImpl.java
2
请完成以下Java代码
private static String badPositionIndexes(int start, int end, int size) { if (start < 0 || start > size) { return badPositionIndex(start, size, "start index"); } if (end < 0 || end > size) { return badPositionIndex(end, size, "end index"); } ...
int placeholderStart = template.indexOf("%s", templateStart); if (placeholderStart == -1) { break; } builder.append(template.substring(templateStart, placeholderStart)); builder.append(args[i++]); templateStart = placeholderStart + ...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\mining\word2vec\Preconditions.java
1
请完成以下Java代码
protected void initRuleChains() { log.debug("[{}] Initializing rule chains", tenantId); for (RuleChain ruleChain : new PageDataIterable<>(link -> ruleChainService.findTenantRuleChainsByType(tenantId, RuleChainType.CORE, link), ContextAwareActor.ENTITY_PACK_LIMIT)) { RuleChainId ruleChainId =...
return new RuleChainActor.ActorCreator(systemContext, tenantId, ruleChain); } }, () -> true); } protected TbActorRef getEntityActorRef(EntityId entityId) { TbActorRef target = null; if (entityId.getEntityType() == EntityType.RULE_CHAIN) { ...
repos\thingsboard-master\application\src\main\java\org\thingsboard\server\actors\ruleChain\RuleChainManagerActor.java
1
请完成以下Java代码
public IntegrationContext from(DelegateExecution execution) { return buildFromExecution(execution); } private IntegrationContextImpl buildFromExecution(DelegateExecution execution) { IntegrationContextImpl integrationContext = new IntegrationContextImpl(); integrationContext.setRootProc...
integrationContext.addInBoundVariables(inboundVariablesProvider.calculateInputVariables(execution)); integrationContext.setEphemeralVariables(inboundVariablesProvider.isMappingEphemeral(execution)); return integrationContext; } protected String resolveServiceTaskNameExpression(ServiceTask serv...
repos\Activiti-develop\activiti-core\activiti-api-impl\activiti-api-process-runtime-impl\src\main\java\org\activiti\runtime\api\connector\IntegrationContextBuilder.java
1
请完成以下Java代码
public LocalDate getDateInvoiced() { return params.getParameterAsLocalDate(PARA_DateInvoiced); } @Override public LocalDate getDateAcct() { return params.getParameterAsLocalDate(PARA_DateAcct); } @Override public String getPOReference() { return params.getParameterAsString(PARA_POReference); } @Over...
return false; } @Override public boolean isCompleteInvoices() { return params.getParameterAsBoolean(PARA_IsCompleteInvoices, true /*true for backwards-compatibility*/); } /** * Always returns {@code false}. */ @Override public boolean isStoreInvoicesInResult() { return false; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\invoicecandidate\api\impl\InvoicingParams.java
1
请在Spring Boot框架中完成以下Java代码
public String projectId() { return obtain(StackdriverProperties::getProjectId, StackdriverConfig.super::projectId); } @Override public String resourceType() { return obtain(StackdriverProperties::getResourceType, StackdriverConfig.super::resourceType); } @Override public Map<String, String> resourceLabels()...
return obtain(StackdriverProperties::isUseSemanticMetricTypes, StackdriverConfig.super::useSemanticMetricTypes); } @Override public String metricTypePrefix() { return obtain(StackdriverProperties::getMetricTypePrefix, StackdriverConfig.super::metricTypePrefix); } @Override public boolean autoCreateMetricDescr...
repos\spring-boot-4.0.1\module\spring-boot-micrometer-metrics\src\main\java\org\springframework\boot\micrometer\metrics\autoconfigure\export\stackdriver\StackdriverPropertiesConfigAdapter.java
2
请完成以下Java代码
private DocumentEntityDescriptor createEntityDescriptor( final DocumentId documentTypeId, final DetailId detailId, @NonNull final Optional<SOTrx> soTrx) { final IMsgBL msgBL = Services.get(IMsgBL.class); final DocumentEntityDescriptor.Builder entityDescriptor = DocumentEntityDescriptor.builder() .setD...
.setMandatoryLogic(ConstantLogicExpression.TRUE) .setDisplayLogic(ConstantLogicExpression.TRUE) .addCharacteristic(Characteristic.PublicField)); entityDescriptor.addField(DocumentFieldDescriptor.builder(IEmptiesQuickInput.COLUMNNAME_Qty) .setCaption(msgBL.translatable(IEmptiesQuickInput.COLUMNNAME_Qty)) ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\quickinput\inout\EmptiesQuickInputDescriptorFactory.java
1
请完成以下Java代码
public void onSuccess(TbQueueMsgMetadata metadata) { if (messagesStats != null) { messagesStats.incrementSuccessful(); } log.trace("[{}] Request sent: {}, request {}", requestId, metadata, request); } @Override publ...
ResponseMetaData(long ts, SettableFuture<T> future, long submitTime, long timeout) { this.submitTime = submitTime; this.timeout = timeout; this.expTime = ts; this.future = future; } @Override public String toString() { return "Response...
repos\thingsboard-master\common\queue\src\main\java\org\thingsboard\server\queue\common\DefaultTbQueueRequestTemplate.java
1
请完成以下Java代码
public void initializingProcessEngine(String name) { logInfo( "004", "Initializing process engine {}", name); } public void exceptionWhileInitializingProcessengine(Throwable e) { logError("005", "Exception while initializing process engine {}", e.getMessage(), e); } public void exceptionWhileC...
public void historyCleanupJobReconfigurationFailure(Exception exception) { logInfo( "008", "History Cleanup Job reconfiguration failed on Process Engine Bootstrap. Possible concurrent execution with the JobExecutor: {}", exception.getMessage() ); } public void couldNotDetermineIp(Exceptio...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\ProcessEngineLogger.java
1
请完成以下Java代码
public void execute(DelegateExecution execution) { CommandContext commandContext = Context.getCommandContext(); List<SignalEventSubscriptionEntity> subscriptionEntities = null; if (processInstanceScope) { subscriptionEntities = commandContext .getEventSubscriptio...
} else { ProcessEngineConfigurationImpl processEngineConfiguration = CommandContextUtil.getProcessEngineConfiguration(); EventSubscriptionService eventSubscriptionService = processEngineConfiguration.getEventSubscriptionServiceConfiguration().getEventSubscriptionService(); ...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\IntermediateThrowSignalEventActivityBehavior.java
1
请完成以下Java代码
public void deleteNotificationRequest(TenantId tenantId, NotificationRequest request) { notificationRequestDao.removeById(tenantId, request.getUuidId()); notificationDao.deleteByRequestId(tenantId, request.getId()); eventPublisher.publishEvent(DeleteEntityEvent.builder().tenantId(tenantId).entit...
public Optional<HasId<?>> findEntity(TenantId tenantId, EntityId entityId) { return Optional.ofNullable(findNotificationRequestById(tenantId, new NotificationRequestId(entityId.getId()))); } @Override public FluentFuture<Optional<HasId<?>>> findEntityAsync(TenantId tenantId, EntityId entityId) { ...
repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\notification\DefaultNotificationRequestService.java
1
请在Spring Boot框架中完成以下Java代码
public R update(@Valid @RequestBody Datasource datasource) { return R.status(datasourceService.updateById(datasource)); } /** * 新增或修改 数据源配置表 */ @PostMapping("/submit") @ApiOperationSupport(order = 6) @Operation(summary = "新增或修改", description = "传入datasource") public R submit(@Valid @RequestBody Datasource ...
@PostMapping("/remove") @ApiOperationSupport(order = 7) @Operation(summary = "逻辑删除", description = "传入ids") public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) { return R.status(datasourceService.deleteLogic(Func.toLongList(ids))); } /** * 数据源列表 */ @GetMapping("/sele...
repos\SpringBlade-master\blade-ops\blade-develop\src\main\java\org\springblade\develop\controller\DatasourceController.java
2
请在Spring Boot框架中完成以下Java代码
public class Article { @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long id; private String title; private String content; private String language; public Article() { } public Article(final String title, final String content, final String language) { this.ti...
public void setLanguage(final String language) { this.language = language; } @Override public String toString() { return "News{" + "id=" + id + ", title='" + title + '\'' + ", content='" + content + '\'' + ", language=" + language ...
repos\tutorials-master\persistence-modules\spring-data-jpa-query-3\src\main\java\com\baeldung\spring\data\jpa\spel\entity\Article.java
2
请完成以下Java代码
public void setProcessDef(ProcessDefinitionEntity processDef) { this.processDef = processDef; this.processDefId = processDef.getId(); } @Override public String getProcessDefinitionId() { return this.processDefId; } public void setDetails(byte[] details) { this.detai...
sb.append(", groupId=").append(groupId); } if (taskId != null) { sb.append(", taskId=").append(taskId); } if (processInstanceId != null) { sb.append(", processInstanceId=").append(processInstanceId); } if (processDefId != null) { sb.app...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\persistence\entity\IdentityLinkEntityImpl.java
1
请完成以下Java代码
public String getPassengerId() { return passengerId; } public void setPassengerId(String passengerId) { this.passengerId = passengerId; } public String getLocation() { return location; } public void setLocation(String location) { this.location = location; }
public String getDestination() { return destination; } public void setDestination(String destination) { this.destination = destination; } @Override public String toString() { return "RideRequest [passengerId=" + passengerId + ", location=" + location + ", destination=" + de...
repos\tutorials-master\messaging-modules\dapr\dapr-workflows\src\main\java\com\baeldung\dapr\pubsub\model\RideRequest.java
1
请在Spring Boot框架中完成以下Java代码
public class AuthServiceConfig { @Bean public SecurityFilterChain securityFilter(HttpSecurity http) throws Exception { http.headers( it -> it.frameOptions(HeadersConfigurer.FrameOptionsConfig::disable)) .csrf(AbstractHttpConfigurer::disable); return http.build(); } @Bean ...
.defaultAuthenticationEntryPointFor( new LoginUrlAuthenticationEntryPoint("/login"), new MediaTypeRequestMatcher(MediaType.TEXT_HTML) ) ) // Accept access tokens for User Info and/or Client Registration .oauth2ResourceServer((re...
repos\tutorials-master\libraries-security-2\src\main\java\com\baeldung\scribejava\oauth\AuthServiceConfig.java
2
请完成以下Java代码
public int getC_UOM_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Rabatt %. @param Discount Discount in percent */ @Override public void setDiscount (java.math.BigDecimal Discount) { set_ValueNoCheck (COLUMNNAME_Discou...
} /** Set Menge. @param Qty Quantity */ @Override public void setQty (java.math.BigDecimal Qty) { set_ValueNoCheck (COLUMNNAME_Qty, Qty); } /** Get Menge. @return Quantity */ @Override public java.math.BigDecimal getQty () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty); if (bd ==...
repos\metasfresh-new_dawn_uat\backend\de.metas.rfq\src\main\java-gen\de\metas\rfq\model\X_C_RfQResponseLineQty_v.java
1
请完成以下Java代码
public java.math.BigDecimal getStd_MinAmt () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Std_MinAmt); if (bd == null) return Env.ZERO; return bd; } /** * Std_Rounding AD_Reference_ID=155 * Reference name: M_DiscountPriceList RoundingRule */ public static final int STD_ROUNDING_AD_Reference...
@param Std_Rounding Rounding rule for calculated price */ @Override public void setStd_Rounding (java.lang.String Std_Rounding) { set_Value (COLUMNNAME_Std_Rounding, Std_Rounding); } /** Get Rundung Standardpreis. @return Rounding rule for calculated price */ @Override public java.lang.String getS...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_DiscountSchemaLine.java
1