instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
public final String getSummary(@NonNull final Object model) { final IDocument doc = getDocumentOrNull(model); if (doc != null) { return doc.getSummary(); } // Fallback: use toString() return String.valueOf(model); } @Override public boolean isReversalDocument(@NonNull final Object model) { // Tr...
public boolean equals(final Object obj) { if (this == obj) { return true; } if (obj instanceof DocActionItem) { final DocActionItem other = (DocActionItem)obj; return Objects.equal(value, other.value); } else { return false; } } @Override public String getValue() { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\document\engine\impl\AbstractDocumentBL.java
1
请完成以下Java代码
public void commit() { if (consumerLock.isLocked()) { if (stopped) { return; } log.error("commit. consumerLock is locked. will wait with no timeout. it looks like a race conditions or deadlock topic " + topic, new RuntimeException("stacktrace")); } ...
return stopped; } abstract protected List<R> doPoll(long durationInMillis); abstract protected T decode(R record) throws IOException; abstract protected void doSubscribe(Set<TopicPartitionInfo> partitions); abstract protected void doCommit(); abstract protected void doUnsubscribe(); @O...
repos\thingsboard-master\common\queue\src\main\java\org\thingsboard\server\queue\common\AbstractTbQueueConsumerTemplate.java
1
请在Spring Boot框架中完成以下Java代码
public class KPIDataSet { String name; String unit; ImmutableList<KPIDataSetValuesMap> values; public static KPIDataSetBuilder builder(@NonNull final String name) { return new KPIDataSetBuilder().name(name); } private KPIDataSet(final KPIDataSetBuilder builder) { this.name = builder.name; this.unit = bu...
public KPIDataSetBuilder name(final String name) { this.name = name; return this; } public KPIDataSetBuilder unit(@Nullable final String unit) { this.unit = unit; return this; } public KPIDataSetValuesMap.KPIDataSetValuesMapBuilder dataSetValue(final KPIDataSetValuesAggregationKey dataSetValue...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\kpi\data\KPIDataSet.java
2
请在Spring Boot框架中完成以下Java代码
public class ServerData { private final String source; private final String data; private final long timestamp; private final String state; public ServerData(String source, String data, long timestamp, String state) { this.source = source; this.data = data; this.timestamp =...
return data; } public long getTimestamp() { return timestamp; } public String getSource() { return source; } public String getState() { return state; } }
repos\spring-examples-java-17\spring-jcasbin\src\main\java\itx\examples\springboot\security\services\dto\ServerData.java
2
请完成以下Java代码
public void setInvoiceRule(final JsonInvoiceRule invoiceRule) { this.invoiceRule = invoiceRule; this.invoiceRuleSet = true; } public void setUrl(final String url) { this.url = url; this.urlSet = true; } public void setUrl2(final String url2) { this.url2 = url2; this.url2Set = true; } public void...
this.globalId = globalId; this.globalIdset = true; } public void setSyncAdvise(final SyncAdvise syncAdvise) { this.syncAdvise = syncAdvise; this.syncAdviseSet = true; } public void setVatId(final String vatId) { this.vatId = vatId; this.vatIdSet = true; } }
repos\metasfresh-new_dawn_uat\misc\de-metas-common\de-metas-common-bpartner\src\main\java\de\metas\common\bpartner\v1\request\JsonRequestBPartner.java
1
请完成以下Java代码
public class BoundaryEventImpl extends CatchEventImpl implements BoundaryEvent { protected static Attribute<Boolean> cancelActivityAttribute; protected static AttributeReference<Activity> attachedToRefAttribute; public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder...
@Override public BoundaryEventBuilder builder() { return new BoundaryEventBuilder((BpmnModelInstance) modelInstance, this); } public boolean cancelActivity() { return cancelActivityAttribute.getValue(this); } public void setCancelActivity(boolean cancelActivity) { cancelActivityAttribute.setValu...
repos\camunda-bpm-platform-master\model-api\bpmn-model\src\main\java\org\camunda\bpm\model\bpmn\impl\instance\BoundaryEventImpl.java
1
请完成以下Java代码
public class LoopBreaking { public String simpleBreak() { String result = ""; for (int outerCounter = 0; outerCounter < 2; outerCounter++) { result += "outer" + outerCounter; for (int innerCounter = 0; innerCounter < 2; innerCounter++) { result += "inner" + i...
result += "inner" + innerCounter; if (innerCounter == 0) { break myBreakLabel; } } } return result; } public String usingReturn() { String result = ""; for (int outerCounter = 0; outerCounter < 2; outerCounter++) { ...
repos\tutorials-master\core-java-modules\core-java-lang-syntax-3\src\main\java\com\baeldung\breakloop\LoopBreaking.java
1
请完成以下Java代码
public static Properties loadI18nProp(){ if (prop != null) { return prop; } try { // build i18n prop String i18n = XxlJobAdminConfig.getAdminConfig().getI18n(); String i18nFile = MessageFormat.format("i18n/message_{0}.properties", i18n); ...
/** * get mult val of i18n mult key, as json * * @param keys * @return */ public static String getMultString(String... keys) { Map<String, String> map = new HashMap<String, String>(); Properties prop = loadI18nProp(); if (keys!=null && keys.length>0) { f...
repos\JeecgBoot-main\jeecg-boot\jeecg-server-cloud\jeecg-visual\jeecg-cloud-xxljob\src\main\java\com\xxl\job\admin\core\util\I18nUtil.java
1
请完成以下Java代码
public void createExternalSystemInstance(final I_ExternalSystem_Config_GRSSignum grsConfig) { final ExternalSystemParentConfigId parentConfigId = ExternalSystemParentConfigId.ofRepoId(grsConfig.getExternalSystem_Config_ID()); externalServices.initializeServiceInstancesIfRequired(parentConfigId); } @ModelChange...
{ if (!grsConfig.isCreateBPartnerFolders()) { return; } if (Check.isBlank(grsConfig.getBPartnerExportDirectories()) || Check.isBlank(grsConfig.getBasePathForExportDirectories())) { throw new AdempiereException("BPartnerExportDirectories and BasePathForExportDirectories must be set!") .appendPa...
repos\metasfresh-new_dawn_uat\backend\de.metas.externalsystem\src\main\java\de\metas\externalsystem\grssignum\interceptor\ExternalSystem_Config_GRSSignum.java
1
请在Spring Boot框架中完成以下Java代码
public DeviceToCreateMaintenances lastServiceDate(String lastServiceDate) { this.lastServiceDate = lastServiceDate; return this; } /** * Letzte Prüfung * @return lastServiceDate **/ @Schema(example = "01.06.2020", description = "Letzte Prüfung") public String getLastServiceDate() { return ...
@Override public int hashCode() { return Objects.hash(maintenanceCode, maintenanceInterval, lastServiceDate, nextServiceDate); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeviceToCreateMaintenances {\n"); sb.append(" maintenanceCode: ...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\alberta\alberta-article-api\src\main\java\io\swagger\client\model\DeviceToCreateMaintenances.java
2
请在Spring Boot框架中完成以下Java代码
protected Class<? extends Annotation> getAnnotationType() { return UseLocators.class; } @Override public void setImportMetadata(AnnotationMetadata importMetadata) { if (isAnnotationPresent(importMetadata)) { AnnotationAttributes useLocatorsAttributes = getAnnotationAttributes(importMetadata); setLocato...
if (logger.isWarnEnabled()) { logger.warn("The '{}' property was configured [{}];" + " however, this value does not have any effect for ClientCache instances", LOCATORS_PROPERTY, locators); } }); getRemoteLocators().ifPresent(remoteLocators -> { if (logger.isWarnEnabled()) { logger...
repos\spring-boot-data-geode-main\spring-geode-project\spring-geode\src\main\java\org\springframework\geode\config\annotation\LocatorsConfiguration.java
2
请在Spring Boot框架中完成以下Java代码
public boolean deleteAndStopJob(QuartzJob job) { schedulerDelete(job.getId()); boolean ok = this.removeById(job.getId()); return ok; } @Override public void execute(QuartzJob quartzJob) throws Exception { String jobName = quartzJob.getJobClassName().trim(); Date startDate = new Date(); String ymd = Date...
// 表达式调度构建器(即任务执行的时间) CronScheduleBuilder scheduleBuilder = CronScheduleBuilder.cronSchedule(cronExpression); // 按新的cronExpression表达式构建一个新的trigger CronTrigger trigger = TriggerBuilder.newTrigger().withIdentity(id).withSchedule(scheduleBuilder).build(); scheduler.scheduleJob(jobDetail, trigger); } catch ...
repos\JeecgBoot-main\jeecg-boot\jeecg-module-system\jeecg-system-biz\src\main\java\org\jeecg\modules\quartz\service\impl\QuartzJobServiceImpl.java
2
请完成以下Java代码
public <JSONType> ResponseEntity<JSONType> toDocumentJson(final BiFunction<R, JSONDocumentOptions, JSONType> toJsonMapper) { return toResponseEntity((responseBuilder, result) -> responseBuilder.body(toJsonMapper.apply(result, getJSONDocumentOptions()))); } public <BodyType> ResponseEntity<BodyType> toResponseEnti...
ResponseEntity.BodyBuilder response = ResponseEntity.status(status) .eTag(etag) .cacheControl(CacheControl.maxAge(cacheMaxAgeSec, TimeUnit.SECONDS)); final String adLanguage = getAdLanguage(); if (adLanguage != null && !adLanguage.isEmpty()) { final String contentLanguage = ADLanguageList.toHttpLangua...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\cache\ETagResponseEntityBuilder.java
1
请在Spring Boot框架中完成以下Java代码
public class DataSourceItemReaderDemo { @Autowired private JobBuilderFactory jobBuilderFactory; @Autowired private StepBuilderFactory stepBuilderFactory; // 注入数据源 @Autowired private DataSource dataSource; @Bean public Job dataSourceItemReaderJob() throws Exception { return ...
// 将读取到的数据转换为TestData对象 reader.setRowMapper((resultSet, rowNum) -> { TestData data = new TestData(); data.setId(resultSet.getInt(1)); data.setField1(resultSet.getString(2)); // 读取第一个字段,类型为String data.setField2(resultSet.getString(3)); data.setField3(re...
repos\SpringAll-master\68.spring-batch-itemreader\src\main\java\cc\mrbird\batch\job\DataSourceItemReaderDemo.java
2
请完成以下Java代码
public QueryInsertExecutor<ToModelType, FromModelType> mapColumnToConstant(final String toColumnName, final Object constantValue) { final IQueryInsertFromColumn from = new ConstantQueryInsertFromColumn(constantValue); mapColumn(toColumnName, from); return this; } @Override public QueryInsertExecutor<ToModelT...
/* package */ Map<String, IQueryInsertFromColumn> getColumnMapping() { return toColumn2fromColumnRO; } /* package */ boolean isEmpty() { return toColumn2fromColumn.isEmpty(); } /* package */ String getToTableName() { return toTableName; } /* package */ Class<ToModelType> getToModelClass() { return ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\dao\impl\QueryInsertExecutor.java
1
请完成以下Java代码
public Mono<User> updateUser(UpdateUserRequest request, User user) { ofNullable(request.getBio()) .ifPresent(user::setBio); ofNullable(request.getImage()) .ifPresent(user::setImage); ofNullable(request.getPassword()) .ifPresent(password -> updatePa...
return Mono.empty(); } if (request.getEmail().equals(user.getEmail())) { return Mono.empty(); } return userRepository.existsByEmail(request.getEmail()) .doOnNext(existsByEmail -> updateEmail(request, user, existsByEmail)); } private void updateEmail(U...
repos\realworld-spring-webflux-master\src\main\java\com\realworld\springmongo\user\UserUpdater.java
1
请完成以下Java代码
public IAttributeSetInstanceAware createOrNull(final Object model) { if (model == null) { return null; } if (!InterfaceWrapperHelper.isInstanceOf(model, I_C_OLCand.class)) { return null; } final I_C_OLCand olCand = InterfaceWrapperHelper.create(model, I_C_OLCand.class); // note: returning an an...
{ return olCand.getM_AttributeSetInstance_ID(); } @Override public void setM_AttributeSetInstance(final I_M_AttributeSetInstance asi) { olCand.setM_AttributeSetInstance(asi); } @Override public String toString() { return "IAttributeSetInstanceAware[" + olCand.toString() + "]"; }...
repos\metasfresh-new_dawn_uat\backend\de.metas.salescandidate.base\src\main\java\de\metas\ordercandidate\spi\impl\OLCandASIAwareFactory.java
1
请完成以下Java代码
public I_ExternalSystem_Config_Shopware6 getExternalSystem_Config_Shopware6() { return get_ValueAsPO(COLUMNNAME_ExternalSystem_Config_Shopware6_ID, I_ExternalSystem_Config_Shopware6.class); } @Override public void setExternalSystem_Config_Shopware6(final I_ExternalSystem_Config_Shopware6 ExternalSystem_Config_Sh...
public void setExternalSystem_Config_Shopware6_UOM_ID (final int ExternalSystem_Config_Shopware6_UOM_ID) { if (ExternalSystem_Config_Shopware6_UOM_ID < 1) set_ValueNoCheck (COLUMNNAME_ExternalSystem_Config_Shopware6_UOM_ID, null); else set_ValueNoCheck (COLUMNNAME_ExternalSystem_Config_Shopware6_UOM_ID, Ex...
repos\metasfresh-new_dawn_uat\backend\de.metas.externalsystem\src\main\java-gen\de\metas\externalsystem\model\X_ExternalSystem_Config_Shopware6_UOM.java
1
请完成以下Java代码
public void setAD_User_ID (final int AD_User_ID) { if (AD_User_ID < 0) set_ValueNoCheck (COLUMNNAME_AD_User_ID, null); else set_ValueNoCheck (COLUMNNAME_AD_User_ID, AD_User_ID); } @Override public int getAD_User_ID() { return get_ValueAsInt(COLUMNNAME_AD_User_ID); } @Override public void setAD_...
@Override public void setCRM_Occupation(final org.compiere.model.I_CRM_Occupation CRM_Occupation) { set_ValueFromPO(COLUMNNAME_CRM_Occupation_ID, org.compiere.model.I_CRM_Occupation.class, CRM_Occupation); } @Override public void setCRM_Occupation_ID (final int CRM_Occupation_ID) { if (CRM_Occupation_ID < 1)...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_User_Occupation_Job.java
1
请在Spring Boot框架中完成以下Java代码
public class MongoConfig extends AbstractMongoClientConfiguration { @Override protected String getDatabaseName() { return "test"; } @Override public MongoClient mongoClient() { final ConnectionString connectionString = new ConnectionString("mongodb://localhost:27017/test"); ...
@Bean public UserCascadeSaveMongoEventListener userCascadingMongoEventListener() { return new UserCascadeSaveMongoEventListener(); } @Bean public CascadeSaveMongoEventListener cascadingMongoEventListener() { return new CascadeSaveMongoEventListener(); } @Bean MongoTransacti...
repos\tutorials-master\persistence-modules\spring-data-mongodb-2\src\main\java\com\baeldung\config\MongoConfig.java
2
请完成以下Java代码
public class ReactiveApplicationFactory extends DefaultApplicationFactory { private final ManagementServerProperties management; private final ServerProperties server; private final WebFluxProperties webflux; private final InstanceProperties instance; public ReactiveApplicationFactory(InstanceProperties insta...
protected String getManagementBaseUrl() { String baseUrl = this.instance.getManagementBaseUrl(); if (StringUtils.hasText(baseUrl)) { return baseUrl; } if (isManagementPortEqual()) { return this.getServiceUrl(); } Ssl ssl = (this.management.getSsl() != null) ? this.management.getSsl() : this.server....
repos\spring-boot-admin-master\spring-boot-admin-client\src\main\java\de\codecentric\boot\admin\client\registration\ReactiveApplicationFactory.java
1
请完成以下Java代码
public class C_Doc_Outbound_Log_SendPDFMails extends JavaProcess implements IProcessPrecondition { private static final AdMessageKey MSG_EMPTY_MailTo = AdMessageKey.of("SendMailsForSelection.EMPTY_MailTo"); private static final AdMessageKey MSG_No_DocOutboundLog_Selection = AdMessageKey.of("AbstractMailDocumentsFo...
return ProcessPreconditionsResolution.accept(); } @Param(parameterName = PARA_OnlyNotSentMails, mandatory=true) private boolean p_OnlyNotSentMails = false; @Override protected final void prepare() { if (docOutboundService.retrieveLogs(getFilter(), true).isEmpty()) { throw new AdempiereException(MSG_No_Do...
repos\metasfresh-new_dawn_uat\backend\de.metas.document.archive\de.metas.document.archive.base\src\main\java\de\metas\document\archive\mailrecipient\process\C_Doc_Outbound_Log_SendPDFMails.java
1
请完成以下Java代码
public CountryAwareAttributeUpdater setSourceModel(final Object sourceModel) { this.sourceModel = sourceModel; return this; } private Object getSourceModel() { Check.assumeNotNull(sourceModel, "sourceModel not null"); return sourceModel; } private String getSourceTableName() { return InterfaceWrapper...
private ICountryAwareFactory getCountryAwareFactory() { Check.assumeNotNull(countryAwareFactory, "countryAwareFactory not null"); return countryAwareFactory; } public final CountryAwareAttributeUpdater setCountryAwareAttributeService(final ICountryAwareAttributeService countryAwareAttributeService) { this.co...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\org\adempiere\mm\attributes\countryattribute\impl\CountryAwareAttributeUpdater.java
1
请完成以下Java代码
public String getDescription() { return description; } /** * 设置 角色说明. * * @param description 角色说明. */ public void setDescription(String description) { this.description = description; } /** * 获取 创建时间. * * @return 创建时间. */ public Date getCr...
public Date getUpdatedTime() { return updatedTime; } /** * 设置 更新时间. * * @param updatedTime 更新时间. */ public void setUpdatedTime(Date updatedTime) { this.updatedTime = updatedTime; } protected Serializable pkVal() { return this.id; } }
repos\SpringBootBucket-master\springboot-jwt\src\main\java\com\xncoding\jwt\dao\domain\Role.java
1
请完成以下Java代码
public void setProcessDefinitionKeyIn(String[] processDefinitionKeyIn) { this.processDefinitionKeyIn = processDefinitionKeyIn; } @CamundaQueryParam(value = "startedAfter", converter = DateConverter.class) public void setStartedAfter(Date startedAfter) { this.startedAfter = startedAfter; } @CamundaQu...
if (processDefinitionKeyIn != null && processDefinitionKeyIn.length > 0) { reportQuery.processDefinitionKeyIn(processDefinitionKeyIn); } if (startedAfter != null) { reportQuery.startedAfter(startedAfter); } if (startedBefore != null) { reportQuery.startedBefore(startedBefore); } ...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\history\HistoricProcessInstanceReportDto.java
1
请完成以下Java代码
public class FormDataWithFile { private String name; private String email; private MultipartFile file; public String getName() { return name; } public void setName(String name) { this.name = name; } public String getEmail() { return email;
} public void setEmail(String email) { this.email = email; } public MultipartFile getFile() { return file; } public void setFile(MultipartFile file) { this.file = file; } }
repos\tutorials-master\spring-web-modules\spring-mvc-java\src\main\java\com\baeldung\model\FormDataWithFile.java
1
请在Spring Boot框架中完成以下Java代码
public List<String> getBasename() { return this.basename; } public void setBasename(List<String> basename) { this.basename = basename; } public Charset getEncoding() { return this.encoding; } public void setEncoding(Charset encoding) { this.encoding = encoding; } public @Nullable Duration getCacheDu...
} public boolean isAlwaysUseMessageFormat() { return this.alwaysUseMessageFormat; } public void setAlwaysUseMessageFormat(boolean alwaysUseMessageFormat) { this.alwaysUseMessageFormat = alwaysUseMessageFormat; } public boolean isUseCodeAsDefaultMessage() { return this.useCodeAsDefaultMessage; } public ...
repos\spring-boot-4.0.1\core\spring-boot-autoconfigure\src\main\java\org\springframework\boot\autoconfigure\context\MessageSourceProperties.java
2
请在Spring Boot框架中完成以下Java代码
public class TaxType { @XmlElement(name = "VAT") protected VATType vat; @XmlElement(name = "OtherTax") protected List<OtherTaxType> otherTax; /** * Used to provide information about the VAT or a potential tax exemptation (if applicable). * * @return * possible object is ...
* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the otherTax property. * * <p> * For example, to add a...
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\TaxType.java
2
请完成以下Java代码
public boolean isMethodInvocation() { return getChild(0).isMethodInvocation(); } public ValueReference getValueReference(Bindings bindings, ELContext context) { return child.getValueReference(bindings, context); } @Override public Object eval(Bindings bindings, ELContext context) {...
return child.getType(bindings, context); } public boolean isLiteralText() { return child.isLiteralText(); } public boolean isReadOnly(Bindings bindings, ELContext context) { return child.isReadOnly(bindings, context); } public void setValue(Bindings bindings, ELContext context...
repos\Activiti-develop\activiti-core-common\activiti-juel-jakarta\src\main\java\org\activiti\core\el\juel\tree\impl\ast\AstEval.java
1
请在Spring Boot框架中完成以下Java代码
public boolean isEnabled() { return this.enabled; } public void setEnabled(boolean enabled) { this.enabled = enabled; } public Duration getConnectTimeout() { return this.connectTimeout; } public void setConnectTimeout(Duration connectTimeout) { this.connectTimeout = connectTimeout; } public Duration...
} public void setLwcIgnorePublishStep(boolean lwcIgnorePublishStep) { this.lwcIgnorePublishStep = lwcIgnorePublishStep; } public Duration getConfigRefreshFrequency() { return this.configRefreshFrequency; } public void setConfigRefreshFrequency(Duration configRefreshFrequency) { this.configRefreshFrequency...
repos\spring-boot-4.0.1\module\spring-boot-micrometer-metrics\src\main\java\org\springframework\boot\micrometer\metrics\autoconfigure\export\atlas\AtlasProperties.java
2
请完成以下Java代码
public class PersistHistoricDecisionExecutionCmd implements Command<Void> { protected ExecuteDecisionContext executeDecisionContext; public PersistHistoricDecisionExecutionCmd(ExecuteDecisionContext executeDecisionContext) { this.executeDecisionContext = executeDecisionContext; } @Override ...
decisionExecutionEntity.setFailed(failed.booleanValue()); } ObjectMapper objectMapper = engineConfiguration.getObjectMapper(); if (objectMapper == null) { objectMapper = JsonMapper.shared(); } try { decisionExecutionEntity.set...
repos\flowable-engine-main\modules\flowable-dmn-engine\src\main\java\org\flowable\dmn\engine\impl\cmd\PersistHistoricDecisionExecutionCmd.java
1
请完成以下Java代码
protected void onAfterInit() { registerFactories(); // task 08452 Services.get(IReceiptScheduleBL.class).addReceiptScheduleListener(OrderLineReceiptScheduleListener.INSTANCE); } /** * Public for testing purposes only! */ public static void registerRSAggregationKeyDependencies() { final IAggregationKe...
I_M_ReceiptSchedule.COLUMNNAME_C_BPartner_Override_ID, I_M_ReceiptSchedule.COLUMNNAME_C_BPartner_Location_ID, I_M_ReceiptSchedule.COLUMNNAME_C_BP_Location_Override_ID, I_M_ReceiptSchedule.COLUMNNAME_M_Warehouse_ID, I_M_ReceiptSchedule.COLUMNNAME_M_Warehouse_Override_ID, I_M_ReceiptSchedule.COLUMNNAM...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\inoutcandidate\modelvalidator\ReceiptScheduleValidator.java
1
请完成以下Java代码
public void setDescription (String Description) { set_Value (COLUMNNAME_Description, Description); } /** Get Description. @return Optional short description of the record */ public String getDescription () { return (String)get_Value(COLUMNNAME_Description); } /** Set Valid from. @param ValidFrom ...
*/ 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 (COLUMNNAME_ValidTo, ValidTo); } /** Get Valid to. @return Valid to inclu...
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 class Book implements Serializable { private static final long serialVersionUID = 1L; private String title; private String isbn; private String genre; private int price; public String getTitle() { return title; } public void setTitle(String title) { this.ti...
} public void setGenre(String genre) { this.genre = genre; } public int getPrice() { return price; } public void setPrice(int price) { this.price = price; } @Override public String toString() { return "Book{" + "title=" + title + ", isbn=" + isbn ...
repos\Hibernate-SpringBoot-master\HibernateSpringBootDtoElementCollection\src\main\java\com\bookstore\entity\Book.java
1
请在Spring Boot框架中完成以下Java代码
public void setDATE3(String value) { this.date3 = value; } /** * Gets the value of the date4 property. * * @return * possible object is * {@link String } * */ public String getDATE4() { return date4; } /** * Sets the value of th...
/** * Gets the value of the date5 property. * * @return * possible object is * {@link String } * */ public String getDATE5() { return date5; } /** * Sets the value of the date5 property. * * @param value * allowed object is ...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_stepcom_desadv\de\metas\edi\esb\jaxb\stepcom\desadv\DPLQU1.java
2
请在Spring Boot框架中完成以下Java代码
public class BasicApplication { // Register Servlet @Bean public ServletRegistrationBean servletRegistrationBean() { ServletRegistrationBean bean = new ServletRegistrationBean(new MyServlet(), "/myServlet"); return bean; } // Register Filter @Bean public FilterRegistrationB...
// Register ServletContextListener @Bean public ServletListenerRegistrationBean<ServletContextListener> listenerRegistrationBean() { ServletListenerRegistrationBean<ServletContextListener> bean = new ServletListenerRegistrationBean<>(); bean.setListener(new MyServletContextListen...
repos\SpringBoot-Projects-FullStack-master\Part-1 Spring Boot Basic Fund Projects\SpringBootSources\SpringServletFilter\src\main\java\spring\basic\BasicApplication.java
2
请完成以下Java代码
public class StockDetailsView extends AbstractCustomView<StockDetailsRow> { private final ViewId parentViewId; protected StockDetailsView( final ViewId viewId, final ViewId parentViewId, final IRowsData<StockDetailsRow> rowsData, final DocumentFilterDescriptorsProvider viewFilterDescriptors) { super( ...
{ return (StockDetailsView)view; } @Override public String getTableNameOrNull(DocumentId IGNORED) { return I_M_HU_Stock_Detail_V.Table_Name; } @Override public ViewId getParentViewId() { return parentViewId; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\material\cockpit\stockdetails\StockDetailsView.java
1
请完成以下Java代码
public I_M_Locator getM_Locator() { return locator; } public DistributionNetworkLine getDD_NetworkDistributionLine() { loadIfNeeded(); return networkLine; } public ResourceId getRawMaterialsPlantId() { loadIfNeeded(); return rawMaterialsPlantId; } public I_M_Warehouse getRawMaterialsWarehouse() {...
public OrgId getOrgId() { loadIfNeeded(); return orgId; } public BPartnerLocationId getOrgBPLocationId() { loadIfNeeded(); return orgBPLocationId; } public UserId getPlannerId() { loadIfNeeded(); return productPlanning == null ? null : productPlanning.getPlannerId(); } public WarehouseId getInTr...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing\src\main\java\de\metas\distribution\ddorder\process\RawMaterialsReturnDDOrderLineCandidate.java
1
请完成以下Java代码
public java.sql.Timestamp getExternallyUpdatedAt() { return get_ValueAsTimestamp(COLUMNNAME_ExternallyUpdatedAt); } @Override public void setIsArchived (final boolean IsArchived) { set_Value (COLUMNNAME_IsArchived, IsArchived); } @Override public boolean isArchived() { return get_ValueAsBoolean(COLUM...
public void setNextDelivery (final @Nullable java.sql.Timestamp NextDelivery) { set_Value (COLUMNNAME_NextDelivery, NextDelivery); } @Override public java.sql.Timestamp getNextDelivery() { return get_ValueAsTimestamp(COLUMNNAME_NextDelivery); } @Override public void setRootId (final @Nullable String Root...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.healthcare.alberta\src\main\java-gen\de\metas\vertical\healthcare\alberta\model\X_Alberta_Order.java
1
请在Spring Boot框架中完成以下Java代码
public Optional<HuId> getHuIdByQRCodeIfExists(@NonNull final HUQRCode qrCode) { return huQRCodeService.getHuIdByQRCodeIfExists(qrCode); } public void assignQRCodeForReceiptHU(@NonNull final HUQRCode qrCode, @NonNull final HuId huId) { final boolean ensureSingleAssignment = true; huQRCodeService.assign(qrCode...
.build()) .build(); }) .collect(ImmutableList.toImmutableList()); return ValidateLocatorInfo.ofSourceLocatorList(sourceLocatorList); } @NonNull public Optional<UomId> getCatchWeightUOMId(@NonNull final ProductId productId) { return productBL.getCatchUOMId(productId); } @NonNull private Immu...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing.rest-api\src\main\java\de\metas\manufacturing\job\service\ManufacturingJobLoaderAndSaverSupportingServices.java
2
请完成以下Java代码
public int getAD_Table_ID() { return AD_Table_ID; } public int getAD_Column_ID() { return AD_Column_ID; } public int getRecord_ID() { return record_ID; } public int getAD_Client_ID() { return AD_Client_ID; } public int getAD_Org_ID() { return AD_Org_ID; } public Object getOldValue() { r...
this.record_ID = record_ID; return this; } public Builder setAD_Client_ID(final int AD_Client_ID) { this.AD_Client_ID = AD_Client_ID; return this; } public Builder setAD_Org_ID(final int AD_Org_ID) { this.AD_Org_ID = AD_Org_ID; return this; } public Builder setOldValue(final Object old...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\session\ChangeLogRecord.java
1
请在Spring Boot框架中完成以下Java代码
JavaMailSenderImpl mailSender(MailProperties properties, ObjectProvider<SslBundles> sslBundles) { JavaMailSenderImpl sender = new JavaMailSenderImpl(); applyProperties(properties, sender, sslBundles.getIfAvailable()); return sender; } private void applyProperties(MailProperties properties, JavaMailSenderImpl s...
SslBundle sslBundle = sslBundles.getBundle(ssl.getBundle()); javaMailProperties.put("mail." + protocol + ".ssl.socketFactory", sslBundle.createSslContext().getSocketFactory()); } if (!javaMailProperties.isEmpty()) { sender.setJavaMailProperties(javaMailProperties); } } private Properties asPropertie...
repos\spring-boot-4.0.1\module\spring-boot-mail\src\main\java\org\springframework\boot\mail\autoconfigure\MailSenderPropertiesConfiguration.java
2
请完成以下Java代码
public void setMinValue (BigDecimal MinValue) { set_Value (COLUMNNAME_MinValue, MinValue); } /** Get Min Value. @return Min Value */ public BigDecimal getMinValue () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MinValue); if (bd == null) return Env.ZERO; return bd; } /** Set Name. @par...
@return Alphanumeric identifier of the entity */ public String getName () { return (String)get_Value(COLUMNNAME_Name); } /** Get Record ID/ColumnName @return ID/ColumnName pair */ public KeyNamePair getKeyNamePair() { return new KeyNamePair(get_ID(), getName()); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\eevolution\model\X_HR_ListLine.java
1
请完成以下Java代码
public void migrateState() { eventSubscription.setActivity((ActivityImpl) targetScope); currentScope = targetScope; } @Override public void migrateDependentEntities() { } @Override public void addMigratingDependentInstance(MigratingInstance migratingInstance) { } @Override public Execution...
public void setParent(MigratingScopeInstance parentInstance) { if (this.parentInstance != null) { this.parentInstance.removeChild(this); } this.parentInstance = parentInstance; if (parentInstance != null) { parentInstance.addChild(this); } } public void remove() { eventSubscr...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\migration\instance\MigratingCompensationEventSubscriptionInstance.java
1
请在Spring Boot框架中完成以下Java代码
public String remitUI(Model model, @RequestParam("id") String id) { RpSettRecord settRecord = rpSettQueryService.getDataById(id); model.addAttribute("settRecord", settRecord); return "sett/remit"; } /** * 函数功能说明 : 发起打款 * * @参数: @return * @return String * @throws */ @RequiresPermissions("sett:rec...
*/ @RequestMapping(value = "/view", method = RequestMethod.GET) public String view(Model model, @RequestParam("id") String id) { RpSettRecord settRecord = rpSettQueryService.getDataById(id); model.addAttribute("settRecord", settRecord); return "sett/view"; } /** * 函数功能说明 :根据支付产品获取支付方式 * * @参数: @retur...
repos\roncoo-pay-master\roncoo-pay-web-boss\src\main\java\com\roncoo\pay\controller\sett\SettController.java
2
请完成以下Java代码
public static <T> AdditionalRequiredFactorsBuilder<T> multiFactor() { return new AdditionalRequiredFactorsBuilder<>(); } /** * A builder that allows creating {@link DefaultAuthorizationManagerFactory} with * additional requirements for {@link RequiredFactor}s. * * @param <T> the type for the {@link Default...
/** * Builds a {@link DefaultAuthorizationManagerFactory} that has the * {@link DefaultAuthorizationManagerFactory#setAdditionalAuthorization(AuthorizationManager)} * set. * @return the {@link DefaultAuthorizationManagerFactory}. */ public DefaultAuthorizationManagerFactory<T> build() { DefaultAutho...
repos\spring-security-main\core\src\main\java\org\springframework\security\authorization\AuthorizationManagerFactories.java
1
请在Spring Boot框架中完成以下Java代码
default List<VariableInstanceEntity> findVariableInstancesByExecutionId(String executionId) { return createInternalVariableInstanceQuery().executionId(executionId).withoutTaskId().list(); } default List<VariableInstanceEntity> findVariableInstanceByScopeIdAndScopeType(String scopeId, String scopeType) ...
/** * Inserts a variable instance with the given value. * @param variable the variable instance to insert * @param value the value to set * @param tenantId the tenant id of the variable instance */ void insertVariableInstanceWithValue(VariableInstanceEntity variable, Object value, String te...
repos\flowable-engine-main\modules\flowable-variable-service\src\main\java\org\flowable\variable\service\VariableService.java
2
请在Spring Boot框架中完成以下Java代码
public class Book implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @Column(name = "book_title") private String title; @Column(name = "book_isbn") private String isbn; @Colu...
public String getIsbn() { return isbn; } public void setIsbn(String isbn) { this.isbn = isbn; } public int getPages() { return pages; } public void setPages(int pages) { this.pages = pages; } public List<Chapter> getChapters() { return chapters...
repos\Hibernate-SpringBoot-master\HibernateSpringBootDatabaseTriggers\src\main\java\com\bookstore\entity\Book.java
2
请完成以下Java代码
public ImmutableSet<HuId> getVHUIds(final HuId huId) {return vhuIds.computeIfAbsent(huId, this::retrieveVHUIds);} private ImmutableSet<HuId> retrieveVHUIds(final HuId huId) { final I_M_HU hu = getHUById(huId); final List<I_M_HU> vhus = handlingUnitsBL.getVHUs(hu); addToCache(vhus); return extractHUIds(vhus);...
return huAttributesCache.computeIfAbsent(huId, this::retrieveHUAttributes); } private ImmutableAttributeSet retrieveHUAttributes(final HuId huId) { final I_M_HU hu = getHUById(huId); final IAttributeStorage attributes = attributesFactory.getAttributeStorage(hu); return ImmutableAttributeSet.createSubSet(attri...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\picking\plan\generator\pickFromHUs\HUsLoadingCache.java
1
请完成以下Java代码
public class HistoricTaskInstanceReportQueryDto extends AbstractReportDto<HistoricTaskInstanceReport> { public static final String PROCESS_DEFINITION = "processDefinition"; public static final String TASK_NAME = "taskName"; protected Date completedBefore; protected Date completedAfter; protected String grou...
} if (completedAfter != null) { reportQuery.completedAfter(completedAfter); } if(REPORT_TYPE_DURATION.equals(reportType)) { if(periodUnit == null) { throw new InvalidRequestException(Response.Status.BAD_REQUEST, "periodUnit is null"); } } } protected HistoricTaskInstance...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\history\HistoricTaskInstanceReportQueryDto.java
1
请在Spring Boot框架中完成以下Java代码
public class BusinessRuleTriggerInterceptor extends AbstractModelInterceptor { @NonNull private static final Logger logger = LogManager.getLogger(BusinessRuleTriggerInterceptor.class); @NonNull private final BusinessRuleService ruleService; @NonNull private final RecordWarningRepository recordWarningRepository; pri...
// already registered continue; } engine.addModelChange(triggerTableName, this); registeredTableNames.add(triggerTableName); logger.info("Registered trigger for {}", triggerTableName); } // // Remove no longer needed interceptors for (final String triggerTableName : registeredTableNamesNoLonge...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\business_rule\trigger\interceptor\BusinessRuleTriggerInterceptor.java
2
请在Spring Boot框架中完成以下Java代码
public class RestartJobDemo { @Autowired private JobBuilderFactory jobBuilderFactory; @Autowired private StepBuilderFactory stepBuilderFactory; @Bean public Job restartJob() { return jobBuilderFactory.get("restartJob") .start(step()) .build(); } ...
return stepBuilderFactory.get("step") .<String, String>chunk(2) .reader(listItemReader()) .writer(list -> list.forEach(System.out::println)) // .allowStartIfComplete(true) .startLimit(1) .build(); } private ListItem...
repos\SpringAll-master\72.spring-batch-exception\src\main\java\cc\mrbird\batch\job\RestartJobDemo.java
2
请完成以下Java代码
public static List<Long> getCurrentUserDataScope(){ UserDetails userDetails = getCurrentUser(); // 将 Java 对象转换为 JSONObject 对象 JSONObject jsonObject = (JSONObject) JSON.toJSON(userDetails); JSONArray jsonArray = jsonObject.getJSONArray("dataScopes"); return JSON.parseArray(jsonArr...
/** * 获取系统用户名称 * * @return 系统用户名称 */ public static String getCurrentUsername(String token) { JWT jwt = JWTUtil.parseToken(token); return jwt.getPayload("sub").toString(); } /** * 获取Token * @return / */ public static String getToken() { HttpServ...
repos\eladmin-master\eladmin-common\src\main\java\me\zhengjie\utils\SecurityUtils.java
1
请在Spring Boot框架中完成以下Java代码
public Flux<User> getUserByCondition(int size, int page, User user) { Query query = getQuery(user); Sort sort = new Sort(Sort.Direction.DESC, "age"); Pageable pageable = PageRequest.of(page, size, sort); return template.find(query.with(pageable), User.class); } /** * 返回 co...
private Query getQuery(User user) { Query query = new Query(); Criteria criteria = new Criteria(); if (!StringUtils.isEmpty(user.getName())) { criteria.and("name").is(user.getName()); } if (!StringUtils.isEmpty(user.getDescription())) { criteria.and("desc...
repos\SpringAll-master\58.Spring-Boot-WebFlux-crud\src\main\java\com\example\webflux\service\UserService.java
2
请在Spring Boot框架中完成以下Java代码
public void fetchByMultipleIdsIn() { List<Book> books = bookRepository.fetchByMultipleIds(List.of(1L, 2L, 5L)); System.out.println(books); } public void fetchByMultipleIds() { List<Book> books = bookMultipleIdsRepository .fetchByMultipleIds(L...
// loaded from Persistence Context List<Book> books2 = bookMultipleIdsRepository .fetchBySessionCheckMultipleIds(List.of(1L, 2L, 5L)); System.out.println(books2); } public void fetchInBatchesBySessionCheckMultipleIds() { List<Book> books = bookMult...
repos\Hibernate-SpringBoot-master\HibernateSpringBootLoadMultipleIds\src\main\java\com\bookstore\service\BookstoreService.java
2
请在Spring Boot框架中完成以下Java代码
public class Student { @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long id; @Column(name = "STUDENT_NAME", length = 50, nullable = false, unique = false) private String name; @Transient private Integer age; @Temporal(TemporalType.DATE) private Date birthDate; @Enumerated(EnumType.STRING) pri...
public void setAge(Integer age) { this.age = age; } public Date getBirthDate() { return birthDate; } public void setBirthDate(Date birthDate) { this.birthDate = birthDate; } public Gender getGender() { return gender; } public void setGender(Gender gender) { this.gender = gender; } }
repos\tutorials-master\persistence-modules\java-jpa\src\main\java\com\baeldung\jpa\entity\Student.java
2
请在Spring Boot框架中完成以下Java代码
public String getLogin() { return login; } public void setLogin(String login) { this.login = login; } public String getFirstName() { return firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } public String getLastNam...
this.createdBy = createdBy; } public Instant getCreatedDate() { return createdDate; } public void setCreatedDate(Instant createdDate) { this.createdDate = createdDate; } public String getLastModifiedBy() { return lastModifiedBy; } public void setLastModifiedBy...
repos\tutorials-master\jhipster-6\bookstore-monolith\src\main\java\com\baeldung\jhipster6\service\dto\UserDTO.java
2
请完成以下Java代码
public @NonNull String getColumnSql(@NonNull String columnName) { final String columnSqlNew = "UPPER(" + columnName + ")"; return columnSqlNew; } @Override public String getValueSql(Object value, List<Object> params) { final String valueSql; if (value instanceof ModelColumnNameValue<?>) { final Model...
return "UPPER(" + valueSql + ")"; } @Nullable @Override public Object convertValue(@Nullable final String columnName, @Nullable final Object value, final @Nullable Object model) { if (value == null) { return null; } final String str = (String)value; return str.toUpperCase(); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\dao\impl\UpperCaseQueryFilterModifier.java
1
请在Spring Boot框架中完成以下Java代码
public String prefix() { return "management.datadog.metrics.export"; } @Override public String apiKey() { return obtain(DatadogProperties::getApiKey, DatadogConfig.super::apiKey); } @Override public @Nullable String applicationKey() { return get(DatadogProperties::getApplicationKey, DatadogConfig.super::a...
public @Nullable String hostTag() { return get(DatadogProperties::getHostTag, DatadogConfig.super::hostTag); } @Override public String uri() { return obtain(DatadogProperties::getUri, DatadogConfig.super::uri); } @Override public boolean descriptions() { return obtain(DatadogProperties::isDescriptions, Da...
repos\spring-boot-4.0.1\module\spring-boot-micrometer-metrics\src\main\java\org\springframework\boot\micrometer\metrics\autoconfigure\export\datadog\DatadogPropertiesConfigAdapter.java
2
请完成以下Java代码
public void installLicense() { try { Preferences preferences = Preferences.userNodeForPackage(LicenseVerify.class); CipherParam cipherParam = new DefaultCipherParam(storePass); KeyStoreParam publicStoreParam = new CustomKeyStoreParam(LicenseVerify.class, ...
} } /** * <p>项目名称: true-license-demo </p> * <p>文件名称: LicenseVerify.java </p> * <p>方法描述: </p> * <p>创建时间: 2020/10/10 16:00 </p> * * @return boolean * @author 方瑞冬 * @version 1.0 */ public boolean verify() { try { LicenseContent licenseContent =...
repos\springboot-demo-master\SoftwareLicense\src\main\java\com\et\license\license\LicenseVerify.java
1
请完成以下Java代码
public RefundConfig save(@NonNull final RefundConfig refundConfig) { final I_C_Flatrate_RefundConfig configRecord; if (refundConfig.getId() == null) { configRecord = newInstance(I_C_Flatrate_RefundConfig.class); } else { configRecord = load(refundConfig.getId(), I_C_Flatrate_RefundConfig.class); } ...
case APPLY_TO_EXCEEDING_QTY: configRecord.setRefundMode(X_C_Flatrate_RefundConfig.REFUNDMODE_Tiered); break; default: Check.fail("Unexpected refundMode={}", refundConfig.getRefundMode()); break; } saveRecord(configRecord); return refundConfig .toBuilder() .id(RefundConfigId.ofRepoId(co...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\refund\RefundConfigRepository.java
1
请完成以下Java代码
public int getPA_MeasureCalc_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_PA_MeasureCalc_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Measure. @param PA_Measure_ID Concrete Performance Measurement */ public void setPA_Measure_ID (int PA_Measure_ID) { if (PA_Measure_ID ...
/** Get Ratio. @return Performace Ratio */ public int getPA_Ratio_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_PA_Ratio_ID); if (ii == null) return 0; return ii.intValue(); } public I_R_RequestType getR_RequestType() throws RuntimeException { return (I_R_RequestType)MTable.get(getCtx(),...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_PA_Measure.java
1
请完成以下Java代码
public void setRevision(int revision) { this.revision = revision; } public void setByteArrayId(String id) { byteArrayId = id; } public String getByteArrayId() { return byteArrayId; } public String getVariableInstanceId() { return variableInstanceId; } public void setVariableInstanceId(St...
@Override public String toString() { return this.getClass().getSimpleName() + "[variableName=" + variableName + ", variableInstanceId=" + variableInstanceId + ", revision=" + revision + ", serializerName=" + serializerName + ", longValue=" + longValue ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\history\event\HistoricVariableUpdateEventEntity.java
1
请完成以下Java代码
public Instruction3Code getCd() { return cd; } /** * Sets the value of the cd property. * * @param value * allowed object is * {@link Instruction3Code } * */ public void setCd(Instruction3Code value) { this.cd = value; } /** * G...
* {@link String } * */ public String getInstrInf() { return instrInf; } /** * Sets the value of the instrInf property. * * @param value * allowed object is * {@link String } * */ public void setInstrInf(String value) { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.sepa\schema-pain_001_01_03_ch_02\src\main\java-xjc\de\metas\payment\sepa\jaxb\sct\pain_001_001_03_ch_02\InstructionForCreditorAgent1.java
1
请完成以下Java代码
public static void conditionalSleepWithPoll(Supplier<Boolean> shouldSleepCondition, long interval, Consumer<?, ?> consumer) throws InterruptedException { boolean isFirst = true; long timeout = System.currentTimeMillis() + interval; long sleepInterval = interval > SMALL_INTERVAL_THRESHOLD ?...
* Create a new {@link OffsetAndMetadata} using the given container and offset. * @param container a container. * @param offset an offset. * @return an offset and metadata. * @since 2.8.6 */ public static OffsetAndMetadata createOffsetAndMetadata(@Nullable MessageListenerContainer container, l...
repos\spring-kafka-main\spring-kafka\src\main\java\org\springframework\kafka\listener\ListenerUtils.java
1
请在Spring Boot框架中完成以下Java代码
private void saveNewPermission(String roleId, Collection<Integer> newPerms, Collection<Integer> oldPerms) { List<Integer> waitInsert = new ArrayList<>(); for (Integer newPerm : newPerms) { if (!oldPerms.contains(newPerm)) { waitInsert.add(newPerm); } } ...
/** * 删除角色 */ @Transactional(rollbackFor = Exception.class) public JSONObject deleteRole(JSONObject jsonObject) { String roleId = jsonObject.getString("roleId"); int userCount = userDao.countRoleUser(roleId); if (userCount > 0) { return CommonUtil.errorJson(ErrorEnu...
repos\SpringBoot-Shiro-Vue-master\back\src\main\java\com\heeexy\example\service\UserService.java
2
请完成以下Java代码
public class BlockingRegistrationClient implements RegistrationClient { private static final ParameterizedTypeReference<Map<String, Object>> RESPONSE_TYPE = new ParameterizedTypeReference<>() { }; private final RestTemplate restTemplate; public BlockingRegistrationClient(RestTemplate restTemplate) { this.restT...
return response.getBody().get("id").toString(); } @Override public void deregister(String adminUrl, String id) { this.restTemplate.delete(adminUrl + '/' + id); } protected HttpHeaders createRequestHeaders() { HttpHeaders headers = new HttpHeaders(); headers.setContentType(MediaType.APPLICATION_JSON); hea...
repos\spring-boot-admin-master\spring-boot-admin-client\src\main\java\de\codecentric\boot\admin\client\registration\BlockingRegistrationClient.java
1
请完成以下Java代码
public void setName (final @Nullable java.lang.String Name) { set_Value (COLUMNNAME_Name, Name); } @Override public java.lang.String getName() { return get_ValueAsString(COLUMNNAME_Name); } /** * ObscureType AD_Reference_ID=291 * Reference name: AD_Field ObscureType */ public static final int OBSC...
@Override public void setSeqNoGrid (final int SeqNoGrid) { set_Value (COLUMNNAME_SeqNoGrid, SeqNoGrid); } @Override public int getSeqNoGrid() { return get_ValueAsInt(COLUMNNAME_SeqNoGrid); } @Override public void setSortNo (final @Nullable BigDecimal SortNo) { set_Value (COLUMNNAME_SortNo, SortNo); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_Field.java
1
请在Spring Boot框架中完成以下Java代码
public String getFirstName() { return firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } @ApiModelProperty(example = "Smith") public String getLastName() { return lastName; } public void setLastName(String lastName) { th...
public String getTenantId() { return tenantId; } public void setTenantId(String tenantId) { this.tenantId = tenantId; } @ApiModelProperty(example = "http://localhost:8182/identity/users/testuser/picture") public String getPictureUrl() { return pictureUrl; } public ...
repos\flowable-engine-main\modules\flowable-rest\src\main\java\org\flowable\rest\service\api\identity\UserResponse.java
2
请完成以下Java代码
public boolean isProcessing() { return get_ValueAsBoolean(COLUMNNAME_Processing); } @Override public void setSumDeliveredInStockingUOM (final @Nullable BigDecimal SumDeliveredInStockingUOM) { set_ValueNoCheck (COLUMNNAME_SumDeliveredInStockingUOM, SumDeliveredInStockingUOM); } @Override public BigDecimal...
} @Override public BigDecimal getSumOrderedInStockingUOM() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_SumOrderedInStockingUOM); return bd != null ? bd : BigDecimal.ZERO; } @Override public void setUserFlag (final @Nullable java.lang.String UserFlag) { set_ValueNoCheck (COLUMNNAME_UserFlag,...
repos\metasfresh-new_dawn_uat\backend\de.metas.edi\src\main\java-gen\de\metas\esb\edi\model\X_M_InOut_Desadv_V.java
1
请完成以下Java代码
public String getScopeType() { return null; } @Override public void setScopeId(String scopeId) { } @Override public void setSubScopeId(String subScopeId) { } @Override public void setScopeType(String scopeType) { } @Override publ...
return null; } @Override public void setScopeDefinitionId(String scopeDefinitionId) { } @Override public String getMetaInfo() { return null; } @Override public void setMetaInfo(String metaInfo) { } }
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\persistence\entity\TransientVariableInstance.java
1
请完成以下Java代码
public class ExcelUtility { private static final String ENDLINE = System.getProperty("line.separator"); public static String readExcel(String filePath) throws IOException { File file = new File(filePath); FileInputStream inputStream = null; StringBuilder toReturn = new StringBuilder(); ...
.equals(CellType.FORMULA) ? cell.getCachedFormulaResultType() : cell.getCellType(); if (cellType.equals(CellType.STRING)) { toReturn.append(cell.getStringCellValue()) .append(" | "); } if (cellType.equals(CellType.NUMERIC)) { if (DateUtil.isCellDateFormatt...
repos\tutorials-master\apache-poi\src\main\java\com\baeldung\poi\excel\ExcelUtility.java
1
请完成以下Java代码
public Predicate<ServerWebExchange> apply(Config config) { return new GatewayPredicate() { @Override public boolean test(ServerWebExchange exchange) { if (!StringUtils.hasText(config.regexp) && config.predicate == null) { // check existence of header return exchange.getRequest().getQueryParams().c...
public @Nullable String getParam() { return this.param; } public Config setParam(String param) { this.param = param; return this; } public @Nullable String getRegexp() { return this.regexp; } public Config setRegexp(@Nullable String regexp) { this.regexp = regexp; return this; } pu...
repos\spring-cloud-gateway-main\spring-cloud-gateway-server-webflux\src\main\java\org\springframework\cloud\gateway\handler\predicate\QueryRoutePredicateFactory.java
1
请完成以下Spring Boot application配置
spring.ai.ollama.init.pull-model-strategy=when_missing spring.ai.ollama.init.chat.include=true spring.ai.ollama.embedding.options.model=nomic-embed-text spring.ai.vectorstore.pgvector.initialize-schema=true spring.ai.vectorstore.pgvector.dimensions=768 spring.ai.vectorstore.pgvector.index-type=hnsw spring.docker.compos...
g.datasource.username=postgres spring.datasource.password=postgres spring.datasource.driver-class-name=org.postgresql.Driver spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
repos\tutorials-master\spring-ai-modules\spring-ai-2\src\main\resources\application-semantic-search.properties
2
请完成以下Java代码
public abstract class DiagramElementImpl extends BpmnModelElementInstanceImpl implements DiagramElement { protected static Attribute<String> idAttribute; protected static ChildElement<Extension> extensionChild; public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder ...
public DiagramElementImpl(ModelTypeInstanceContext instanceContext) { super(instanceContext); } public String getId() { return idAttribute.getValue(this); } public void setId(String id) { idAttribute.setValue(this, id); } public Extension getExtension() { return extensionChild.getChild(th...
repos\camunda-bpm-platform-master\model-api\bpmn-model\src\main\java\org\camunda\bpm\model\bpmn\impl\instance\di\DiagramElementImpl.java
1
请完成以下Java代码
public java.lang.String getResult () { return (java.lang.String)get_Value(COLUMNNAME_Result); } @Override public org.compiere.model.I_AD_User getSalesRep() throws RuntimeException { return get_ValueAsPO(COLUMNNAME_SalesRep_ID, org.compiere.model.I_AD_User.class); } @Override public void setSalesRep(org.c...
@Override public java.lang.String getSummary () { return (java.lang.String)get_Value(COLUMNNAME_Summary); } /** * TaskStatus AD_Reference_ID=366 * Reference name: R_Request TaskStatus */ public static final int TASKSTATUS_AD_Reference_ID=366; /** 0% Not Started = 0 */ public static final String TASKS...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_R_Request.java
1
请完成以下Java代码
public PointOfInteraction1 getPOI() { return poi; } /** * Sets the value of the poi property. * * @param value * allowed object is * {@link PointOfInteraction1 } * */ public void setPOI(PointOfInteraction1 value) { this.poi = value; } ...
public void setTx(CardTransaction2Choice value) { this.tx = value; } /** * Gets the value of the prePdAcct property. * * @return * possible object is * {@link CashAccount24 } * */ public CashAccount24 getPrePdAcct() { return prePdAcct; } ...
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.esr\src\main\java-xjc_camt054_001_06\de\metas\payment\camt054_001_06\CardTransaction2.java
1
请完成以下Java代码
public boolean isOpenItem() { return get_ValueAsBoolean(COLUMNNAME_IsOpenItem); } @Override public void setIsSummary (final boolean IsSummary) { set_Value (COLUMNNAME_IsSummary, IsSummary); } @Override public boolean isSummary() { return get_ValueAsBoolean(COLUMNNAME_IsSummary); } @Override publi...
} @Override public void setSeqNo (final int SeqNo) { set_ValueNoCheck (COLUMNNAME_SeqNo, SeqNo); } @Override public int getSeqNo() { return get_ValueAsInt(COLUMNNAME_SeqNo); } @Override public void setValidFrom (final @Nullable java.sql.Timestamp ValidFrom) { set_Value (COLUMNNAME_ValidFrom, ValidF...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_ElementValue.java
1
请完成以下Java代码
public static AttachmentEntryCreateRequest fromByteArray( @NonNull final String fileName, @NonNull final byte[] data) { final AttachmentEntryCreateRequest request = builderFromByteArray(fileName, data).build(); return request; } public static AttachmentEntryCreateRequest.AttachmentEntryCreateRequestBuilde...
.contentType(contentType) .data(data) .build(); } public static Collection<AttachmentEntryCreateRequest> fromFiles(@NonNull final Collection<File> files) { return files .stream() .map(AttachmentEntryCreateRequest::fromFile) .collect(ImmutableList.toImmutableList()); } public static Attachme...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\attachments\AttachmentEntryCreateRequest.java
1
请完成以下Java代码
public static boolean isEnglishLetter(char input) { return (input >= 'a' && input <= 'z') || (input >= 'A' && input <= 'Z'); } public static boolean isArabicNumber(char input) { return input >= '0' && input <= '9'; } public static boolean isCJKCharacter(char inp...
/** * 进行字符规格化(全角转半角,大写转小写处理) * * @param input * @return char */ public static char regularize(char input) { if (input == 12288) { input = (char) 32; } else if (input > 65280 && input < 65375) { input = (char) (input - 6524...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\utility\CharacterHelper.java
1
请完成以下Java代码
protected int get_AccessLevel() { return accessLevel.intValue(); } /** Load Meta Data */ protected POInfo initPO (Properties ctx) { POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName()); return poi; } public String toString() { StringBuffer sb = new Strin...
if (ii == null) return 0; return ii.intValue(); } /** Set Name. @param Name Alphanumeric identifier of the entity */ public void setName (String Name) { set_Value (COLUMNNAME_Name, Name); } /** Get Name. @return Alphanumeric identifier of the entity */ public String getName () { return...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_K_Source.java
1
请完成以下Java代码
public void setCurrentWindow(@NonNull final AdWindowId windowId) { setCurrentWindow(windowId, null); } public void setCurrentWindow(@NonNull final DocumentEntityDescriptor entityDescriptor) { setCurrentWindow(entityDescriptor.getWindowId().toAdWindowId(), entityDescriptor.getCaption().translate(adLanguage)); ...
{ this._currentWindowName = adWindowDAO.retrieveWindowName(currentWindowId).translate(adLanguage); } return this._currentWindowName; } public void collectError(@NonNull final String errorMessage) { errors.add(JsonWindowsHealthCheckResponse.Entry.builder() .windowId(WindowId.of(currentWindowId)) .wi...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\health\ErrorsCollector.java
1
请完成以下Java代码
public String getCaseDefinitionId() { return caseDefinitionId; } @Override public void setCaseDefinitionId(String caseDefinitionId) { this.caseDefinitionId = caseDefinitionId; } @Override public String getCaseInstanceId() { return caseInstanceId; } @Override ...
} @Override public void setOnPartId(String onPartId) { this.onPartId = onPartId; } @Override public String getIfPartId() { return ifPartId; } @Override public void setIfPartId(String ifPartId) { this.ifPartId = ifPartId; } @Override public Date get...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\persistence\entity\SentryPartInstanceEntityImpl.java
1
请完成以下Java代码
public ProcessEngineException exceptionWhileResolvingDuedate(String duedate, Exception e) { return new ProcessEngineException(exceptionMessage( "027", "Exception while resolving duedate '{}': {}", duedate, e.getMessage()), e); } public Exception cannotParseDuration(String expressions) { ret...
exceptionMessage("033", "Could not parse Camunda Form resource {}. Cause: {}", resourceName, cause)); } public void debugCouldNotResolveCallableElement( String callingProcessDefinitionId, String activityId, Throwable cause) { logDebug("046", "Could not resolve a callable element for activity ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\util\EngineUtilLogger.java
1
请完成以下Java代码
public T getData() { return data; } public void setData(T data) { this.data = data; } public String getCode() { return code; } public void setCode(String code) { this.code = code; } public String getMessage() { return message; } public...
public void setStatus(Status status) { this.status = status; } public static enum Status { SUCCESS("OK"), ERROR("ERROR"); private String code; private Status(String code) { this.code = code; } public String code() { return this....
repos\spring-boot-student-master\spring-boot-student-hystrix\src\main\java\com\xiaolyuh\entity\Result.java
1
请完成以下Java代码
protected void parseChildElements( XMLStreamReader xtr, BaseElement parentElement, BpmnModel model, BaseChildElementParser parser ) throws Exception { boolean readyWithChildElements = false; while (!readyWithChildElements && xtr.hasNext()) { xtr.next(); ...
BaseElement parentElement, BpmnModel model ) { List<ExtensionAttribute> attributes = new LinkedList<>(); for (int i = 0; i < xtr.getAttributeCount(); i++) { if (ACTIVITI_EXTENSIONS_NAMESPACE.equals(xtr.getAttributeNamespace(i))) { ExtensionAttribute attr = new Ex...
repos\Activiti-develop\activiti-core\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\child\BaseChildElementParser.java
1
请完成以下Java代码
public class ProducerMain { private static Producer<String, String> createProducer() { // 设置 Producer 的属性 Properties properties = new Properties(); properties.put("bootstrap.servers", "127.0.0.1:9092"); // 设置 Broker 的地址 properties.put("acks", "1"); // 0-不应答。1-leader 应答。all-所有 leader...
return new KafkaProducer<>(properties); } public static void main(String[] args) throws ExecutionException, InterruptedException { // 创建 KafkaProducer 对象 Producer<String, String> producer = createProducer(); // 创建消息。传入的三个参数,分别是 Topic ,消息的 key ,消息的 message 。 ProducerRecord<Strin...
repos\SpringBoot-Labs-master\lab-03-kafka\lab-03-kafka-native\src\main\java\cn\iocoder\springboot\lab03\kafkademo\ProducerMain.java
1
请完成以下Java代码
public final Stream<IView> streamAllViews() { return Stream.empty(); } @Override public final void invalidateView(final ViewId viewId) { final IView view = getByIdOrNull(viewId); if (view == null) { return; } view.invalidateAll(); } @Override public final PurchaseView createView(@NonNull final...
private final PurchaseRowsSupplier createRowsSupplier( final ViewId viewId, final List<PurchaseDemandWithCandidates> purchaseDemandWithCandidatesList) { final PurchaseRowsSupplier rowsSupplier = PurchaseRowsLoader.builder() .purchaseDemandWithCandidatesList(purchaseDemandWithCandidatesList) .viewSuppli...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\order\sales\purchasePlanning\view\PurchaseViewFactoryTemplate.java
1
请在Spring Boot框架中完成以下Java代码
private void doPost(HttpServletResponse response, Saml2LogoutRequest logoutRequest) throws IOException { String location = logoutRequest.getLocation(); String saml = logoutRequest.getSamlRequest(); String relayState = logoutRequest.getRelayState(); String html = createSamlPostRequestFormData(location, saml, rel...
html.append(" <input type=\"hidden\" name=\"SAMLRequest\" value=\""); html.append(HtmlUtils.htmlEscape(saml)); html.append("\"/>\n"); if (StringUtils.hasText(relayState)) { html.append(" <input type=\"hidden\" name=\"RelayState\" value=\""); html.append(HtmlUtils.htmlEscape(rel...
repos\spring-security-main\saml2\saml2-service-provider\src\main\java\org\springframework\security\saml2\provider\service\web\authentication\logout\Saml2RelyingPartyInitiatedLogoutSuccessHandler.java
2
请在Spring Boot框架中完成以下Java代码
public IncludeAttribute getIncludeBindingErrors() { return this.includeBindingErrors; } public void setIncludeBindingErrors(IncludeAttribute includeBindingErrors) { this.includeBindingErrors = includeBindingErrors; } public IncludeAttribute getIncludePath() { return this.includePath; } public void setInc...
*/ ALWAYS, /** * Add error attribute when the appropriate request parameter is not "false". */ ON_PARAM } public static class Whitelabel { /** * Whether to enable the default error page displayed in browsers in case of a * server error. */ private boolean enabled = true; public boolean...
repos\spring-boot-4.0.1\core\spring-boot-autoconfigure\src\main\java\org\springframework\boot\autoconfigure\web\ErrorProperties.java
2
请在Spring Boot框架中完成以下Java代码
public class UserController { @Autowired private UserService userService; @RequestMapping(method = RequestMethod.GET) public List<User> list(HttpServletRequest request) { return userService.getByMap(null); } @RequestMapping(value = "/{id}", method = RequestMethod.GET) public User detail(@PathV...
@RequestMapping(method = RequestMethod.POST) public User create(@RequestBody User user) { return userService.create(user); } @RequestMapping(method = RequestMethod.PUT) public User update(@RequestBody User user) { return userService.update(user); } @RequestMapping(value = "/{id}", meth...
repos\springBoot-master\springboot-shiro\src\main\java\com\us\controller\UserController.java
2
请完成以下Java代码
public void assertCanCreateOrUpdateRecord(final OrgId orgId, final Class<?> modelClass) { assertPermission(PermissionRequest.builder() .orgId(orgId) .adTableId(getTableId(modelClass)) .build()); } public boolean canRunProcess(@NonNull final AdProcessId processId) { final PermissionRequest permissio...
userPermissions.getClientId(), request.getOrgId(), AdTableId.ofRepoId(request.getAdTableId())); } if (allowed.isFalse()) { throw new PermissionNotGrantedException(allowed.getReason()); } else { permissionsGranted.add(request); } } @lombok.Value @lombok.Builder private static class Pe...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\security\permissions2\PermissionService.java
1
请完成以下Java代码
public void keyReleased(KeyEvent e) { // ESC if (e.getKeyCode() == KeyEvent.VK_ESCAPE && !getText().equals(m_oldText)) { log.debug( "VMemo.keyReleased - ESC"); setText(m_oldText); return; } // Indicate Change if (m_firstChange && !m_oldText.equals(getText())) { log.debug( "VMemo.keyReleased...
public void setField (org.compiere.model.GridField mField) { m_mField = mField; EditorContextPopupMenu.onGridFieldSet(this); } // setField @Override public GridField getField() { return m_mField; } private class CInputVerifier extends InputVerifier { @Override public boolean verify(JComponent inpu...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\grid\ed\VMemo.java
1
请完成以下Java代码
public class HalIdentityLinkResolver extends HalCachingLinkResolver { protected Class<?> getHalResourceClass() { return HalIdentityLink.class; } @Override public List<HalResource<?>> resolveLinks(String[] linkedIds, ProcessEngine processEngine) { if (linkedIds.length > 1) { throw new InvalidRequ...
List<HalResource<?>> resolvedIdentityLinks = new ArrayList<HalResource<?>>(); for (IdentityLink identityLink : identityLinks) { resolvedIdentityLinks.add(HalIdentityLink.fromIdentityLink(identityLink)); } return resolvedIdentityLinks; } protected void putIntoCache(List<HalResource<?>> notCachedR...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\hal\identitylink\HalIdentityLinkResolver.java
1
请完成以下Java代码
public HuIdsFilterList acceptNone() { return HuIdsFilterList.NONE; } @Override public HuIdsFilterList acceptOnly(@NonNull final HuIdsFilterList fixedHUIds, @NonNull final Set<HuId> alwaysIncludeHUIds) { return fixedHUIds; } @Override public HuIdsFilterList huQuery(@NonNull final IHUQue...
{ if (mustHUIds.isEmpty() && shallNotHUIds.isEmpty()) { return converter.acceptAll(); } else { return converter.acceptAllBut(ImmutableSet.copyOf(mustHUIds), ImmutableSet.copyOf(shallNotHUIds)); } } else { final ImmutableSet<HuId> fixedHUIds = Stream.concat( initial...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\handlingunits\filter\HUIdsFilterData.java
1
请完成以下Java代码
public boolean addTags(String title, List<String> tags) { UpdateResult result = collection.updateOne(new BasicDBObject(DBCollection.ID_FIELD_NAME, title), Updates.addEachToSet(TAGS_FIELD, tags)); return result.getModifiedCount() == 1; } /** * Removes a list of tags to the blog post with the given title. ...
* @return a {@link Post} object equivalent to the document passed as * argument */ @SuppressWarnings("unchecked") private static Post documentToPost(Document document) { Post post = new Post(); post.setTitle(document.getString(DBCollection.ID_FIELD_NAME)); post.setAuthor(document.getString("author")...
repos\tutorials-master\persistence-modules\java-mongodb-3\src\main\java\com\baeldung\mongo\tagging\TagRepository.java
1
请完成以下Java代码
public final class NullCopyPasteSupportEditor implements ICopyPasteSupportEditor { public static final transient NullCopyPasteSupportEditor instance = new NullCopyPasteSupportEditor(); public static final boolean isNull(final ICopyPasteSupportEditor copyPasteSupport) { return copyPasteSupport == null || copyPaste...
/** * @throws IllegalStateException always */ @Override public void putCopyPasteAction(final CopyPasteActionType actionType, final Action action, final KeyStroke keyStroke) { throw new IllegalStateException("Setting copy/paste action not supported"); } /** * @return false */ @Override public boolean i...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ui\editor\NullCopyPasteSupportEditor.java
1
请完成以下Java代码
public Object getParameterDefaultValue(@NonNull final IProcessDefaultParameter parameter) { if (Objects.equals(PARAM_NO_HUs, parameter.getColumnName())) { return getDefaultNrOfHUs(); } else { return super.getParameterDefaultValue(parameter); } } @Override protected ProcessPreconditionsResolution ...
} @NonNull private QuantityTU getQtyTU() { return getPIIPCapacity().calculateQtyTU(qtyCUsPerTU, getCurrentShipmentScheuduleUOM(), uomConversionBL) .orElseThrow(() -> new AdempiereException("QtyTU cannot be obtained for the current request!") .appendParametersToMessage() .setParameter("QtyCU", qtyC...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\picking\pickingslot\process\WEBUI_Picking_PickQtyToComputedHU.java
1
请在Spring Boot框架中完成以下Java代码
public class Config { // tag::topicBeans[] @Bean public KafkaAdmin admin() { Map<String, Object> configs = new HashMap<>(); configs.put(AdminClientConfig.BOOTSTRAP_SERVERS_CONFIG, "localhost:9092"); return new KafkaAdmin(configs); } @Bean public NewTopic topic1() { ...
@Bean public NewTopic topic5() { return TopicBuilder.name("defaultPart") .replicas(1) .build(); } @Bean public NewTopic topic6() { return TopicBuilder.name("defaultRepl") .partitions(3) .build(); } // end::brokerPro...
repos\spring-kafka-main\spring-kafka-docs\src\main\java\org\springframework\kafka\jdocs\topics\Config.java
2
请完成以下Java代码
public boolean containsDataStore(String id) { return dataStoreMap.containsKey(id); } public List<Pool> getPools() { return pools; } public void setPools(List<Pool> pools) { this.pools = pools; } public List<Import> getImports() { return imports; } publ...
this.targetNamespace = targetNamespace; } public String getSourceSystemId() { return sourceSystemId; } public void setSourceSystemId(String sourceSystemId) { this.sourceSystemId = sourceSystemId; } public List<String> getUserTaskFormTypes() { return userTaskFormTypes; ...
repos\Activiti-develop\activiti-core\activiti-bpmn-model\src\main\java\org\activiti\bpmn\model\BpmnModel.java
1