instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
public CardEntry1 getCardTx() { return cardTx; } /** * Sets the value of the cardTx property. * * @param value * allowed object is * {@link CardEntry1 } * */ public void setCardTx(CardEntry1 value) { this.cardTx = value; } /** *...
return this.ntryDtls; } /** * Gets the value of the addtlNtryInf property. * * @return * possible object is * {@link String } * */ public String getAddtlNtryInf() { return addtlNtryInf; } /** * Sets the value of the addtlNtryInf propert...
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\ReportEntry4.java
1
请在Spring Boot框架中完成以下Java代码
public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; }
public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } }
repos\Spring-Boot-Advanced-Projects-main\Springboot-Employee-Search\src\main\java\spring\project\configure\Employee.java
2
请完成以下Java代码
public static String getSqlInjectField(String field) { if(oConvertUtils.isEmpty(field)){ return field; } field = field.trim(); if (field.contains(SymbolConstant.COMMA)) { return getSqlInjectField(field.split(SymbolConstant.COMMA)); } /** * 校验表字段是否有效 * * 字段定义只能是是字母 数字 下划线的组合(不允许有空格、转义字符串等...
* 1.将驼峰命名转化成下划线 * 2.限制sql注入 * @param sortFields 多个排序字段 * @return */ public static List getSqlInjectSortFields(String... sortFields) { List list = new ArrayList<String>(); for (String sortField : sortFields) { list.add(getSqlInjectSortField(sortField)); } return list; } /** * 获取 orderBy type ...
repos\JeecgBoot-main\jeecg-boot\jeecg-boot-base-core\src\main\java\org\jeecg\common\util\SqlInjectionUtil.java
1
请完成以下Java代码
public GridField getField() { return m_mField; } /** * Set Text * @param text text */ public void setText (String text) { m_text.setText (text); validateOnTextChanged(); } // setText /** * Get Text (clear) * @return text */ public String getText () { String text = m_text.getText(); ...
public void focusLost (FocusEvent e) { m_infocus = false; setText(getText()); // obscure } // focus Lost // metas @Override public boolean isAutoCommit() { return true; } @Override public final ICopyPasteSupportEditor getCopyPasteSupport() { return m_text == null ? NullCopyPasteSupportEditor.instan...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\grid\ed\VURL.java
1
请在Spring Boot框架中完成以下Java代码
public java.lang.String getExternalReferenceURL() { return get_ValueAsString(COLUMNNAME_ExternalReferenceURL); } @Override public void setExternalSystem_ID (final int ExternalSystem_ID) { if (ExternalSystem_ID < 1) set_Value (COLUMNNAME_ExternalSystem_ID, null); else set_Value (COLUMNNAME_ExternalS...
set_Value (COLUMNNAME_SeqNo, SeqNo); } @Override public int getSeqNo() { return get_ValueAsInt(COLUMNNAME_SeqNo); } @Override public void setS_ExternalProjectReference_ID (final int S_ExternalProjectReference_ID) { if (S_ExternalProjectReference_ID < 1) set_ValueNoCheck (COLUMNNAME_S_ExternalProjectR...
repos\metasfresh-new_dawn_uat\backend\de.metas.serviceprovider\src\main\java-gen\de\metas\serviceprovider\model\X_S_ExternalProjectReference.java
2
请完成以下Java代码
public void setCreditLimitIndicator (java.lang.String CreditLimitIndicator) { set_Value (COLUMNNAME_CreditLimitIndicator, CreditLimitIndicator); } /** Get Credit limit indicator %. @return Percent of Credit used from the limit */ @Override public java.lang.String getCreditLimitIndicator () { return (ja...
/** * SOCreditStatus AD_Reference_ID=289 * Reference name: C_BPartner SOCreditStatus */ public static final int SOCREDITSTATUS_AD_Reference_ID=289; /** CreditStop = S */ public static final String SOCREDITSTATUS_CreditStop = "S"; /** CreditHold = H */ public static final String SOCREDITSTATUS_CreditHold = "...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_BPartner_Stats.java
1
请完成以下Java代码
public class JsonPointerBasedInboundEventTenantDetector implements InboundEventTenantDetector<JsonNode> { private static final Logger LOGGER = LoggerFactory.getLogger(JsonPointerBasedInboundEventTenantDetector.class); protected String jsonPointerExpression; protected JsonPointer jsonPointer; public J...
if (result.isString()) { return result.asString(); } return null; } public String getJsonPointerExpression() { return jsonPointerExpression; } public void setJsonPointerExpression(String jsonPointerExpression) { this.jsonPointerExpression = jsonPointerExpres...
repos\flowable-engine-main\modules\flowable-event-registry\src\main\java\org\flowable\eventregistry\impl\tenantdetector\JsonPointerBasedInboundEventTenantDetector.java
1
请完成以下Java代码
public class CorrelateMessageCmd extends AbstractCorrelateMessageCmd implements Command<MessageCorrelationResultImpl> { private final static CommandLogger LOG = ProcessEngineLogger.CMD_LOGGER; protected boolean startMessageOnly; /** * Initialize the command with a builder * * @param messageCorrelation...
correlationResult = correlationResults.get(0); } } else { correlationResult = commandContext.runWithoutAuthorization(new Callable<CorrelationHandlerResult>() { public CorrelationHandlerResult call() throws Exception { return correlationHandler.correlateMessage(commandContext, messageNa...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\cmd\CorrelateMessageCmd.java
1
请完成以下Java代码
public ContactAddressType getContact() { return contact; } /** * Sets the value of the contact property. * * @param value * allowed object is * {@link ContactAddressType } * */ public void setContact(ContactAddressType value) { this.contact =...
* * @param value * allowed object is * {@link AcceptedType } * */ public void setAccepted(AcceptedType value) { this.accepted = value; } /** * Gets the value of the rejected property. * * @return * possible object is * {@link ...
repos\metasfresh-new_dawn_uat\backend\vertical-healthcare_ch\forum_datenaustausch_ch.invoice_440_response\src\main\java-xjc\de\metas\vertical\healthcare_ch\forum_datenaustausch_ch\invoice_440\response\BodyType.java
1
请完成以下Java代码
private void assertUomWeightable(@NonNull final UomId catchUomId) { final IUOMDAO uomDAO = Services.get(IUOMDAO.class); final UOMType catchUOMType = uomDAO.getUOMTypeById(catchUomId); if (!catchUOMType.isWeight()) { throw new AdempiereException("CatchUomId=" + catchUomId + " needs to be weightable"); } }...
final Function<BigDecimal, Quantity> toNetWeightQty = netWeight -> { final IAttributeStorage attributeStorage = huContext.getHUAttributeStorageFactory().getAttributeStorage(hu); final IWeightable weightable = Weightables.wrap(attributeStorage); return Quantity.of(netWeight, weightable.getWeightNetUOM()); }; ...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\util\CatchWeightHelper.java
1
请完成以下Java代码
public DataFetcherResult<ArticlePayload> updateArticle( @InputArgument("slug") String slug, @InputArgument("changes") UpdateArticleInput params) { Article article = articleRepository.findBySlug(slug).orElseThrow(ResourceNotFoundException::new); User user = SecurityUtil.getCurrentUser().orElseThrow...
Article article = articleRepository.findBySlug(slug).orElseThrow(ResourceNotFoundException::new); articleFavoriteRepository .find(article.getId(), user.getId()) .ifPresent( favorite -> { articleFavoriteRepository.remove(favorite); }); return DataFetc...
repos\spring-boot-realworld-example-app-master\src\main\java\io\spring\graphql\ArticleMutation.java
1
请完成以下Java代码
public class AuthResponse implements Message { public static final String TYPE = "AUTH_RESPONSE"; /** * 响应状态码 */ private Integer code; /** * 响应提示 */ private String message; public Integer getCode() { return code; }
public AuthResponse setCode(Integer code) { this.code = code; return this; } public String getMessage() { return message; } public AuthResponse setMessage(String message) { this.message = message; return this; } }
repos\SpringBoot-Labs-master\lab-25\lab-websocket-25-01\src\main\java\cn\iocoder\springboot\lab25\springwebsocket\message\AuthResponse.java
1
请完成以下Java代码
public EventModel getEventModelById(String eventDefinitionId) { return commandExecutor.execute(new GetEventModelCmd(null, eventDefinitionId)); } @Override public EventModel getEventModelByKey(String eventDefinitionKey) { return commandExecutor.execute(new GetEventModelCmd(eventDefinitionKey...
return commandExecutor.execute(new GetChannelModelCmd(channelDefinitionKey, tenantId, parentDeploymentId)); } @Override public EventModelBuilder createEventModelBuilder() { return new EventModelBuilderImpl(this, eventRegistryEngineConfiguration.getEventJsonConverter()); } @Overrid...
repos\flowable-engine-main\modules\flowable-event-registry\src\main\java\org\flowable\eventregistry\impl\EventRepositoryServiceImpl.java
1
请完成以下Java代码
public void setFromBillLocation(final I_C_Order from) { final DocumentLocation fromDocumentLocationAdapter = OrderDocumentLocationAdapterFactory.billLocationAdapter(from).toDocumentLocation(); final BPartnerContactId fromContactId = fromDocumentLocationAdapter.getContactId(); final BPartnerContactId invoiceCont...
setFrom(fromDocumentLocationAdapter.withContactId(null)); } else { setFrom(fromDocumentLocationAdapter); } } @Override public I_C_Invoice getWrappedRecord() { return delegate; } @Override public Optional<DocumentLocation> toPlainDocumentLocation(final IDocumentLocationBL documentLocationBL) { r...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\invoice\location\adapter\InvoiceDocumentLocationAdapter.java
1
请在Spring Boot框架中完成以下Java代码
public Result<?> edit(@RequestBody OpenApiLog OpenApiLog) { service.updateById(OpenApiLog); return Result.ok("修改成功!"); } /** * 通过id删除 * * @param id * @return */ @DeleteMapping(value = "/delete") public Result<?> delete(@RequestParam(name = "id", required = true...
this.service.removeByIds(Arrays.asList(ids.split(","))); return Result.ok("批量删除成功!"); } /** * 通过id查询 * * @param id * @return */ @GetMapping(value = "/queryById") public Result<?> queryById(@RequestParam(name = "id", required = true) String id) { OpenApiLog OpenA...
repos\JeecgBoot-main\jeecg-boot\jeecg-module-system\jeecg-system-biz\src\main\java\org\jeecg\modules\openapi\controller\OpenApiLogController.java
2
请完成以下Java代码
public static JsonOLCandCreateBulkResponse error(@NonNull final JsonErrorItem error) { final List<JsonOLCand> olCands = null; return new JsonOLCandCreateBulkResponse(olCands, ImmutableList.of(error)); } @JsonInclude(JsonInclude.Include.NON_NULL) private final List<JsonOLCand> result; @JsonInclude(JsonInclude...
return !errors.isEmpty(); } public JsonErrorItem getError() { if (errors.isEmpty()) { throw new IllegalStateException("Not an error result: " + this); } return Check.singleElement(errors); } public List<JsonOLCand> getResult() { if (!errors.isEmpty()) { throw new IllegalStateException("Not a s...
repos\metasfresh-new_dawn_uat\misc\de-metas-common\de-metas-common-ordercandidates\src\main\java\de\metas\common\ordercandidates\v1\response\JsonOLCandCreateBulkResponse.java
1
请完成以下Java代码
public Integer getQtyTU() { return ediDesadvPackItems.stream() .map(EDIDesadvPackItem::getQtyTu) .filter(Objects::nonNull) .reduce(0, Integer::sum); } @NonNull public BigDecimal getQtyCUsPerTU() { return ediDesadvPackItems.stream() .map(EDIDesadvPackItem::getQtyCUsPerTU) .filter(Objects::n...
@Nullable BigDecimal qtyCUsPerTU; @Nullable BigDecimal qtyCUPerTUinInvoiceUOM; @Nullable BigDecimal qtyCUsPerLU; @Nullable BigDecimal qtyCUsPerLUinInvoiceUOM; @Nullable Timestamp bestBeforeDate; @Nullable String lotNumber; @Nullable PackagingCodeId huPackagingCodeTuId; @Nullable Str...
repos\metasfresh-new_dawn_uat\backend\de.metas.edi\src\main\java\de\metas\edi\api\impl\pack\EDIDesadvPack.java
1
请完成以下Java代码
public static Optional<BankStatementId> optionalOfRepoId(final int repoId) {return Optional.ofNullable(ofRepoIdOrNull(repoId));} public static Set<Integer> toIntSet(final Collection<BankStatementId> bankStatementIds) { if (bankStatementIds == null || bankStatementIds.isEmpty()) { return ImmutableSet.of(); }...
} @Override @JsonValue public int getRepoId() { return repoId; } public static boolean equals(@Nullable BankStatementId id1, @Nullable BankStatementId id2) { return Objects.equals(id1, id2); } public static int toRepoId(@Nullable BankStatementId id) {return id != null ? id.getRepoId() : -1;} }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\banking\BankStatementId.java
1
请完成以下Java代码
public void updateFromSalesPartnerCode(@NonNull final DocumentSalesRepDescriptor documentSalesRepDescriptor) { final String salesPartnerCode = documentSalesRepDescriptor.getSalesPartnerCode(); if (isEmpty(salesPartnerCode, true)) { documentSalesRepDescriptor.setSalesRep(null); return; } final Optional...
{ documentSalesRepDescriptor.setSalesPartnerCode(null); return; } final I_C_BPartner salesBPartnerRecord = bpartnerDAO.getById(documentSalesRepDescriptor.getSalesRep().getBPartnerId()); documentSalesRepDescriptor.setSalesPartnerCode(salesBPartnerRecord.getSalesPartnerCode()); } public AdempiereExceptio...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\commission\salesrep\DocumentSalesRepDescriptorService.java
1
请在Spring Boot框架中完成以下Java代码
final class TrxRunConfig implements ITrxRunConfig { private final TrxPropagation trxPropagation; private final OnRunnableSuccess onRunnableSuccess; private final OnRunnableFail onRunnableFail; private final boolean autocommit; public TrxRunConfig(final TrxPropagation trxMode, final OnRunnableSuccess onRunnable...
@Override public TrxPropagation getTrxPropagation() { return trxPropagation; } @Override public OnRunnableSuccess getOnRunnableSuccess() { return onRunnableSuccess; } @Override public OnRunnableFail getOnRunnableFail() { return onRunnableFail; } @Override public boolean isAutoCommit() { return ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\trx\api\impl\TrxRunConfig.java
2
请在Spring Boot框架中完成以下Java代码
public Result confirmReceive(String orderId, HttpServletRequest httpReq) { // 获取买家ID String buyerId = getUserId(httpReq); // 确认收货 orderService.confirmReceive(orderId, buyerId); // 成功 return Result.newSuccessResult(); }
/** * 获取用户ID * @param httpReq HTTP请求 * @return 用户ID */ private String getUserId(HttpServletRequest httpReq) { UserEntity userEntity = userUtil.getUser(httpReq); if (userEntity == null) { throw new CommonBizException(ExpCodeEnum.UNLOGIN); } return user...
repos\SpringBoot-Dubbo-Docker-Jenkins-master\Gaoxi-Controller\src\main\java\com\gaoxi\controller\order\OrderControllerImpl.java
2
请完成以下Java代码
public class QueryStringBuilder { StringBuilder builder; public QueryStringBuilder(String field, String str, boolean not, boolean addQuot) { builder = this.createBuilder(field, str, not, addQuot); } public QueryStringBuilder(String field, String str, boolean not) { builder = this.crea...
public QueryStringBuilder not(String str) { return this.not(str, true); } public QueryStringBuilder not(String str, boolean addQuot) { builder.append(" NOT "); this.addQuot(str, addQuot); return this; } /** * 添加双引号(模糊查询,不能加双引号) */ private QueryStringBuilder ...
repos\JeecgBoot-main\jeecg-boot\jeecg-boot-base-core\src\main\java\org\jeecg\common\es\QueryStringBuilder.java
1
请在Spring Boot框架中完成以下Java代码
public class CacheInvalidationQueueConfiguration implements IEventBusQueueConfiguration { public static final Topic EVENTBUS_TOPIC = Topic.distributed("de.metas.cache.CacheInvalidationRemoteHandler"); static final String QUEUE_NAME_SPEL = "#{metasfreshCacheInvalidationEventsQueue.name}"; private static final String ...
return cacheInvalidationQueue().getName(); } @Override public Optional<String> getTopicName() { return Optional.of(EVENTBUS_TOPIC.getName()); } @Override public String getExchangeName() { return cacheInvalidationExchange().getName(); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\event\remote\rabbitmq\queues\cache_invalidation\CacheInvalidationQueueConfiguration.java
2
请完成以下Java代码
private static boolean isWithinPause(final I_C_SubscriptionProgress subscriptionProgress) { final boolean withinPause = subscriptionProgress.getContractStatus().equals(X_C_SubscriptionProgress.CONTRACTSTATUS_DeliveryPause) || subscriptionProgress.getEventType().equals(X_C_SubscriptionProgress.EVENTTYPE_BeginOfPa...
else if (isWithinPause(pauseRecord)) { pauseRecord.setContractStatus(X_C_SubscriptionProgress.CONTRACTSTATUS_Running); if (pauseRecord.getM_ShipmentSchedule_ID() > 0) { Services.get(IShipmentScheduleBL.class).openShipmentSchedule(InterfaceWrapperHelper.load(pauseRecord.getM_ShipmentSchedule_ID(), I...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\subscription\impl\subscriptioncommands\RemovePauses.java
1
请在Spring Boot框架中完成以下Java代码
public Duration connectTimeout() { return obtain(AtlasProperties::getConnectTimeout, AtlasConfig.super::connectTimeout); } @Override public Duration readTimeout() { return obtain(AtlasProperties::getReadTimeout, AtlasConfig.super::readTimeout); } @Override public int numThreads() { return obtain(AtlasProp...
} @Override public Duration configRefreshFrequency() { return obtain(AtlasProperties::getConfigRefreshFrequency, AtlasConfig.super::configRefreshFrequency); } @Override public Duration configTTL() { return obtain(AtlasProperties::getConfigTimeToLive, AtlasConfig.super::configTTL); } @Override public Stri...
repos\spring-boot-4.0.1\module\spring-boot-micrometer-metrics\src\main\java\org\springframework\boot\micrometer\metrics\autoconfigure\export\atlas\AtlasPropertiesConfigAdapter.java
2
请完成以下Java代码
Collection<OptionHelp> getOptionHelp() { return Collections.unmodifiableList(this.help); } } private static class OptionHelpAdapter implements OptionHelp { private final Set<String> options; private final String description; OptionHelpAdapter(OptionDescriptor descriptor) { this.options = new Linked...
} this.description = descriptor.description(); } @Override public Set<String> getOptions() { return this.options; } @Override public String getUsageHelp() { return this.description; } } }
repos\spring-boot-4.0.1\cli\spring-boot-cli\src\main\java\org\springframework\boot\cli\command\options\OptionHandler.java
1
请完成以下Java代码
default Collection<T> getAllRows() { return getDocumentId2AllRows().values(); } default Collection<T> getTopLevelRows() { return getDocumentId2TopLevelRows().values(); } /** @return top level or include row */ default T getById(final DocumentId rowId) throws EntityNotFoundException { final T row = getBy...
{ throw new EntityNotFoundException("Row not found") .appendParametersToMessage() .setParameter("rowId", rowId); } return row; } @Nullable default T getByIdOrNull(final DocumentId rowId) { return getDocumentId2AllRows().get(rowId); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\view\template\IRowsData.java
1
请完成以下Java代码
private HUAttributeChange extractHUAttributeChange( final I_M_HU_Attribute record, final I_M_Attribute attribute) { final I_M_HU_Attribute recordBeforeChanges = InterfaceWrapperHelper.createOld(record, I_M_HU_Attribute.class); final AttributeValueType attributeValueType = AttributeValueType.ofCode(attribute...
else { throw new AdempiereException("Unknown attribute value type: " + attributeValueType); } return HUAttributeChange.builder() .huId(HuId.ofRepoId(record.getM_HU_ID())) .attributeId(AttributeId.ofRepoId(record.getM_Attribute_ID())) .attributeValueType(attributeValueType) .valueNew(valueNew) ...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\material\interceptor\M_HU_Attribute.java
1
请在Spring Boot框架中完成以下Java代码
public BPPrintFormat save(@NonNull final BPPrintFormat bpPrintFormat) { final I_C_BP_PrintFormat bpPrintFormatRecord = createOrUpdateRecord(bpPrintFormat); saveRecord(bpPrintFormatRecord); return bpPrintFormat.toBuilder() .bpPrintFormatId(bpPrintFormatRecord.getC_BP_PrintFormat_ID()) .build(); } priv...
bpPrintFormatRecord.setC_BPartner_ID(bpPrintFormat.getBpartnerId().getRepoId()); bpPrintFormatRecord.setC_DocType_ID(bpPrintFormat.getDocTypeId() == null ? 0 : bpPrintFormat.getDocTypeId().getRepoId()); bpPrintFormatRecord.setAD_Table_ID(bpPrintFormat.getAdTableId() == null ? 0 : bpPrintFormat.getAdTableId().getRep...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\bpartner\service\BPartnerPrintFormatRepository.java
2
请在Spring Boot框架中完成以下Java代码
public class SampleLdapApplication { public static void main(String[] args) { SpringApplication.run(SampleLdapApplication.class, args); } @Configuration(proxyBeanMethods = false) class ApiWebSecurityConfigurationAdapter { @Bean @Order(99) public SecurityFilterChain api...
) .httpBasic(Customizer.withDefaults()); return http.build(); } } @Bean @ConditionalOnBean(InMemoryDirectoryServer.class) public CommandLineRunner initializePrivileges(IdmIdentityService idmIdentityService) { return args -> { Privilege repository...
repos\flowable-engine-main\modules\flowable-spring-boot\flowable-spring-boot-samples\flowable-spring-boot-sample-ldap\src\main\java\flowable\SampleLdapApplication.java
2
请在Spring Boot框架中完成以下Java代码
public String getScopeType() { return scopeType; } public void setScopeType(String scopeType) { this.scopeType = scopeType; } public String getElementId() { return elementId; } public void setElementId(String elementId) { this.elementId = elementId; } ...
public void setCreateTime(Date createTime) { this.createTime = createTime; } public void setTenantId(String tenantId) { this.tenantId = tenantId; } public String getTenantId() { return tenantId; } public String getLockOwner() { return lockOwner; } publ...
repos\flowable-engine-main\modules\flowable-external-job-rest\src\main\java\org\flowable\external\job\rest\service\api\query\ExternalWorkerJobResponse.java
2
请完成以下Java代码
private static void hasNextWithDelimiter() { printHeader("hasNext() with delimiter"); Scanner scanner = new Scanner(INPUT); while (scanner.hasNext()) { String token = scanner.next(); if ("dependencies:".equals(token)) { scanner.useDelimiter(":"); ...
log.info(END_LINE); scanner.close(); } private static void printHeader(String title) { log.info(LINE); log.info(title); log.info(LINE); } public static void main(String[] args) throws IOException { setLogger(); hasNextBasic(); hasNextWithDelimite...
repos\tutorials-master\core-java-modules\core-java-scanner\src\main\java\com\baeldung\scanner\HasNextVsHasNextLineDemo.java
1
请完成以下Java代码
public String getInstanceId() { return instanceId; } public String getExecutionId() { return executionId; } public String getActivityId() { return activityId; } public String getScopeType() { return scopeType; } public boolean isWithoutScopeType() ...
public Boolean getFailed() { return failed; } public String getTenantId() { return tenantId; } public String getTenantIdLike() { return tenantIdLike; } public boolean isWithoutTenantId() { return withoutTenantId; } }
repos\flowable-engine-main\modules\flowable-dmn-engine\src\main\java\org\flowable\dmn\engine\impl\HistoricDecisionExecutionQueryImpl.java
1
请完成以下Java代码
void add(ConfigurationProperty configurationProperty) { this.properties.put(configurationProperty.getName(), configurationProperty); } /** * Get the configuration property bound to the given name. * @param name the property name * @return the bound property or {@code null} */ public @Nullable Configuratio...
* @param context the context to search * @return a {@link BoundConfigurationProperties} or {@code null} */ public static @Nullable BoundConfigurationProperties get(ApplicationContext context) { return (!context.containsBeanDefinition(BEAN_NAME)) ? null : context.getBean(BEAN_NAME, BoundConfigurationPropertie...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\context\properties\BoundConfigurationProperties.java
1
请完成以下Java代码
public Address instantiate(ValueAccess values) { return new Address(values.getValue(0, String.class), values.getValue(1, String.class), values.getValue(2, String.class), values.getValue(3, String.class), values.getValue(4, Integer.class)); } @Override public Class<?> embeddable() { ...
newEmpAdd.setZipCode(value.getZipCode()); return newEmpAdd; } @Override public boolean isMutable() { return true; } @Override public Serializable disassemble(Address value) { return (Serializable) deepCopy(value); } @Override public Address assemble(Serial...
repos\tutorials-master\persistence-modules\hibernate-annotations\src\main\java\com\baeldung\hibernate\customtypes\AddressType.java
1
请完成以下Java代码
public @NonNull TenderType getTenderType(final @NonNull BankAccountId bankAccountId) { final BankAccountService bankAccountService = SpringContextHolder.instance.getBean(BankAccountService.class); if (bankAccountService.isCashBank(bankAccountId)) { return TenderType.Cash; } else { return TenderType.C...
final I_C_Invoice invoice = InvoiceId.optionalOfRepoId(payment.getC_Invoice_ID()) .map(invoiceBL::getById) .orElse(null); if (invoice != null && invoice.isSOTrx() != docType.isSOTrx()) { // task: 07564 the SOtrx flags don't match, but that's OK *if* the invoice i a credit memo (either for the vendor or ...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\payment\api\impl\PaymentBL.java
1
请完成以下Java代码
public void setDroppedTo(@NonNull LocatorId dropToLocatorId, @NonNull final MovementId dropToMovementId) { for (final DDOrderMoveSchedulePickedHU pickedHU : byActualHUIdPicked.values()) { pickedHU.setDroppedTo(dropToLocatorId, dropToMovementId); } } public ExplainedOptional<LocatorId> getInTransitLocatorId...
} else if (inTransitLocatorIds.size() == 1) { final LocatorId inTransitLocatorId = inTransitLocatorIds.iterator().next(); return ExplainedOptional.of(inTransitLocatorId); } else { // shall not happen return ExplainedOptional.emptyBecause("More than one in transit locator found: " + inTransitLocato...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\distribution\ddorder\movement\schedule\DDOrderMoveSchedulePickedHUs.java
1
请在Spring Boot框架中完成以下Java代码
public class LiquibaseConfiguration { private final Logger log = LoggerFactory.getLogger(LiquibaseConfiguration.class); private final Environment env; public LiquibaseConfiguration(Environment env) { this.env = env; } @Value("${application.liquibase.async-start:true}") private Boolea...
liquibase.setContexts(liquibaseProperties.getContexts()); liquibase.setDefaultSchema(liquibaseProperties.getDefaultSchema()); liquibase.setLiquibaseSchema(liquibaseProperties.getLiquibaseSchema()); liquibase.setLiquibaseTablespace(liquibaseProperties.getLiquibaseTablespace()); liquibase....
repos\tutorials-master\jhipster-8-modules\jhipster-8-microservice\car-app\src\main\java\com\cars\app\config\LiquibaseConfiguration.java
2
请完成以下Java代码
public void restore() { SecurityContextHolder.clearContext(); } @Override @Deprecated(since = "1.3.0", forRemoval = true) public void reset() { SecurityContextHolder.clearContext(); } } private static final class NoOpAccessor implements ThreadLocalAccessor<Object> { @Override public Object ke...
@Override public void restore(Object previousValue) { } @Override public void restore() { } @Override @Deprecated(since = "1.3.0", forRemoval = true) public void reset() { } } }
repos\spring-graphql-main\spring-graphql\src\main\java\org\springframework\graphql\execution\SecurityContextThreadLocalAccessor.java
1
请完成以下Spring Boot application配置
# =============================== # = DATA SOURCE # =============================== # Set here configurations for the database connection spring.datasource.url = jdbc:mysql://localhost:3306/netgloo_blog?useSSL=false spring.datasource.username = root spring.datasource.password = root # =============================== ...
ime types # For Hibernate native properties must be used spring.jpa.properties.* (the # prefix is stripped before adding them to the entity manager). spring.jpa.properties.jadira.usertype.autoRegisterUserTypes = true
repos\spring-boot-samples-master\spring-boot-hibernate-joda-time\src\main\resources\application.properties
2
请完成以下Java代码
public Date getEndTime() { return historicProcessInstance.getEndTime(); } @Override public Long getDurationInMillis() { return historicProcessInstance.getDurationInMillis(); } @Override public String getStartUserId() { return historicProcessInstance.getStartUserId(); ...
public void addHistoricData(HistoricData historicEvent) { historicData.add(historicEvent); } public void addHistoricData(Collection<? extends HistoricData> historicEvents) { historicData.addAll(historicEvents); } public void orderHistoricData() { Collections.sort( h...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\ProcessInstanceHistoryLogImpl.java
1
请在Spring Boot框架中完成以下Java代码
public void updateData(PmsRole pmsRole) { pmsRoleDao.update(pmsRole); } /** * 根据id获取数据pmsOperator * * @param id * @return */ public PmsRole getDataById(Long id) { return pmsRoleDao.getById(id); } /** * 分页查询pmsOperator * * @param pageParam * @param ActivityVo * PmsOperator ...
/** * 判断此权限是否关联有角色 * * @param permissionId * @return */ public List<PmsRole> listByPermissionId(Long permissionId) { return pmsRoleDao.listByPermissionId(permissionId); } /** * 根据角色名或者角色编号查询角色 * * @param roleName * @param roleCode * @return */ public PmsRole getByRoleNameOrRoleCode(String...
repos\roncoo-pay-master\roncoo-pay-service\src\main\java\com\roncoo\pay\permission\service\impl\PmsRoleServiceImpl.java
2
请完成以下Java代码
public static boolean shouldInclude(Term term) { return FILTER.shouldInclude(term); } /** * 是否应当去掉这个词 * @param term 词 * @return 是否应当去掉 */ public static boolean shouldRemove(Term term) { return !shouldInclude(term); } /** * 加入停用词到停用词词典中 * @param...
* 从停用词词典中删除停用词 * @param stopWord 停用词 * @return 词典是否发生了改变 */ public static boolean remove(String stopWord) { return dictionary.remove(stopWord); } /** * 对分词结果应用过滤 * @param termList */ public static List<Term> apply(List<Term> termList) { ListIterator...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\dictionary\stopword\CoreStopWordDictionary.java
1
请在Spring Boot框架中完成以下Java代码
public List<RouteProperties> getRoutes() { return routes; } public void setRoutes(List<RouteProperties> routes) { this.routes = routes; } public LinkedHashMap<String, RouteProperties> getRoutesMap() { return routesMap; } public void setRoutesMap(LinkedHashMap<String, RouteProperties> routesMap) { this....
public void setStreamingBufferSize(int streamingBufferSize) { this.streamingBufferSize = streamingBufferSize; } public @Nullable String getTrustedProxies() { return trustedProxies; } public void setTrustedProxies(String trustedProxies) { this.trustedProxies = trustedProxies; } @Override public String to...
repos\spring-cloud-gateway-main\spring-cloud-gateway-server-webmvc\src\main\java\org\springframework\cloud\gateway\server\mvc\config\GatewayMvcProperties.java
2
请完成以下Java代码
public boolean containsAll(Collection<?> c) { for (Object e : c) if (!contains(e)) return false; return true; } @Override public boolean addAll(Collection<? extends String> c) { boolean modified = false; for (String e : c) if (...
} @Override public boolean removeAll(Collection<?> c) { boolean modified = false; Iterator<?> it = iterator(); while (it.hasNext()) { if (c.contains(it.next())) { it.remove(); modified = true; } } ...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\collection\MDAG\MDAGSet.java
1
请完成以下Java代码
public void sendAsyncMsg() { Map<String, Object> map = new HashMap<>(); map.put( "name", "zs" ); map.put( "age", 20 ); rocketMQTemplate.asyncSend( "Topic-Normal", map, new SendCallback() { @Override public void onSuccess(SendResult sendResult) { /...
/** * 批量消息 */ public void sendBatchMsg(List<Message> messages) { rocketMQTemplate.syncSend( "springboot-rocketmq", messages ); } /** * 事务消息 */ public void sendTransactionMsg(){ TransactionSendResult transactionSendResult = rocketMQTemplate.sendMessageInTransaction( ...
repos\SpringBootLearning-master (1)\springboot-rocketmq-message\src\main\java\com\itwolfed\msg\Producer.java
1
请完成以下Java代码
public ImmutableCollection<DDOrderMoveSchedulePickedHU> toCollection() { return byActualHUIdPicked.values(); } public Quantity getQtyPicked() { return byActualHUIdPicked.values() .stream() .map(DDOrderMoveSchedulePickedHU::getQtyPicked) .reduce(Quantity::add) .orElseThrow(() -> new IllegalState...
// shall not happen return ExplainedOptional.emptyBecause("No in transit locator found"); } else if (inTransitLocatorIds.size() == 1) { final LocatorId inTransitLocatorId = inTransitLocatorIds.iterator().next(); return ExplainedOptional.of(inTransitLocatorId); } else { // shall not happen ret...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\distribution\ddorder\movement\schedule\DDOrderMoveSchedulePickedHUs.java
1
请完成以下Java代码
public final class NullValidationRule implements IValidationRule { public static final NullValidationRule instance = new NullValidationRule(); public static boolean isNull(final IValidationRule rule) { return rule == null || rule == instance; } private NullValidationRule() { super(); } @Override public ...
{ return true; } @Override public Set<String> getAllParameters() { return ImmutableSet.of(); } @Override public IStringExpression getPrefilterWhereClause() { return IStringExpression.NULL; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\validationRule\impl\NullValidationRule.java
1
请完成以下Java代码
public String getClientSoftwareKennung() { return clientSoftwareKennung; } /** * Sets the value of the clientSoftwareKennung property. * * @param value * allowed object is * {@link String } * */ public void setClientSoftwareKennung(String value) { ...
* */ public Ruecknahmeangebot getRuecknahmeangebot() { return ruecknahmeangebot; } /** * Sets the value of the ruecknahmeangebot property. * * @param value * allowed object is * {@link Ruecknahmeangebot } * */ public void setRuecknahmea...
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\RuecknahmeangebotAnfordern.java
1
请完成以下Java代码
public String toString() { return expressionStr; } @Override public int hashCode() { return Objects.hash(parameter); } @Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { retu...
@Override public Set<CtxName> getParameters() { return parametersAsCtxName; } @Override public String evaluate(final Evaluatee ctx, final OnVariableNotFound onVariableNotFound) throws ExpressionEvaluationException { try { return StringExpressionsHelper.evaluateParam(parameter, ctx, onVariableNotFound); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\expression\api\impl\SingleParameterStringExpression.java
1
请在Spring Boot框架中完成以下Java代码
public class PushBOMProductsProcessor implements Processor { @Override public void process(final Exchange exchange) throws Exception { final PushBOMsRouteContext context = ProcessorHelper.getPropertyOrThrowError(exchange, GRSSignumConstants.ROUTE_PROPERTY_PUSH_BOMs_CONTEXT, PushBOMsRouteContext.class); final Js...
.uomCode(jsonBOMLine.getUom()) .build()) .scrap(scrap); if (Check.isNotBlank(jsonBOMLine.getCountryCode())) { jsonCreateBOMLineBuilder.attributeSetInstance(JsonAttributeSetInstance.builder() .attributeInstance(JsonAttributeInstance.builder() .attributeCode(G...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\de-metas-camel-grssignum\src\main\java\de\metas\camel\externalsystems\grssignum\from_grs\bom\processor\PushBOMProductsProcessor.java
2
请完成以下Java代码
public void cleanContainer(Integer ID) { cleanContainer("" + ID); } /** * Clean ContainerCache for this ID * @param ID for container to clean */ public void cleanContainer(String ID) { runURLRequest("Container", ID); } /** * Clean ContainerTreeCache for this WebProjectID * @param ID for Container ...
thisURL = "http://" + cacheURLs[i] + "/cache/Service?Cache=" + cache + "&ID=" + ID; URL url = new URL(thisURL); Proxy thisProxy = Proxy.NO_PROXY; URLConnection urlConn = url.openConnection(thisProxy); urlConn.setUseCaches(false); urlConn.connect(); Reader stream = ne...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\cm\CacheHandler.java
1
请完成以下Java代码
public Integer getStatus() { return status; } public void setStatus(Integer status) { this.status = status; } public int getAge() { return age; } public void setAge(final int age) { this.age = age; } public LocalDate getCreationDate() { return ...
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; User user = (User) o; return id == user.id && age == user.age && Objects.equals(name, user.name) && Objec...
repos\tutorials-master\persistence-modules\spring-data-jpa-simple\src\main\java\com\baeldung\jpa\query\model\User.java
1
请完成以下Java代码
public Criteria andReplayCountNotIn(List<Integer> values) { addCriterion("replay_count not in", values, "replayCount"); return (Criteria) this; } public Criteria andReplayCountBetween(Integer value1, Integer value2) { addCriterion("replay_count between", value1, valu...
return listValue; } public String getTypeHandler() { return typeHandler; } protected Criterion(String condition) { super(); this.condition = condition; this.typeHandler = null; this.noValue = true; } protected...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\PmsCommentExample.java
1
请完成以下Java代码
public long getLastHeartbeat() { return lastHeartbeat; } public void setLastHeartbeat(long lastHeartbeat) { this.lastHeartbeat = lastHeartbeat; } public void setHeartbeatVersion(long heartbeatVersion) { this.heartbeatVersion = heartbeatVersion; } public lon...
} public MachineInfoVo setVersion(String version) { this.version = version; return this; } public boolean isHealthy() { return healthy; } public void setHealthy(boolean healthy) { this.healthy = healthy; } }
repos\spring-boot-student-master\spring-boot-student-sentinel-dashboard\src\main\java\com\alibaba\csp\sentinel\dashboard\domain\vo\MachineInfoVo.java
1
请完成以下Java代码
public ResponseEntity<Object> updateDeploy(@Validated @RequestBody Deploy resources){ deployService.update(resources); return new ResponseEntity<>(HttpStatus.NO_CONTENT); } @Log("删除部署") @ApiOperation(value = "删除部署") @DeleteMapping @PreAuthorize("@el.check('deploy:del')") public ResponseEntity<...
public ResponseEntity<Object> serverReduction(@Validated @RequestBody DeployHistory resources){ String result = deployService.serverReduction(resources); return new ResponseEntity<>(result,HttpStatus.OK); } @Log("服务运行状态") @ApiOperation(value = "服务运行状态") @PostMapping(value = "/serverStatus") @PreAuthorize("@el...
repos\eladmin-master\eladmin-system\src\main\java\me\zhengjie\modules\maint\rest\DeployController.java
1
请在Spring Boot框架中完成以下Java代码
public List<GroupResponse> getGroups(@PathVariable String privilegeId) { Privilege privilege = getPrivilegeById(privilegeId); if (restApiInterceptor != null) { restApiInterceptor.accessPrivilegeInfoById(privilege); } List<Group> groups = identityService.getG...
if (restApiInterceptor != null) { restApiInterceptor.addGroupPrivilege(privilege, request.getGroupId()); } identityService.addGroupPrivilegeMapping(privilegeId, request.getGroupId()); } protected Privilege getPrivilegeById(String privilegeId) { Privilege privilege =...
repos\flowable-engine-main\modules\flowable-idm-rest\src\main\java\org\flowable\idm\rest\service\api\privilege\PrivilegeCollectionResource.java
2
请在Spring Boot框架中完成以下Java代码
public class RetryTopicConfiguration { private final List<DestinationTopic.Properties> destinationTopicProperties; private final AllowDenyCollectionManager<String> topicAllowListManager; private final @Nullable EndpointHandlerMethod dltHandlerMethod; private final TopicCreation kafkaTopicAutoCreationConfig; p...
this.shouldCreateTopics = shouldCreate == null || shouldCreate; this.numPartitions = numPartitions == null ? 1 : numPartitions; this.replicationFactor = replicationFactor == null ? -1 : replicationFactor; } TopicCreation() { this.shouldCreateTopics = true; this.numPartitions = 1; this.replicationFac...
repos\spring-kafka-main\spring-kafka\src\main\java\org\springframework\kafka\retrytopic\RetryTopicConfiguration.java
2
请完成以下Java代码
public class DomXmlEnsure extends EnsureUtil { private static final DomXmlLogger LOG = DomXmlLogger.XML_DOM_LOGGER; private static final String ROOT_EXPRESSION = "/"; /** * Ensures that the element is child element of the parent element. * * @param parentElement the parent xml dom element * @param ...
public static void ensureXPathNotNull(Node node, String expression) { if (node == null) { throw LOG.unableToFindXPathExpression(expression); } } /** * Ensure that the nodeList is either null or empty. * * @param nodeList the nodeList to ensure to be either null or empty * @param expressio...
repos\camunda-bpm-platform-master\spin\dataformat-xml-dom\src\main\java\org\camunda\spin\impl\xml\dom\util\DomXmlEnsure.java
1
请在Spring Boot框架中完成以下Java代码
public final GrpcChannelProperties getGlobalChannel() { // This cannot be moved to its own field, // as Spring replaces the instance in the map and inconsistencies would occur. return getRawChannel(GLOBAL_PROPERTIES_KEY); } /** * Gets or creates the channel properties for the given...
public String getDefaultScheme() { return this.defaultScheme; } /** * Sets the default scheme to use, if the client doesn't specify a scheme/address. If not specified it will default * to the default scheme of the {@link io.grpc.NameResolver.Factory}. Examples: {@code dns}, {@code discovery}....
repos\grpc-spring-master\grpc-client-spring-boot-starter\src\main\java\net\devh\boot\grpc\client\config\GrpcChannelsProperties.java
2
请完成以下Java代码
public class MergeSort { public static void main(String[] args) { int[] a = { 5, 1, 6, 2, 3, 4 }; mergeSort(a, a.length); for (int i = 0; i < a.length; i++) System.out.println(a[i]); } public static void mergeSort(int[] a, int n) { if (n < 2) return;...
while (i < left && j < right) { if (l[i] <= r[j]) a[k++] = l[i++]; else a[k++] = r[j++]; } while (i < left) a[k++] = l[i++]; while (j < right) a[k++] = r[j++]; } }
repos\tutorials-master\algorithms-modules\algorithms-sorting\src\main\java\com\baeldung\algorithms\mergesort\MergeSort.java
1
请完成以下Java代码
public ImportTableDescriptor getByTableName(@NonNull final String tableName) { final AdTableId adTableId = AdTableId.ofRepoId(adTablesRepo.retrieveTableId(tableName)); return getByTableId(adTableId); } private ImportTableDescriptor retrieveByTableId(@NonNull final AdTableId adTableId) { final POInfo poInfo ...
private static void assertColumnNameExists(@NonNull final String columnName, @NonNull final POInfo poInfo) { if (!poInfo.hasColumnName(columnName)) { throw new AdempiereException("No " + poInfo.getTableName() + "." + columnName + " defined"); } } private static String columnNameIfExists(@NonNull final Stri...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\impexp\format\ImportTableDescriptorRepository.java
1
请在Spring Boot框架中完成以下Java代码
public BeanDefinition parse(Element element, ParserContext parserContext) { registerProcessScope(element, parserContext); registerStateHandlerAnnotationBeanFactoryPostProcessor(element, parserContext); registerProcessStartAnnotationBeanPostProcessor(element, parserContext); return null; } private void config...
private void registerProcessStartAnnotationBeanPostProcessor(Element element, ParserContext parserContext) { Class clz = ProcessStartAnnotationBeanPostProcessor.class; BeanDefinitionBuilder beanDefinitionBuilder = BeanDefinitionBuilder.genericBeanDefinition(clz); AbstractBeanDefinition beanDefinition = beanDefin...
repos\camunda-bpm-platform-master\engine-spring\core\src\main\java\org\camunda\bpm\engine\spring\components\config\xml\ActivitiAnnotationDrivenBeanDefinitionParser.java
2
请完成以下Java代码
public void registerCallout() { Services.get(IProgramaticCalloutProvider.class).registerAnnotatedCallout(this); } @CalloutMethod(columnNames = I_C_RemittanceAdvice.COLUMNNAME_C_DocType_ID) public void updateFromDocType(final I_C_RemittanceAdvice remittanceAdviceRecord, final ICalloutField field) { final DocTy...
@ModelChange(timings = { ModelValidator.TYPE_AFTER_CHANGE, ModelValidator.TYPE_AFTER_NEW }, ifColumnsChanged = I_C_RemittanceAdvice.COLUMNNAME_Processed) public void setProcessedFlag(@NonNull final I_C_RemittanceAdvice record) { final RemittanceAdviceId remittanceAdviceId = RemittanceAdviceId.ofRepoId(record.get...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\remittanceadvice\interceptor\C_RemittanceAdvice.java
1
请完成以下Java代码
public java.lang.String getSenderCountry () { return (java.lang.String)get_Value(COLUMNNAME_SenderCountry); } /** Set Haus-Nr. Absender. @param SenderHouseNo Haus-Nr. Absender */ @Override public void setSenderHouseNo (java.lang.String SenderHouseNo) { set_Value (COLUMNNAME_SenderHouseNo, SenderHouseNo)...
} /** Get PLZ Absender. @return PLZ Absender */ @Override public java.lang.String getSenderZipCode () { return (java.lang.String)get_Value(COLUMNNAME_SenderZipCode); } /** Set Versandlager. @param SendingDepot Versandlager */ @Override public void setSendingDepot (java.lang.String SendingDepot) { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.shipper.gateway.dpd\src\main\java-gen\de\metas\shipper\gateway\dpd\model\X_DPD_StoreOrder.java
1
请完成以下Java代码
public static AttributeListValueTrxRestriction ofCode(@Nullable final String code) { if (code == null) { return ANY_TRANSACTION; } else if (SALES.code.contentEquals(code)) { return SALES; } else if (PURCHASE.code.contentEquals(code)) { return PURCHASE; } else { throw new AdempiereExce...
{ if (soTrx == null) { return true; } if (this == ANY_TRANSACTION) { return true; } return (this == SALES && soTrx.isSales()) || (this == PURCHASE && soTrx.isPurchase()); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\mm\attributes\AttributeListValueTrxRestriction.java
1
请在Spring Boot框架中完成以下Java代码
class BankStatementDocumentHandlerRequiredServicesFacade { private final IBankStatementPaymentBL bankStatmentPaymentBL; private final IBankStatementBL bankStatementBL; private final IBankStatementDAO bankStatementDAO = Services.get(IBankStatementDAO.class); private final IBPBankAccountDAO bpBankAccountDAO = Servic...
public void markBankStatementLinesAsProcessed(final BankStatementId bankStatementId) { final boolean processed = true; bankStatementDAO.updateBankStatementLinesProcessedFlag(bankStatementId, processed); } public void deleteFactsForBankStatement(final I_C_BankStatement bankStatement) { factAcctDAO.deleteForDo...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.base\src\main\java\de\metas\banking\service\BankStatementDocumentHandlerRequiredServicesFacade.java
2
请完成以下Java代码
public boolean isSourceHu(final HuId huId) { return sourceHuDAO.isSourceHu(huId); } public void addSourceHUMarkerIfCarringComponents(@NonNull final HuId huId, @NonNull final ProductId productId, @NonNull final WarehouseId warehouseId) { addSourceHUMarkerIfCarringComponents(ImmutableSet.of(huId), productId, war...
public static class MatchingSourceHusQuery { /** * Query for HUs that have any of the given product IDs. Empty means that no HUs will be found. */ @Singular ImmutableSet<ProductId> productIds; @Singular ImmutableSet<WarehouseId> warehouseIds; public static MatchingSourceHusQuery fromHuId(final HuId...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\sourcehu\SourceHUsService.java
1
请完成以下Java代码
public int getCustomer_Group_ID() { return get_ValueAsInt(COLUMNNAME_Customer_Group_ID); } @Override public void setIsExcludeBPGroup (final boolean IsExcludeBPGroup) { set_Value (COLUMNNAME_IsExcludeBPGroup, IsExcludeBPGroup); } @Override public boolean isExcludeBPGroup() { return get_ValueAsBoolean(...
set_Value (COLUMNNAME_M_Product_Category_ID, M_Product_Category_ID); } @Override public int getM_Product_Category_ID() { return get_ValueAsInt(COLUMNNAME_M_Product_Category_ID); } @Override public void setPercentOfBasePoints (final BigDecimal PercentOfBasePoints) { set_Value (COLUMNNAME_PercentOfBasePoin...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java-gen\de\metas\contracts\commission\model\X_C_CommissionSettingsLine.java
1
请完成以下Java代码
public int getLogoWeb_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_LogoWeb_ID); if (ii == null) return 0; return ii.intValue(); } @Override public org.compiere.model.I_M_Product getM_ProductFreight() throws RuntimeException { return get_ValueAsPO(COLUMNNAME_M_ProductFreight_ID, org.compiere.mod...
else set_Value (COLUMNNAME_M_ProductFreight_ID, Integer.valueOf(M_ProductFreight_ID)); } /** Get Produkt für Fracht. @return Produkt für Fracht */ @Override public int getM_ProductFreight_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_M_ProductFreight_ID); if (ii == null) return 0; return i...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_ClientInfo.java
1
请在Spring Boot框架中完成以下Java代码
public String getPOBox() { return poBox; } /** * Sets the value of the poBox property. * * @param value * allowed object is * {@link String } * */ public void setPOBox(String value) { this.poBox = value; } /** * City information...
* Country information. * * @return * possible object is * {@link CountryType } * */ public CountryType getCountry() { return country; } /** * Sets the value of the country property. * * @param value * allowed object is * ...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_ecosio_remadv\at\erpel\schemas\_1p0\documents\AddressType.java
2
请在Spring Boot框架中完成以下Java代码
public class SqlInsertTsRepository extends AbstractInsertRepository implements InsertTsRepository<TsKvEntity> { private static final String INSERT_ON_CONFLICT_DO_UPDATE = "INSERT INTO ts_kv (entity_id, key, ts, bool_v, str_v, long_v, dbl_v, json_v) VALUES (?, ?, ?, ?, ?, ?, ?, cast(? AS json)) " + "ON ...
} else { ps.setNull(7, Types.DOUBLE); ps.setNull(12, Types.DOUBLE); } ps.setString(8, replaceNullChars(tsKvEntity.getJsonValue())); ps.setString(13, replaceNullChars(tsKvEntity.getJsonValue())); } @Override...
repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\sqlts\insert\sql\SqlInsertTsRepository.java
2
请完成以下Java代码
protected ModelEntityManager getModelManager() { return getSession(ModelEntityManager.class); } protected ExecutionEntityManager getProcessInstanceManager() { return getSession(ExecutionEntityManager.class); } protected TaskEntityManager getTaskManager() { return getSession(Tas...
protected HistoricTaskInstanceEntityManager getHistoricTaskInstanceManager() { return getSession(HistoricTaskInstanceEntityManager.class); } protected HistoricIdentityLinkEntityManager getHistoricIdentityLinkEntityManager() { return getSession(HistoricIdentityLinkEntityManager.class); } ...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\persistence\AbstractManager.java
1
请完成以下Java代码
public void updateReferenced_Record_ID(final I_S_ExternalReference record) { record.setReferenced_Record_ID(record.getRecord_ID()); } @ModelChange(timings = { ModelValidator.TYPE_BEFORE_CHANGE, ModelValidator.TYPE_BEFORE_NEW }, ifColumnsChanged = { I_S_ExternalReference.COLUMNNAME_Type }) @CalloutMethod(columnNa...
private void validateUserId(@NonNull final UserId userId) { try { userDAO.getByIdInTrx(userId); } catch (final AdempiereException ex) { throw new AdempiereException("No user found for the given recordId! ", ex) .appendParametersToMessage() .setParameter("recordId", userId.getRepoId()); } }...
repos\metasfresh-new_dawn_uat\backend\de.metas.externalreference\src\main\java\de\metas\externalreference\user\S_ExternalReference.java
1
请在Spring Boot框架中完成以下Java代码
protected Task getTaskFromRequest(String taskId) { Task task = getTaskFromRequestWithoutAccessCheck(taskId); if (restApiInterceptor != null) { restApiInterceptor.accessTaskInfoById(task); } return task; } /** * Returns the {@link Task} that is requeste...
if (restApiInterceptor != null) { restApiInterceptor.accessHistoryTaskInfoById(task); } return task; } /** * Returns the {@link HistoricTaskInstance} that is requested without calling the access interceptor * Throws the right exceptions when bad request was made o...
repos\flowable-engine-main\modules\flowable-rest\src\main\java\org\flowable\rest\service\api\runtime\task\TaskBaseResource.java
2
请完成以下Java代码
public void setDueDate(Date dueDate) { this.dueDate = dueDate; } public Integer getPriority() { return priority; } public void setPriority(Integer priority) { this.priority = priority; } public String getAssignee() { return assignee; } public void setA...
return parentTaskId; } public void setParentTaskId(String parentTaskId) { this.parentTaskId = parentTaskId; } public String getFormKey() { return formKey; } public void setFormKey(String formKey) { this.formKey = formKey; } }
repos\Activiti-develop\activiti-api\activiti-api-task-model\src\main\java\org\activiti\api\task\model\payloads\UpdateTaskPayload.java
1
请完成以下Java代码
protected void initializeVariableOnParts(CmmnElement element, CmmnSentryDeclaration sentryDeclaration, CmmnHandlerContext context, List<CamundaVariableOnPart> variableOnParts) { for(CamundaVariableOnPart variableOnPart: variableOnParts) { initializeVariableOnPart(variableOnPart, sentryDeclaration, contex...
} else { throw LOG.emptyVariableName(sentryDeclaration.getId()); } } protected <V extends ModelElementInstance> List<V> queryExtensionElementsByClass(CmmnElement element, Class<V> cls) { ExtensionElements extensionElements = element.getExtensionElements(); if (extensionElements != null) { ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\cmmn\handler\SentryHandler.java
1
请在Spring Boot框架中完成以下Java代码
public class UserController2 { /** * 查询用户列表 * * @return 用户列表 */ @GetMapping("/list") // URL 修改成 /list public List<UserVO> list() { // 查询列表 List<UserVO> result = new ArrayList<>(); result.add(new UserVO().setId(1).setUsername("yudaoyuanma")); result.add(ne...
* @param updateDTO 更新用户信息 DTO * @return 是否修改成功 */ @PostMapping("/update") // URL 修改成 /update ,RequestMethod 改成 POST public Boolean update(UserUpdateDTO updateDTO) { // 更新用户记录 Boolean success = true; // 返回更新是否成功 return success; } /** * 删除指定用户编号的用户 * ...
repos\SpringBoot-Labs-master\lab-23\lab-springmvc-23-01\src\main\java\cn\iocoder\springboot\lab23\springmvc\controller\UserController2.java
2
请在Spring Boot框架中完成以下Java代码
public class Application { @Value("${server.port}") String serverPort; @Value("${baeldung.api.path}") String contextPath; public static void main(String[] args) { SpringApplication.run(Application.class, args); } @Bean ServletRegistrationBean servletRegistrationBean() { ...
.id("api-route") .post("/bean") .produces(MediaType.APPLICATION_JSON) .consumes(MediaType.APPLICATION_JSON) // .get("/hello/{place}") .bindingMode(RestBindingMode.auto) .type(MyBean.class) .enableCORS(true) ...
repos\tutorials-master\messaging-modules\spring-apache-camel\src\main\java\com\baeldung\camel\boot\Application.java
2
请完成以下Java代码
public int getAD_User_SortPref_Line_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_SortPref_Line_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Sortierbegriff pro Benutzer Position Produkt. @param AD_User_SortPref_Line_Product_ID Sortierbegriff pro Benutzer Position Produkt ...
public void setM_Product_ID (int M_Product_ID) { if (M_Product_ID < 1) set_Value (COLUMNNAME_M_Product_ID, null); else set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Produkt. @return Produkt, Leistung, Artikel */ @Override public int getM_Product_ID () { Integer...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_User_SortPref_Line_Product.java
1
请在Spring Boot框架中完成以下Java代码
public class OAuth2AuthorizationConfig extends AuthorizationServerConfigurerAdapter { private TokenStore tokenStore = new InMemoryTokenStore(); private final String NOOP_PASSWORD_ENCODE = "{noop}"; @Autowired @Qualifier("authenticationManagerBean") private AuthenticationManager authenticationManag...
.and() .withClient("statistics-service") .secret(env.getProperty("STATISTICS_SERVICE_PASSWORD")) .authorizedGrantTypes("client_credentials", "refresh_token") .scopes("server") .and() .withClient("notification-service") ...
repos\piggymetrics-master\auth-service\src\main\java\com\piggymetrics\auth\config\OAuth2AuthorizationConfig.java
2
请完成以下Java代码
private Optional<String> retrieveRuestplatz(final BPartnerLocationId deliveryLocationId) { return extractRuestplatz(bpartnerService.getBPartnerLocationByIdEvenInactive(deliveryLocationId)); } private static Optional<String> extractRuestplatz(@Nullable final I_C_BPartner_Location location) { return Optional.ofN...
@Value @Builder private static class Context { @Nullable String salesOrderDocumentNo; @Nullable String customerName; @Nullable ZonedDateTime preparationDate; @Nullable BPartnerLocationId deliveryLocationId; @Nullable BPartnerLocationId handoverLocationId; @Nullable ITranslatableString productName; @Nul...
repos\metasfresh-new_dawn_uat\backend\de.metas.picking.rest-api\src\main\java\de\metas\picking\workflow\DisplayValueProvider.java
1
请完成以下Java代码
public class WEBUI_M_HU_MoveToGarbage_Partial extends HUEditorProcessTemplate implements IProcessPrecondition { private final InventoryService inventoryService = SpringContextHolder.instance.getBean(InventoryService.class); private final IHandlingUnitsBL handlingUnitsBL = Services.get(IHandlingUnitsBL.class); @Para...
inventoryService.moveToGarbage( HUInternalUseInventoryCreateRequest.builder() .hus(tus.toHURecords()) .movementDate(Env.getZonedDateTime(getCtx())) .internalUseInventoryDocTypeId(p_internalUseInventoryDocTypeId) .description(p_description) .completeInventory(true) .moveEmptiesToE...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\handlingunits\process\WEBUI_M_HU_MoveToGarbage_Partial.java
1
请完成以下Spring Boot application配置
server: port: 8088 spring: profiles: active: native output: ansi: enabled: always logging: pattern: console: "%clr(%d{y
yyy-MM-dd HH:mm:ss}){blue} %clr(${LOG_LEVEL_PATTERN:-%5p}) %m%n"
repos\sample-spring-microservices-new-master\config-service\src\main\resources\application.yml
2
请完成以下Java代码
public final CurrencyConversionContext getInOutCurrencyConversionCtx() { CurrencyConversionContext inoutCurrencyConversionCtx = this._inoutCurrencyConversionCtx; if (inoutCurrencyConversionCtx == null) { inoutCurrencyConversionCtx = this._inoutCurrencyConversionCtx = inOutBL.getCurrencyConversionContext(getRe...
final MatchInvCostPart costPart = matchInv.getCostPartNotNull(); amtMatched = costPart.getCostAmountInvoiced(); costElement = services.getCostElementById(costPart.getCostElementId()); } else { throw new AdempiereException("Unhandled type: " + type); } return services.createCostDetail( CostDeta...
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java-legacy\org\compiere\acct\Doc_MatchInv.java
1
请完成以下Java代码
public String toString() { return "AppInfo{" + "app='" + app + ", machines=" + machines + '}'; } public boolean addMachine(MachineInfo machineInfo) { machines.remove(machineInfo); return machines.add(machineInfo); } public synchronized boolean removeMachine(String ip, int port)...
.orElse(false); } } return true; } /** * Check whether current application has no healthy machines and should not be displayed. * * @return true if the application should be displayed in the sidebar, otherwise false */ public boolean isShown() { retur...
repos\spring-boot-student-master\spring-boot-student-sentinel-dashboard\src\main\java\com\alibaba\csp\sentinel\dashboard\discovery\AppInfo.java
1
请完成以下Java代码
public void focusLost (FocusEvent e) { //log.info( "VMemo.focusLost " + e.getSource(), e.paramString()); // something changed? return; } // focusLost /*************************************************************************/ // Field for Value Preference private GridField m_mField = null; /** ...
//NOTE: We return true no matter what since the InputVerifier is only introduced to fireVetoableChange in due time if (getText() == null && m_oldText == null) return true; else if (getText().equals(m_oldText)) return true; // try { String text = getText(); fireVetoableChange(m_columnName, null, te...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\grid\ed\VMemo.java
1
请完成以下Java代码
public OutputValues getOutputValues() { return outputValuesChild.getChild(this); } public void setOutputValues(OutputValues outputValues) { outputValuesChild.setChild(this, outputValues); } public DefaultOutputEntry getDefaultOutputEntry() { return defaultOutputEntryChild.getChild(this); } pu...
return new OutputClauseImpl(instanceContext); } }); nameAttribute = typeBuilder.stringAttribute(DMN_ATTRIBUTE_NAME) .build(); typeRefAttribute = typeBuilder.stringAttribute(DMN_ATTRIBUTE_TYPE_REF) .build(); SequenceBuilder sequenceBuilder = typeBuilder.sequence(); outputVal...
repos\camunda-bpm-platform-master\model-api\dmn-model\src\main\java\org\camunda\bpm\model\dmn\impl\instance\OutputClauseImpl.java
1
请完成以下Java代码
public class AppRun { public static void main(String[] args) { SpringApplication springApplication = new SpringApplication(AppRun.class); // 监控应用的PID,启动时可指定PID路径:--spring.pid.file=/home/eladmin/app.pid // 或者在 application.yml 添加文件路径,方便 kill,kill `cat /home/eladmin/app.pid` springAppl...
@Bean public SpringBeanHolder springContextHolder() { return new SpringBeanHolder(); } /** * 访问首页提示 * * @return / */ @AnonymousGetMapping("/") public String index() { return "Backend service started successfully"; } }
repos\eladmin-master\eladmin-system\src\main\java\me\zhengjie\AppRun.java
1
请完成以下Java代码
public void setAuthenticationDetailsSource( AuthenticationDetailsSource<HttpServletRequest, ?> authenticationDetailsSource) { Assert.notNull(authenticationDetailsSource, "AuthenticationDetailsSource required"); this.authenticationDetailsSource = authenticationDetailsSource; } /** * If set to {@code false} (...
public void setSecurityContextRepository(SecurityContextRepository securityContextRepository) { Assert.notNull(securityContextRepository, "securityContextRepository cannot be null"); this.securityContextRepository = securityContextRepository; } /** * Sets the {@link SecurityContextHolderStrategy} to use. The d...
repos\spring-security-main\kerberos\kerberos-web\src\main\java\org\springframework\security\kerberos\web\authentication\SpnegoAuthenticationProcessingFilter.java
1
请完成以下Java代码
public void setSeparator (final java.lang.String Separator) { set_Value (COLUMNNAME_Separator, Separator); } @Override public java.lang.String getSeparator() { return get_ValueAsString(COLUMNNAME_Separator); } @Override public void setValue (final java.lang.String Value) { set_Value (COLUMNNAME_Value,...
@Override public void setAD_User_ID (final int AD_User_ID) { if (AD_User_ID < 0) set_Value (COLUMNNAME_AD_User_ID, null); else set_Value (COLUMNNAME_AD_User_ID, AD_User_ID); } @Override public int getAD_User_ID() { return get_ValueAsInt(COLUMNNAME_AD_User_ID); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_Warehouse.java
1
请完成以下Java代码
public void setJobDefinitionId(String jobDefinitionId) { this.jobDefinitionId = jobDefinitionId; } public String getDeploymentId() { return deploymentId; } public void setDeploymentId(String deploymentId) { this.deploymentId = deploymentId; } public String getTenantId() { return tenantId;...
} public String getAnnotation() { return annotation; } public void setAnnotation(String annotation) { this.annotation = annotation; } @Override public String toString() { return this.getClass().getSimpleName() + "[taskId=" + taskId + ", deploymentId=" + deploymentId + ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\history\event\UserOperationLogEntryEventEntity.java
1
请完成以下Java代码
public String getCaption(final String adLanguage) { return caption.translate(adLanguage); } public String getDescription(final String adLanguage) { return description.translate(adLanguage); } public KPIField getGroupByField() { final KPIField groupByField = getGroupByFieldOrNull(); if (groupByField == ...
return sqlDatasource.getRequiredContextParameters(); } else { throw new AdempiereException("Unknown datasource type: " + datasourceType); } } public boolean isZoomToDetailsAvailable() { return sqlDatasource != null; } @NonNull public SQLDatasourceDescriptor getSqlDatasourceNotNull() { return Che...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\kpi\descriptor\KPI.java
1
请完成以下Java代码
/* package */void putOtherProperty(final String name, final Object jsonValue) { otherProperties.put(name, jsonValue); } private JSONDocumentLayout putDebugProperty(final String name, final Object jsonValue) { otherProperties.put("debug-" + name, jsonValue); return this; } private void putDebugProperties(f...
@NonNull final List<JSONDocumentLayoutSection> sections, @NonNull final WindowId windowId, @Nullable final DetailId tabId, @NonNull final JSONDocumentLayoutOptions jsonOpts) { sections.stream() .flatMap(section -> section.getColumns().stream()) .flatMap(column -> column.getElementGroups().stream()) ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\datatypes\json\JSONDocumentLayout.java
1
请在Spring Boot框架中完成以下Java代码
public Set<Authority> getAuthorities() { return authorities; } public void setAuthorities(Set<Authority> authorities) { this.authorities = authorities; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instance...
return getClass().hashCode(); } // prettier-ignore @Override public String toString() { return "User{" + "login='" + login + '\'' + ", firstName='" + firstName + '\'' + ", lastName='" + lastName + '\'' + ", email='" + email + '\'' + ",...
repos\tutorials-master\jhipster-8-modules\jhipster-8-microservice\gateway-app\src\main\java\com\gateway\domain\User.java
2
请在Spring Boot框架中完成以下Java代码
public String getTenantIdLike() { return tenantIdLike; } public void setTenantIdLike(String tenantIdLike) { this.tenantIdLike = tenantIdLike; } public Boolean getWithoutTenantId() { return withoutTenantId; } public void setWithoutTenantId(Boolean withoutTenantId) { ...
public String getRootScopeId() { return rootScopeId; } public void setRootScopeId(String rootScopeId) { this.rootScopeId = rootScopeId; } public String getParentScopeId() { return parentScopeId; } public void setParentScopeId(String parentScopeId) { this.parent...
repos\flowable-engine-main\modules\flowable-rest\src\main\java\org\flowable\rest\service\api\history\HistoricTaskInstanceQueryRequest.java
2
请在Spring Boot框架中完成以下Java代码
public void onProcessingEnd(UUID id, RuleNodeId ruleNodeId) { if (profilerEnabled) { long processingTime = msgProfilerMap.computeIfAbsent(id, TbMsgProfilerInfo::new).onEnd(ruleNodeId); if (processingTime > 0) { ruleNodeProfilerMap.computeIfAbsent(ruleNodeId.getId(), TbRul...
log.info("Top Rule Nodes by execution count:"); ruleNodeProfilerMap.values().stream() .sorted(Comparator.comparingInt(TbRuleNodeProfilerInfo::getExecutionCount).reversed()).limit(5) .forEach(info -> log.info("[{}][{}] execution count: {}. {}", queueName, info.getRuleN...
repos\thingsboard-master\application\src\main\java\org\thingsboard\server\service\queue\TbMsgPackProcessingContext.java
2
请完成以下Java代码
public I_M_DemandLine getM_DemandLine() throws RuntimeException { return (I_M_DemandLine)MTable.get(getCtx(), I_M_DemandLine.Table_Name) .getPO(getM_DemandLine_ID(), get_TrxName()); } /** Set Demand Line. @param M_DemandLine_ID Material Demand Line */ public void setM_DemandLine_ID (int M_DemandLine...
Integer ii = (Integer)get_Value(COLUMNNAME_M_ForecastLine_ID); if (ii == null) return 0; return ii.intValue(); } public I_M_RequisitionLine getM_RequisitionLine() throws RuntimeException { return (I_M_RequisitionLine)MTable.get(getCtx(), I_M_RequisitionLine.Table_Name) .getPO(getM_RequisitionLine_ID...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_DemandDetail.java
1
请完成以下Java代码
public class TextAnnotation extends Artifact { protected String text; protected String textFormat; public String getText() { return text; } public void setText(String text) { this.text = text; } public String getTextFormat() { return textFormat; }
public void setTextFormat(String textFormat) { this.textFormat = textFormat; } public TextAnnotation clone() { TextAnnotation clone = new TextAnnotation(); clone.setValues(this); return clone; } public void setValues(TextAnnotation otherElement) { super.setValue...
repos\Activiti-develop\activiti-core\activiti-bpmn-model\src\main\java\org\activiti\bpmn\model\TextAnnotation.java
1
请完成以下Java代码
public ITrxItemExecutorBuilder<IT, RT> setContext(final Properties ctx, final String trxName) { this._processorCtx = null; this._ctx = ctx; this._trxName = trxName; return this; } @Override public ITrxItemExecutorBuilder<IT, RT> setContext(final ITrxItemProcessorContext processorCtx) { this._processorCt...
@Override public ITrxItemExecutorBuilder<IT, RT> setOnItemErrorPolicy(@NonNull final OnItemErrorPolicy onItemErrorPolicy) { this._onItemErrorPolicy = onItemErrorPolicy; return this; } @Override public ITrxItemExecutorBuilder<IT, RT> setItemsPerBatch(final int itemsPerBatch) { if (itemsPerBatch == Integer.M...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\trx\processor\api\impl\TrxItemExecutorBuilder.java
1