instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
public java.math.BigDecimal getPrice () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Price); if (bd == null) { return Env.ZERO; } return bd; } /** Set Preis (old). @param Price_Old Preis (old) */ @Override public void setPrice_Old (java.math.BigDecimal Price_Old) { set_Value (COLUMNNAME_...
{ set_Value (COLUMNNAME_Qty_Old, Qty_Old); } /** Get Menge (old). @return Menge (old) */ @Override public java.math.BigDecimal getQty_Old () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty_Old); if (bd == null) { return Env.ZERO; } return bd; } /** * Type AD_Reference_ID=540660 * ...
repos\metasfresh-new_dawn_uat\backend\de.metas.procurement.base\src\main\java-gen\de\metas\procurement\base\model\X_PMM_RfQResponse_ChangeEvent.java
1
请完成以下Java代码
public void setSecurityContextRepository(SecurityContextRepository securityContextRepository) { Assert.notNull(securityContextRepository, "securityContextRepository cannot be null"); this.securityContextRepository = securityContextRepository; } /** * Sets the {@link SecurityContextHolderStrategy} to use. The d...
/** * The session handling strategy which will be invoked immediately after an * authentication request is successfully processed by the * <tt>AuthenticationManager</tt>. Used, for example, to handle changing of the * session identifier to prevent session fixation attacks. * @param sessionStrategy the impleme...
repos\spring-security-main\web\src\main\java\org\springframework\security\web\authentication\rememberme\RememberMeAuthenticationFilter.java
1
请完成以下Java代码
public class CharacterHelper { public static boolean isSpaceLetter(char input) { return input == 8 || input == 9 || input == 10 || input == 13 || input == 32 || input == 160; } public static boolean isEnglishLetter(char input) { return (input >= 'a' ...
//其他的CJK标点符号,可以不做处理 //|| ub == Character.UnicodeBlock.CJK_SYMBOLS_AND_PUNCTUATION //|| ub == Character.UnicodeBlock.GENERAL_PUNCTUATION } /** * 进行字符规格化(全角转半角,大写转小写处理) * * @param input * @return char */ public static char regularize(char input) { if (inp...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\utility\CharacterHelper.java
1
请在Spring Boot框架中完成以下Java代码
public void setRelatedDocuments(RelatedDocumentsType value) { this.relatedDocuments = value; } /** * Consignment reference of the invoice. * * @return * possible object is * {@link String } * */ public String getConsignmentReference() { retur...
public static class InvoiceFooters { @XmlElement(name = "InvoiceFooter") protected List<InvoiceFooterType> invoiceFooter; /** * Gets the value of the invoiceFooter property. * * <p> * This accessor method returns a reference to the live list, * not...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_ecosio_remadv\at\erpel\schemas\_1p0\documents\extensions\edifact\INVOICExtensionType.java
2
请完成以下Java代码
public class FindActiveActivityIdsCmd implements Command<List<String>>, Serializable { private static final long serialVersionUID = 1L; protected String executionId; public FindActiveActivityIdsCmd(String executionId) { this.executionId = executionId; } @Override public List<String> e...
public List<String> findActiveActivityIds(ExecutionEntity executionEntity) { List<String> activeActivityIds = new ArrayList<>(); collectActiveActivityIds(executionEntity, activeActivityIds); return activeActivityIds; } protected void collectActiveActivityIds(ExecutionEntity executionEnt...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\cmd\FindActiveActivityIdsCmd.java
1
请完成以下Java代码
public class X_CM_AccessNewsChannel extends PO implements I_CM_AccessNewsChannel, I_Persistent { /** * */ private static final long serialVersionUID = 20090915L; /** Standard Constructor */ public X_CM_AccessNewsChannel (Properties ctx, int CM_AccessNewsChannel_ID, String trxName) { super (ct...
*/ public int getCM_AccessProfile_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_CM_AccessProfile_ID); if (ii == null) return 0; return ii.intValue(); } public I_CM_NewsChannel getCM_NewsChannel() throws RuntimeException { return (I_CM_NewsChannel)MTable.get(getCtx(), I_CM_NewsChannel.Table_Na...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_CM_AccessNewsChannel.java
1
请在Spring Boot框架中完成以下Java代码
public class AiOcrController { @Autowired private RedisUtil redisUtil; private static final String AI_OCR_REDIS_KEY = "airag:ocr"; @GetMapping("/list") public Result<?> list(){ Object aiOcr = redisUtil.get(AI_OCR_REDIS_KEY); IPage<AiOcr> page = new Page<>(1,10); ...
} return Result.OK("编辑成功"); } @DeleteMapping("/deleteById") public Result<String> deleteById(@RequestBody AiOcr aiOcr){ Object aiOcrObj = redisUtil.get(AI_OCR_REDIS_KEY); if(null != aiOcrObj){ List<AiOcr> aiOcrs = JSONObject.parseArray(aiOcrObj.toString(), AiOcr.class); ...
repos\JeecgBoot-main\jeecg-boot\jeecg-boot-module\jeecg-boot-module-airag\src\main\java\org\jeecg\modules\airag\ocr\controller\AiOcrController.java
2
请完成以下Java代码
public I_M_PromotionGroup getM_PromotionGroup() throws RuntimeException { return (I_M_PromotionGroup)MTable.get(getCtx(), I_M_PromotionGroup.Table_Name) .getPO(getM_PromotionGroup_ID(), get_TrxName()); } /** Set Promotion Group. @param M_PromotionGroup_ID Promotion Group */ public void setM_PromotionGro...
set_ValueNoCheck (COLUMNNAME_M_PromotionGroupLine_ID, null); else set_ValueNoCheck (COLUMNNAME_M_PromotionGroupLine_ID, Integer.valueOf(M_PromotionGroupLine_ID)); } /** Get Promotion Group Line. @return Promotion Group Line */ public int getM_PromotionGroupLine_ID () { Integer ii = (Integer)get_Value(...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_PromotionGroupLine.java
1
请完成以下Java代码
public void setDocumentNo (java.lang.String DocumentNo) { set_ValueNoCheck (COLUMNNAME_DocumentNo, DocumentNo); } @Override public java.lang.String getDocumentNo() { return (java.lang.String)get_Value(COLUMNNAME_DocumentNo); } @Override public void setFirstname (java.lang.String Firstname) { set_Value...
public void setLastname (java.lang.String Lastname) { set_ValueNoCheck (COLUMNNAME_Lastname, Lastname); } @Override public java.lang.String getLastname() { return (java.lang.String)get_Value(COLUMNNAME_Lastname); } @Override public void setprintjob (java.lang.String printjob) { set_ValueNoCheck (COLUM...
repos\metasfresh-new_dawn_uat\backend\de.metas.printing\de.metas.printing.base\src\main\java-gen\de\metas\printing\model\X_RV_Prt_Bericht_Statistik_List_Per_Org.java
1
请完成以下Java代码
public String getPrefix() { return "spring.rabbit.stream.template"; } @Override public KeyName[] getLowCardinalityKeyNames() { return TemplateLowCardinalityTags.values(); } }; /** * Low cardinality tags. */ public enum TemplateLowCardinalityTags implements KeyName { /** * Bean name of the ...
} /** * Default {@link RabbitStreamTemplateObservationConvention} for Rabbit template key values. */ public static class DefaultRabbitStreamTemplateObservationConvention implements RabbitStreamTemplateObservationConvention { /** * A singleton instance of the convention. */ public static final Defau...
repos\spring-amqp-main\spring-rabbit-stream\src\main\java\org\springframework\rabbit\stream\micrometer\RabbitStreamTemplateObservation.java
1
请完成以下Java代码
public String toString() { return MoreObjects.toStringHelper(this) .add("caption", caption) .add("processId", processId) .add("quickAction", quickAction) .add("defaultQuickAction", defaultQuickAction) .toString(); } public String getCaption() { return caption; } public String getDescript...
public boolean isQuickAction() { return quickAction; } public boolean isDefaultQuickAction() { return defaultQuickAction; } private int getSortNo() { return sortNo; } @JsonAnyGetter public Map<String, Object> getDebugProperties() { return debugProperties; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\process\json\JSONDocumentAction.java
1
请在Spring Boot框架中完成以下Java代码
public class WorkplaceId implements RepoIdAware { int repoId; private WorkplaceId(final int repoId) { this.repoId = Check.assumeGreaterThanZero(repoId, "C_Workplace_ID"); } public static WorkplaceId ofRepoId(final int repoId) {return new WorkplaceId(repoId);} @Nullable public static WorkplaceId ofRepoIdOrNu...
@JsonCreator public static WorkplaceId ofNullableObject(@Nullable final Object obj) { if (obj == null) { return null; } return RepoIdAwares.ofObject(obj, WorkplaceId.class, WorkplaceId::ofRepoId); } @Override @JsonValue public int getRepoId() {return repoId;} public static boolean equals(@Nullable f...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\workplace\WorkplaceId.java
2
请完成以下Java代码
private MLookup getLookupByColumnName(final String columnName) { final int displayType = poInfo.getColumnDisplayType(columnName); if (DisplayType.List == displayType) { final ReferenceId adReferenceId = poInfo.getColumnReferenceValueId(columnName); if (adReferenceId == null) { return null; } ...
// shall not happen if (idObj == null) { return null; } if (isNumericId) { return NumberUtils.asInteger(idObj, null); } else { return idObj.toString(); } } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\table\RecordChangeLogEntryValuesResolver.java
1
请在Spring Boot框架中完成以下Java代码
public void insertNewBook() { Author author = authorRepository.getOne(4L); // or, less efficient since a SELECT is triggered // Author author = authorRepository.findByName("Joana Nimar"); Book book = new Book(); book.setIsbn("003-JN"); book.setTitle("History Of P...
book.setAuthor(books.get(0).getAuthor()); books.add(bookRepository.save(book)); System.out.println(books); } @Transactional public void fetchBooksOfAuthorByIdAndDeleteFirstBook() { List<Book> books = bookRepository.fetchBooksOfAuthorById(4L); ...
repos\Hibernate-SpringBoot-master\HibernateSpringBootJustManyToOne\src\main\java\com\bookstore\service\BookstoreService.java
2
请完成以下Java代码
default void processBatch(ConsumerRecords<K, V> records, List<ConsumerRecord<K, V>> recordList, Consumer<K, V> consumer, MessageListenerContainer container, Exception exception, boolean recoverable, ContainerProperties.EOSMode eosMode) { process(recordList, consumer, container, exception, recoverable, eosMode)...
* Return true to invoke * {@link #process(List, Consumer, MessageListenerContainer, Exception, boolean, ContainerProperties.EOSMode)} * in a new transaction. Because the container cannot infer the desired behavior, the * processor is responsible for sending the offset to the transaction if it decides to * skip ...
repos\spring-kafka-main\spring-kafka\src\main\java\org\springframework\kafka\listener\AfterRollbackProcessor.java
1
请完成以下Java代码
public ProcessInstance execute(CommandContext commandContext) { if (messageName == null) { throw new FlowableIllegalArgumentException("Cannot start process instance by message: message name is null"); } ProcessEngineConfigurationImpl processEngineConfiguration = CommandContextUtil....
DeploymentManager deploymentCache = processEngineConfiguration.getDeploymentManager(); ProcessDefinition processDefinition = deploymentCache.findDeployedProcessDefinitionById(processDefinitionId); if (processDefinition == null) { throw new FlowableObjectNotFoundException("No process definit...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\cmd\StartProcessInstanceByMessageCmd.java
1
请在Spring Boot框架中完成以下Java代码
public ItemPreparedStatementSetter<WriterSO> setter() { return (item, ps) -> { ps.setLong(1, item.getId()); ps.setString(2, item.getFullName()); ps.setString(3, item.getRandomNum()); }; } @Bean public Job importUserJob(JobBuilderFactory jobs, Step s1, Job...
@Bean public Step step1(StepBuilderFactory stepBuilderFactory, ItemReader<RecordSO> reader, ItemWriter<WriterSO> writer, ItemProcessor<RecordSO, WriterSO> processor) { return stepBuilderFactory.get("step1") .<RecordSO, WriterSO>chunk(5) .reader(reader) ...
repos\spring-boot-quick-master\quick-batch\src\main\java\com\quick\batch\config\BatchConfiguration.java
2
请在Spring Boot框架中完成以下Java代码
boolean isPresent() { return this.matcher != null; } /** * Return the extension from the hint or return the parameter if the hint is not * {@link #isPresent() present}. * @param extension the fallback extension * @return the extension either from the hint or fallback */ String orElse(String extension) {...
* @return the {@link FileExtensionHint} (never {@code null}) */ static FileExtensionHint from(String value) { Matcher matcher = PATTERN.matcher(value); return (matcher.matches()) ? new FileExtensionHint(matcher) : NONE; } /** * Remove any hint from the given value. * @param value the source value * @ret...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\context\config\FileExtensionHint.java
2
请完成以下Java代码
public TypedValue getVariable(String variableName) { ExecutionEntity execution = getExecutionFromContext(); if (execution != null) { return execution.getVariableTyped(variableName); } else { return getScopedAssociation().getVariable(variableName); } } @Override public void setVariable...
if(executionContext != null) { return executionContext.getExecution(); } } return null; } public Task getTask() { ensureCommandContextNotActive(); return getScopedAssociation().getTask(); } public void setTask(Task task) { ensureCommandContextNotActive(); getScopedAssocia...
repos\camunda-bpm-platform-master\engine-cdi\core\src\main\java\org\camunda\bpm\engine\cdi\impl\context\DefaultContextAssociationManager.java
1
请在Spring Boot框架中完成以下Java代码
public Object getDetails() { return this.delegate.getDetails(); } @Override public void setAuthenticated(boolean authenticated) { this.delegate.setAuthenticated(authenticated); } @Override public boolean isAuthenticated() { return this.delegate.isAuthenticated(); } ...
@Override public Map<String, Object> getTokenAttributes() { return this.delegate.getTokenAttributes(); } /** * Returns a JWT. It usually refers to a token string expressing with 'eyXXX.eyXXX.eyXXX' format. * * @return the token value as a String */ public String tokenValue()...
repos\realworld-java21-springboot3-main\server\api\src\main\java\io\zhc1\realworld\config\AuthToken.java
2
请完成以下Java代码
public String getHelp () { return (String)get_Value(COLUMNNAME_Help); } /** Set Approved. @param IsApproved Indicates if this document requires approval */ public void setIsApproved (boolean IsApproved) { set_Value (COLUMNNAME_IsApproved, Boolean.valueOf(IsApproved)); } /** Get Approved. @return...
/** Set Processed. @param Processed The document has been processed */ public void setProcessed (boolean Processed) { set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); } /** Get Processed. @return The document has been processed */ public boolean isProcessed () { Object oo = get_Val...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_ChangeNotice.java
1
请完成以下Java代码
public void setProcessed (final boolean Processed) { set_Value (COLUMNNAME_Processed, Processed); } @Override public boolean isProcessed() { return get_ValueAsBoolean(COLUMNNAME_Processed); } @Override public void setProcessing (final boolean Processing) { set_Value (COLUMNNAME_Processing, Processing)...
} @Override public int getUser1_ID() { return get_ValueAsInt(COLUMNNAME_User1_ID); } @Override public org.compiere.model.I_C_ElementValue getUser2() { return get_ValueAsPO(COLUMNNAME_User2_ID, org.compiere.model.I_C_ElementValue.class); } @Override public void setUser2(final org.compiere.model.I_C_Ele...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_Inventory.java
1
请在Spring Boot框架中完成以下Java代码
public class InvoiceWithDetailsService { private final InvoiceWithDetailsRepository invoiceWithDetailsRepository; private final IInvoiceDAO invoiceDAO = Services.get(IInvoiceDAO.class); public InvoiceWithDetailsService(@NonNull final InvoiceWithDetailsRepository invoiceWithDetailsRepository) { this.invoiceWithDe...
final I_C_Invoice_Detail reversedDetail = InterfaceWrapperHelper.newInstance(I_C_Invoice_Detail.class); InterfaceWrapperHelper.copyValues(detail, reversedDetail); if (reversedDetail.getC_InvoiceLine_ID() > 0) { reversedDetail.setC_InvoiceLine_ID(invoiceDAO .retrieveReversalLine(invoiceDAO ...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\invoice\detail\InvoiceWithDetailsService.java
2
请完成以下Java代码
public int getC_Job_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_C_Job_ID); if (ii == null) return 0; return ii.intValue(); } /** Get Record ID/ColumnName @return ID/ColumnName pair */ public KeyNamePair getKeyNamePair() { return new KeyNamePair(get_ID(), String.va...
/** Get Valid from. @return Valid from including this date (first day) */ public Timestamp getValidFrom () { return (Timestamp)get_Value(COLUMNNAME_ValidFrom); } /** Set Valid to. @param ValidTo Valid to including this date (last day) */ public void setValidTo (Timestamp ValidTo) { set_Value (C...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_JobAssignment.java
1
请完成以下Java代码
public T getDelegate() { return this.delegate; } @Override public void registerSeekCallback(ConsumerSeekCallback callback) { if (this.seekAware != null) { this.seekAware.registerSeekCallback(callback); } } @Override public void onPartitionsAssigned(Map<TopicPartition, Long> assignments, ConsumerSeekCal...
} @Override public void onPartitionsRevoked(@Nullable Collection<TopicPartition> partitions) { if (this.seekAware != null) { this.seekAware.onPartitionsRevoked(partitions); } } @Override public void onIdleContainer(Map<TopicPartition, Long> assignments, ConsumerSeekCallback callback) { if (this.seekAwar...
repos\spring-kafka-main\spring-kafka\src\main\java\org\springframework\kafka\listener\adapter\AbstractDelegatingMessageListenerAdapter.java
1
请完成以下Java代码
public class LaneImpl extends BaseElementImpl implements Lane { protected static Attribute<String> nameAttribute; protected static AttributeReference<PartitionElement> partitionElementRefAttribute; protected static ChildElement<PartitionElement> partitionElementChild; protected static ElementReferenceCollectio...
} public PartitionElement getPartitionElement() { return partitionElementRefAttribute.getReferenceTargetElement(this); } public void setPartitionElement(PartitionElement partitionElement) { partitionElementRefAttribute.setReferenceTargetElement(this, partitionElement); } public PartitionElement get...
repos\camunda-bpm-platform-master\model-api\bpmn-model\src\main\java\org\camunda\bpm\model\bpmn\impl\instance\LaneImpl.java
1
请完成以下Java代码
public abstract class BaseAiModelProcessor extends BaseEdgeProcessor { @Autowired private DataValidator<AiModel> aiModelValidator; protected Pair<Boolean, Boolean> saveOrUpdateAiModel(TenantId tenantId, AiModelId aiModelId, AiModelUpdateMsg aiModelUpdateMsg) { boolean isCreated = false; bo...
aiModel.setId(aiModelId); } edgeCtx.getAiModelService().save(aiModel, false); } catch (Exception e) { log.error("[{}] Failed to process aiModel update msg [{}]", tenantId, aiModelUpdateMsg, e); throw e; } return Pair.of(isCreated, isNameUpdated); ...
repos\thingsboard-master\application\src\main\java\org\thingsboard\server\service\edge\rpc\processor\ai\BaseAiModelProcessor.java
1
请完成以下Java代码
public List<CellValue> getHeaderNames() { final List<String> headerNames = new ArrayList<>(); if (m_columnHeaders == null || m_columnHeaders.isEmpty()) { // use the next data row; can be the first, but if we add another sheet, it can also be another one. stepToNextRow(); for (Object headerNameObj : curr...
{ return true; } @Override public boolean isFunctionRow(final int row) { return false; } @Override public boolean isPageBreak(final int row, final int col) { return false; } @Override protected List<CellValue> getNextRow() { stepToNextRow(); return CellValues.toCellValues(currentRow); } priv...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\impexp\spreadsheet\excel\ArrayExcelExporter.java
1
请在Spring Boot框架中完成以下Java代码
private boolean killProcess() { boolean flag = false; try { if (OSUtils.IS_OS_WINDOWS) { Process p = Runtime.getRuntime().exec("cmd /c tasklist "); ByteArrayOutputStream baos = new ByteArrayOutputStream(); InputStream os = p.getInputStream(); ...
flag = true; } } } catch (IOException e) { logger.error("检测office进程异常", e); } return flag; } @PreDestroy public void destroyOfficeManager() { if (null != officeManager && officeManager.isRunning()) { logger.info("Shutting d...
repos\kkFileView-master\server\src\main\java\cn\keking\service\OfficePluginManager.java
2
请完成以下Java代码
public static void disconnect(Session session) { if (session != null) { if (session.isConnected()) { try { session.disconnect(); log.info("session disconnect successfully"); } catch (Exception e) { log.error(...
} return b; } public static void closeInputStream(InputStream in) { if (in != null) { try { in.close(); } catch (IOException e) { log.error("Close input stream error." + e.getMessage()); } } } public static voi...
repos\springboot-demo-master\JSch\src\main\java\com\et\jsch\util\JSchUtil.java
1
请完成以下Java代码
public Integer getConcurrency() { return concurrency; } public void setConcurrency(Integer concurrency) { this.concurrency = concurrency; } @Override public Boolean getAutoStartup() { return null; } @Override public Properties getConsumerProperties() { ...
public void afterPropertiesSet() throws Exception { boolean topicsEmpty = getTopics().isEmpty(); boolean topicPartitionsEmpty = ObjectUtils.isEmpty(getTopicPartitionsToAssign()); if (!topicsEmpty && !topicPartitionsEmpty) { throw new IllegalStateException("Topics or topicPartitions m...
repos\flowable-engine-main\modules\flowable-event-registry-spring\src\main\java\org\flowable\eventregistry\spring\kafka\SimpleKafkaListenerEndpoint.java
1
请完成以下Java代码
public IValidationContext createValidationContext(@NonNull final GridField gridField) { final GridTab gridTab = gridField.getGridTab(); // Check.assumeNotNull(gridTab, "gridTab not null"); if (gridTab == null) { return createValidationContext(gridField, ROWINDEX_None); } // If GridTab is not open we do...
} if (tableName == null) { return IValidationContext.DISABLED; } // // Check if is a Process Parameter/Form field final GridFieldVO gridFieldVO = gridField.getVO(); if (gridFieldVO.isProcessParameter() || gridFieldVO.isFormField()) { return createValidationContext(ctx, gridField.getWindowNo(), E...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\validationRule\impl\ValidationRuleFactory.java
1
请完成以下Java代码
protected void writePlanItemDefinitionBody(CmmnModel model, T serviceTask, XMLStreamWriter xtw, CmmnXmlConverterOptions options) throws Exception { super.writePlanItemDefinitionBody(model, serviceTask, xtw, options); } public static class ServiceTaskExport extends AbstractServiceTaskExport<ServiceTask>...
public static class FormAwareServiceTaskExport extends AbstractServiceTaskExport<FormAwareServiceTask> { @Override protected Class<? extends FormAwareServiceTask> getExportablePlanItemDefinitionClass() { return FormAwareServiceTask.class; } @Override public void wri...
repos\flowable-engine-main\modules\flowable-cmmn-converter\src\main\java\org\flowable\cmmn\converter\export\AbstractServiceTaskExport.java
1
请完成以下Java代码
public Mono<Instance> save(Instance instance) { return super.save(instance).doOnError(OptimisticLockingException.class, (e) -> this.outdatedSnapshots.add(instance.getId())); } public void start() { this.subscription = this.eventStore.findAll().concatWith(this.eventStore).subscribe(this::updateSnapshot); } ...
protected void updateSnapshot(InstanceEvent event) { try { this.snapshots.compute(event.getInstance(), (key, old) -> { Instance instance = (old != null) ? old : Instance.create(key); if (event.getVersion() > instance.getVersion()) { return instance.apply(event); } return instance; }); } ...
repos\spring-boot-admin-master\spring-boot-admin-server\src\main\java\de\codecentric\boot\admin\server\domain\entities\SnapshottingInstanceRepository.java
1
请完成以下Java代码
void doFind() { FindDialog dlg = new FindDialog(); //dlg.setLocation(linkActionB.getLocationOnScreen()); Dimension dlgSize = dlg.getSize(); //dlg.setSize(400, 300); Dimension frmSize = this.getSize(); Point loc = this.getLocationOnScreen(); dlg.setLocation( (frmSize.width - dlgSize.width) / 2 + loc.x, ...
@Override public void requestFocus() { this.editor.requestFocus(); } @Override public boolean requestFocus(boolean temporary) { return this.editor.requestFocus(temporary); } @Override public boolean requestFocusInWindow() { return this.editor.requestFocusInWindow(); } public void setText(String h...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\net\sf\memoranda\ui\htmleditor\HTMLEditor.java
1
请完成以下Java代码
public String getFirstName() { return this.firstName; } public String getEmail() { return email; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (...
} public Builder withLastName(String lastName) { this.lastName = lastName; return this; } public Builder withEmail(String email) { this.email = email; return this; } public Builder withUsername(String username) { this...
repos\tutorials-master\spring-security-modules\spring-security-web-thymeleaf\src\main\java\com\baeldung\customuserdetails\CustomUserDetails.java
1
请完成以下Java代码
public long executeCount(CommandContext commandContext) { return CommandContextUtil.getTokenEntityManager(commandContext).findTokenCountByQueryCriteria(this); } @Override public List<Token> executeList(CommandContext commandContext) { return CommandContextUtil.getTokenEntityManager(commandC...
public String getIpAddressLike() { return ipAddressLike; } public String getUserAgent() { return userAgent; } public String getUserAgentLike() { return userAgentLike; } public String getUserId() { return userId; } public String getUserIdLike() { ...
repos\flowable-engine-main\modules\flowable-idm-engine\src\main\java\org\flowable\idm\engine\impl\TokenQueryImpl.java
1
请完成以下Java代码
public Integer getCaseDefinitionVersion() { return caseDefinitionVersion; } @Override public void setCaseDefinitionVersion(Integer caseDefinitionVersion) { this.caseDefinitionVersion = caseDefinitionVersion; } @Override public String getCaseDefinitionDeploymentId() { re...
this.caseDefinitionDeploymentId = caseDefinitionDeploymentId; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("HistoricCaseInstance[id=").append(id) .append(", caseDefinitionId=").append(caseDefinitionId); if (StringUtils.isN...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\persistence\entity\HistoricCaseInstanceEntityImpl.java
1
请完成以下Java代码
public boolean isTenantIdSet() { return isTenantIdSet; } public void setTenantIdSet(boolean isTenantIdSet) { this.isTenantIdSet = isTenantIdSet; } public String[] getTenantIds() { return tenantIds; } public void setTenantIds(String[] tenantIds) { isTenantIdSet = true; this.tenantIds =...
this.deserializeVariables = deserializeVariables; } public void ensureVariablesInitialized() { if (!filterVariables.isEmpty()) { ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration(); VariableSerializers variableSerializers = processEngineConfiguration....
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\externaltask\TopicFetchInstruction.java
1
请完成以下Java代码
public int getM_Product_ID() { return get_ValueAsInt(COLUMNNAME_M_Product_ID); } @Override public void setMovementDate (final java.sql.Timestamp MovementDate) { set_Value (COLUMNNAME_MovementDate, MovementDate); } @Override public java.sql.Timestamp getMovementDate() { return get_ValueAsTimestamp(COL...
@Override public void setProcessed (final boolean Processed) { set_Value (COLUMNNAME_Processed, Processed); } @Override public boolean isProcessed() { return get_ValueAsBoolean(COLUMNNAME_Processed); } @Override public void setProcessing (final boolean Processing) { set_Value (COLUMNNAME_Processing, ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_ProjectIssue.java
1
请完成以下Java代码
public static char bytesHighFirstToChar(byte[] bytes, int start) { char c = (char) (((bytes[start] & 0xFF) << 8) | (bytes[start + 1] & 0xFF)); return c; } /** * 读取float,高位在前 * * @param bytes * @param start * @return */ public static float bytesHighFirstToFl...
public static void writeUnsignedInt(DataOutputStream out, int uint) throws IOException { out.writeByte((byte) ((uint >>> 8) & 0xFF)); out.writeByte((byte) ((uint >>> 0) & 0xFF)); } public static int convertTwoCharToInt(char high, char low) { int result = high << 16; resu...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\utility\ByteUtil.java
1
请在Spring Boot框架中完成以下Java代码
public class UaaSignatureVerifierClient implements OAuth2SignatureVerifierClient { private final Logger log = LoggerFactory.getLogger(UaaSignatureVerifierClient.class); private final RestTemplate restTemplate; protected final OAuth2Properties oAuth2Properties; public UaaSignatureVerifierClient(Discover...
String key = (String) restTemplate .exchange(getPublicKeyEndpoint(), HttpMethod.GET, request, Map.class).getBody() .get("value"); return new RsaVerifier(key); } catch (IllegalStateException ex) { log.warn("could not contact UAA to get public key"); ...
repos\tutorials-master\jhipster-modules\jhipster-uaa\gateway\src\main\java\com\baeldung\jhipster\gateway\security\oauth2\UaaSignatureVerifierClient.java
2
请完成以下Java代码
public XMLGregorianCalendar getFctvDt() { return fctvDt; } /** * Sets the value of the fctvDt property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setFctvDt(XMLGregorianCalendar value) { this.fctvDt ...
* Objects of the following type(s) are allowed in the list * {@link TrackData1 } * * */ public List<TrackData1> getTrckData() { if (trckData == null) { trckData = new ArrayList<TrackData1>(); } return this.trckData; } /** * Gets the value of th...
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\PlainCardData1.java
1
请完成以下Java代码
public class DefaultAttributeValueContext implements IAttributeValueContext { private final Map<String, Object> parameters; public DefaultAttributeValueContext() { this(null); } protected DefaultAttributeValueContext(final Map<String, Object> parameters) { super(); if (parameters == null || parameters.i...
return valueOld; } @Override public final <T> T getParameter(final String parameterName) { @SuppressWarnings("unchecked") final T value = (T)parameters.get(parameterName); return value; } protected final Map<String, Object> getParameters() { return new HashMap<String, Object>(parameters); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\org\adempiere\mm\attributes\spi\impl\DefaultAttributeValueContext.java
1
请完成以下Java代码
public java.lang.String getCode () { return (java.lang.String)get_Value(COLUMNNAME_Code); } /** Set Beschreibung. @param Description Beschreibung */ @Override public void setDescription (java.lang.String Description) { set_Value (COLUMNNAME_Description, Description); } /** Get Beschreibung. @return...
set_Value (COLUMNNAME_IsShowAllParams, Boolean.valueOf(IsShowAllParams)); } /** Get Display All Parameters. @return Display All Parameters */ @Override public boolean isShowAllParams () { Object oo = get_Value(COLUMNNAME_IsShowAllParams); if (oo != null) { if (oo instanceof Boolean) return (...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_UserQuery.java
1
请完成以下Java代码
int[] middleOfArrayWithStartEnd(int[] array, int start, int end) { int mid = start + (end - start) / 2; int n = end - start; if (n % 2 == 0) { int mid2 = mid - 1; return new int[] { array[mid2], array[mid] }; } else { return new int[] { array[mid] }; ...
} else { return new int[] { array[mid] }; } } int medianOfArray(int[] array, int start, int end) { Arrays.sort(array); // for safety. This can be ignored int mid = (start + end) >>> 1; int n = end - start; if (n % 2 == 0) { int mid2 = mid - 1; ...
repos\tutorials-master\core-java-modules\core-java-arrays-operations-advanced-2\src\main\java\com\baeldung\arraymiddle\MiddleOfArray.java
1
请完成以下Java代码
public static Exception lookupExceptionInCause(Throwable source, Class<? extends Exception>... clazzes) { while (source != null) { for (Class<? extends Exception> clazz : clazzes) { if (clazz.isAssignableFrom(source.getClass())) { return (Exception) source; ...
log.debug("[{}] Unknown error during message processing", componentId, e); return "Please contact system administrator"; } } } public static String getMessage(Throwable t) { String message = t.getMessage(); if (StringUtils.isNotEmpty(message)) { r...
repos\thingsboard-master\common\util\src\main\java\org\thingsboard\common\util\ExceptionUtil.java
1
请完成以下Java代码
public Authentication convert(HttpServletRequest request) { MultiValueMap<String, String> parameters = OAuth2EndpointUtils.getFormParameters(request); if (parameters.getFirst(OAuth2ParameterNames.CLIENT_ASSERTION_TYPE) == null || parameters.getFirst(OAuth2ParameterNames.CLIENT_ASSERTION) == null) { return n...
} // client_id (OPTIONAL as per specification but REQUIRED by this implementation) String clientId = parameters.getFirst(OAuth2ParameterNames.CLIENT_ID); if (!StringUtils.hasText(clientId) || parameters.get(OAuth2ParameterNames.CLIENT_ID).size() != 1) { throw new OAuth2AuthenticationException(OAuth2ErrorCodes...
repos\spring-security-main\oauth2\oauth2-authorization-server\src\main\java\org\springframework\security\oauth2\server\authorization\web\authentication\JwtClientAssertionAuthenticationConverter.java
1
请完成以下Java代码
public final void setClob(final String parameterName, final Clob x) throws SQLException { getCCallableStatementImpl().setClob(parameterName, x); } @Override public final void setAsciiStream(final String parameterName, final InputStream x, final long length) throws SQLException { getCCallableStatementImpl().se...
@Override public final void setClob(final String parameterName, final Reader reader) throws SQLException { getCCallableStatementImpl().setClob(parameterName, reader); } @Override public final void setBlob(final String parameterName, final InputStream inputStream) throws SQLException { getCCallableStatementIm...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\sql\impl\CCallableStatementProxy.java
1
请完成以下Java代码
public static <A extends Annotation> SecurityAnnotationScanner<A> requireUnique(Class<A> type) { return requireUnique(type, new AnnotationTemplateExpressionDefaults()); } /** * Create a {@link SecurityAnnotationScanner} that requires synthesized annotations to * be unique on the given {@link AnnotatedElement}....
(t) -> new ExpressionTemplateSecurityAnnotationScanner<>(t, templateDefaults)); } /** * Create a {@link SecurityAnnotationScanner} that requires synthesized annotations to * be unique on the given {@link AnnotatedElement}. Supplying multiple types implies * that the synthesized annotation must be unique across...
repos\spring-security-main\core\src\main\java\org\springframework\security\core\annotation\SecurityAnnotationScanners.java
1
请完成以下Java代码
public void setSalesRep_ID (int SalesRep_ID) { if (SalesRep_ID < 1) set_Value (COLUMNNAME_SalesRep_ID, null); else set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); } /** Get Sales Representative. @return Sales Representative or Company Agent */ public int getSalesRep_ID () { I...
{ set_Value (COLUMNNAME_TaxIndicator, TaxIndicator); } /** Get Tax Indicator. @return Short form for Tax to be printed on documents */ public String getTaxIndicator () { return (String)get_Value(COLUMNNAME_TaxIndicator); } /** Set UPC/EAN. @param UPC Bar Code (Universal Product Code or its supers...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_I_Invoice.java
1
请完成以下Java代码
public Builder notifyDevice(boolean notifyDevice) { this.notifyDevice = notifyDevice; return this; } public Builder previousCalculatedFieldIds(List<CalculatedFieldId> previousCalculatedFieldIds) { this.previousCalculatedFieldIds = previousCalculatedFieldIds; ...
public void onFailure(Throwable t) { future.setException(t); } }); } public AttributesDeleteRequest build() { return new AttributesDeleteRequest( tenantId, entityId, scope, keys, notifyDevice, previousCalculatedFieldIds, tb...
repos\thingsboard-master\rule-engine\rule-engine-api\src\main\java\org\thingsboard\rule\engine\api\AttributesDeleteRequest.java
1
请完成以下Spring Boot application配置
spring.ai.ollama.chat.options.model=hf.co/microsoft/Phi-3-mini-4k-instruct-gguf spring.ai.ollama.embedding.options.model=hf.co/nomic-ai/nomic-embed-tex
t-v1.5-GGUF spring.ai.ollama.init.pull-model-strategy=when_missing
repos\tutorials-master\spring-ai-modules\spring-ai-2\src\main\resources\application-huggingface.properties
2
请完成以下Java代码
public void setJsonResponse (java.lang.String JsonResponse) { set_Value (COLUMNNAME_JsonResponse, JsonResponse); } @Override public java.lang.String getJsonResponse() { return (java.lang.String)get_Value(COLUMNNAME_JsonResponse); } @Override public void setPP_Cost_Collector_ImportAudit_ID (int PP_Cost_Co...
{ return get_ValueAsInt(COLUMNNAME_PP_Cost_Collector_ImportAudit_ID); } @Override public void setTransactionIdAPI (java.lang.String TransactionIdAPI) { set_ValueNoCheck (COLUMNNAME_TransactionIdAPI, TransactionIdAPI); } @Override public java.lang.String getTransactionIdAPI() { return (java.lang.String)...
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
请完成以下Java代码
public void ctxRefreshed(ContextRefreshedEvent evt) { initData(); } public void initData() { log.info("Context Refreshed !!, Initializing environment (db, folders etc)... "); File uploadFolder = new File(appProperties.getFileStorage().getUploadFolder()); if (!uploadFolder.exis...
createArticle(user2, "User2 Article", "Content User 2"); } void createArticle(AppUser user, String title, String content) { var n = new Article(); n.setCreatedByUser(user); n.setTitle(title); n.setContent(content); articleRepository.save(n); Comment c = new Com...
repos\spring-boot-web-application-sample-master\main-app\main-webapp\src\main\java\gt\app\DataCreator.java
1
请完成以下Java代码
public I_C_Withholding getC_Withholding() throws RuntimeException { return (I_C_Withholding)MTable.get(getCtx(), I_C_Withholding.Table_Name) .getPO(getC_Withholding_ID(), get_TrxName()); } /** Set Withholding. @param C_Withholding_ID Withholding type defined */ public void setC_Withholding_ID (int C...
} return false; } /** Set Temporary exempt. @param IsTemporaryExempt Temporarily do not withhold taxes */ public void setIsTemporaryExempt (boolean IsTemporaryExempt) { set_Value (COLUMNNAME_IsTemporaryExempt, Boolean.valueOf(IsTemporaryExempt)); } /** Get Temporary exempt. @return Temporarily do ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_BP_Withholding.java
1
请完成以下Java代码
public class MigratingActivityInstanceValidationReportImpl implements MigratingActivityInstanceValidationReport { protected String activityInstanceId; protected String sourceScopeId; protected MigrationInstruction migrationInstruction; protected List<String> failures = new ArrayList<String>(); public Migrat...
return migrationInstruction; } public void addFailure(String failure) { failures.add(failure); } public boolean hasFailures() { return !failures.isEmpty(); } public List<String> getFailures() { return failures; } }
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\migration\validation\instance\MigratingActivityInstanceValidationReportImpl.java
1
请完成以下Java代码
public DimensionSpec retrieveForInternalNameOrNull(final String internalName) { final I_DIM_Dimension_Spec record = Services.get(IQueryBL.class).createQueryBuilder(I_DIM_Dimension_Spec.class) .addOnlyActiveRecordsFilter() .addEqualsFilter(I_DIM_Dimension_Spec.COLUMN_InternalName, internalName) .create() ...
final String groupName, final IContextAware ctxAware) { final KeyNamePair[] keyNamePairs = DB.getKeyNamePairs("SELECT M_AttributeValue_ID, ValueName " + "FROM " + DimensionConstants.VIEW_DIM_Dimension_Spec_Attribute_AllValue + " WHERE InternalName=? AND GroupName=?", false, dimensionSpectInternalName,...
repos\metasfresh-new_dawn_uat\backend\de.metas.dimension\src\main\java\de\metas\dimension\impl\DimensionspecDAO.java
1
请完成以下Java代码
public abstract class KafkaResourceFactory { private @Nullable Supplier<String> bootstrapServersSupplier; @Nullable protected String getBootstrapServers() { return this.bootstrapServersSupplier == null ? null : this.bootstrapServersSupplier.get(); } /** * Set a supplier for the bootstrap server list to over...
/** * Enhance the properties by calling the * {@link #setBootstrapServersSupplier(Supplier)} and replace the bootstrap servers * properties. * @param configs the configs. */ protected void checkBootstrap(Map<String, Object> configs) { String bootstrapServers = getBootstrapServers(); if (bootstrapServers ...
repos\spring-kafka-main\spring-kafka\src\main\java\org\springframework\kafka\core\KafkaResourceFactory.java
1
请在Spring Boot框架中完成以下Java代码
public TimerJobEntity findTimerJobById(String jobId) { return getTimerJobEntityManager().findById(jobId); } @Override public List<TimerJobEntity> findTimerJobsByExecutionId(String executionId) { return getTimerJobEntityManager().findJobsByExecutionId(executionId); } @Override p...
return getJobManager().moveJobToTimerJob(job); } @Override public TimerJobEntity createTimerJob() { return getTimerJobEntityManager().create(); } @Override public void insertTimerJob(TimerJobEntity timerJob) { getTimerJobEntityManager().insert(timerJob); } @Overrid...
repos\flowable-engine-main\modules\flowable-job-service\src\main\java\org\flowable\job\service\impl\TimerJobServiceImpl.java
2
请完成以下Java代码
protected void mergeScopeExecutions(ExecutionEntity leaf) { Map<ScopeImpl, PvmExecutionImpl> mapping = leaf.createActivityExecutionMapping(); for (Map.Entry<ScopeImpl, PvmExecutionImpl> mappingEntry : mapping.entrySet()) { ScopeImpl scope = mappingEntry.getKey(); ExecutionEntity scopeExecution = (E...
if (isLeaf(execution)) { leaves.add(execution); } } return leaves; } /** * event-scope executions are not considered in this mapping and must be ignored */ protected boolean isLeaf(ExecutionEntity execution) { if (CompensationBehavior.isCompensationThrowing(execution)) { re...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\ActivityExecutionTreeMapping.java
1
请在Spring Boot框架中完成以下Java代码
private DruidDataSource coreDataSource() { DruidDataSource dataSource = new DruidDataSource(); druidProperties.config(dataSource); return dataSource; } /** * 另一个数据源 */ private DruidDataSource bizDataSource() { DruidDataSource dataSource = new DruidDataSource(); ...
@ConditionalOnProperty(prefix = "xncoding", name = "muti-datasource-open", havingValue = "true") public DynamicDataSource mutiDataSource() { DruidDataSource coreDataSource = coreDataSource(); DruidDataSource bizDataSource = bizDataSource(); try { coreDataSource.init(); ...
repos\SpringBootBucket-master\springboot-multisource\src\main\java\com\xncoding\pos\config\MybatisPlusConfig.java
2
请完成以下Java代码
public final class OAuth2AuthorizedClientRefreshedEvent extends ApplicationEvent { @Serial private static final long serialVersionUID = -2178028089321556476L; private final OAuth2AuthorizedClient authorizedClient; /** * Creates a new instance with the provided parameters. * @param accessTokenResponse the {@l...
* @return the access token response */ public OAuth2AccessTokenResponse getAccessTokenResponse() { return (OAuth2AccessTokenResponse) this.getSource(); } /** * Returns the refreshed {@link OAuth2AuthorizedClient}. * @return the authorized client */ public OAuth2AuthorizedClient getAuthorizedClient() { ...
repos\spring-security-main\oauth2\oauth2-client\src\main\java\org\springframework\security\oauth2\client\event\OAuth2AuthorizedClientRefreshedEvent.java
1
请完成以下Java代码
public final List<I_C_DunningDoc_Line> retrieveDunningDocLines(@NonNull final I_C_DunningDoc dunningDoc) { return Services.get(IQueryBL.class).createQueryBuilder(I_C_DunningDoc_Line.class) .addOnlyActiveRecordsFilter() .addEqualsFilter(I_C_DunningDoc_Line.COLUMN_C_DunningDoc_ID, dunningDoc.getC_DunningDoc_ID...
.addColumn(I_C_DunningLevel.COLUMNNAME_C_DunningLevel_ID) .endOrderBy() .create() .list(); } protected abstract List<I_C_Dunning_Candidate> retrieveDunningCandidates(IDunningContext context, IDunningCandidateQuery query); protected abstract I_C_Dunning_Candidate retrieveDunningCandidate(IDunningContext...
repos\metasfresh-new_dawn_uat\backend\de.metas.dunning\src\main\java\de\metas\dunning\api\impl\AbstractDunningDAO.java
1
请完成以下Java代码
public Builder principal(String principalName) { return principal(createAuthentication(principalName)); } private static Authentication createAuthentication(final String principalName) { Assert.hasText(principalName, "principalName cannot be empty"); return new AbstractAuthenticationToken((Collection<? ex...
public Builder attribute(String name, Object value) { if (this.attributes == null) { this.attributes = new HashMap<>(); } this.attributes.put(name, value); return this; } /** * Builds a new {@link OAuth2AuthorizeRequest}. * @return a {@link OAuth2AuthorizeRequest} */ public OAuth2Authori...
repos\spring-security-main\oauth2\oauth2-client\src\main\java\org\springframework\security\oauth2\client\OAuth2AuthorizeRequest.java
1
请完成以下Java代码
public Optional<DistributedSystem> getDistributedSystem() { return Optional.ofNullable(getDistributionManager().getSystem()); } /** * Returns a reference to the configured {@link DistributionManager} which is use as the {@link #getSource() source} * of this event. * * @return a reference to the {@link Dist...
* @see org.apache.geode.distributed.DistributedMember * @see #getDistributedMember() */ @SuppressWarnings("unchecked") public T withMember(DistributedMember distributedMember) { this.distributedMember = distributedMember; return (T) this; } /** * An {@link Enum enumeration} of different type of {@link ...
repos\spring-boot-data-geode-main\spring-geode-project\apache-geode-extensions\src\main\java\org\springframework\geode\distributed\event\MembershipEvent.java
1
请完成以下Java代码
public String getKey() { return this.key; } public String getRolePrefix() { return this.rolePrefix; } public void setKey(String key) { this.key = key; } /** * Allows the default role prefix of <code>ROLE_</code> to be overridden. May be set * to an empty value, although this is usually not desirable....
return attribute.getAttribute() != null && attribute.getAttribute().startsWith("RUN_AS_"); } /** * This implementation supports any type of class, because it does not query the * presented secure object. * @param clazz the secure object * @return always <code>true</code> */ @Override public boolean suppo...
repos\spring-security-main\access\src\main\java\org\springframework\security\access\intercept\RunAsManagerImpl.java
1
请完成以下Java代码
protected void updateSuspensionState(CommandContext commandContext, SuspensionState suspensionState) { JobManager jobManager = commandContext.getJobManager(); if (jobId != null) { jobManager.updateJobSuspensionStateById(jobId, suspensionState); } else if (jobDefinitionId != null) { jobManager....
if (!processDefinitionTenantIdSet) { jobManager.updateJobSuspensionStateByProcessDefinitionKey(processDefinitionKey, suspensionState); } else { jobManager.updateJobSuspensionStateByProcessDefinitionKeyAndTenantId(processDefinitionKey, processDefinitionTenantId, suspensionState); } } }...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\cmd\AbstractSetJobStateCmd.java
1
请完成以下Java代码
public class Graph { private Map<Vertex, List<Vertex>> adjVertices; Graph() { this.adjVertices = new HashMap<Vertex, List<Vertex>>(); } void addVertex(String label) { adjVertices.putIfAbsent(new Vertex(label), new ArrayList<>()); } void removeVertex(String label) { Ver...
result = prime * result + getOuterType().hashCode(); result = prime * result + ((label == null) ? 0 : label.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj =...
repos\tutorials-master\data-structures\src\main\java\com\baeldung\graph\Graph.java
1
请完成以下Java代码
class RedisDockerComposeConnectionDetailsFactory extends DockerComposeConnectionDetailsFactory<DataRedisConnectionDetails> { private static final String[] REDIS_CONTAINER_NAMES = { "redis", "redis/redis-stack", "redis/redis-stack-server" }; private static final int REDIS_PORT = 6379; RedisDockerComposeConnectio...
private final @Nullable SslBundle sslBundle; RedisDockerComposeConnectionDetails(RunningService service) { super(service); this.standalone = Standalone.of(service.host(), service.ports().get(REDIS_PORT)); this.sslBundle = getSslBundle(service); } @Override public @Nullable SslBundle getSslBundle() { ...
repos\spring-boot-4.0.1\module\spring-boot-data-redis\src\main\java\org\springframework\boot\data\redis\docker\compose\RedisDockerComposeConnectionDetailsFactory.java
1
请在Spring Boot框架中完成以下Java代码
public String getStoreGLN() { return storeGLN; } /** * Sets the value of the storeGLN property. * * @param value * allowed object is * {@link String } * */ public void setStoreGLN(String value) { this.storeGLN = value; } /** * G...
} /** * Sets the value of the lookupLabel property. * * @param value * allowed object is * {@link String } * */ public void setLookupLabel(String value) { this.lookupLabel = value; } }
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_metasfreshinhousev2\de\metas\edi\esb\jaxb\metasfreshinhousev2\EDICBPartnerLookupBPLGLNVType.java
2
请完成以下Java代码
public final List<String> getDependsOnColumnNames() { // NOTE: we cannot know which are the column names until we load the actual aggregation key builder throw new UnsupportedOperationException(); } @Override public final AggregationKey buildAggregationKey(final I_C_Invoice_Candidate ic) { final InvoiceCand...
if (prepayOrderId != null && Services.get(IOrderBL.class).isPrepay(prepayOrderId) && X_C_Aggregation.AGGREGATIONUSAGELEVEL_Header.equals(aggregationUsageLevel)) { return invoiceAggregationFactory.getPrepayOrderAggregationKeyBuilder(ctx); } final boolean isSOTrx = ic.isSOTrx(); return invoiceAggregat...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\invoicecandidate\api\impl\ForwardingICAggregationKeyBuilder.java
1
请完成以下Java代码
public AbstractFlowNodeBuilder builder() { throw new BpmnModelException("No builder implemented for type " + getElementType().getTypeNamespace() +":" + getElementType().getTypeName()); } @SuppressWarnings("rawtypes") public void updateAfterReplacement() { super.updateAfterReplacement(); Collection<Re...
Collection<FlowNode> succeedingNodes = new HashSet<FlowNode>(); for (SequenceFlow sequenceFlow : getOutgoing()) { succeedingNodes.add(sequenceFlow.getTarget()); } return new QueryImpl<FlowNode>(succeedingNodes); } /** Camunda Attributes */ public boolean isCamundaAsyncBefore() { return cam...
repos\camunda-bpm-platform-master\model-api\bpmn-model\src\main\java\org\camunda\bpm\model\bpmn\impl\instance\FlowNodeImpl.java
1
请在Spring Boot框架中完成以下Java代码
public class ProductBOMVersionsDAO { private final IQueryBL queryBL = Services.get(IQueryBL.class); @NonNull public ProductBOMVersionsId createBOMVersions(@NonNull final BOMVersionsCreateRequest request) { final OrgId orgId = request.getOrgId(); final I_PP_Product_BOMVersions bomVersionsRecord = newInstance(I...
public I_PP_Product_BOMVersions getBOMVersions(@NonNull final ProductBOMVersionsId versionsId) { return InterfaceWrapperHelper.load(versionsId, I_PP_Product_BOMVersions.class); } @NonNull private Optional<I_PP_Product_BOMVersions> getBOMVersionsByProductId(@NonNull final ProductId productId) { return queryBL....
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\org\eevolution\api\impl\ProductBOMVersionsDAO.java
2
请完成以下Java代码
public Date getPublished() { return published; } public void setPublished(Date published) { this.published = published; } public BigDecimal getPages() { return pages; } public void setPages(BigDecimal pages) { this.pages = pages; } public UUID getI...
this.id = id; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public float getPrice() { return price; } public void setPrice(float price) { this.price = price; } }
repos\tutorials-master\jackson-modules\jackson-core\src\main\java\com\baeldung\jackson\deserialization\jsondeserialize\Book.java
1
请完成以下Java代码
public class Person { @JsonIgnore private UUID id; private String firstName; private String lastName; public Person(){} public Person(String firstName, String lastName) { this.id = UUID.randomUUID(); this.firstName = firstName; this.lastName = lastName; } publ...
public void setFirstName(String firstName) { this.firstName = firstName; } public String getLastName() { return lastName; } public void setLastName(String lastName) { this.lastName = lastName; } public UUID getId() { return id; } }
repos\tutorials-master\video-tutorials\jackson-annotations-video\src\main\java\com\baeldung\jacksonannotation\inclusion\jsonignore\Person.java
1
请完成以下Java代码
public void setBestPosition(long[] bestPosition) { this.bestPosition = bestPosition; } /** * Sets the {@link #bestFitness}. * * @param bestFitness * the new {@link #bestFitness} */ public void setBestFitness(double bestFitness) { this.bestFitness = bestFitness; } /* * (non-Javadoc) *...
* * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Particle other = (Particle) obj; if (Double.doubleToLongBits(bestFitness) != Double.d...
repos\tutorials-master\algorithms-modules\algorithms-miscellaneous-4\src\main\java\com\baeldung\algorithms\multiswarm\Particle.java
1
请完成以下Java代码
private AdProcessId getReportProcessIdToUse(final Object record) { if (InterfaceWrapperHelper.isInstanceOf(record, I_C_Letter.class)) { final I_C_Letter letter = InterfaceWrapperHelper.create(record, I_C_Letter.class); final BoilerPlateId boilderPlateId = BoilerPlateId.ofRepoIdOrNull(letter.getAD_BoilerPlate...
private boolean computeInvoiceEmailEnabledFromRecord(@NonNull final Object record) { final TableRecordReference recordRef = TableRecordReference.of(record); return docOutboundLogMailRecipientRegistry .getRecipient( DocOutboundLogMailRecipientRequest.builder() .recordRef(recordRef) .client...
repos\metasfresh-new_dawn_uat\backend\de.metas.document.archive\de.metas.document.archive.base\src\main\java\de\metas\document\archive\async\spi\impl\DocOutboundWorkpackageProcessor.java
1
请完成以下Java代码
public Object execute(CommandContext commandContext) { if (jobId == null && job == null) { throw new ActivitiIllegalArgumentException("jobId and job is null"); } if (job == null) { job = commandContext .getJobEntityManager() .find...
} catch (Throwable exception) { failedJobListener.setException(exception); // Dispatch an event, indicating job execution failed in a try-catch block, to prevent the original // exception to be swallowed if (commandContext.getEventDispatcher().isEnabled()) { ...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\cmd\ExecuteJobsCmd.java
1
请完成以下Java代码
public java.lang.String getLoginApiUrl () { return (java.lang.String)get_Value(COLUMNNAME_LoginApiUrl); } @Override public org.compiere.model.I_M_Shipper getM_Shipper() { return get_ValueAsPO(COLUMNNAME_M_Shipper_ID, org.compiere.model.I_M_Shipper.class); } @Override public void setM_Shipper(org.compiere...
public java.lang.String getPaperFormat () { return (java.lang.String)get_Value(COLUMNNAME_PaperFormat); } /** Set URL Api Shipment Service. @param ShipmentServiceApiUrl URL Api Shipment Service */ @Override public void setShipmentServiceApiUrl (java.lang.String ShipmentServiceApiUrl) { set_Value (COLUMN...
repos\metasfresh-new_dawn_uat\backend\de.metas.shipper.gateway.dpd\src\main\java-gen\de\metas\shipper\gateway\dpd\model\X_DPD_Shipper_Config.java
1
请完成以下Java代码
public boolean retainAll(Collection<?> c) { throw new UnsupportedOperationException(); } @Override public void clear() { throw new UnsupportedOperationException("decision result is immutable"); } @Override public DmnDecisionResultEntries set(int index, DmnDecisionResultEntries element) { throw...
public int lastIndexOf(Object o) { return ruleResults.lastIndexOf(o); } @Override public ListIterator<DmnDecisionResultEntries> listIterator() { return asUnmodifiableList().listIterator(); } @Override public ListIterator<DmnDecisionResultEntries> listIterator(int index) { return asUnmodifiable...
repos\camunda-bpm-platform-master\engine-dmn\engine\src\main\java\org\camunda\bpm\dmn\engine\impl\DmnDecisionResultImpl.java
1
请完成以下Java代码
public int getOrder() { return order; } public void setOrder(int order) { this.order = order; } @Override public HttpHeaders filter(HttpHeaders originalHeaders, ServerWebExchange exchange) { HttpHeaders filtered = new HttpHeaders(); List<String> connectionOptions = originalHeaders.getConnection().stream(...
for (Map.Entry<String, List<String>> entry : originalHeaders.headerSet()) { if (!headersToRemove.contains(entry.getKey().toLowerCase(Locale.ROOT))) { filtered.addAll(entry.getKey(), entry.getValue()); } } return filtered; } @Override public boolean supports(Type type) { return type.equals(Type.REQU...
repos\spring-cloud-gateway-main\spring-cloud-gateway-server-webflux\src\main\java\org\springframework\cloud\gateway\filter\headers\RemoveHopByHopHeadersFilter.java
1
请完成以下Java代码
public class IgnoranceAnnotationStructure { public static abstract class Vehicle { private String make; private String model; protected Vehicle() { } protected Vehicle(String make, String model) { this.make = make; this.model = model; } ...
} } public static class Sedan extends Car { public Sedan() { } public Sedan(String make, String model, int seatingCapacity, double topSpeed) { super(make, model, seatingCapacity, topSpeed); } } public static class Crossover extends Car { private dou...
repos\tutorials-master\jackson-modules\jackson-core\src\main\java\com\baeldung\jackson\inheritance\IgnoranceAnnotationStructure.java
1
请完成以下Java代码
public boolean equals(Object obj) { if (this == obj) { return true; } final DunningCandidateQuery other = EqualsBuilder.getOther(this, obj); if (other == null) { return false; } return new EqualsBuilder() .append(AD_Table_ID, other.AD_Table_ID) .append(Record_ID, other.Record_ID) .a...
} public void setActive(boolean active) { this.active = active; } @Override public boolean isApplyClientSecurity() { return applyClientSecurity; } public void setApplyClientSecurity(boolean applyClientSecurity) { this.applyClientSecurity = applyClientSecurity; } @Override public Boolean getProcess...
repos\metasfresh-new_dawn_uat\backend\de.metas.dunning\src\main\java\de\metas\dunning\api\impl\DunningCandidateQuery.java
1
请完成以下Java代码
public Long getPetId() { return petId; } public void setPetId(Long petId) { this.petId = petId; } public Order quantity(Integer quantity) { this.quantity = quantity; return this; } /** * Get quantity * @return quantity **/ @ApiModelProperty(value = "") public Integer getQuant...
@Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Order order = (Order) o; return Objects.equals(this.id, order.id) && Objects.equals(this.petId, order.petId) && Objec...
repos\tutorials-master\spring-swagger-codegen-modules\spring-swagger-codegen-api-client\src\main\java\com\baeldung\petstore\client\model\Order.java
1
请完成以下Java代码
public class OrganizationUnitImpl extends BusinessContextElementImpl implements OrganizationUnit { protected static ElementReferenceCollection<Decision, DecisionMadeReference> decisionDecisionMadeRefCollection; protected static ElementReferenceCollection<Decision, DecisionOwnedReference> decisionDecisionOwnedRefCo...
SequenceBuilder sequenceBuilder = typeBuilder.sequence(); decisionDecisionMadeRefCollection = sequenceBuilder.elementCollection(DecisionMadeReference.class) .uriElementReferenceCollection(Decision.class) .build(); decisionDecisionOwnedRefCollection = sequenceBuilder.elementCollection(DecisionOwned...
repos\camunda-bpm-platform-master\model-api\dmn-model\src\main\java\org\camunda\bpm\model\dmn\impl\instance\OrganizationUnitImpl.java
1
请在Spring Boot框架中完成以下Java代码
public class TaxQuery { @NonNull OrgId orgId; @Nullable WarehouseId warehouseId; @Nullable CountryId fromCountryId; @NonNull Timestamp dateOfInterest; @NonNull BPartnerId bPartnerId; @Nullable BPartnerLocationAndCaptureId bPartnerLocationId; @NonNull SOTrx soTrx; @Nullable TaxCategoryId taxCatego...
@Nullable final Timestamp dateOfInterest, @Nullable final BPartnerLocationAndCaptureId bPartnerLocationId, @NonNull final SOTrx soTrx, @Nullable final TaxCategoryId taxCategoryId, @Nullable final BPartnerId bPartnerId, @Nullable final CountryId shippingCountryId, @Nullable final Boolean isTaxExempt) ...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\tax\api\TaxQuery.java
2
请完成以下Java代码
public void setVerfuegbarkeitBulkVereinbart(boolean value) { this.verfuegbarkeitBulkVereinbart = value; } /** * Gets the value of the ruecknahmeangebotVereinbart property. * */ public boolean isRuecknahmeangebotVereinbart() { return ruecknahmeangebotVereinbart; } /*...
* @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setGueltigAb(XMLGregorianCalendar value) { this.gueltigAb = value; } /** * Gets the value of the kundenKennung property. * * @return * possible object is ...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma.msv3.schema.v1\src\main\java-xjc\de\metas\vertical\pharma\vendor\gateway\msv3\schema\v1\VertragsdatenAntwort.java
1
请在Spring Boot框架中完成以下Java代码
public class SayHelloController { //"say-hello" => "Hello! What are you learning today?" //say-hello // http://localhost:8080/say-hello @RequestMapping("say-hello") @ResponseBody public String sayHello() { return "Hello! What are you learning today?"; } @RequestMapping("say-hello-html") @ResponseBody ...
sb.append("<body>"); sb.append("My first html page with body - Changed"); sb.append("</body>"); sb.append("</html>"); return sb.toString(); } // // "say-hello-jsp" => sayHello.jsp // /src/main/resources/META-INF/resources/WEB-INF/jsp/sayHello.jsp // /src/main/resources/META-INF/resources/WEB-INF/jsp/...
repos\master-spring-and-spring-boot-main\11-web-application\src\main\java\com\in28minutes\springboot\myfirstwebapp\hello\SayHelloController.java
2
请完成以下Java代码
public class ExternalWorkerTaskCompleteJobHandler implements JobHandler { public static final String TYPE = "external-worker-complete"; @Override public String getType() { return TYPE; } @Override public void execute(JobEntity job, String configuration, VariableScope variableScope, Co...
if (configuration != null && configuration.startsWith("error:")) { String errorCode; if (configuration.length() > 6) { errorCode = configuration.substring(6); } else { errorCode = null; } ErrorPropagation.propagateError(errorCod...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\jobexecutor\ExternalWorkerTaskCompleteJobHandler.java
1
请在Spring Boot框架中完成以下Java代码
LocalContainerEntityManagerFactoryBean entityManagerFactory() throws IOException { final LocalContainerEntityManagerFactoryBean em = new LocalContainerEntityManagerFactoryBean(); em.setDataSource(dataSource()); em.setPackagesToScan(new String[] { "com.baeldung.persistence.model" }); final JpaV...
dataSource.setPassword( "" ); return dataSource; } @ConditionalOnResource(resources = "classpath:mysql.properties") Properties additionalProperties() throws IOException { final Properties additionalProperties = new Properties(); try (InputStream inputStream = new ClassP...
repos\tutorials-master\spring-boot-modules\spring-boot-annotations\src\main\java\com\baeldung\annotations\MySQLAutoconfiguration.java
2
请完成以下Java代码
public TrxItemProcessorContext copy() { final TrxItemProcessorContext contextNew = new TrxItemProcessorContext(ctx); contextNew.trx = trx; contextNew.params = params; return contextNew; } @Override public Properties getCtx() { return ctx; } @Override public String getTrxName() { if (trx == null)...
{ return params; } public void setParams(IParams params) { this.params = params; } @Override public String toString() { return "TrxItemProcessorContext [trx=" + trx + ", params=" + params + "]"; } /** * Returning <code>false</code> to ensure that the trx which was set via {@link #setTrx(ITrx)} is ac...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\trx\processor\api\impl\TrxItemProcessorContext.java
1
请完成以下Java代码
public static class Builder { private final CompositeStringExpression.Builder sql = IStringExpression.composer(); private final ArrayList<Object> sqlParams = new ArrayList<>(); private Builder() {} public SqlAndParamsExpression build() { return new SqlAndParamsExpression(this); } public Builder appendIfNo...
} public Builder append(@Nullable final String sqlToAppend) { if (sqlToAppend != null) { sql.append(sqlToAppend); } return this; } public Builder appendSqlList(@NonNull final String sqlColumnName, @NonNull final Collection<?> values) { final String sqlToAppend = DB.buildSqlList(sqlColumnN...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\view\descriptor\SqlAndParamsExpression.java
1
请完成以下Java代码
public class AnimalActivity { final static Logger logger = LoggerFactory.getLogger(AnimalActivity.class); public static void sleep(Animal animal) { logger.info("Animal is sleeping"); } public static void sleep(Dog dog) { logger.info("Cat is sleeping"); } public static void m...
animal.makeNoise(); animal.makeNoise(3); //assigning a dog object to reference of type Animal Animal catAnimal = new Dog(); catAnimal.makeNoise(); // calling static function AnimalActivity.sleep(catAnimal); return; } }
repos\tutorials-master\core-java-modules\core-java-lang-oop-others\src\main\java\com\baeldung\binding\AnimalActivity.java
1
请完成以下Java代码
public class RemoveExecutionVariablesCmd extends NeedsActiveExecutionCmd<Void> { private static final long serialVersionUID = 1L; private Collection<String> variableNames; private boolean isLocal; public RemoveExecutionVariablesCmd(String executionId, Collection<String> variableNames, boolean isLocal...
} if (isLocal) { execution.removeVariablesLocal(variableNames); } else { execution.removeVariables(variableNames); } return null; } @Override protected String getSuspendedExceptionMessagePrefix() { return "Cannot remove variables from"; ...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\cmd\RemoveExecutionVariablesCmd.java
1
请在Spring Boot框架中完成以下Java代码
private synchronized void playHole(@NonNull GolfTournament golfTournament) { GolfCourse golfCourse = golfTournament.getGolfCourse(); Set<Integer> occupiedHoles = new HashSet<>(); for (GolfTournament.Pairing pairing : golfTournament) { int hole = pairing.nextHole(); if (!occupiedHoles.contains(hole)) { ...
int parForCourse = getGolfTournament() .map(GolfTournament::getGolfCourse) .map(GolfCourse::getParForCourse) .orElse(GolfCourse.STANDARD_PAR_FOR_COURSE); return parForCourse + finalScore; } private int calculateRunningScore(@Nullable Integer currentScore) { int runningScore = currentScore != null ? cu...
repos\spring-boot-data-geode-main\spring-geode-samples\caching\inline-async\src\main\java\example\app\caching\inline\async\client\service\PgaTourService.java
2
请完成以下Java代码
protected List<IFacet<I_C_Invoice_Candidate>> collectFacets(final IQueryBuilder<I_C_Invoice_Candidate> icQueryBuilder) { // FRESH-560: Add default filter final IQueryBuilder<I_C_Invoice_Candidate> queryBuilderWithDefaultFilters = Services.get(IInvoiceCandDAO.class).applyDefaultFilter(icQueryBuilder); // Match o...
return facets; } private final IFacet<I_C_Invoice_Candidate> createPackingMaterialFacet(final I_M_Product product) { final IFacetCategory facetCategory = getFacetCategory(); final BigDecimal qtyToInvoiceInPriceUOM = DYNATTR_QtyToInvoiceInPriceUOM.getValue(product); final int productId = product.getM_Product_...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\invoicecandidate\facet\C_Invoice_Candidate_HUPackingMaterials_FacetCollector.java
1
请完成以下Java代码
public void setM_Picking_Job_ID (final int M_Picking_Job_ID) { if (M_Picking_Job_ID < 1) set_ValueNoCheck (COLUMNNAME_M_Picking_Job_ID, null); else set_ValueNoCheck (COLUMNNAME_M_Picking_Job_ID, M_Picking_Job_ID); } @Override public int getM_Picking_Job_ID() { return get_ValueAsInt(COLUMNNAME_M_Pic...
{ return get_ValueAsInt(COLUMNNAME_M_Product_ID); } @Override public void setM_ShipmentSchedule_ID (final int M_ShipmentSchedule_ID) { if (M_ShipmentSchedule_ID < 1) set_Value (COLUMNNAME_M_ShipmentSchedule_ID, null); else set_Value (COLUMNNAME_M_ShipmentSchedule_ID, M_ShipmentSchedule_ID); } @Ove...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java-gen\de\metas\handlingunits\model\X_M_Picking_Job_Line.java
1
请在Spring Boot框架中完成以下Java代码
public class KafkaConsumerConfig { private static final Logger LOGGER = LoggerFactory.getLogger(KafkaConsumerConfig.class); @Value(value = "${spring.kafka.bootstrap-servers}") private String bootstrapAddress; @Value(value = "${kafka.backoff.interval}") private Long interval; @Value(value = "...
@Bean public ConcurrentKafkaListenerContainerFactory<String, BookEvent> kafkaListenerContainerFactory() { ConcurrentKafkaListenerContainerFactory<String, BookEvent> factory = new ConcurrentKafkaListenerContainerFactory<>(); factory.setConsumerFactory(consumerFactory()); factory.setCommonErro...
repos\tutorials-master\spring-kafka-2\src\main\java\com\baeldung\spring\kafka\multiplelisteners\KafkaConsumerConfig.java
2
请在Spring Boot框架中完成以下Java代码
public Buyer taxAddress(TaxAddress taxAddress) { this.taxAddress = taxAddress; return this; } /** * Get taxAddress * * @return taxAddress **/ @javax.annotation.Nullable @ApiModelProperty(value = "") public TaxAddress getTaxAddress() { return taxAddress; } public void setTaxAddress(TaxAddress...
@javax.annotation.Nullable @ApiModelProperty(value = "The buyer's eBay user ID.") public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null ...
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\Buyer.java
2