instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
private boolean isGenerateForVendor(int C_BPartner_ID) { // No filter group was set => generate for all vendors if (p_C_BP_Group_ID <= 0) return true; if (m_excludedVendors.contains(C_BPartner_ID)) return false; // boolean match = new Query(getCtx(), MBPartner.Table_Name, "C_BPartner_ID=? AND C_BP_Gro...
* @return */ private boolean isVendorForProduct(final int C_BPartner_ID, final MProduct product) { return Services.get(IQueryBL.class).createQueryBuilder(I_C_BPartner_Product.class, product) .addEqualsFilter(I_C_BPartner_Product.COLUMNNAME_C_BPartner_ID, C_BPartner_ID) .addEqualsFilter(I_C_BPartner_Produ...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java-legacy\org\compiere\process\RequisitionPOCreate.java
1
请完成以下Java代码
public String getName() { return "Excel (XML)"; } @Override public Workbook createWorkbook(final boolean useStreamingImplementation) { if (useStreamingImplementation) { return new SXSSFWorkbook(); } else { return new XSSFWorkbook(); } } @Override public String getCurrentPageMarkupTag() { ...
} @Override public String getTotalPagesMarkupTag() { // see XSSFHeaderFooter javadoc return "&N"; } @Override public int getLastRowIndex() { return SpreadsheetVersion.EXCEL2007.getLastRowIndex(); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\impexp\spreadsheet\excel\ExcelOpenXMLFormat.java
1
请完成以下Java代码
public class JavaSerDesUtil { @SuppressWarnings("unchecked") public static <T> T decode(byte[] byteArray) { if (byteArray == null || byteArray.length == 0) { return null; } InputStream is = new ByteArrayInputStream(byteArray); try (ObjectInputStream ois = new ObjectI...
public static <T> byte[] encode(T msq) { if (msq == null) { return null; } ByteArrayOutputStream boas = new ByteArrayOutputStream(); try (ObjectOutputStream ois = new ObjectOutputStream(boas)) { ois.writeObject(msq); return boas.toByteArray(); ...
repos\thingsboard-master\common\data\src\main\java\org\thingsboard\server\common\data\JavaSerDesUtil.java
1
请完成以下Java代码
public class DocumentType { @XmlElement(namespace = "http://www.forum-datenaustausch.ch/invoice") protected byte[] base64; @XmlElement(namespace = "http://www.forum-datenaustausch.ch/invoice") @XmlSchemaType(name = "anyURI") protected String url; @XmlAttribute(name = "filename", required = true...
*/ public String getFilename() { return filename; } /** * Sets the value of the filename property. * * @param value * allowed object is * {@link String } * */ public void setFilename(String value) { this.filename = value; } /** ...
repos\metasfresh-new_dawn_uat\backend\vertical-healthcare_ch\forum_datenaustausch_ch.invoice_440_request\src\main\java-xjc\de\metas\vertical\healthcare_ch\forum_datenaustausch_ch\invoice_440\request\DocumentType.java
1
请在Spring Boot框架中完成以下Java代码
static class JerseyAdditionalHealthEndpointPathsResourcesRegistrar implements ResourceConfigCustomizer { private final @Nullable ExposableWebEndpoint endpoint; private final HealthEndpointGroups groups; JerseyAdditionalHealthEndpointPathsResourcesRegistrar(@Nullable ExposableWebEndpoint endpoint, HealthEnd...
.createEndpointResources(mapping, (this.endpoint != null) ? Collections.singletonList(this.endpoint) : Collections.emptyList()) .stream() .filter(Objects::nonNull) .toList(); register(endpointResources, config); } private void register(Collection<Resource> resources, ResourceConfig config) { ...
repos\spring-boot-4.0.1\module\spring-boot-jersey\src\main\java\org\springframework\boot\jersey\autoconfigure\actuate\endpoint\web\HealthEndpointJerseyExtensionAutoConfiguration.java
2
请完成以下Java代码
public int hashCode() { final int prime = 31; int result = 1; result = prime * result + this.domain.hashCode(); result = prime * result + this.name.hashCode(); return result; } @Override public String toString() { return this.string; } private String getDomainOrDefault(@Nullable String domain) { if...
static @Nullable String parseDomain(String value) { int firstSlash = value.indexOf('/'); String candidate = (firstSlash != -1) ? value.substring(0, firstSlash) : null; if (candidate != null && Regex.DOMAIN.matcher(candidate).matches()) { return candidate; } return null; } static ImageName of(String valu...
repos\spring-boot-4.0.1\core\spring-boot-docker-compose\src\main\java\org\springframework\boot\docker\compose\core\ImageName.java
1
请在Spring Boot框架中完成以下Java代码
public class Customer { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String name; private String email; 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 Long getId() { return id; } public void setId(Long customerId) { this.id = customerId; } }
repos\tutorials-master\persistence-modules\spring-data-jpa-query-5\src\main\java\com\baeldung\spring\data\jpa\nestedobject\Customer.java
2
请完成以下Java代码
public String toString() { if (label == null) return value; return value + '/' + label; } public Word(String value, String label) { this.value = value; this.label = label; } /** * 通过参数构造一个单词 * @param param 比如 人民网/nz * @return 一个单词 ...
@Override public String getValue() { return value; } @Override public String getLabel() { return label; } @Override public void setLabel(String label) { this.label = label; } @Override public void setValue(String value) { this.va...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\corpus\document\sentence\word\Word.java
1
请完成以下Java代码
public int getConsumerCount() { return this.consumerCount; } /** * Return a queue type. * {@code classic} by default since AMQP 0.9.1 protocol does not return this info in {@code DeclareOk} reply. * @return a queue type * @since 4.0 */ public String getType() { return this.type; } /** * Set a que...
if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } QueueInformation other = (QueueInformation) obj; return this.name.equals(other.name); } @Override public String toString() { return "QueueInformation [name=" + this.name + ", messageCount=" + this.messageCount +...
repos\spring-amqp-main\spring-amqp\src\main\java\org\springframework\amqp\core\QueueInformation.java
1
请完成以下Java代码
ScriptEngine createScriptEngine(TbContext ctx, TbLogNodeConfiguration config) { return ctx.createScriptEngine(config.getScriptLang(), ScriptLanguage.TBEL.equals(config.getScriptLang()) ? config.getTbelScript() : config.getJsScript()); } @Override public void onMsg(TbContext ctx, TbM...
void logStandard(TbContext ctx, TbMsg msg) { log.info(toLogMessage(msg)); ctx.tellSuccess(msg); } String toLogMessage(TbMsg msg) { return "\n" + "Incoming message:\n" + msg.getData() + "\n" + "Incoming metadata:\n" + JacksonUtil.toString(msg.getMetaData()...
repos\thingsboard-master\rule-engine\rule-engine-components\src\main\java\org\thingsboard\rule\engine\action\TbLogNode.java
1
请在Spring Boot框架中完成以下Java代码
protected void configure(HttpSecurity http) throws Exception { http.authorizeRequests()//配置权限 // .antMatchers("/").access("hasRole('TEST')")//该路径需要TEST角色 // .antMatchers("/brand/list").hasAuthority("TEST")//该路径需要TEST权限 .antMatchers("/**").permitAll() ...
auth.userDetailsService(userDetailsService()).passwordEncoder(new BCryptPasswordEncoder()); } @Bean public UserDetailsService userDetailsService() { //获取登录用户信息 return new UserDetailsService() { @Override public UserDetails loadUserByUsername(String username) throws U...
repos\mall-master\mall-demo\src\main\java\com\macro\mall\demo\config\SecurityConfig.java
2
请在Spring Boot框架中完成以下Java代码
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException { try { //每个请求记录一个traceId,可以根据traceId搜索出本次请求的全部相关日志 MDC.put("traceId", UUID.randomUUID().toString().replace("-", "").substring(0, 12)); ...
if (!StringTools.isNullOrEmpty(productIdStr)) { log.debug("url中productId = {}", productIdStr); MDC.put("productId", productIdStr); } } private void setUsername(HttpServletRequest request) { //通过token解析出username String token = request.getHeader("token"); i...
repos\SpringBoot-Shiro-Vue-master\back\src\main\java\com\heeexy\example\config\filter\RequestFilter.java
2
请完成以下Java代码
protected final void prepare() { importProcess = newInstance(IFAInitialImportProcess2.class); importProcess.setCtx(getCtx()); importProcess.setParameters(getParameterAsIParams()); importProcess.setLoggable(this); importProcess.notifyUserId(getUserId()); } // NOTE: we shall run this process out of transac...
private IImportProcess<I_I_Pharma_Product> newInstance(final Class<?> importProcessClass) { try { @SuppressWarnings("unchecked") final IImportProcess<I_I_Pharma_Product> importProcess = (IImportProcess<I_I_Pharma_Product>)importProcessClass.newInstance(); return importProcess; } catch (Exception e) ...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma\src\main\java\de\metas\impexp\product\IFAInitialImportProcess.java
1
请完成以下Java代码
public class StringFilenameValidationUtils { public static final Character[] INVALID_WINDOWS_SPECIFIC_CHARS = {'"', '*', '<', '>', '?', '|'}; public static final Character[] INVALID_UNIX_SPECIFIC_CHARS = {'\000'}; public static final String REGEX_PATTERN = "^[A-Za-z0-9.]{1,255}$"; private StringFilen...
} return Arrays.stream(getInvalidCharsByOS()) .noneMatch(ch -> filename.contains(ch.toString())); } public static boolean validateStringFilenameUsingRegex(String filename) { if (filename == null) { return false; } return filename.matches(REGEX_PATTERN); ...
repos\tutorials-master\core-java-modules\core-java-string-operations-3\src\main\java\com\baeldung\stringfilenamevalidaiton\StringFilenameValidationUtils.java
1
请完成以下Java代码
public void setPAPeriodType (String PAPeriodType) { set_Value (COLUMNNAME_PAPeriodType, PAPeriodType); } /** Get Period Type. @return PA Period Type */ public String getPAPeriodType () { return (String)get_Value(COLUMNNAME_PAPeriodType); } /** Set Report Line. @param PA_ReportLine_ID Report Line ...
/** Statistical = S */ public static final String POSTINGTYPE_Statistical = "S"; /** Reservation = R */ public static final String POSTINGTYPE_Reservation = "R"; /** Set PostingType. @param PostingType The type of posted amount for the transaction */ public void setPostingType (String PostingType) { se...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_PA_ReportLine.java
1
请完成以下Java代码
public static class DateValueImpl extends PrimitiveTypeValueImpl<Date> implements DateValue { private static final long serialVersionUID = 1L; public DateValueImpl(Date value) { super(value, ValueType.DATE); } public DateValueImpl(Date value, boolean isTransient) { this(value); this...
private static final long serialVersionUID = 1L; public ShortValueImpl(Short value) { super(value, ValueType.SHORT); } public ShortValueImpl(Short value, boolean isTransient) { this(value); this.isTransient = isTransient; } } public static class StringValueImpl extends Primitive...
repos\camunda-bpm-platform-master\commons\typed-values\src\main\java\org\camunda\bpm\engine\variable\impl\value\PrimitiveTypeValueImpl.java
1
请完成以下Java代码
public Article writeArticle(ArticleContents contents) { return new Article(this, contents); } public Article updateArticle(Article article, ArticleUpdateRequest request) { if (article.getAuthor() != this) { throw new IllegalAccessError("Not authorized to update this article"); ...
} public Long getId() { return id; } public Email getEmail() { return email; } public UserName getName() { return profile.getUserName(); } String getBio() { return profile.getBio(); } Image getImage() { return profile.getImage(); } ...
repos\realworld-springboot-java-master\src\main\java\io\github\raeperd\realworld\domain\user\User.java
1
请在Spring Boot框架中完成以下Java代码
public User signup(UserRegistry registry) { if (userRepository.existsBy(registry.email(), registry.username())) { throw new IllegalArgumentException("email or username is already exists."); } var requester = new User(registry); requester.encryptPassword(passwordEncoder, regi...
* @param email users email * @param username users username * @param password users password * @param bio users bio * @param imageUrl users imageUrl * @return Returns the updated user */ public User updateUserDetails( UUID userId, String email, String username, String passw...
repos\realworld-java21-springboot3-main\module\core\src\main\java\io\zhc1\realworld\service\UserService.java
2
请在Spring Boot框架中完成以下Java代码
private static void initializeValidators() { HibernateValidatorConfiguration validatorConfiguration = Validation.byProvider(HibernateValidator.class).configure(); ConstraintMapping constraintMapping = getCustomConstraintMapping(); validatorConfiguration.addMapping(constraintMapping); t...
}); return localValidatorFactoryBean; } private static ConstraintMapping getCustomConstraintMapping() { ConstraintMapping constraintMapping = new DefaultConstraintMapping(null); constraintMapping.constraintDefinition(NoXss.class).validatedBy(NoXssValidator.class); constraintMapp...
repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\service\ConstraintValidator.java
2
请完成以下Java代码
protected Object evaluateFeelSimpleExpression(String expressionText, VariableContext variableContext) { return feelEngine.evaluateSimpleExpression(expressionText, variableContext); } // helper /////////////////////////////////////////////////////////////////// protected String getExpressionTextForLanguage(D...
} else { throw LOG.noScriptEngineFoundForLanguage(expressionLanguage); } } protected boolean isElExpression(String expressionLanguage) { return isJuelExpression(expressionLanguage); } public boolean isFeelExpressionLanguage(String expressionLanguage) { ensureNotNull("expressionLanguage", exp...
repos\camunda-bpm-platform-master\engine-dmn\engine\src\main\java\org\camunda\bpm\dmn\engine\impl\evaluation\ExpressionEvaluationHandler.java
1
请完成以下Java代码
public boolean hasFieldValue(final String fieldName) { return po.get_ColumnIndex(fieldName) >= 0; } @Override public Object getFieldValue(final String fieldName) { return po.get_Value(fieldName); } } @AllArgsConstructor private static final class GridTabSourceDocument implements SourceDocument {...
private final GridTab gridTab; @Override public boolean hasFieldValue(final String fieldName) { return gridTab.getField(fieldName) != null; } @Override public Object getFieldValue(final String fieldName) { return gridTab.getValue(fieldName); } } }
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\letters\model\MADBoilerPlate.java
1
请完成以下Java代码
public long getAnfragePzn() { return anfragePzn; } /** * Sets the value of the anfragePzn property. * */ public void setAnfragePzn(long value) { this.anfragePzn = value; } /** * Gets the value of the substitution property. * * @return * poss...
* * <p> * 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 anteile property. * * <p> * For...
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\VerfuegbarkeitsantwortArtikel.java
1
请在Spring Boot框架中完成以下Java代码
private String getSenderId() { final CustomerType customerType = document.getCustomer(); if (customerType == null) { throw new RuntimeException("No customer found for document! doc: " + document); } return getGLNFromBusinessEntityType(customerType); } @NonNull private String getRecipientId() { re...
} private Optional<BigDecimal> asBigDecimal(@Nullable final String value) { if (Check.isBlank(value)) { return Optional.empty(); } try { final BigDecimal bigDecimalValue = new BigDecimal(value); return Optional.of(bigDecimalValue.abs()); } catch (final Exception e) { return Optional.emp...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java\de\metas\edi\esb\remadvimport\ecosio\JsonRemittanceAdviceProducer.java
2
请完成以下Java代码
public PathMatcher getPathMatcher(String syntaxAndPattern) { throw new UnsupportedOperationException("Nested paths do not support path matchers"); } @Override public UserPrincipalLookupService getUserPrincipalLookupService() { throw new UnsupportedOperationException("Nested paths do not have a user principal lo...
} @Override public int hashCode() { return this.jarPath.hashCode(); } @Override public String toString() { return this.jarPath.toAbsolutePath().toString(); } private void assertNotClosed() { if (this.closed) { throw new ClosedFileSystemException(); } } }
repos\spring-boot-4.0.1\loader\spring-boot-loader\src\main\java\org\springframework\boot\loader\nio\file\NestedFileSystem.java
1
请完成以下Java代码
public boolean isSaveInHistoric () { Object oo = get_Value(COLUMNNAME_IsSaveInHistoric); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Last Deleted. @param LastDeleted Last Deleted */ public void setL...
return "Y".equals(oo); } return false; } /** Set Search Key. @param Value Search key for the record in the format required - must be unique */ public void setValue (String Value) { set_Value (COLUMNNAME_Value, Value); } /** Get Search Key. @return Search key for the record in the format required...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_HouseKeeping.java
1
请完成以下Java代码
public List<DmnElementReference> getOutputDecisions() { return outputDecisions; } public void setOutputDecisions(List<DmnElementReference> outputDecisions) { this.outputDecisions = outputDecisions; } public void addOutputDecision(DmnElementReference outputDecision) { this.outputD...
public void addInputDecision(DmnElementReference inputDecision) { this.inputDecisions.add(inputDecision); } public List<DmnElementReference> getInputData() { return inputData; } public void setInputData(List<DmnElementReference> inputData) { this.inputData = inputData; } ...
repos\flowable-engine-main\modules\flowable-dmn-model\src\main\java\org\flowable\dmn\model\DecisionService.java
1
请完成以下Java代码
public List call() throws Exception { List<Type> result = (List<Type>) executeCallSingleValueReturn(function, List.class); return convertToNative(result); } }); } public RemoteCall<TransactionReceipt> enter(BigInteger weiValue)...
public static Lottery load(String contractAddress, Web3j web3j, Credentials credentials, BigInteger gasPrice, BigInteger gasLimit) { return new Lottery(contractAddress, web3j, credentials, gasPrice, gasLimit); } @Deprecated public static Lottery load(String contractAddress, Web3j web3j, Transaction...
repos\springboot-demo-master\Blockchain\src\main\java\com\et\bc\model\Lottery.java
1
请完成以下Java代码
public abstract class C_Flatrate_Term_Change_Base extends JavaProcess { private final IContractChangeBL contractChangeBL = Services.get(IContractChangeBL.class); public static final String PARAM_CHANGE_DATE = "EventDate"; public static final String PARAM_ACTION = I_C_Contract_Change.COLUMNNAME_Action; public sta...
@Override protected String doIt() { if (IContractChangeBL.ChangeTerm_ACTION_SwitchContract.equals(action)) { throw new AdempiereException("Not implemented"); } final IContractChangeBL.ContractChangeParameters contractChangeParameters = IContractChangeBL.ContractChangeParameters.builder() .changeDate(c...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\flatrate\process\C_Flatrate_Term_Change_Base.java
1
请完成以下Java代码
public boolean isInfiniteQtyTUsPerLU() { return true; } @Override public BigDecimal getQtyTUsPerLU() { return null; } @Override public boolean isInfiniteQtyCUsPerTU() { return true;
} @Override public BigDecimal getQtyCUsPerTU() { return null; } @Override public I_C_UOM getQtyCUsPerTU_UOM() { return null; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\handlingunits\util\LUPIPackingInfo.java
1
请完成以下Java代码
public class BPartnerCreditLimit { public static final String METASFRESH_ID = "metasfreshId"; public static final String BPARTNER_ID = "bpartnerId"; public static final String AMOUNT = "amount"; public static final String DATE_FROM = "dateFrom"; public static final String CREDITLIMITTYPE = "creditLimitType"; @Nu...
private BPartnerCreditLimit( @Nullable final BPartnerCreditLimitId id, @Nullable final LocalDate dateFrom, @NonNull final BigDecimal amount, @NonNull final CreditLimitType creditLimitType) { setId(id); this.dateFrom = dateFrom; this.amount = amount; this.creditLimitType = creditLimitType; } pub...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\bpartner\composite\BPartnerCreditLimit.java
1
请在Spring Boot框架中完成以下Java代码
public ApiResponse<CustomerMapping> getCustomerMappingWithHttpInfo(String albertaApiKey, String customerId) throws ApiException { com.squareup.okhttp.Call call = getCustomerMappingValidateBeforeCall(albertaApiKey, customerId, null, null); Type localVarReturnType = new TypeToken<CustomerMapping>(){}.getT...
callback.onDownloadProgress(bytesRead, contentLength, done); } }; progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { @Override public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { ...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\alberta\alberta-patient-api\src\main\java\io\swagger\client\api\CustomerMappingApi.java
2
请完成以下Java代码
public class QtyDemand_QtySupply_V_to_PP_Order_Candidate extends JavaProcess implements IProcessPrecondition { private final QtyDemandSupplyRepository demandSupplyRepository = SpringContextHolder.instance.getBean(QtyDemandSupplyRepository.class); private final PPOrderCandidateDAO ppOrderCandidateDAO = SpringContextHo...
.warehouseId(currentRow.getWarehouseId()) .orgId(currentRow.getOrgId()) .productId(currentRow.getProductId()) .attributesKey(currentRow.getAttributesKey()) .onlyNonZeroQty(true) .build(); final List<TableRecordReference> recordReferences = ppOrderCandidateDAO.listIdsByQuery(ppOrderCandidatesQuery...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\material\process\QtyDemand_QtySupply_V_to_PP_Order_Candidate.java
1
请完成以下Java代码
public String toString() { return MoreObjects.toStringHelper(this).addValue(tuHU).toString(); } private IHUProductStorage getHUProductStorage() { return huProductStorageSupplier.get(); } @Override public I_M_HU_PI getM_LU_HU_PI() { return null; } @Override public I_M_HU_PI getM_TU_HU_PI() { retur...
public BigDecimal getQtyTUsPerLU() { return null; } @Override public boolean isInfiniteQtyCUsPerTU() { return false; } @Override public BigDecimal getQtyCUsPerTU() { final IHUProductStorage huProductStorage = getHUProductStorage(); return huProductStorage == null ? null : huProductStorage.getQty().to...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\handlingunits\util\TUPackingInfo.java
1
请完成以下Java代码
public class EventHandlerImpl implements EventHandler { private final EventType eventType; public EventHandlerImpl(EventType eventType) { this.eventType = eventType; } public void handleIntermediateEvent(EventSubscriptionEntity eventSubscription, Object payload, ...
else { // hack around the fact that the start event is referenced by event subscriptions for event subprocesses // and not the subprocess itself if (activity.getActivityBehavior() instanceof EventSubProcessStartEventActivityBehavior) { activity = (ActivityImpl) activity.getFlowScope(); }...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\event\EventHandlerImpl.java
1
请完成以下Java代码
protected void leave(ActivityExecution execution) { if (hasCompensationHandler(execution)) { createCompensateEventSubscription(execution); } if (!hasLoopCharacteristics()) { super.leave(execution); } else if (hasMultiInstanceCharacteristics()) { multiI...
super.signal(execution, signalName, signalData); } } protected void signalCompensationDone(ActivityExecution execution, Object signalData) { // default behavior is to join compensating executions and propagate the signal if all executions // have compensated // join compensatin...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\AbstractBpmnActivityBehavior.java
1
请在Spring Boot框架中完成以下Java代码
public class User { @Id private Long id; @NotNull(message = "First Name cannot be null") private String firstName; @Min(value = 15, message = "Age should not be less than 15") @Max(value = 65, message = "Age should not be greater than 65") private int age; @Email(regexp=".*@.*\\..*",...
} public void setEmail(String email) { this.email = email; } public int getAge() { return age; } public void setAge(int age) { this.age = age; } }
repos\tutorials-master\spring-boot-modules\spring-boot-mvc-legacy\src\main\java\com\baeldung\swagger2boot\model\User.java
2
请完成以下Java代码
public void onNew(@NonNull final ICalloutRecord calloutRecord) { final I_M_CostRevaluation costRevaluation = calloutRecord.getModel(I_M_CostRevaluation.class); setDocTypeId(costRevaluation); } @CalloutMethod(columnNames = I_M_CostRevaluation.COLUMNNAME_C_DocType_ID) public void onDocTypeChanged(@NonNull final ...
costRevaluation.setC_DocType_ID(docTypeId.getRepoId()); } private void setDocumentNo(final I_M_CostRevaluation costRevaluation) { final DocTypeId docTypeId = DocTypeId.ofRepoIdOrNull(costRevaluation.getC_DocType_ID()); if (docTypeId == null) { return; } final IDocumentNoInfo documentNoInfo = Services....
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\costrevaluation\callout\M_CostRevaluation.java
1
请完成以下Java代码
public class CorrelationSet { protected final String businessKey; protected final Map<String, Object> correlationKeys; protected final Map<String, Object> localCorrelationKeys; protected final String processInstanceId; protected final String processDefinitionId; protected final String tenantId; protected...
public String getProcessInstanceId() { return processInstanceId; } public String getProcessDefinitionId() { return processDefinitionId; } public String getTenantId() { return tenantId; } public boolean isTenantIdSet() { return isTenantIdSet; } public boolean isExecutionsOnly() { ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\runtime\CorrelationSet.java
1
请完成以下Java代码
public boolean isAllowedToCreateInvoiceCandidateFor(final Object model) { final String tableName = InterfaceWrapperHelper.getModelTableName(model); final Collection<ModelWithoutInvoiceCandidateVetoer> listeners = tableName2Listeners.get(tableName); if (listeners == null) { return true; } for (final Mod...
@NonNull private BigDecimal getActualDeliveredQty(@NonNull final org.compiere.model.I_M_InOutLine inOutLine) { final org.compiere.model.I_M_InOut inOut = inoutBL.getById(InOutId.ofRepoId(inOutLine.getM_InOut_ID())); final DocStatus docStatus = DocStatus.ofCode(inOut.getDocStatus()); Loggables.withLogger(logger...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\invoicecandidate\api\impl\InvoiceCandBL.java
1
请在Spring Boot框架中完成以下Java代码
public class AttributesIncludedTabDescriptor { @NonNull AttributesIncludedTabId id; @NonNull AttributeSetId attributeSetId; @NonNull ClientId clientId; @NonNull AdTableId parentTableId; @NonNull ITranslatableString caption; int seqNo; @NonNull ImmutableList<AttributesIncludedTabFieldDescriptor> fieldsInOrder; ...
} public ImmutableSet<AttributeId> getAttributeIds() { return fieldsByAttributeId.keySet(); } public AttributesIncludedTabFieldDescriptor getFieldByAttributeId(@NonNull final AttributeId attributeId) { final AttributesIncludedTabFieldDescriptor field = fieldsByAttributeId.get(attributeId); if (field == nul...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\attributes_included_tab\descriptor\AttributesIncludedTabDescriptor.java
2
请完成以下Java代码
public static LocalToRemoteSyncResult error( @NonNull final DataRecord datarecord, @NonNull final String errorMessage) { return LocalToRemoteSyncResult.builder() .synchedDataRecord(datarecord) .localToRemoteStatus(LocalToRemoteStatus.ERROR) .errorMessage(errorMessage) .build(); } public enum...
LocalToRemoteStatus localToRemoteStatus; String errorMessage; DataRecord synchedDataRecord; @Builder private LocalToRemoteSyncResult( @NonNull final DataRecord synchedDataRecord, @Nullable final LocalToRemoteStatus localToRemoteStatus, @Nullable final String errorMessage) { this.synchedDataRecord = s...
repos\metasfresh-new_dawn_uat\backend\de.metas.marketing\base\src\main\java\de\metas\marketing\base\model\LocalToRemoteSyncResult.java
1
请完成以下Java代码
protected void addSignalStartEventSubscription(EventSubscriptionDeclaration signalEventDefinition, ProcessDefinitionEntity processDefinition) { EventSubscriptionEntity newSubscription = signalEventDefinition.createSubscriptionForStartEvent(processDefinition); newSubscription.insert(); } protected void add...
} protected EventSubscriptionManager getEventSubscriptionManager() { return getCommandContext().getEventSubscriptionManager(); } protected ProcessDefinitionManager getProcessDefinitionManager() { return getCommandContext().getProcessDefinitionManager(); } // getters/setters ////////////////////////...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\bpmn\deployer\BpmnDeployer.java
1
请完成以下Java代码
public static IWord compile(IWord word) { String label = word.getLabel(); if ("nr".equals(label)) return new Word(word.getValue(), TAG_PEOPLE); else if ("m".equals(label) || "mq".equals(label)) return new Word(word.getValue(), TAG_NUMBER); else if ("t".equals(label)) return new Word(...
List<List<IWord>> compatibleList = new LinkedList<List<IWord>>(); for (List<Word> wordList : simpleSentenceList) { compatibleList.add(new LinkedList<IWord>(wordList)); } return compatibleList; } public static List<IWord> spilt(List<IWord> wordList) { List...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\corpus\util\CorpusUtil.java
1
请在Spring Boot框架中完成以下Java代码
public class SpringBootApp { @Autowired private JdbcTemplate jdbcTemplate; public static void main(String[] args) { SpringApplication.run(SpringBootApp.class, args); } @PostConstruct private void initDb() { System.out.println(String.format("****** Creating table: %s, and Inser...
@Override public Object mapRow(ResultSet rs, int i) throws SQLException { System.out.println(String.format("id:%s,first_name:%s,last_name:%s", rs.getString("id"), rs.getString("first_name"), rs.getString("last_na...
repos\tutorials-master\persistence-modules\spring-boot-persistence-h2\src\main\java\com\baeldung\h2db\demo\server\SpringBootApp.java
2
请完成以下Java代码
public void setIngredients(final String ingredients) { this.ingredients = ingredients; ingredientsSet = true; } public void setCurrentVendor(final Boolean currentVendor) { this.currentVendor = currentVendor; currentVendorSet = true; } public void setExcludedFromSales(final Boolean excludedFromSales) { ...
usedForVendorSet = true; } public void setExcludedFromPurchase(final Boolean excludedFromPurchase) { this.excludedFromPurchase = excludedFromPurchase; excludedFromPurchaseSet = true; } public void setExclusionFromPurchaseReason(final String exclusionFromPurchaseReason) { this.exclusionFromPurchaseReason =...
repos\metasfresh-new_dawn_uat\misc\de-metas-common\de-metas-common-product\src\main\java\de\metas\common\product\v2\request\JsonRequestBPartnerProductUpsert.java
1
请在Spring Boot框架中完成以下Java代码
public void afterCommit() { publishToMetasfreshAsync(); } public void publishToMetasfreshAsync() { logger.debug("Synchronizing: {}", this); // // Sync daily product supplies { final List<ProductSupply> productSupplies = ImmutableList.copyOf(this.productSupplies); this.productSupplies.cl...
pushWeeklyReportsAsync(weeklySupplies); } // // Sync RfQ changes { final List<Rfq> rfqs = ImmutableList.copyOf(this.rfqs); this.rfqs.clear(); pushRfqsAsync(rfqs); } // // Sync User changes { final List<User> users = ImmutableList.copyOf(this.users); this.users.clear(); ...
repos\metasfresh-new_dawn_uat\misc\services\procurement-webui\procurement-webui-backend\src\main\java\de\metas\procurement\webui\sync\SenderToMetasfreshService.java
2
请完成以下Java代码
public Authentication convert(HttpServletRequest request) { X509Certificate[] clientCertificateChain = (X509Certificate[]) request .getAttribute("jakarta.servlet.request.X509Certificate"); if (clientCertificateChain == null || clientCertificateChain.length == 0) { return null; } MultiValueMap<String, Str...
if (parameters.get(OAuth2ParameterNames.CLIENT_ID).size() != 1) { throw new OAuth2AuthenticationException(OAuth2ErrorCodes.INVALID_REQUEST); } Map<String, Object> additionalParameters = OAuth2EndpointUtils .getParametersIfMatchesAuthorizationCodeGrantRequest(request, OAuth2ParameterNames.CLIENT_ID); Clien...
repos\spring-security-main\oauth2\oauth2-authorization-server\src\main\java\org\springframework\security\oauth2\server\authorization\web\authentication\X509ClientCertificateAuthenticationConverter.java
1
请在Spring Boot框架中完成以下Java代码
public EntityManager getEntityManager() { if (entityManager == null) { entityManager = getEntityManagerFactory().createEntityManager(); if (handleTransactions) { // Add transaction listeners, if transactions should be handled TransactionListener jpaTransa...
} }; TransactionContext transactionContext = Context.getTransactionContext(); transactionContext.addTransactionListener(TransactionState.COMMITTED, jpaTransactionCommitListener); transactionContext.addTransactionListener(TransactionState.ROLLED_BACK, jpaT...
repos\flowable-engine-main\modules\flowable-variable-service\src\main\java\org\flowable\variable\service\impl\types\EntityManagerSessionImpl.java
2
请完成以下Java代码
public Long getEmployeeId() { return employeeId; } public void setEmployeeId(Long employeeId) { this.employeeId = employeeId; } public String getFirstName() { return firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } ...
return lastName; } public void setLastName(String lastName) { this.lastName = lastName; } public Set<Project> getProjects() { return projects; } public void setProjects(Set<Project> projects) { this.projects = projects; } }
repos\tutorials-master\persistence-modules\hibernate-mapping\src\main\java\com\baeldung\hibernate\manytomany\model\Employee.java
1
请完成以下Java代码
public void setCamundaCandidateStarterUsersList(List<String> camundaCandidateStarterUsersList) { String candidateStarterUsers = StringUtil.joinCommaSeparatedList(camundaCandidateStarterUsersList); camundaCandidateStarterUsersAttribute.setValue(this, candidateStarterUsers); } public String getCamundaJobPrio...
@Override public void setCamundaHistoryTimeToLiveString(String historyTimeToLive) { if (historyTimeToLive == null) { camundaHistoryTimeToLiveAttribute.removeAttribute(this); } else { camundaHistoryTimeToLiveAttribute.setValue(this, historyTimeToLive); } } @Override public Boolean isCamu...
repos\camunda-bpm-platform-master\model-api\bpmn-model\src\main\java\org\camunda\bpm\model\bpmn\impl\instance\ProcessImpl.java
1
请完成以下Java代码
private static boolean mergeLinkToGroup(@NonNull final CustomizedWindowInfo link, @NonNull final ArrayList<AdWindowId> group) { Check.assume(link.getPreviousCustomizationWindowIds().isEmpty(), "previous customization windowIds shall be empty: {}", link); if (group.isEmpty()) { group.add(link.getBaseWindowId(...
} else if (AdWindowId.equals(last(group), first(targetGroup))) { targetGroup.addAll(0, group.subList(0, group.size() - 1)); group.clear(); return true; } else { return false; } } private static AdWindowId first(@NonNull final ArrayList<AdWindowId> group) { return group.get(0); } private sta...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\document\references\zoom_into\CustomizedWindowInfoMap.java
1
请完成以下Java代码
public void deleteExistingADElementLinkForTabId(final AdTabId adTabId) { // IMPORTANT: we have to call delete directly because we don't want to have the AD_Element_Link_ID is the migration scripts DB.executeUpdateAndThrowExceptionOnFail( "DELETE FROM " + I_AD_Element_Link.Table_Name + " WHERE AD_Tab_ID=" + adT...
{ // NOTE: no params because we want to log migration scripts DB.executeFunctionCallEx(ITrx.TRXNAME_ThreadInherited, MigrationScriptFileLoggerHolder.DDL_PREFIX + "select AD_Element_Link_Create_Missing_Window(" + adWindowId.getRepoId() + ")", new Object[] {}); } @Override public void deleteExistingADElem...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\element\api\impl\ElementLinkBL.java
1
请在Spring Boot框架中完成以下Java代码
public class User { @PartitionKey private int id; @CqlName("username") private String userName; @ClusteringColumn private int userAge; @Computed("writetime(userName)") private long writetime; public User() { } public User(int id, String userName, int userAge) { thi...
public int getUserAge() { return userAge; } public void setUserAge(int userAge) { this.userAge = userAge; } public long getWritetime() { return writetime; } public void setWritetime(long writetime) { this.writetime = writetime; } }
repos\tutorials-master\persistence-modules\spring-data-cassandra-2\src\main\java\org\baeldung\objectmapper\entity\User.java
2
请在Spring Boot框架中完成以下Java代码
public class FatalExceptionStrategyAmqpConfiguration { @Bean public SimpleRabbitListenerContainerFactory rabbitListenerContainerFactory( ConnectionFactory connectionFactory, SimpleRabbitListenerContainerFactoryConfigurer configurer) { SimpleRabbitListenerContainerFactory factory = new Simpl...
@Bean Queue messagesQueue() { return QueueBuilder.durable(QUEUE_MESSAGES) .build(); } @Bean DirectExchange messagesExchange() { return new DirectExchange(EXCHANGE_MESSAGES); } @Bean Binding bindingMessages() { return BindingBuilder.bind(messagesQueue()).to...
repos\tutorials-master\messaging-modules\spring-amqp\src\main\java\com\baeldung\springamqp\errorhandling\configuration\FatalExceptionStrategyAmqpConfiguration.java
2
请完成以下Java代码
public class AirlineGates { @Id String id; @Version Long version; @QueryIndexed String name; String iata; Long gates; public AirlineGates(String id, String name, String iata, Long gates) { this.id = id; this.name = name; this.iata = iata; this.gates = gates; } public String getId() { return id; }
public Long getGates() { return gates; } public String toString() { StringBuffer sb = new StringBuffer(); sb.append("{"); sb.append("\"id\":" + id); sb.append(", \"name\":" + name); sb.append(", \"iata\":" + iata); sb.append(", \"gates\":" + gates); sb.append("}"); return sb.toString(); } }
repos\spring-data-examples-main\couchbase\transactions\src\main\java\com\example\demo\AirlineGates.java
1
请完成以下Java代码
private void dbUpdateM_PricingSystems(final ImportRecordsSelection selection) { { final StringBuilder sql = new StringBuilder("UPDATE I_BPartner i " + "SET M_PricingSystem_ID=(SELECT M_PricingSystem_ID FROM M_PricingSystem ps" + " WHERE i.PricingSystem_Value=ps.value AND ps.AD_Client_ID IN (0, i.AD_Clie...
+ " WHERE i.PO_PricingSystem_Value=ps.value AND ps.AD_Client_ID IN (0, i.AD_Client_ID) and IsActive='Y') " + "WHERE PO_PricingSystem_ID IS NULL AND PO_PricingSystem_Value IS NOT NULL" + " AND " + COLUMNNAME_I_IsImported + "<>'Y'") .append(selection.toSqlWhereClause("i")); executeUpdate("Set PO_Pric...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\bpartner\impexp\BPartnerImportTableSqlUpdater.java
1
请完成以下Java代码
public int getC_Payment_Reservation_ID() { return get_ValueAsInt(COLUMNNAME_C_Payment_Reservation_ID); } @Override public void setExternalId (final @Nullable java.lang.String ExternalId) { set_Value (COLUMNNAME_ExternalId, ExternalId); } @Override public java.lang.String getExternalId() { return get_...
public void setPayPal_OrderJSON (final @Nullable java.lang.String PayPal_OrderJSON) { set_Value (COLUMNNAME_PayPal_OrderJSON, PayPal_OrderJSON); } @Override public java.lang.String getPayPal_OrderJSON() { return get_ValueAsString(COLUMNNAME_PayPal_OrderJSON); } @Override public void setPayPal_PayerApprov...
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.paypal\src\main\java-gen\de\metas\payment\paypal\model\X_PayPal_Order.java
1
请完成以下Java代码
public long findJobCountByQueryCriteria(JobQueryImpl jobQuery) { return jobDataManager.findJobCountByQueryCriteria(jobQuery); } @Override public void updateJobTenantIdForDeployment(String deploymentId, String newTenantId) { jobDataManager.updateJobTenantIdForDeployment(deploymentId, newTena...
* Removes the job's execution's reference to this job, if the job has an associated execution. * Subclasses may override to provide custom implementations. */ protected void removeExecutionLink(JobEntity jobEntity) { if (jobEntity.getExecutionId() != null) { ExecutionEntity execution =...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\persistence\entity\JobEntityManagerImpl.java
1
请完成以下Java代码
public void removeQueueProcessor(final int queueProcessorId) { mainLock.lock(); try { removeQueueProcessor0(queueProcessorId); } finally { mainLock.unlock(); } } private void removeQueueProcessor0(final int queueProcessorId) { final Optional<IQueueProcessor> queueProcessor = asyncProcessorPla...
mainLock.unlock(); } } private void registerMBean(final IQueueProcessor queueProcessor) { unregisterMBean(queueProcessor); final JMXQueueProcessor processorMBean = new JMXQueueProcessor(queueProcessor, queueProcessor.getQueueProcessorId().getRepoId()); final String jmxName = createJMXName(queueProcessor);...
repos\metasfresh-new_dawn_uat\backend\de.metas.async\src\main\java\de\metas\async\processor\impl\QueueProcessorsExecutor.java
1
请完成以下Spring Boot application配置
spring: application: name: price-service server: port: '8081' management: tracing: sampling: probability: '1.0' otlp:
tracing: endpoint: http://collector:4318/v1/traces
repos\tutorials-master\spring-boot-modules\spring-boot-open-telemetry\spring-boot-open-telemetry2\src\main\resources\application.yml
2
请完成以下Java代码
public Optional<HttpHeadersWrapper> getRequestHeaders(@NonNull final ObjectMapper objectMapper) { if (Check.isBlank(httpHeaders)) { return Optional.empty(); } try { return Optional.of(objectMapper.readValue(httpHeaders, HttpHeadersWrapper.class)); } catch (final JsonProcessingException e) { t...
if (Check.isBlank(body)) { return Optional.empty(); } try { return Optional.of(objectMapper.readValue(body, Object.class)); } catch (final JsonProcessingException e) { throw new AdempiereException("Failed to parse body!") .appendParametersToMessage() .setParameter("ApiAuditRequest", th...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\audit\apirequest\request\ApiRequestAudit.java
1
请完成以下Java代码
private boolean isFailOnError() { return _failOnError; } @Override public DocumentNoBuilder setUsePreliminaryDocumentNo(final boolean usePreliminaryDocumentNo) { this._usePreliminaryDocumentNo = usePreliminaryDocumentNo; return this; } private boolean isUsePreliminaryDocumentNo() { return _usePrelimin...
calendarYearMonthAndDayBuilder.calendarMonth(getCalendarMonth(docSeqInfo.getDateColumn())); } return calendarYearMonthAndDayBuilder.build(); } @Builder @Value private static class CalendarYearMonthAndDay { String calendarYear; String calendarMonth; String calendarDay; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\document\sequence\impl\DocumentNoBuilder.java
1
请完成以下Java代码
public void setResponseText (java.lang.String ResponseText) { set_Value (COLUMNNAME_ResponseText, ResponseText); } /** Get Antwort-Text. @return Anfrage-Antworttext */ @Override public java.lang.String getResponseText () { return (java.lang.String)get_Value(COLUMNNAME_ResponseText); } /** Set Transa...
@Override public java.lang.String getTransactionIDClient () { return (java.lang.String)get_Value(COLUMNNAME_TransactionIDClient); } /** Set TransaktionsID Server. @param TransactionIDServer TransaktionsID Server */ @Override public void setTransactionIDServer (java.lang.String TransactionIDServer) { se...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma.securpharm\src\main\java-gen\de\metas\vertical\pharma\securpharm\model\X_M_Securpharm_Log.java
1
请在Spring Boot框架中完成以下Java代码
public BatchResponse getBatch(@ApiParam(name = "batchId") @PathVariable String batchId) { Batch batch = getBatchById(batchId); return restResponseFactory.createBatchResponse(batch); } @ApiOperation(value = "Get the batch document", tags = { "Batches" }) @ApiResponses(value = { ...
@ApiResponse(code = 204, message = "Indicates the batch was found and has been deleted. Response-body is intentionally empty."), @ApiResponse(code = 404, message = "Indicates the requested batch was not found.") }) @DeleteMapping("/management/batches/{batchId}") @ResponseStatus(HttpStatus.NO_CON...
repos\flowable-engine-main\modules\flowable-rest\src\main\java\org\flowable\rest\service\api\management\BatchResource.java
2
请在Spring Boot框架中完成以下Java代码
public String getAuthorizationUserId() { return authorizationUserId; } public boolean isAuthorizationGroupsSet() { return authorizationGroupsSet; } public String getTenantId() { return tenantId; } public String getTenantIdLike() { return tenantIdLike; } ...
return withoutTenantId; } public boolean isIncludeAuthorization() { return authorizationUserId != null || (authorizationGroups != null && !authorizationGroups.isEmpty()); } public List<List<String>> getSafeAuthorizationGroups() { return safeAuthorizationGroups; } public void s...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\repository\CaseDefinitionQueryImpl.java
2
请在Spring Boot框架中完成以下Java代码
public class AcceptPaymentDisputeRequest { public static final String SERIALIZED_NAME_RETURN_ADDRESS = "returnAddress"; @SerializedName(SERIALIZED_NAME_RETURN_ADDRESS) private ReturnAddress returnAddress; public static final String SERIALIZED_NAME_REVISION = "revision"; @SerializedName(SERIALIZED_NAME_REVISION) ...
this.revision = revision; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } AcceptPaymentDisputeRequest acceptPaymentDisputeRequest = (AcceptPaymentDisputeRequest)o; return Objects.equals(this.returnAdd...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\de-metas-camel-ebay\ebay-api-client\src\main\java\de\metas\camel\externalsystems\ebay\api\model\AcceptPaymentDisputeRequest.java
2
请完成以下Java代码
public String getCallbackId() { return callbackId; } public Set<String> getCallBackIds() { return callbackIds; } public String getCallbackType() { return callbackType; } public String getParentCaseInstanceId() { return parentCaseInstanceId; } publ...
} public void setSafeInvolvedGroups(List<List<String>> safeInvolvedGroups) { this.safeInvolvedGroups = safeInvolvedGroups; } public String getRootScopeId() { return null; } public String getParentScopeId() { return null; } }
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\ExecutionQueryImpl.java
1
请完成以下Java代码
public String getRepeat() { return repeat; } public void setRepeat(String repeat) { this.repeat = repeat; } public Date getEndDate() { return endDate; } public void setEndDate(Date endDate) { this.endDate = endDate; } public int getMaxIterations() { ...
exceptionByteArrayRef = new ByteArrayRef(); } exceptionByteArrayRef.setValue("stacktrace", getUtf8Bytes(exception)); } public String getExceptionMessage() { return exceptionMessage; } public void setExceptionMessage(String exceptionMessage) { this.exceptionMessage = Str...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\persistence\entity\AbstractJobEntityImpl.java
1
请完成以下Java代码
public DocumentPath getDocumentPath() { return documentPath; } public TableRecordReference getTableRecordReference() { return createTableRecordReferenceFromShipmentScheduleId(getShipmentScheduleId()); } @Override public ImmutableSet<String> getFieldNames() { return values.getFieldNames(); } @Override...
return includedViewId; } public ShipmentScheduleId getShipmentScheduleId() { return shipmentScheduleId; } public Optional<OrderLineId> getSalesOrderLineId() { return salesOrderLineId; } public ProductId getProductId() { return product != null ? ProductId.ofRepoIdOrNull(product.getIdAsInt()) : null; }...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\picking\packageable\PackageableRow.java
1
请在Spring Boot框架中完成以下Java代码
public Optional<Student> findOne(String id) { return repo.findById(id); } public List<Student> findAll() { List<Student> people = new ArrayList<>(); Iterator<Student> it = repo.findAll().iterator(); while (it.hasNext()) { people.add(it.next()); } retu...
return repo.findByLastName(lastName); } public void create(Student student) { student.setCreated(DateTime.now()); repo.save(student); } public void update(Student student) { student.setUpdated(DateTime.now()); repo.save(student); } public void delete(Student st...
repos\tutorials-master\persistence-modules\spring-data-couchbase-2\src\main\java\com\baeldung\spring\data\couchbase\service\StudentRepositoryService.java
2
请完成以下Java代码
public IView createView(@NonNull final CreateViewRequest request) { final ViewId viewId = request.getViewId(); viewId.assertWindowId(WINDOWID); final OrderId orderId = request.getParameterAs(PARAM_PURCHASE_ORDER_ID, OrderId.class); Check.assumeNotNull(orderId, PARAM_PURCHASE_ORDER_ID + " is mandatory!"); ...
.build(); } @Override public ViewLayout getViewLayout(final WindowId windowId, final JSONViewDataType viewDataType, final ViewProfileId profileId) { return ViewLayout.builder() .setWindowId(WINDOWID) .setCaption(Services.get(IMsgBL.class).translatable(I_C_Order.COLUMNNAME_C_Order_ID)) .setAllowOpenin...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\order\attachmenteditor\OrderAttachmentViewFactory.java
1
请在Spring Boot框架中完成以下Java代码
public I_C_BP_Group getById(@NonNull final BPGroupId bpGroupId) { return loadOutOfTrx(bpGroupId, I_C_BP_Group.class); } @Override public I_C_BP_Group getByIdInInheritedTrx(@NonNull final BPGroupId bpGroupId) { return load(bpGroupId, I_C_BP_Group.class); } @Override public I_C_BP_Group getByBPartnerId(@Non...
logger.warn("No default BP group found for {}", clientAndOrgId); return null; } return getById(bpGroupId); } @Override public BPartnerNameAndGreetingStrategyId getBPartnerNameAndGreetingStrategyId(@NonNull final BPGroupId bpGroupId) { final I_C_BP_Group bpGroup = getById(bpGroupId); return StringUtils...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\bpartner\service\impl\BPGroupDAO.java
2
请完成以下Java代码
public int getAD_Client_ID() { return invoiceLine.getAD_Client_ID(); } @Override public int getAD_Org_ID() { return invoiceLine.getAD_Org_ID(); } @Override public boolean isSOTrx() { final I_C_Invoice invoice = getInvoice(); return invoice.isSOTrx(); } @Override public I_C_BPartner getC_BPartner(...
final IBPartnerDAO bpartnerDAO = Services.get(IBPartnerDAO.class); final I_C_BPartner partner = InterfaceWrapperHelper.create(bpartnerDAO.getById(invoice.getC_BPartner_ID()), I_C_BPartner.class); if (partner == null) { return null; } return partner; } private I_C_Invoice getInvoice() { final I_C_Inv...
repos\metasfresh-new_dawn_uat\backend\de.metas.fresh\de.metas.fresh.base\src\main\java\org\adempiere\mm\attributes\api\impl\InvoiceLineBPartnerAware.java
1
请完成以下Java代码
public NERTagSet getNERTagSet() { return tagSet; } private NERInstance createInstance(String[] wordArray, String[] posArray) { final FeatureTemplate[] featureTemplateArray = model.getFeatureTemplateArray(); return new NERInstance(wordArray, posArray, model.featureMap) { ...
} @Override protected String getDefaultFeatureTemplate() { return "# Unigram\n" + // form "U0:%x[-2,0]\n" + "U1:%x[-1,0]\n" + "U2:%x[0,0]\n" + "U3:%x[1,0]\n" + "U4:%x[2,0]\n" + // pos "U5:%x[-2,1]\n" + ...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\model\crf\CRFNERecognizer.java
1
请在Spring Boot框架中完成以下Java代码
public void setImportMetadata(AnnotationMetadata importMetadata) { if (isAnnotationPresent(importMetadata)) { AnnotationAttributes enableDurableClientAttributes = getAnnotationAttributes(importMetadata); this.durableClientId = enableDurableClientAttributes.containsKey("id") ? enableDurableClientAttribute...
protected Boolean getReadyForEvents() { return this.readyForEvents != null ? this.readyForEvents : DEFAULT_READY_FOR_EVENTS; } protected Logger getLogger() { return this.logger; } @Bean ClientCacheConfigurer clientCacheDurableClientConfigurer() { return (beanName, clientCacheFactoryBean) -> getDura...
repos\spring-boot-data-geode-main\spring-geode-project\spring-geode\src\main\java\org\springframework\geode\config\annotation\DurableClientConfiguration.java
2
请在Spring Boot框架中完成以下Java代码
public CommonResult delete(Long productId) { int count = memberCollectionService.delete(productId); if (count > 0) { return CommonResult.success(count); } else { return CommonResult.failed(); } } @ApiOperation("显示当前用户商品收藏列表") @RequestMapping(value = "...
@RequestMapping(value = "/detail", method = RequestMethod.GET) @ResponseBody public CommonResult<MemberProductCollection> detail(@RequestParam Long productId) { MemberProductCollection memberProductCollection = memberCollectionService.detail(productId); return CommonResult.success(memberProductC...
repos\mall-master\mall-portal\src\main\java\com\macro\mall\portal\controller\MemberProductCollectionController.java
2
请完成以下Java代码
public User save(User entity) throws Exception { return userRepo.save(entity); } @Override public void delete(Long id) throws Exception { userRepo.delete(id); } @Override public void delete(User entity) throws Exception { userRepo.delete(entity); } @Override ...
@Override public Page<User> findAll(User sample, PageRequest pageRequest) { return userRepo.findAll(whereSpec(sample), pageRequest); } private Specification<User> whereSpec(final User sample){ return (root, query, cb) -> { List<Predicate> predicates = new ArrayList<>(); ...
repos\spring-boot-quick-master\quick-oauth2\quick-github-oauth\src\main\java\com\github\oauth\user\UserService.java
1
请完成以下Java代码
public class CreateWordDocument { public static void main(String[] args) { //Create a Document object Document doc = new Document(); //Add a section Section section = doc.addSection(); //Set the page margins section.getPageSetup().getMargins().setAll(40f); ...
bodyParagraph_1.applyStyle("paraStyle"); bodyParagraph_2.applyStyle("paraStyle"); //Set the horizontal alignment of paragraphs titleParagraph.getFormat().setHorizontalAlignment(HorizontalAlignment.Center); bodyParagraph_1.getFormat().setHorizontalAlignment(HorizontalAlignment.Justify); ...
repos\springboot-demo-master\spire-doc\src\main\java\com\et\spire\doc\CreateWordDocument.java
1
请完成以下Java代码
public boolean isEmpty() {return list.isEmpty();} @Override @NonNull public Iterator<Candidate> iterator() {return list.iterator();} @Override public void forEach(@NonNull final Consumer<? super Candidate> action) {list.forEach(action);} public ClientAndOrgId getClientAndOrgId() { assertNotEmpty(); return...
public CandidateBusinessCase getBusinessCase() { assertNotEmpty(); return CollectionUtils.extractSingleElement(list, Candidate::getBusinessCase); } public Candidate getSingleCandidate() { return CollectionUtils.singleElement(list); } public Candidate getSingleSupplyCandidate() { return CollectionUtils....
repos\metasfresh-new_dawn_uat\backend\de.metas.material\dispo-commons\src\main\java\de\metas\material\dispo\commons\candidate\CandidatesGroup.java
1
请在Spring Boot框架中完成以下Java代码
public void setExceptionStacktrace(String exception) { if (exceptionByteArrayRef == null) { exceptionByteArrayRef = new ByteArrayRef(); } exceptionByteArrayRef.setValue("stacktrace", exception, getEngineType()); } @Override public String getExceptionMessage() { r...
} @Override public void setScopeType(String scopeType) { this.scopeType = scopeType; } protected String getJobByteArrayRefAsString(ByteArrayRef jobByteArrayRef) { if (jobByteArrayRef == null) { return null; } return jobByteArrayRef.asString(getEngineType());...
repos\flowable-engine-main\modules\flowable-job-service\src\main\java\org\flowable\job\service\impl\persistence\entity\HistoryJobEntityImpl.java
2
请完成以下Java代码
public Optional<FAOpenItemTrxInfo> computeTrxInfo(final FAOpenItemTrxInfoComputeRequest request) { final AccountConceptualName accountConceptualName = request.getAccountConceptualName(); if (accountConceptualName == null) { return Optional.empty(); } if (I_C_BankStatement.Table_Name.equals(request.getTab...
@Override public void onGLJournalLineReactivated(final SAPGLJournalLine line) { final FAOpenItemTrxInfo openItemTrxInfo = line.getOpenItemTrxInfo(); if (openItemTrxInfo == null) { // shall not happen return; } final AccountConceptualName accountConceptualName = openItemTrxInfo.getAccountConceptualNam...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.base\src\main\java\de\metas\banking\open_items_handler\BankStatementOIHandler.java
1
请在Spring Boot框架中完成以下Java代码
public Mono<Void> delete(User user) { return db .sql("DELETE FROM jhi_user_authority WHERE user_id = :userId") .bind("userId", user.getId()) .then() .then(r2dbcEntityTemplate.delete(User.class).matching(query(where("id").is(user.getId()))).all().then()); } ...
private User updateUserWithAuthorities(User user, List<Tuple2<User, Optional<String>>> tuples) { user.setAuthorities( tuples .stream() .filter(t -> t.getT2().isPresent()) .map(t -> { Authority authority = new Authority(); ...
repos\tutorials-master\jhipster-8-modules\jhipster-8-microservice\gateway-app\src\main\java\com\gateway\repository\UserRepository.java
2
请完成以下Java代码
public String getTernary() { return ternary; } public void setTernary(String ternary) { this.ternary = ternary; } public String getTernary2() { return ternary2; } public void setTernary2(String ternary2) { this.ternary2 = ternary2; }
public String getElvis() { return elvis; } public void setElvis(String elvis) { this.elvis = elvis; } @Override public String toString() { return "SpelConditional{" + "ternary='" + ternary + '\'' + ", ternary2='" + ternary2 + '\'' + ...
repos\tutorials-master\spring-spel\src\main\java\com\baeldung\spring\spel\examples\SpelConditional.java
1
请完成以下Java代码
public class Course { private int id; private String name; private String instructor; private Date enrolmentDate; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getName() { return name; } public void set...
public String getInstructor() { return instructor; } public void setInstructor(String instructor) { this.instructor = instructor; } public Date getEnrolmentDate() { return enrolmentDate; } public void setEnrolmentDate(Date enrolmentDate) { this.enrolmentDate = ...
repos\tutorials-master\apache-cxf-modules\cxf-aegis\src\main\java\com\baeldung\cxf\aegis\Course.java
1
请完成以下Java代码
public void setC_Country_ID (int C_Country_ID) { if (C_Country_ID < 1) set_ValueNoCheck (COLUMNNAME_C_Country_ID, null); else set_ValueNoCheck (COLUMNNAME_C_Country_ID, Integer.valueOf(C_Country_ID)); } /** Get Land. @return Country */ @Override public int getC_Country_ID () { Integer ii = (...
return (java.lang.String)get_Value(COLUMNNAME_Description); } /** Set Standard. @param IsDefault Default value */ @Override public void setIsDefault (boolean IsDefault) { set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); } /** Get Standard. @return Default value */ @Override public...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_Region.java
1
请完成以下Java代码
public ProcessInstance getProcessInstance() { Execution execution = getExecution(); if(execution != null && !(execution.getProcessInstanceId().equals(execution.getId()))){ return processEngine .getRuntimeService() .createProcessInstanceQuery() .processInstanceId(executi...
} } protected void assertTaskAssociated() { if (associationManager.getTask() == null) { throw new ProcessEngineCdiException("No task associated. Call businessProcess.startTask() first."); } } protected void assertCommandContextNotActive() { if(Context.getCommandContext() != null) { thr...
repos\camunda-bpm-platform-master\engine-cdi\core\src\main\java\org\camunda\bpm\engine\cdi\BusinessProcess.java
1
请在Spring Boot框架中完成以下Java代码
ConcurrentKafkaListenerContainerFactoryConfigurer kafkaListenerContainerFactoryConfigurer() { return configurer(); } @Bean(name = "kafkaListenerContainerFactoryConfigurer") @ConditionalOnMissingBean @ConditionalOnThreading(Threading.VIRTUAL) ConcurrentKafkaListenerContainerFactoryConfigurer kafkaListenerContain...
ConcurrentKafkaListenerContainerFactoryConfigurer configurer, ObjectProvider<ConsumerFactory<Object, Object>> kafkaConsumerFactory, ObjectProvider<ContainerCustomizer<Object, Object, ConcurrentMessageListenerContainer<Object, Object>>> kafkaContainerCustomizer) { ConcurrentKafkaListenerContainerFactory<Object, ...
repos\spring-boot-4.0.1\module\spring-boot-kafka\src\main\java\org\springframework\boot\kafka\autoconfigure\KafkaAnnotationDrivenConfiguration.java
2
请完成以下Java代码
public de.metas.aggregation.model.I_C_Aggregation getIncluded_Aggregation() throws RuntimeException { return get_ValueAsPO(COLUMNNAME_Included_Aggregation_ID, de.metas.aggregation.model.I_C_Aggregation.class); } @Override public void setIncluded_Aggregation(de.metas.aggregation.model.I_C_Aggregation Included_Agg...
} /** Get Include Logic. @return If expression is evaluated as true, the item will be included. If evaluated as false, the item will be excluded. */ @Override public java.lang.String getIncludeLogic () { return (java.lang.String)get_Value(COLUMNNAME_IncludeLogic); } /** * Type AD_Reference_ID=540532 ...
repos\metasfresh-new_dawn_uat\backend\de.metas.aggregation\src\main\java-gen\de\metas\aggregation\model\X_C_AggregationItem.java
1
请完成以下Java代码
private boolean isToggleButton() { return toggleButton; } /** * Advice the builder to create a small size button. */ public Builder setSmallSize() { return setSmallSize(true); } /** * Advice the builder if a small size button is needed or not. * * @param smallSize true if small size...
* @param buttonInsets * @see AbstractButton#setMargin(Insets) */ public Builder setButtonInsets(final Insets buttonInsets) { this.buttonInsets = buttonInsets; return this; } private final Insets getButtonInsets() { return buttonInsets; } /** * Sets the <code>defaultCapable</code> prope...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\apps\AppsAction.java
1
请在Spring Boot框架中完成以下Java代码
public class UserAccount { @NotNull(message = "Password must be between 4 to 15 characters") @Size(min = 4, max = 15) private String password; @NotBlank(message = "Name must not be blank") private String name; @Min(value = 18, message = "Age should not be less than 18") private int age; ...
return name; } public void setName(String name) { this.name = name; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public int getAge() { return age; } public void setAg...
repos\tutorials-master\spring-boot-modules\spring-boot-validation\src\main\java\com\baeldung\spring\servicevalidation\domain\UserAccount.java
2
请在Spring Boot框架中完成以下Java代码
public String getLdif() { return this.ldif; } public void setLdif(String ldif) { this.ldif = ldif; } public Validation getValidation() { return this.validation; } public Ssl getSsl() { return this.ssl; } public static class Credential { /** * Embedded LDAP username. */ private @Nullable S...
public void setBundle(@Nullable String bundle) { this.bundle = bundle; } } public static class Validation { /** * Whether to enable LDAP schema validation. */ private boolean enabled = true; /** * Path to the custom schema. */ private @Nullable Resource schema; public boolean isEnabled...
repos\spring-boot-main\module\spring-boot-ldap\src\main\java\org\springframework\boot\ldap\autoconfigure\embedded\EmbeddedLdapProperties.java
2
请完成以下Java代码
public void onNew(final ICalloutRecord calloutRecord) { final IBPartnerDAO bPartnerPA = Services.get(IBPartnerDAO.class); final I_C_BPartner_Location address = calloutRecord.getModel(I_C_BPartner_Location.class); if (!bPartnerPA.existsDefaultAddressInTable(address, null, I_C_BPartner_Location.COLUMNNAME_IsShipT...
{ address.setIsHandOverLocation(true); } else { address.setIsHandOverLocation(false); } // TODO: needs to be moved into de.metas.contracts project // if (!bPartnerPA.existsDefaultAddressInTable(address, null, I_C_BPartner_Location.COLUMNNAME_IsSubscriptionToDefault)) // { // address.setIsSubscript...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\bpartner\callout\C_BPartner_Location_Tab_Callout.java
1
请在Spring Boot框架中完成以下Java代码
public String getRate() { return rate; } public void setRate(final String rate) { this.rate = rate; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + (cInvoiceID == null ? 0 : cInvoiceID.hashCode()); result = prime * result + (discount == null ? 0 ...
if (discountDate == null) { if (other.discountDate != null) { return false; } } else if (!discountDate.equals(other.discountDate)) { return false; } if (discountDays == null) { if (other.discountDays != null) { return false; } } else if (!discountDays.equals(other.discount...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java\de\metas\edi\esb\invoicexport\compudata\Cctop140V.java
2
请完成以下Java代码
static boolean makeCoreDictionary(String inPath, String outPath) { final DictionaryMaker dictionaryMaker = new DictionaryMaker(); final TreeSet<String> labelSet = new TreeSet<String>(); CorpusLoader.walk(inPath, new CorpusLoader.Handler() { @Override public v...
{ if ("m".equals(word.label) || "mq".equals(word.label) || "w".equals(word.label) || "t".equals(word.label)) { if (!TextUtility.isAllChinese(word.value)) return false; } else if ("nr".equals(word.label)) { ...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\corpus\dictionary\NatureDictionaryMaker.java
1
请在Spring Boot框架中完成以下Java代码
public Result<SysDictItem> delete(@RequestParam(name="id",required=true) String id) { Result<SysDictItem> result = new Result<SysDictItem>(); SysDictItem joinSystem = sysDictItemService.getById(id); if(joinSystem==null) { result.error500("未找到对应实体"); }else { boolean ok = sysDictItemService.removeById(id); ...
* @param request * @return */ @RequestMapping(value = "/dictItemCheck", method = RequestMethod.GET) @Operation(summary="字典重复校验接口") public Result<Object> doDictItemCheck(SysDictItem sysDictItem, HttpServletRequest request) { Long num = Long.valueOf(0); LambdaQueryWrapper<SysDictItem> queryWrapper = new Lambda...
repos\JeecgBoot-main\jeecg-boot\jeecg-module-system\jeecg-system-biz\src\main\java\org\jeecg\modules\system\controller\SysDictItemController.java
2
请完成以下Java代码
protected boolean isAutoStoreScriptVariablesEnabled() { ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration(); if(processEngineConfiguration != null) { return processEngineConfiguration.isAutoStoreScriptVariables(); } return false; } public boolea...
} public Collection<Object> values() { return calculateBindingMap().values(); } public void putAll(Map< ? extends String, ? extends Object> toMerge) { for (java.util.Map.Entry<? extends String, ? extends Object> entry : toMerge.entrySet()) { put(entry.getKey(), entry.getValue()); } } publ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\scripting\engine\ScriptBindings.java
1
请完成以下Java代码
public int getSetupTime () { Integer ii = (Integer)get_Value(COLUMNNAME_SetupTime); if (ii == null) return 0; return ii.intValue(); } /** Set Units by Cycles. @param UnitsCycles The Units by Cycles are defined for process type Flow Repetitive Dedicated and indicated the product to be manufactured ...
return 0; return ii.intValue(); } /** Set Working Time. @param WorkingTime Workflow Simulation Execution Time */ @Override public void setWorkingTime (int WorkingTime) { set_Value (COLUMNNAME_WorkingTime, Integer.valueOf(WorkingTime)); } /** Get Working Time. @return Workflow Simulation Execution...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\eevolution\model\X_PP_Order_Workflow.java
1
请完成以下Java代码
public class PosKeyGenerate extends JavaProcess { private int posKeyLayoutId = 0; private int productCategoryId = 0; @Override protected void prepare() { for ( ProcessInfoParameter para : getParametersAsArray()) { if ( para.getParameterName().equals("C_POSKeyLayout_ID") ) posKeyLayoutId = para.ge...
params = new Object[] {productCategoryId}; } Query query = new Query(getCtx(), MProduct.Table_Name, where, get_TrxName()) .setParameters(params) .setOnlyActiveRecords(true) .setOrderBy("Value"); List<MProduct> products = query.list(MProduct.class); for (MProduct product : products ) { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java-legacy\org\compiere\process\PosKeyGenerate.java
1
请完成以下Java代码
public BigDecimal getQtyForecasted() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_QtyForecasted); return bd != null ? bd : BigDecimal.ZERO; } @Override public void setQtyReserved (final @Nullable BigDecimal QtyReserved) { set_ValueNoCheck (COLUMNNAME_QtyReserved, QtyReserved); } @Override p...
} @Override public BigDecimal getQtyToMove() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_QtyToMove); return bd != null ? bd : BigDecimal.ZERO; } @Override public void setQtyToProduce (final @Nullable BigDecimal QtyToProduce) { set_ValueNoCheck (COLUMNNAME_QtyToProduce, QtyToProduce); } @...
repos\metasfresh-new_dawn_uat\backend\de.metas.material\cockpit\src\main\java-gen\de\metas\material\cockpit\model\X_QtyDemand_QtySupply_V.java
1
请完成以下Java代码
public static boolean isPlanItemAlreadyCompleted(CommandContext commandContext, PlanItemInstanceEntity planItemInstance) { List<PlanItemInstanceEntity> planItemInstances = CommandContextUtil.getPlanItemInstanceEntityManager(commandContext) .findByCaseInstanceIdAndPlanItemId(planItemInstance.getCaseI...
*/ public static boolean isParentCompletionRuleForPlanItemEqualToType(PlanItemInstanceEntity planItemInstance, String parentCompletionRuleType) { if (planItemInstance.getPlanItem() == null) { throw new FlowableException("Plan item could not be found for " + planItemInstance); } ...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\util\PlanItemInstanceContainerUtil.java
1