instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
public List<HistoricEntityLink> getHistoricEntityLinkChildrenForCaseInstance(String caseInstanceId) { return commandExecutor.execute(new GetHistoricEntityLinkChildrenForCaseInstanceCmd(caseInstanceId)); } @Override public List<HistoricEntityLink> getHistoricEntityLinkChildrenWithSameRootAsCaseInsta...
@Override public HistoricTaskLogEntryBuilder createHistoricTaskLogEntryBuilder() { return new HistoricTaskLogEntryBuilderImpl(commandExecutor, configuration.getTaskServiceConfiguration()); } @Override public HistoricTaskLogEntryQuery createHistoricTaskLogEntryQuery() { return new Histor...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\CmmnHistoryServiceImpl.java
1
请在Spring Boot框架中完成以下Java代码
public class ParentAwareNamingStrategy extends MetadataNamingStrategy implements ApplicationContextAware { @SuppressWarnings("NullAway.Init") private ApplicationContext applicationContext; private boolean ensureUniqueRuntimeObjectNames; public ParentAwareNamingStrategy(JmxAttributeSource attributeSource) { sup...
private boolean parentContextContainsSameBean(ApplicationContext context, @Nullable String beanKey) { if (context.getParent() == null) { return false; } try { ApplicationContext parent = this.applicationContext.getParent(); Assert.state(parent != null, "'parent' must not be null"); Assert.state(beanKe...
repos\spring-boot-4.0.1\core\spring-boot-autoconfigure\src\main\java\org\springframework\boot\autoconfigure\jmx\ParentAwareNamingStrategy.java
2
请完成以下Java代码
public static Attributes ofList(final List<Attribute> list) { return list.isEmpty() ? EMPTY : new Attributes(list); } public boolean hasAttribute(final @NonNull AttributeCode attributeCode) { return byCode.containsKey(attributeCode); } @NonNull public Attribute getAttribute(@NonNull final AttributeCode att...
public Attributes retainOnly(@NonNull final Set<AttributeCode> attributeCodes, @NonNull final Attributes fallback) { Check.assumeNotEmpty(attributeCodes, "attributeCodes is not empty"); final ArrayList<Attribute> newList = new ArrayList<>(); for (AttributeCode attributeCode : attributeCodes) { if (hasAttri...
repos\metasfresh-new_dawn_uat\backend\de.metas.inventory.mobileui\src\main\java\de\metas\inventory\mobileui\deps\products\Attributes.java
1
请在Spring Boot框架中完成以下Java代码
public void beforeDelete(final I_C_Order order) { salesOrderService.extractSalesProposalInfo(order).ifPresent(salesOrderService::unlinkProposalFromProject); } @DocValidate(timings = ModelValidator.TIMING_AFTER_COMPLETE) public void afterComplete(final I_C_Order order) { salesOrderService.extractSalesOrderInfo...
{ salesOrderService.extractSalesOrderInfo(order).ifPresent(this::beforeVoid_SalesOrder); } } private void beforeVoid_Proposal( @NonNull final RepairSalesProposalInfo proposal, @NonNull final DocTimingType timing) { if (timing.isVoid() || timing.isReverse()) { salesOrderService.unlinkProposalFromPr...
repos\metasfresh-new_dawn_uat\backend\de.metas.servicerepair.base\src\main\java\de\metas\servicerepair\sales_order\interceptor\C_Order.java
2
请在Spring Boot框架中完成以下Java代码
public MessageInstance sendFor(MessageInstance message, Operation operation, ConcurrentMap<QName, URL> overridenEndpointAddresses) throws Exception { Object[] inArguments = this.getInArguments(message); Object[] outArguments = this.getOutArguments(operation); // For each out parameters, a value...
private Object[] safeSend(Object[] arguments, ConcurrentMap<QName, URL> overridenEndpointAddresses) throws Exception { Object[] results = null; results = this.service.getClient().send(this.name, arguments, overridenEndpointAddresses); if (results == null) { results = new Object[] {...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\webservice\WSOperation.java
2
请完成以下Java代码
public Stream<? extends IViewRow> streamByIds(final DocumentIdsSelection rowIds) { return rows.streamByIds(rowIds); } @Override public void notifyRecordsChanged( @NonNull final TableRecordReferenceSet recordRefs, final boolean watchedByFrontend) { // TODO Auto-generated method stub } @Override publ...
} /** * @return the {@code M_ShipmentSchedule_ID} of the packageable line that is currently selected within the {@link PackageableView}. */ @NonNull public ShipmentScheduleId getCurrentShipmentScheduleId() { return currentShipmentScheduleId; } @Override public void invalidateAll() { rows.invalidateAll...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\picking\pickingslot\PickingSlotView.java
1
请在Spring Boot框架中完成以下Java代码
private static InvoiceId extractInvoiceId(@NonNull final I_C_InvoicePaySchedule record) { return InvoiceId.ofRepoId(record.getC_Invoice_ID()); } private void save0(@NonNull final InvoicePaySchedule invoicePaySchedule) { final InvoiceId invoiceId = invoicePaySchedule.getInvoiceId(); final HashMap<InvoicePaySc...
invoiceIds.forEach(invoiceId -> updateById0(invoiceId, updater)); }); } public void updateById(@NonNull final InvoiceId invoiceId, @NonNull final Consumer<InvoicePaySchedule> updater) { trxManager.runInThreadInheritedTrx(() -> updateById0(invoiceId, updater)); } private void updateById0(@NonNull final Invoic...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\invoice\paymentschedule\repository\InvoicePayScheduleLoaderAndSaver.java
2
请完成以下Java代码
public void setGroupIdIn(String[] groupIdIn) { this.groupIdIn = groupIdIn; } @CamundaQueryParam(value="resourceType", converter = IntegerConverter.class) public void setResourceType(int resourceType) { this.resourceType = resourceType; } @CamundaQueryParam("resourceId") public void setResourceId(S...
if (userIdIn != null) { query.userIdIn(userIdIn); } if (groupIdIn != null) { query.groupIdIn(groupIdIn); } if (resourceType != null) { query.resourceType(resourceType); } if (resourceId != null) { query.resourceId(resourceId); } } @Override protected void apply...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\authorization\AuthorizationQueryDto.java
1
请完成以下Java代码
public I_M_Product getM_Product() { return product; } @Override public void setM_Product(final I_M_Product product) { this.product = product; } @Override public String getName() { return name; } @Override public void setName(final String name) { this.name = name; } @Override public I_C_UOM g...
@Override public boolean isNegateQtyInReport() { return negateQtyInReport; } @Override public void setNegateQtyInReport(final boolean negateQtyInReport) { this.negateQtyInReport = negateQtyInReport; } @Override public String getComponentType() { return componentType; } @Override public void setCom...
repos\metasfresh-new_dawn_uat\backend\de.metas.materialtracking\src\main\java\de\metas\materialtracking\qualityBasedInvoicing\impl\QualityInspectionLine.java
1
请完成以下Java代码
public boolean hasConfigurationForTopics(String[] topics) { return this.topicAllowListManager.areAllowed(topics); } public TopicCreation forKafkaTopicAutoCreation() { return this.kafkaTopicAutoCreationConfig; } public ListenerContainerFactoryResolver.Configuration forContainerFactoryResolver() { return this...
this.replicationFactor = -1; } TopicCreation(boolean shouldCreateTopics) { this.shouldCreateTopics = shouldCreateTopics; this.numPartitions = 1; this.replicationFactor = -1; } public int getNumPartitions() { return this.numPartitions; } public short getReplicationFactor() { return this.rep...
repos\spring-kafka-main\spring-kafka\src\main\java\org\springframework\kafka\retrytopic\RetryTopicConfiguration.java
1
请完成以下Java代码
public String showHomePage(HttpServletRequest req, Model model) { addUserAttributes(model); return "comparison/home"; } @GetMapping("/admin") public String adminOnly(HttpServletRequest req, Model model) { addUserAttributes(model); model.addAttribute("adminContent", "only adm...
model.addAttribute("username", user.getUsername()); Collection<GrantedAuthority> authorities = user.getAuthorities(); for (GrantedAuthority authority : authorities) { if (authority.getAuthority() .contains("USER")) { model.addAttribute("r...
repos\tutorials-master\security-modules\apache-shiro\src\main\java\com\baeldung\comparison\springsecurity\web\SpringController.java
1
请完成以下Java代码
public void lock() { sync.acquire(1); } @Override public void lockInterruptibly() throws InterruptedException { sync.acquireInterruptibly(1); } @Override public boolean tryLock() { return sync.tryRelease(1); } @Override public boolean tryLock(long time, Tim...
public static void main(String[] args) { MutexLock lock = new MutexLock(); final User user = new User(); for (int i = 0; i < 100; i++) { new Thread(() -> { lock.lock(); try { user.setAge(user.getAge() + 1); Syste...
repos\spring-boot-student-master\spring-boot-student-concurrent\src\main\java\com\xiaolyuh\MutexLock.java
1
请完成以下Java代码
public class Cheque6CH { @XmlElement(name = "ChqTp") @XmlSchemaType(name = "string") protected ChequeType2Code chqTp; @XmlElement(name = "DlvryMtd") protected ChequeDeliveryMethod1Choice dlvryMtd; /** * Gets the value of the chqTp property. * * @return * possible objec...
* {@link ChequeDeliveryMethod1Choice } * */ public ChequeDeliveryMethod1Choice getDlvryMtd() { return dlvryMtd; } /** * Sets the value of the dlvryMtd property. * * @param value * allowed object is * {@link ChequeDeliveryMethod1Choice } * ...
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.sepa\schema-pain_001_01_03_ch_02\src\main\java-xjc\de\metas\payment\sepa\jaxb\sct\pain_001_001_03_ch_02\Cheque6CH.java
1
请完成以下Java代码
public class M_ProductPrice { /** * Set {@link I_M_ProductPrice}'s C_UOM_ID to {@link I_M_Product}'s C_UOM_ID * * @param productPrice * @param field */ @CalloutMethod(columnNames = { I_M_ProductPrice.COLUMNNAME_M_Product_ID }) public void onProductID(final I_M_ProductPrice productPrice, final ICalloutField...
final PriceListVersionId priceListVersionId = PriceListVersionId.ofRepoIdOrNull(productPrice.getM_PriceList_Version_ID()); if (priceListVersionId == null) { return; } final IPriceListDAO priceListsRepo = Services.get(IPriceListDAO.class); final TaxCategoryId defaultTaxCategoryId = priceListsRepo .getD...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\pricing\callout\M_ProductPrice.java
1
请完成以下Java代码
protected org.compiere.model.POInfo initPO(final Properties ctx) { return org.compiere.model.POInfo.getPOInfo(Table_Name); } /** * Attribute AD_Reference_ID=540749 * Reference name: C_BPartner_Attribute */ public static final int ATTRIBUTE_AD_Reference_ID=540749; /** Verband D = K_Verband_D */ public st...
public void setC_BPartner_Attribute_ID (final int C_BPartner_Attribute_ID) { if (C_BPartner_Attribute_ID < 1) set_ValueNoCheck (COLUMNNAME_C_BPartner_Attribute_ID, null); else set_ValueNoCheck (COLUMNNAME_C_BPartner_Attribute_ID, C_BPartner_Attribute_ID); } @Override public int getC_BPartner_Attribute_...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_BPartner_Attribute.java
1
请在Spring Boot框架中完成以下Java代码
public class UserOperationLogRestServiceImpl implements UserOperationLogRestService { protected ObjectMapper objectMapper; protected ProcessEngine processEngine; public UserOperationLogRestServiceImpl(ObjectMapper objectMapper, ProcessEngine processEngine) { this.objectMapper = objectMapper; this.proces...
@Override public Response setAnnotation(String operationId, AnnotationDto annotationDto) { String annotation = annotationDto.getAnnotation(); processEngine.getHistoryService() .setAnnotationForOperationLogById(operationId, annotation); return Response.noContent().build(); } @Override publ...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\impl\history\UserOperationLogRestServiceImpl.java
2
请完成以下Java代码
public int getRevision() { return revision; } public void setRevision(int revision) { this.revision = revision; } public String getTenantId() { return tenantId; } public void setTenantId(String tenantId) { this.tenantId = tenantId; } public Integer getType() { return type; } ...
public void setRemovalTime(Date removalTime) { this.removalTime = removalTime; } @Override public String toString() { return this.getClass().getSimpleName() + "[id=" + id + ", revision=" + revision + ", name=" + name + ", deploymentId=" + deploymentId ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\ByteArrayEntity.java
1
请在Spring Boot框架中完成以下Java代码
private void saveAndPush(@NonNull final WeekSupply weeklySupply) { weekSupplyRepository.save(weeklySupply); senderToMetasfreshService.syncAfterCommit().add(weeklySupply); } @Override public Product getProductById(final long productId) { return productRepository.getOne(productId); } @Override public void...
// // Quantity if (!isNew) { final BigDecimal qtyOld = productSupply.getQty(); if (qty.compareTo(qtyOld) != 0) { logger.warn("Changing quantity {}->{} for {} because of planning supply: {}", qtyOld, qty, productSupply, request); } } productSupply.setQtyUserEntered(qty); productSupply.setQty...
repos\metasfresh-new_dawn_uat\misc\services\procurement-webui\procurement-webui-backend\src\main\java\de\metas\procurement\webui\service\impl\ProductSuppliesService.java
2
请完成以下Java代码
public ProfileModel getProfileByUsername(@AuthenticationPrincipal UserJWTPayload jwtPayload, @PathVariable UserName username) { return ofNullable(jwtPayload) .map(JWTPayload::getUserId) .map(viewerId -> profileService.viewProfile(viewe...
@DeleteMapping("/{username}/follow") public ProfileModel unfollowUser(@AuthenticationPrincipal UserJWTPayload followerPayload, @PathVariable UserName username) { return fromProfile( profileService.unfollowAndViewProfile(followerPayload.getUserId(), userna...
repos\realworld-springboot-java-master\src\main\java\io\github\raeperd\realworld\application\user\ProfileRestController.java
1
请完成以下Java代码
private DDOrderLineToAllocate toDDOrderLineToAllocate(@NonNull final I_DD_OrderLine_Or_Alternative ddOrderLineOrAlt) { final I_DD_OrderLine ddOrderLine; final int ddOrderLineAlternativeId; final AttributeSetInstanceId fromAsiId; final AttributeSetInstanceId toAsiId; if (InterfaceWrapperHelper.isInstanceOf(dd...
} return DDOrderLineToAllocate.builder() .uomConversionBL(uomConversionBL) // .ddOrderId(DDOrderId.ofRepoId(ddOrderLine.getDD_Order_ID())) .ddOrderLineId(DDOrderLineId.ofRepoId(ddOrderLine.getDD_OrderLine_ID())) .ddOrderLineAlternativeId(ddOrderLineAlternativeId) .description(ddOrderLine.getD...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\distribution\ddorder\movement\schedule\generate_from_hu\DDOrderLineToAllocateFactory.java
1
请完成以下Java代码
class DelayedLiveReloadTrigger implements Runnable { private static final long SHUTDOWN_TIME = 1000; private static final long SLEEP_TIME = 500; private static final long TIMEOUT = 30000; private static final Log logger = LogFactory.getLog(DelayedLiveReloadTrigger.class); private final OptionalLiveReloadServe...
@Override public void run() { try { Thread.sleep(this.shutdownTime); long start = System.currentTimeMillis(); while (!isUp()) { long runTime = System.currentTimeMillis() - start; if (runTime > this.timeout) { return; } Thread.sleep(this.sleepTime); } logger.info("Remote server has...
repos\spring-boot-4.0.1\module\spring-boot-devtools\src\main\java\org\springframework\boot\devtools\remote\client\DelayedLiveReloadTrigger.java
1
请完成以下Java代码
public @Nullable String getMethod() { return this.method; } @NullUnmarked public void setMethod(String method) { this.method = (method != null) ? method.toUpperCase(Locale.ENGLISH) : null; } private SecurityContext getContext() { ApplicationContext appContext = SecurityWebApplicationContextUtils .findRe...
+ "context. There must be at least one in order to support expressions in JSP 'authorize' tags."); } private WebInvocationPrivilegeEvaluator getPrivilegeEvaluator() throws IOException { WebInvocationPrivilegeEvaluator privEvaluatorFromRequest = (WebInvocationPrivilegeEvaluator) getRequest() .getAttribute(WebAtt...
repos\spring-security-main\taglibs\src\main\java\org\springframework\security\taglibs\authz\AbstractAuthorizeTag.java
1
请完成以下Java代码
public String getConditionsType() { return X_C_Flatrate_Conditions.TYPE_CONDITIONS_Subscription; } /** * Set the quantity from the term. */ @Override public Quantity calculateQtyEntered(@NonNull final I_C_Invoice_Candidate icRecord) { final UomId uomId = HandlerTools.retrieveUomId(icRecord); final I_C...
final Timestamp firstDayOfNewTerm = getGetExtentionDateOfNewTerm(term); dateOrdered = firstDayOfNewTerm; } return dateOrdered; } /** * For the given <code>term</code> and its <code>C_Flatrate_Transition</code> record, this method returns the term's start date minus the period specified by <code>TermOfNotice...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\subscription\invoicecandidatehandler\FlatrateTermSubscription_Handler.java
1
请在Spring Boot框架中完成以下Java代码
public String getPlanItemInstanceId() { return planItemInstanceId; } public void setPlanItemInstanceId(String planItemInstanceId) { this.planItemInstanceId = planItemInstanceId; } public String getCaseInstanceId() { return caseInstanceId; } public void setCaseInstanceI...
this.variableNameLike = variableNameLike; } @JsonTypeInfo(use = Id.CLASS, defaultImpl = QueryVariable.class) public List<QueryVariable> getVariables() { return variables; } public void setVariables(List<QueryVariable> variables) { this.variables = variables; } public void ...
repos\flowable-engine-main\modules\flowable-cmmn-rest\src\main\java\org\flowable\cmmn\rest\service\api\history\variable\HistoricVariableInstanceQueryRequest.java
2
请完成以下Java代码
public final boolean isReadonlyUI() { return huPIAttribute.isReadOnly(); } @Override public final boolean isDisplayedUI() { return huPIAttribute.isDisplayed(); } @Override public final boolean isMandatory() { return huPIAttribute.isMandatory(); } @Override public final int getDisplaySeqNo() { fi...
if (seqNo > 0) { return seqNo; } // Fallback: if SeqNo was not set, return max int (i.e. show them last) return Integer.MAX_VALUE; } @Override public boolean isOnlyIfInProductAttributeSet() { return huPIAttribute.isOnlyIfInProductAttributeSet(); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\attribute\impl\AbstractHUAttributeValue.java
1
请完成以下Java代码
public List<ReceiptScheduleId> retainLUQtySchedules(@NonNull final List<ReceiptScheduleId> receiptSchedules) { return queryBL.createQueryBuilder(I_C_OrderLine.class) .addOnlyActiveRecordsFilter() .addNotNull(I_C_OrderLine.COLUMNNAME_QtyLU) .addCompareFilter(I_C_OrderLine.COLUMNNAME_QtyLU, CompareQueryFil...
if (query.getWarehouseId() != null) { builder.addEqualsFilter(I_M_ReceiptSchedule.COLUMNNAME_M_Warehouse_ID, query.getWarehouseId()); } if (query.getOrgId() != null) { builder.addEqualsFilter(I_M_ReceiptSchedule.COLUMNNAME_AD_Org_ID, query.getOrgId()); } if (query.getAttributesKey() != null) { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\inoutcandidate\api\impl\ReceiptScheduleDAO.java
1
请完成以下Java代码
public int getSupportUnits () { Integer ii = (Integer)get_Value(COLUMNNAME_SupportUnits); if (ii == null) return 0; return ii.intValue(); } /** * SystemStatus AD_Reference_ID=374 * Reference name: AD_System Status */ public static final int SYSTEMSTATUS_AD_Reference_ID=374; /** Evaluation = E */...
@Override public void setVersion (java.lang.String Version) { set_ValueNoCheck (COLUMNNAME_Version, Version); } /** Get Version. @return Version of the table definition */ @Override public java.lang.String getVersion () { return (java.lang.String)get_Value(COLUMNNAME_Version); } /** Set ZK WebUI UR...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_System.java
1
请完成以下Java代码
public void autoDeployResources(Set<Resource> resources) { // Only log the description of `Resource` objects since log libraries that serialize them and // therefore consume the input stream make the deployment fail since the input stream has // already been consumed. Set<String> resourceDescriptions = ...
public void enterLicenseKeyFailed(URL licenseKeyFile, Exception e) { logWarn("031", "Failed setting up license key: {}", licenseKeyFile, e); } public void configureJobExecutorPool(Integer corePoolSize, Integer maxPoolSize) { logInfo("040", "Setting up jobExecutor with corePoolSize={}, maxPoolSize:{}", core...
repos\camunda-bpm-platform-master\spring-boot-starter\starter\src\main\java\org\camunda\bpm\spring\boot\starter\util\SpringBootProcessEngineLogger.java
1
请完成以下Java代码
public <T> T getCustomMapper(Class<T> type) { return sqlSession.getMapper(type); } // query factory methods //////////////////////////////////////////////////// public DeploymentQueryImpl createDeploymentQuery() { return new DeploymentQueryImpl(); } public ModelQueryImpl createMod...
} public HistoricTaskInstanceQueryImpl createHistoricTaskInstanceQuery() { return new HistoricTaskInstanceQueryImpl(); } public HistoricDetailQueryImpl createHistoricDetailQuery() { return new HistoricDetailQueryImpl(); } public HistoricVariableInstanceQueryImpl createHistoricVari...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\db\DbSqlSession.java
1
请完成以下Spring Boot application配置
server: port: 8079 # rocketmq 配置项,对应 RocketMQProperties 配置类 rocketmq: name-server: 127.0.0.1:9876 # RocketMQ Namesrv # Producer 配置项 producer: group: demo-produc
er-group # 生产者分组 send-message-timeout: 3000 # 发送消息超时时间,单位:毫秒。默认为 3000 。
repos\SpringBoot-Labs-master\lab-39\lab-39-rocketmq\src\main\resources\application.yaml
2
请完成以下Java代码
private void judgePageBoudary() { isFirstPage = pageNum == 1; isLastPage = pageNum == pages; } public int getPageNum() { return pageNum; } public void setPageNum(int pageNum) { this.pageNum = pageNum; } public int getPageSize() { return pageSize; } ...
return list; } public void setList(List<T> list) { this.list = list; } public boolean isIsFirstPage() { return isFirstPage; } public void setIsFirstPage(boolean isFirstPage) { this.isFirstPage = isFirstPage; } public boolean isIsLastPage() { return isL...
repos\spring-boot-student-master\spring-boot-student-drools\src\main\java\com\xiaolyuh\page\PageInfo.java
1
请完成以下Java代码
public void setProcessing (boolean Processing) { set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); } /** Get Process Now. @return Process Now */ public boolean isProcessing () { Object oo = get_Value(COLUMNNAME_Processing); if (oo != null) { if (oo instanceof Boolean) return ...
Number of recurring runs */ public void setRunsMax (int RunsMax) { set_Value (COLUMNNAME_RunsMax, Integer.valueOf(RunsMax)); } /** Get Maximum Runs. @return Number of recurring runs */ public int getRunsMax () { Integer ii = (Integer)get_Value(COLUMNNAME_RunsMax); if (ii == null) return 0; r...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_Recurring.java
1
请完成以下Java代码
private boolean checkAvailableActions() { initActions(); final boolean available = checkAvailable(this); return available; } /** * Check and update menu item if available * * @return true if item is available */ private boolean checkAvailable(MenuElement item) { final Component itemComp = item.ge...
itemComp.setEnabled(true); } return true; } private final IContextMenuAction getAction(MenuElement me) { final Component c = me.getComponent(); if (c instanceof JComponent) { final JComponent jc = (JComponent)c; final IContextMenuAction action = (IContextMenuAction)jc.getClientProperty(ATTR_Action)...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java\org\compiere\grid\ed\menu\EditorContextPopupMenu.java
1
请完成以下Java代码
protected void dispatchActivitiesCanceledIfNeeded(EventSubscriptionEntity eventSubscription, ExecutionEntity execution, ActivityImpl boundaryEventActivity, CommandContext commandContext) { ActivityBehavior boundaryActivityBehavior = boundaryEventActivity.getActivityBehavior(); if (boundaryActivityBehavi...
dispatchActivityCancelled(eventSubscription, execution, activity, commandContext); } } protected void dispatchActivityCancelled(EventSubscriptionEntity eventSubscription, ExecutionEntity execution, ActivityImpl activity, CommandContext commandContext) { commandContext.getEventDispatcher().dispa...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\event\AbstractEventHandler.java
1
请完成以下Java代码
class SpringPropertyModelHandler extends ModelHandlerBase { private final @Nullable Environment environment; SpringPropertyModelHandler(Context context, @Nullable Environment environment) { super(context); this.environment = environment; } @Override public void handle(ModelInterpretationContext intercon, Mo...
if (OptionHelper.isNullOrEmpty(propertyModel.getName()) || OptionHelper.isNullOrEmpty(source)) { addError("The \"name\" and \"source\" attributes of <springProperty> must be set"); } PropertyModelHandlerHelper.setProperty(intercon, propertyModel.getName(), getValue(source, defaultValue), scope); } private...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\logging\logback\SpringPropertyModelHandler.java
1
请完成以下Java代码
public QtyTU computeQtyTUsOfTotalCUs(@NonNull final Quantity totalCUs, @NonNull final ProductId productId) { return computeQtyTUsOfTotalCUs(totalCUs, productId, QuantityUOMConverters.noConversion()); } @NonNull public QtyTU computeQtyTUsOfTotalCUs(@NonNull final Quantity totalCUs, @NonNull final ProductId produc...
if (qtyCUsPerTU == null) { throw new AdempiereException("Cannot calculate qty of CUs for infinite capacity"); } return qtyTU.computeTotalQtyCUsUsingQtyCUsPerTU(qtyCUsPerTU); } public Capacity toCapacity() { if (productId == null) { throw new AdempiereException("Cannot convert to Capacity when no ...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\HUPIItemProduct.java
1
请在Spring Boot框架中完成以下Java代码
public String getDATE() { return date; } /** * Sets the value of the date property. * * @param value * allowed object is * {@link String } * */ public void setDATE(String value) { this.date = value; } /** * Gets the value of the...
* Gets the value of the quantitymeasureunit property. * * @return * possible object is * {@link String } * */ public String getQUANTITYMEASUREUNIT() { return quantitymeasureunit; } /** * Sets the value of the quantitymeasureunit property. * ...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_stepcom_desadv\de\metas\edi\esb\jaxb\stepcom\desadv\DPLAC1.java
2
请完成以下Java代码
public class CompletionEvaluationResult { protected final boolean isCompletable; protected final boolean shouldBeCompleted; protected final PlanItemInstanceEntity planItemInstance; public CompletionEvaluationResult(boolean isCompletable, boolean shouldBeCompleted, PlanItemInstanceEntity planIte...
* required rules, availability state and the plan items autocomplete mode. If autocomplete is activated, this flag will represent the same as the * completable one, if not, it might be different. * * @return whether the plan item should be completed */ public boolean shouldBeCompleted() { ...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\util\CompletionEvaluationResult.java
1
请完成以下Java代码
public boolean isReadOnly() { return this.fileSystem.isReadOnly(); } @Override public long getTotalSpace() throws IOException { return 0; } @Override public long getUsableSpace() throws IOException { return 0; } @Override public long getUnallocatedSpace() throws IOException { return 0; } @Overrid...
@Override public Object getAttribute(String attribute) throws IOException { try { return getJarPathFileStore().getAttribute(attribute); } catch (UncheckedIOException ex) { throw ex.getCause(); } } protected FileStore getJarPathFileStore() { try { return Files.getFileStore(this.fileSystem.getJarPa...
repos\spring-boot-4.0.1\loader\spring-boot-loader\src\main\java\org\springframework\boot\loader\nio\file\NestedFileStore.java
1
请完成以下Java代码
public void updateProcessInstanceLockTime(String processInstanceId, Date lockDate, String lockOwner, Date expirationTime) { HashMap<String, Object> params = new HashMap<>(); params.put("id", processInstanceId); params.put("lockTime", lockDate); params.put("expirationTime", expirationTime...
for (ExecutionQueryImpl orExecutionQuery : executionQuery.getOrQueryObjects()) { setSafeInValueLists(orExecutionQuery); } } } protected void setSafeInValueLists(ProcessInstanceQueryImpl processInstanceQuery) { if (processInstanceQuery.getProcessInstanceIds() != n...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\persistence\entity\data\impl\MybatisExecutionDataManager.java
1
请完成以下Java代码
public class BPartnerCompositeRestUtils { public static Predicate<BPartnerLocation> createLocationFilterFor(@NonNull final IdentifierString locationIdentifier) { return l -> matches(locationIdentifier, l); } public static boolean matches( @NonNull final IdentifierString locationIdentifier, @NonNull final B...
case GLN: throw new AdempiereException("IdentifierStrings with type=" + Type.GLN + " are not supported for contacts") .appendParametersToMessage() .setParameter("contactIdentifier", contactIdentifier); case METASFRESH_ID: return contactIdentifier.asMetasfreshId().equals(MetasfreshId.of(contact.ge...
repos\metasfresh-new_dawn_uat\backend\de.metas.business.rest-api-impl\src\main\java\de\metas\rest_api\v1\bpartner\bpartnercomposite\BPartnerCompositeRestUtils.java
1
请完成以下Java代码
public OrderItemBuilder transactionReference(final ITableRecordReference transactionReference) { innerBuilder.transactionReference(transactionReference); return this; } public OrderItemBuilder dimension(final Dimension dimension) { innerBuilder.dimension(dimension); return this; } public Purch...
Check.assumeEquals(id, purchaseOrderItem.getPurchaseCandidateId(), "The given purchaseOrderItem's purchaseCandidateId needs to be equal to this instance's id; purchaseOrderItem={}; this={}", purchaseOrderItem, this); purchaseOrderItems.add(purchaseOrderItem); } public Quantity getPurchasedQty() { retur...
repos\metasfresh-new_dawn_uat\backend\de.metas.purchasecandidate.base\src\main\java\de\metas\purchasecandidate\PurchaseCandidate.java
1
请完成以下Java代码
protected final int getAD_Form_ID() { return _adFormId; } private final synchronized I_AD_Form getAD_Form() { if (!_adFormLoaded) { _adForm = retrieveAD_Form(); _adFormLoaded = true; } return _adForm; } private final I_AD_Form retrieveAD_Form() { final IContextMenuActionContext context = getC...
final int adFormId = getAD_Form_ID(); final Boolean formAccess = Env.getUserRolePermissions().checkFormAccess(adFormId); if (formAccess == null || !formAccess) { return null; } // Retrieve the form final I_AD_Form form = InterfaceWrapperHelper.create(ctx, adFormId, I_AD_Form.class, ITrx.TRXNAME_None); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java\org\adempiere\ui\OpenFormContextMenuAction.java
1
请完成以下Java代码
static SslManagerBundle from(TrustManager... trustManagers) { Assert.notNull(trustManagers, "'trustManagers' must not be null"); KeyManagerFactory defaultKeyManagerFactory = createDefaultKeyManagerFactory(); TrustManagerFactory defaultTrustManagerFactory = createDefaultTrustManagerFactory(); return of(defaultKe...
return trustManagerFactory; } private static KeyManagerFactory createDefaultKeyManagerFactory() { String defaultAlgorithm = KeyManagerFactory.getDefaultAlgorithm(); KeyManagerFactory keyManagerFactory; try { keyManagerFactory = KeyManagerFactory.getInstance(defaultAlgorithm); keyManagerFactory.init(null,...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\ssl\SslManagerBundle.java
1
请完成以下Java代码
public boolean isLineTypeIncluded() { return LINETYPE_IncludedLineSet.equals(this.getLineType()); } public int getIncluded_ReportLineSet_ID() { return this.get_ValueAsInt("Included_ReportLineSet_ID"); } public boolean isSuppressZeroLine() { return this.get_ValueAsBoolean("IsSuppressZeroLine"); } @Ov...
{ StringBuffer traceStr2 = new StringBuffer(traceStr); if (traceStr2.length() > 0) traceStr2.append(" - "); traceStr2.append(line.getName()); if (trace.contains(line.getPA_ReportLine_ID())) { throw new AdempiereException("@PA_ReportLine_ID@ Loop Detected: "+traceStr2.toString()); // TODO: translate ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\report\MReportLine.java
1
请完成以下Java代码
public class RateLimiterAspect { private static final ConcurrentMap<String, com.google.common.util.concurrent.RateLimiter> RATE_LIMITER_CACHE = new ConcurrentHashMap<>(); @Pointcut("@annotation(com.xkcoding.ratelimit.guava.annotation.RateLimiter)") public void rateLimit() { } @Around("rateLimit()...
double qps = rateLimiter.qps(); if (RATE_LIMITER_CACHE.get(method.getName()) == null) { // 初始化 QPS RATE_LIMITER_CACHE.put(method.getName(), com.google.common.util.concurrent.RateLimiter.create(qps)); } log.debug("【{}】的QPS设置为: {}", method.getName(), RA...
repos\spring-boot-demo-master\demo-ratelimit-guava\src\main\java\com\xkcoding\ratelimit\guava\aspect\RateLimiterAspect.java
1
请完成以下Java代码
public class MigrationMerge extends JavaProcess { private I_AD_Migration migrationFrom; private I_AD_Migration migrationTo; /** * * Process to merge two migrations together * * @author Paul Bowden, Adaxa Pty Ltd * */ @Override protected String doIt() throws Exception { if ( migrationFrom == null...
ProcessInfoParameter[] params = getParametersAsArray(); for ( ProcessInfoParameter p : params) { String para = p.getParameterName(); if ( para.equals("AD_MigrationFrom_ID") ) fromId = p.getParameterAsInt(); else if ( para.equals("AD_MigrationTo_ID") ) toId = p.getParameterAsInt(); } // launch...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\process\MigrationMerge.java
1
请完成以下Java代码
public WFActivityStatus computeActivityState(final WFProcess wfProcess, final WFActivity wfActivity) { final PickingJob pickingJob = getPickingJob(wfProcess); return computeActivityState(pickingJob); } public static WFActivityStatus computeActivityState(final PickingJob pickingJob) { return pickingJob.getPic...
if (pickingSlotSuggestions.isEmpty()) { return JsonScannedBarcodeSuggestions.EMPTY; } return pickingSlotSuggestions.stream() .map(SetPickingSlotWFActivityHandler::toJson) .collect(JsonScannedBarcodeSuggestions.collect()); } private static JsonScannedBarcodeSuggestion toJson(final PickingSlotSuggest...
repos\metasfresh-new_dawn_uat\backend\de.metas.picking.rest-api\src\main\java\de\metas\picking\workflow\handlers\activity_handlers\SetPickingSlotWFActivityHandler.java
1
请完成以下Java代码
public class X_AD_WF_ActivityResult extends org.compiere.model.PO implements I_AD_WF_ActivityResult, org.compiere.model.I_Persistent { private static final long serialVersionUID = 400558170L; /** Standard Constructor */ public X_AD_WF_ActivityResult (final Properties ctx, final int AD_WF_ActivityResult_ID, ...
@Override public void setAttributeName (final java.lang.String AttributeName) { set_Value (COLUMNNAME_AttributeName, AttributeName); } @Override public java.lang.String getAttributeName() { return get_ValueAsString(COLUMNNAME_AttributeName); } @Override public void setAttributeValue (final java.lang.Str...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_WF_ActivityResult.java
1
请在Spring Boot框架中完成以下Java代码
public String formatObjectToJsonString() { try { User user = new User(); user.setUserName("mrbird"); user.setAge(26); user.setPassword("123456"); user.setBirthday(new Date()); String jsonStr = mapper.writeValueAsString(user); return jsonStr; } catch (Exception e) { e.printStackTrace(); } ...
public int updateUser(@RequestBody List<User> list) { return list.size(); } @RequestMapping("customize") @ResponseBody public String customize() throws JsonParseException, JsonMappingException, IOException { String jsonStr = "[{\"userName\":\"mrbird\",\"age\":26},{\"userName\":\"scott\",\"age\":27}]"; JavaTy...
repos\SpringAll-master\18.Spring-Boot-Jackson\src\main\java\com\example\controller\TestJsonController.java
2
请完成以下Java代码
public static String convertPasswordToString(Object passObj) { Assert.notNull(passObj, "Password object to convert must not be null"); if (passObj instanceof byte[]) { return Utf8.decode((byte[]) passObj); } if (passObj instanceof String) { return (String) passObj; } throw new IllegalArgumentException...
/** * Parses the supplied LDAP URL. * @param url the URL (e.g. * <tt>ldap://monkeymachine:11389/dc=springframework,dc=org</tt>). * @return the URI object created from the URL * @throws IllegalArgumentException if the URL is null, empty or the URI syntax is * invalid. */ private static URI parseLdapUrl(S...
repos\spring-security-main\ldap\src\main\java\org\springframework\security\ldap\LdapUtils.java
1
请完成以下Java代码
public void setIsBillTo (final boolean IsBillTo) { set_Value (COLUMNNAME_IsBillTo, IsBillTo); } @Override public boolean isBillTo() { return get_ValueAsBoolean(COLUMNNAME_IsBillTo); } @Override public void setIsFetchedFrom (final boolean IsFetchedFrom) { set_Value (COLUMNNAME_IsFetchedFrom, IsFetchedF...
set_Value (COLUMNNAME_Name, Name); } @Override public java.lang.String getName() { return get_ValueAsString(COLUMNNAME_Name); } /** * Role AD_Reference_ID=541254 * Reference name: Role */ public static final int ROLE_AD_Reference_ID=541254; /** Main Producer = MP */ public static final String ROLE_...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_BP_Relation.java
1
请完成以下Java代码
public class AuthorizationProperty { /** * Enables authorization. */ private boolean enabled = Defaults.INSTANCE.isAuthorizationEnabled(); /** * Enables authorization for custom code. */ private boolean enabledForCustomCode = Defaults.INSTANCE.isAuthorizationEnabledForCustomCode(); private Stri...
public void setAuthorizationCheckRevokes(String authorizationCheckRevokes) { this.authorizationCheckRevokes = authorizationCheckRevokes; } public boolean isTenantCheckEnabled() { return tenantCheckEnabled; } public void setTenantCheckEnabled(boolean tenantCheckEnabled) { this.tenantCheckEnabled = ...
repos\camunda-bpm-platform-master\spring-boot-starter\starter\src\main\java\org\camunda\bpm\spring\boot\starter\property\AuthorizationProperty.java
1
请完成以下Java代码
public org.compiere.model.I_C_ValidCombination getRealizedLoss_A() throws RuntimeException { return get_ValueAsPO(COLUMNNAME_RealizedLoss_Acct, org.compiere.model.I_C_ValidCombination.class); } @Override public void setRealizedLoss_A(org.compiere.model.I_C_ValidCombination RealizedLoss_A) { set_ValueFromPO(CO...
return ii.intValue(); } @Override public org.compiere.model.I_C_ValidCombination getUnrealizedLoss_A() throws RuntimeException { return get_ValueAsPO(COLUMNNAME_UnrealizedLoss_Acct, org.compiere.model.I_C_ValidCombination.class); } @Override public void setUnrealizedLoss_A(org.compiere.model.I_C_ValidCombina...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_Currency_Acct.java
1
请完成以下Java代码
public static class QuantityDeserializer extends StdDeserializer<Quantity> { private static final long serialVersionUID = -5406622853902102217L; public QuantityDeserializer() { super(Quantity.class); } @Override public Quantity deserialize(final JsonParser p, final DeserializationContext ctx) throws I...
private static final long serialVersionUID = -8292209848527230256L; public QuantitySerializer() { super(Quantity.class); } @Override public void serialize(final Quantity value, final JsonGenerator gen, final SerializerProvider provider) throws IOException { gen.writeStartObject(); final String q...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\quantity\Quantitys.java
1
请在Spring Boot框架中完成以下Java代码
public class JPAEntityScanner { public EntityMetaData scanClass(Class<?> clazz) { EntityMetaData metaData = new EntityMetaData(); // in case with JPA Enhancement method should iterate over superclasses list // to find @Entity and @Id annotations while (clazz != null && !clazz.equals...
private Field getIdField(Class<?> clazz) { Field idField = null; Field[] fields = clazz.getDeclaredFields(); Id idAnnotation = null; for (Field field : fields) { idAnnotation = field.getAnnotation(Id.class); if (idAnnotation != null) { idField = fi...
repos\flowable-engine-main\modules\flowable-variable-service\src\main\java\org\flowable\variable\service\impl\types\JPAEntityScanner.java
2
请完成以下Java代码
private static final class WebServerSslStoreBundle implements SslStoreBundle { private final @Nullable KeyStore keyStore; private final @Nullable KeyStore trustStore; private final @Nullable String keyStorePassword; private WebServerSslStoreBundle(@Nullable KeyStore keyStore, @Nullable KeyStore trustStore, ...
return this.keyStorePassword; } @Override public String toString() { ToStringCreator creator = new ToStringCreator(this); creator.append("keyStore.type", (this.keyStore != null) ? this.keyStore.getType() : "none"); creator.append("keyStorePassword", (this.keyStorePassword != null) ? "******" : null); ...
repos\spring-boot-4.0.1\module\spring-boot-web-server\src\main\java\org\springframework\boot\web\server\WebServerSslBundle.java
1
请完成以下Java代码
public static void dbCreateHistoryLevel(CommandContext commandContext) { ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration(); HistoryLevel configuredHistoryLevel = processEngineConfiguration.getHistoryLevel(); PropertyEntity property = new PropertyEntity("hist...
} } } protected void checkStartupLockExists(CommandContext commandContext) { PropertyEntity historyStartupProperty = commandContext.getPropertyManager().findPropertyById("startup.lock"); if (historyStartupProperty == null) { LOG.noStartupLockPropertyFound(); } } protected void acquireExc...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\HistoryLevelSetupCommand.java
1
请完成以下Java代码
public int getHR_ListVersion_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_HR_ListVersion_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Name. @param Name Alphanumeric identifier of the entity */ public void setName (String Name) { set_Value (COLUMNNAME_Name, Name); } ...
} /** Get Valid from. @return Valid from including this date (first day) */ public Timestamp getValidFrom () { return (Timestamp)get_Value(COLUMNNAME_ValidFrom); } /** Set Valid to. @param ValidTo Valid to including this date (last day) */ public void setValidTo (Timestamp ValidTo) { set_Valu...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\eevolution\model\X_HR_ListVersion.java
1
请完成以下Java代码
public boolean isStale() { return staled; } @Override public int getNextLineNo() { final int lastLineNo = DocumentQuery.builder(entityDescriptor) .setParentDocument(parentDocument) .setExistingDocumentsSupplier(this::getChangedDocumentOrNull) .setChangesCollector(NullDocumentChangesCollector.insta...
{ return parentDocument.isNew(); } @Override public boolean isParentDocumentInvalid() { return !parentDocument.getValidStatus().isValid(); } @Override public Collection<Document> getIncludedDocuments() { return getChangedDocuments(); } @Override public Evaluatee toEvaluatee() { re...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\model\HighVolumeReadWriteIncludedDocumentsCollection.java
1
请完成以下Java代码
protected void prepare() { for (final ProcessInfoParameter para : getParametersAsArray()) { if (PARAM_IsComplete.equals(para.getParameterName())) { p_IsComplete = para.getParameterAsBoolean(); } } } @Override protected String doIt() throws Exception { final Iterator<I_M_ReceiptSchedule> sched...
final IQueryBuilder<I_M_ReceiptSchedule> queryBuilder = Services.get(IQueryBL.class).createQueryBuilder(I_M_ReceiptSchedule.class, processInfo); // // Only not processed lines queryBuilder.addEqualsFilter(I_M_ReceiptSchedule.COLUMNNAME_Processed, false); // // From user selection queryBuilder.filter(new Pr...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\inoutcandidate\process\M_ReceiptSchedule_GenerateInOutFromSelection.java
1
请完成以下Java代码
public final class StreamUtil { private static final Logger LOG = LoggerFactory.getLogger(StreamUtil.class); private StreamUtil() { } /** * 将输入流的内容复制到输出流里 * * @param in 输入流 * @param out 输出流 * @return 复制的数据字节数 * @throws IOException IO异常 */ public static int copy(InputStream in, OutputStream out) t...
out.flush(); return byteCount; } /** * 关闭需要关闭的对象,如果关闭出错,给出警告 * * @param closeable 需要关闭的对象 */ public static void closeWithWarn(Closeable closeable) { if (BeanUtil.nonNull(closeable)) { try { closeable.close(); } catch (IOException e) { LOG.warn("关闭流出错......", e); } } } }
repos\spring-boot-quick-master\quick-wx-public\src\main\java\com\wx\pn\api\utils\StreamUtil.java
1
请完成以下Java代码
private static PricingConditionsBreakChangeRequest createPricingConditionsBreakChangeRequest(final PricingConditionsRow row) { if (!row.isEditable()) { throw new AdempiereException("Saving not editable rows is not allowed") .setParameter("row", row); } final PricingConditionsId pricingConditionsId = r...
private static PricingConditionsBreakChangeRequestBuilder preparePricingConditionsBreakChangeRequest( @NonNull final PricingConditionsBreak pricingConditionsBreak) { return PricingConditionsBreakChangeRequest.builder() .pricingConditionsBreakId(pricingConditionsBreak.getId()) .matchCriteria(pricingConditi...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\order\pricingconditions\process\PricingConditionsView_SaveEditableRow.java
1
请完成以下Java代码
public void setDataEntry_Tab_ID (final int DataEntry_Tab_ID) { if (DataEntry_Tab_ID < 1) set_ValueNoCheck (COLUMNNAME_DataEntry_Tab_ID, null); else set_ValueNoCheck (COLUMNNAME_DataEntry_Tab_ID, DataEntry_Tab_ID); } @Override public int getDataEntry_Tab_ID() { return get_ValueAsInt(COLUMNNAME_DataE...
return get_ValueAsString(COLUMNNAME_Description); } @Override public void setName (final java.lang.String Name) { set_Value (COLUMNNAME_Name, Name); } @Override public java.lang.String getName() { return get_ValueAsString(COLUMNNAME_Name); } @Override public void setSeqNo (final int SeqNo) { set_V...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\de\metas\dataentry\model\X_DataEntry_Tab.java
1
请完成以下Java代码
public void syncQtyDeliveredChanged(@NonNull final I_C_CallOrderDetail callOrderDetail) { final CallOrderSummaryId callOrderSummaryId = CallOrderSummaryId.ofRepoId(callOrderDetail.getC_CallOrderSummary_ID()); final Quantity qtyDelivered = getQtyDelivered(callOrderDetail); if (InterfaceWrapperHelper.isNew(callO...
if (InterfaceWrapperHelper.isNew(callOrderDetail)) { summaryService.addQtyInvoiced(callOrderSummaryId, qtyInvoiced); return; } final CallOrderSummary callOrderSummary = summaryService.getById(callOrderSummaryId); final I_C_CallOrderDetail oldRecord = InterfaceWrapperHelper.createOld(callOrderDetail, I_C...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\callorder\interceptor\C_CallOrderDetail.java
1
请完成以下Java代码
public void setModerationType (String ModerationType) { set_Value (COLUMNNAME_ModerationType, ModerationType); } /** Get Moderation Type. @return Type of moderation */ public String getModerationType () { return (String)get_Value(COLUMNNAME_ModerationType); } /** Set Name. @param Name Alphanume...
@return Alphanumeric identifier of the entity */ public String getName () { return (String)get_Value(COLUMNNAME_Name); } /** Get Record ID/ColumnName @return ID/ColumnName pair */ public KeyNamePair getKeyNamePair() { return new KeyNamePair(get_ID(), getName()); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_CM_ChatType.java
1
请完成以下Spring Boot application配置
server: port: 8080 spring: profiles: default: dev # 可以被命令行切换 active: dev, main # 不会被切换 include: - dev - main group: main: - main1 - main2 config: import: - optional:classpath:/config/app.yml javastack: name: Java技术栈 site: www.javastack.cn ...
x: 1 age: 20 birthday: 2000-01-01 12:00:00 spring: config: activate: on-profile: "dev | test" --- member: name: Jack1 spring: config: activate: on-profile: main1 --- member: name: Jack2 spring: config: activate: on-profile: main2
repos\spring-boot-best-practice-master\spring-boot-properties\src\main\resources\application.yml
2
请完成以下Java代码
public class CsvExportUtil { private static final String CSV_COLUMN_SEPARATOR = ","; private static final String CSV_ROW_SEPARATOR = "\r\n"; private static final String CSV_TAB = "\t"; public static void doExportByList(List<List<Object>> dataList, List<String> titles, OutputStream os) throws IOExceptio...
buf.append(CSV_ROW_SEPARATOR); } } os.write(buf.toString().getBytes("UTF-8")); os.flush(); } public static void responseSetProperties(String fileName, HttpServletResponse response) throws UnsupportedEncodingException { SimpleDateFormat sdf = new SimpleDateFormat("yy...
repos\spring-boot-student-master\spring-boot-student-export\src\main\java\com\xiaolyuh\utils\CsvExportUtil.java
1
请完成以下Java代码
private static ObjectNode mapDependency(Dependency dep) { ObjectNode node = nodeFactory.objectNode(); node.put("groupId", dep.getGroupId()); node.put("artifactId", dep.getArtifactId()); node.put("scope", dep.getScope()); addIfNotNull(node, "version", dep.getVersion()); addIfNotNull(node, "bom", dep.getBom()...
private static ObjectNode mapNode(Map<String, JsonNode> content) { ObjectNode node = nodeFactory.objectNode(); content.forEach(node::set); return node; } private ObjectNode mapDependencies(Map<String, Dependency> dependencies) { return mapNode(dependencies.entrySet() .stream() .collect(Collectors.toMap...
repos\initializr-main\initializr-web\src\main\java\io\spring\initializr\web\mapper\DependencyMetadataV21JsonMapper.java
1
请完成以下Java代码
public class AD_EventLog_Entry_RepostEvent extends JavaProcess { private final IEventBusFactory eventBusFactory = Services.get(IEventBusFactory.class); private final EventLogService eventLogService = SpringContextHolder.instance.getBean(EventLogService.class); @Override protected String doIt() throws Exception { ...
{ addLog("The given event log record has a different topic than the event bus!"); } final IEventBus eventBus = eventBusFactory.getEventBus(topic); final ImmutableList<String> handlerToIgnore = ImmutableList.of(eventLogEntryRecord.getClassname()); final Event event = eventLogService.loadEventForReposting( ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\event\log\process\AD_EventLog_Entry_RepostEvent.java
1
请完成以下Java代码
private void closeConnections(HikariDataSource dataSource, Duration shutdownTimeout) { logger.info("Evicting Hikari connections"); dataSource.getHikariPoolMXBean().softEvictConnections(); logger.debug(LogMessage.format("Waiting %d seconds for Hikari connections to be closed", shutdownTimeout.toSeconds())); ...
TimeUnit.MILLISECONDS.sleep(50); } catch (InterruptedException ex) { logger.error("Interrupted while waiting for datasource connections to be closed", ex); Thread.currentThread().interrupt(); } } } @Override public boolean isRunning() { return this.dataSource != null && this.dataSource.isRunnin...
repos\spring-boot-4.0.1\module\spring-boot-jdbc\src\main\java\org\springframework\boot\jdbc\HikariCheckpointRestoreLifecycle.java
1
请完成以下Java代码
public String getTreatment() { if (treatment == null) { return "ambulatory"; } else { return treatment; } } /** * Sets the value of the treatment property. * * @param value * allowed object is * {@link String } * *...
* {@link String } * */ public void setApid(String value) { this.apid = value; } /** * Gets the value of the acid property. * * @return * possible object is * {@link String } * */ public String getAcid() { return acid; ...
repos\metasfresh-new_dawn_uat\backend\vertical-healthcare_ch\forum_datenaustausch_ch.invoice_450_request\src\main\java-xjc\de\metas\vertical\healthcare_ch\forum_datenaustausch_ch\invoice_450\request\TreatmentType.java
1
请在Spring Boot框架中完成以下Java代码
public String getAmountTypeCode() { return amountTypeCode; } /** * Sets the value of the amountTypeCode property. * * @param value * allowed object is * {@link String } * */ public void setAmountTypeCode(String value) { this.amountTypeCode = ...
* possible object is * {@link BigDecimal } * */ public BigDecimal getAmount() { return amount; } /** * Sets the value of the amount property. * * @param value * allowed object is * {@link BigDecimal } * */ public void ...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_ecosio_remadv\at\erpel\schemas\_1p0\documents\extensions\edifact\MonetaryAmountType.java
2
请在Spring Boot框架中完成以下Java代码
public ImmutableAttributeSet getImmutableAttributeSet(final AttributeSetInstanceId asiId) { return asiBL.getImmutableAttributeSetById(asiId); } public Optional<HuId> getHuIdByQRCodeIfExists(@NonNull final HUQRCode qrCode) { return huQRCodeService.getHuIdByQRCodeIfExists(qrCode); } public void assignQRCodeFo...
return LocatorInfo.builder() .id(locatorId) .caption(caption) .qrCode(LocatorQRCode.builder() .locatorId(locatorId) .caption(caption) .build()) .build(); }) .collect(ImmutableList.toImmutableList()); return ValidateLocatorInfo.ofSourceLocatorList(sourceL...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing.rest-api\src\main\java\de\metas\manufacturing\job\service\ManufacturingJobLoaderAndSaverSupportingServices.java
2
请完成以下Java代码
public class MBPGroup extends X_C_BP_Group { public MBPGroup(Properties ctx, int C_BP_Group_ID, String trxName) { super(ctx, C_BP_Group_ID, trxName); if (C_BP_Group_ID == 0) { // setValue (null); // setName (null); setIsConfidentialInfo(false); // N setIsDefault(false); setPriorityBase(PRIORITYBA...
} @Override protected boolean afterSave(boolean newRecord, boolean success) { if (newRecord && success) return insert_Accounting("C_BP_Group_Acct", "C_AcctSchema_Default", null); return success; } @Override protected boolean beforeDelete() { return delete_Accounting("C_BP_Group_Acct"); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\MBPGroup.java
1
请完成以下Java代码
public int getLaneId() { return laneId; } private List<Integer> getCardIds() { return cardIds; } public void addCardIdAtPosition(final int cardId, final int position) { Preconditions.checkArgument(cardId > 0, "cardId > 0"); if (position < 0) { cardIds.remove((Object)cardId); card...
else { cardIds.remove((Object)cardId); cardIds.add(position, cardId); } } public void removeCardId(final int cardId) { Preconditions.checkArgument(cardId > 0, "cardId > 0"); cardIds.remove((Object)cardId); } } }
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\board\BoardDescriptorRepository.java
1
请完成以下Java代码
public void setC_DocLine_Sort(org.compiere.model.I_C_DocLine_Sort C_DocLine_Sort) { set_ValueFromPO(COLUMNNAME_C_DocLine_Sort_ID, org.compiere.model.I_C_DocLine_Sort.class, C_DocLine_Sort); } /** Set Document Line Sorting Preferences. @param C_DocLine_Sort_ID Document Line Sorting Preferences */ @Override p...
/** Set Produkt. @param M_Product_ID Produkt, Leistung, Artikel */ @Override 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 P...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_DocLine_Sort_Item.java
1
请在Spring Boot框架中完成以下Java代码
public String getResourceLocation() { return resourceLocation; } public void setResourceLocation(String resourceLocation) { this.resourceLocation = resourceLocation; } public List<String> getResourceSuffixes() { return resourceSuffixes; } public void setResourceSuffixe...
public boolean isDeployResources() { return deployResources; } public void setDeployResources(boolean deployResources) { this.deployResources = deployResources; } public boolean isEnabled() { return enabled; } public void setEnabled(boolean enabled) { this.enab...
repos\flowable-engine-main\modules\flowable-spring-boot\flowable-spring-boot-starters\flowable-spring-boot-autoconfigure\src\main\java\org\flowable\spring\boot\app\FlowableAppProperties.java
2
请完成以下Java代码
public class ScopedAssociation { @Inject private RuntimeService runtimeService; @Inject private TaskService taskService; protected VariableMap cachedVariables = new VariableMapImpl(); protected VariableMap cachedVariablesLocal = new VariableMapImpl(); protected Execution execution; protected Task tas...
return (T) value; } public void setVariableLocal(String variableName, Object value) { if (execution == null && task == null) { throw new ProcessEngineCdiException("Cannot set a local cached variable: neither a Task nor an Execution is associated."); } cachedVariablesLocal.put(variableName, value)...
repos\camunda-bpm-platform-master\engine-cdi\core\src\main\java\org\camunda\bpm\engine\cdi\impl\context\ScopedAssociation.java
1
请完成以下Java代码
public void setSorting(List<SortingDto> sorting) { this.sortings = sorting; } public List<SortingDto> getSorting() { return sortings; } protected abstract boolean isValidSortByValue(String value); protected boolean sortOptionsValid() { return (sortBy != null && sortOrder != null) || (sortBy == ...
for (SortingDto sorting : sortings) { String sortingOrder = sorting.getSortOrder(); String sortingBy = sorting.getSortBy(); if (sortingBy != null) { applySortBy(query, sortingBy, sorting.getParameters(), engine); } if (sortingOrder != null) { applySortOrder(q...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\AbstractQueryDto.java
1
请完成以下Java代码
public class ProcessDefinitionCache extends ResourceDefinitionCache<ProcessDefinitionEntity> { public ProcessDefinitionCache(CacheFactory factory, int cacheCapacity, CacheDeployer cacheDeployer) { super(factory, cacheCapacity, cacheDeployer); } @Override protected AbstractResourceDefinitionManager<Proces...
@Override protected void checkInvalidDefinitionByKeyVersionTagAndTenantId(String definitionKey, String definitionVersionTag, String tenantId, ProcessDefinitionEntity definition) { ensureNotNull("no processes deployed with key = '" + definitionKey + "', versionTag = '" + definitionVersionTag + "' and...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\deploy\cache\ProcessDefinitionCache.java
1
请在Spring Boot框架中完成以下Java代码
public class ExternalSystemWooCommerceConfigId implements IExternalSystemChildConfigId { int repoId; @JsonCreator @NonNull public static ExternalSystemWooCommerceConfigId ofRepoId(final int repoId) { return new ExternalSystemWooCommerceConfigId(repoId); } @Nullable public static ExternalSystemWooCommerceCon...
{ return getRepoId(); } private ExternalSystemWooCommerceConfigId(final int repoId) { this.repoId = Check.assumeGreaterThanZero(repoId, "ExternalSystem_Config_WooCommerce_ID"); } @Override public ExternalSystemType getType() { return ExternalSystemType.WOO; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.externalsystem\src\main\java\de\metas\externalsystem\woocommerce\ExternalSystemWooCommerceConfigId.java
2
请在Spring Boot框架中完成以下Java代码
public class TestController { private Logger logger = LoggerFactory.getLogger(this.getClass()); @Autowired private TestService testService; @GetMapping("async") public String testAsync() throws Exception { long start = System.currentTimeMillis(); logger.info("异步方法开始"); Fu...
logger.info("总耗时:{} ms", end - start); return stringFuture.get(); } @GetMapping("sync") public void testSync() { long start = System.currentTimeMillis(); logger.info("同步方法开始"); testService.syncMethod(); logger.info("同步方法结束"); long end = System.currentTimeMi...
repos\SpringAll-master\49.Spring-Boot-Async\src\main\java\com\example\demo\controller\TestController.java
2
请完成以下Java代码
private static ByteArray generate() throws IOException { int preType = 5; int preChar = 0; List<int[]> typeList = new LinkedList<int[]>(); for (int i = 0; i <= Character.MAX_VALUE; ++i) { int type = TextUtility.charType((char) i); // System.out.printf("...
* * @param c * @return */ public static byte get(char c) { return type[(int) c]; } /** * 设置字符类型 * * @param c 字符 * @param t 类型 */ public static void set(char c, byte t) { type[c] = t; } }
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\dictionary\other\CharType.java
1
请完成以下Java代码
private static RelatedProcessDescriptor replacingWindowIdIfNeeded( @NonNull final RelatedProcessDescriptor descriptor, @NonNull final AdWindowId windowId) { if (descriptor.getWindowId() == null) { return descriptor; } else if (AdWindowId.equals(descriptor.getWindowId(), windowId)) { return descri...
} private void linkProcessingColumnWithProcess(final I_AD_Process documentSpecificProcess, final I_AD_Column processingColumn) { if (processingColumn == null) { // nothing to do if the column does not exist for the document table return; } processingColumn.setAD_Process(documentSpecificProcess); Int...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\process\ADProcessService.java
1
请在Spring Boot框架中完成以下Java代码
public class PurchaseCandidateDimensionFactory implements DimensionFactory<I_C_PurchaseCandidate> { @Override public String getHandledTableName() { return I_C_PurchaseCandidate.Table_Name; } @Override public void updateRecord(final I_C_PurchaseCandidate record, final Dimension from) { record.setC_Project_ID...
public Dimension getFromRecord(@NonNull final I_C_PurchaseCandidate record) { return Dimension.builder() .projectId(ProjectId.ofRepoIdOrNull(record.getC_Project_ID())) .campaignId(record.getC_Campaign_ID()) .activityId(ActivityId.ofRepoIdOrNull(record.getC_Activity_ID())) .salesOrderId(OrderId.ofRepo...
repos\metasfresh-new_dawn_uat\backend\de.metas.purchasecandidate.base\src\main\java\de\metas\purchasecandidate\document\dimension\PurchaseCandidateDimensionFactory.java
2
请完成以下Java代码
public static final class Builder { private final String rolePrefix; private final Map<String, Set<GrantedAuthority>> hierarchy; private Builder(String rolePrefix) { this.rolePrefix = rolePrefix; this.hierarchy = new LinkedHashMap<>(); } /** * Creates a new hierarchy branch to define a role and i...
this.role = role; } /** * Specifies implied role(s) for the current role in the hierarchy. * @param impliedRoles role name(s) implied by the role. * @return the same {@link Builder} instance * @throws IllegalArgumentException if <code>impliedRoles</code> is null, * empty or contains any null ...
repos\spring-security-main\core\src\main\java\org\springframework\security\access\hierarchicalroles\RoleHierarchyImpl.java
1
请完成以下Spring Boot application配置
spring.datasource.driverClassName = com.mysql.jdbc.Driver spring.datasource.url = jdbc:mysql://172.17.0.9:3306/JForum?useUnicode=true&characterEncoding=utf-8 spring.datasource.username = root spring.datasource.password = jishimen.2018 spring.redis.host=172.17.0.10 spring.redis.port=6379 spring.redis.timeout=60000 ## ...
pring.dubbo.registry.address=zookeeper://172.17.0.2:2181 spring.dubbo.protocol.name=dubbo spring.dubbo.protocol.port=20880 spring.dubbo.scan=com.gaoxi.redis.service
repos\SpringBoot-Dubbo-Docker-Jenkins-master\Gaoxi-Redis\src\main\resources\application-test.properties
2
请完成以下Java代码
protected boolean afterSave(boolean newRecord, boolean success) { //metas start: cg task us025b if (success) { updateAmounts(); } return success; //metas end: cg task us025b } @Override protected boolean afterDelete(boolean success) { //metas start: cg task us025b if (success) { updateAmou...
/** * metas cg task us025b * method for updating amounts in payment */ private void updateAmounts() { String updateSQL = "UPDATE C_Payment " + " set PayAmt = (SELECT SUM(Amount) from C_PaymentAllocate WHERE C_Payment_ID=?), " + " DiscountAmt = (SELECT SUM(DiscountAmt) from C_PaymentAllocate WHERE C_...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java-legacy\org\compiere\model\MPaymentAllocate.java
1
请完成以下Java代码
public class Player { private String firstName; private String lastName; private String position; public Player() { } public Player(String firstName, String lastName, String position) { this.firstName = firstName; this.lastName = lastName; this.position = position; ...
if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } Player other = (Player) obj; if (firstName == null) { if (other.firstName != null) { ...
repos\tutorials-master\core-java-modules\core-java-lang-3\src\main\java\com\baeldung\hash\Player.java
1
请在Spring Boot框架中完成以下Java代码
public class DroolsConfig { private static final Logger LOGGER = LoggerFactory.getLogger(DroolsConfig.class); private KieServices kieServices = KieServices.Factory.get(); @Bean public KieSession getKieSession() throws IOException { LOGGER.info("Session created..."); KieSession kieSess...
return kieServices.newKieContainer(kieModule.getReleaseId()); } private void getKieRepository() { final KieRepository kieRepository = kieServices.getRepository(); kieRepository.addKieModule(new KieModule() { @Override public ReleaseId getReleaseId() { ret...
repos\springboot-demo-master\drools\src\main\java\com\et\drools\DroolsConfig.java
2
请完成以下Java代码
public int getAD_Client_ID() { return m_AD_Client_ID; } @Override public void initialize(ModelValidationEngine engine, MClient client) { if (client != null) { m_AD_Client_ID = client.getAD_Client_ID(); } engine.addDocValidate(I_C_Order.Table_Name, this); engine.addModelChange(I_C_OrderLine.Table_Name...
if (type == TYPE_AFTER_DELETE) { MOrderLine ol = (MOrderLine) po; MOrder order = ol.getParent(); String promotionCode = (String)order.get_Value("PromotionCode"); if (ol.getC_Charge_ID() > 0) { Integer promotionID = (Integer) ol.get_Value("M_Promotion_ID"); if (promotionID != null && promotionI...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java-legacy\org\adempiere\model\PromotionValidator.java
1
请完成以下Java代码
private final I_M_Material_Tracking_Ref createMaterialTrackingRef(@NonNull final MTLinkRequest request) { final IMaterialTrackingDAO materialTrackingDAO = Services.get(IMaterialTrackingDAO.class); final I_M_Material_Tracking_Ref refNew = materialTrackingDAO.createMaterialTrackingRefNoSave(request.getMaterialTracki...
return false; } boolean atLeastOneUnlinked = false; for (final I_M_Material_Tracking_Ref exitingRef : existingRefs) { if (exitingRef.getM_Material_Tracking_ID() != materialTracking.getM_Material_Tracking_ID()) { continue; } unlinkModelFromMaterialTracking(model, exitingRef); atLeastOneUnlinke...
repos\metasfresh-new_dawn_uat\backend\de.metas.materialtracking\src\main\java\de\metas\materialtracking\impl\MaterialTrackingBL.java
1
请完成以下Java代码
public void setOperation(final OPERATION operation) { this.operation = operation.getValue(); } public long getTimestamp() { return timestamp; } public void setTimestamp(final long timestamp) { this.timestamp = timestamp; } public long getCreatedDate() { return ...
} @PrePersist public void onPrePersist() { logger.info("@PrePersist"); audit(OPERATION.INSERT); } @PreUpdate public void onPreUpdate() { logger.info("@PreUpdate"); audit(OPERATION.UPDATE); } @PreRemove public void onPreRemove() { logger.info("@P...
repos\tutorials-master\persistence-modules\spring-data-jpa-enterprise\src\main\java\com\baeldung\boot\domain\Bar.java
1
请在Spring Boot框架中完成以下Java代码
public String getName() { return this.name; } public void setName(String name) { this.name = name; } } } public static class Server { private final ServerRequests requests = new ServerRequests(); public ServerRequests getRequests() { return this.requests; } public sta...
public String getName() { return this.name; } public void setName(String name) { this.name = name; } } } } }
repos\spring-boot-4.0.1\module\spring-boot-micrometer-observation\src\main\java\org\springframework\boot\micrometer\observation\autoconfigure\ObservationProperties.java
2
请完成以下Java代码
public class JavaInfo { private final String version; private final JavaVendorInfo vendor; private final JavaRuntimeEnvironmentInfo runtime; private final JavaVirtualMachineInfo jvm; public JavaInfo() { this.version = System.getProperty("java.version"); this.vendor = new JavaVendorInfo(); this.runtime =...
public static class JavaRuntimeEnvironmentInfo { private final String name; private final String version; public JavaRuntimeEnvironmentInfo() { this.name = System.getProperty("java.runtime.name"); this.version = System.getProperty("java.runtime.version"); } public String getName() { return this.n...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\info\JavaInfo.java
1
请完成以下Java代码
protected boolean isValidTime(Date newTimer) { BusinessCalendar businessCalendar = Context .getProcessEngineConfiguration() .getBusinessCalendarManager() .getBusinessCalendar(getBusinessCalendarName(TimerEventHandler.geCalendarNameFromConfiguration(jobHandlerConfi...
.getBusinessCalendarManager() .getBusinessCalendar(getBusinessCalendarName(TimerEventHandler.geCalendarNameFromConfiguration(jobHandlerConfiguration))); return businessCalendar.resolveDuedate(repeat, maxIterations); } protected String getBusinessCalendarName(String calendarName) { ...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\persistence\entity\TimerJobEntity.java
1
请在Spring Boot框架中完成以下Java代码
public Result<?> delete(@RequestParam(name = "id", required = true) String id) { sysFormFileService.removeById(id); return Result.OK("删除成功!"); } /** * 批量删除 * * @param ids * @return */ @AutoLog(value = "表单评论文件-批量删除") @Operation(summary = "表单评论文件-批量删除") @Delet...
* 导出excel * * @param request * @param sysFormFile */ @RequestMapping(value = "/exportXls") public ModelAndView exportXls(HttpServletRequest request, SysFormFile sysFormFile) { return super.exportXls(request, sysFormFile, SysFormFile.class, "表单评论文件"); } /** * 通过excel导入数据...
repos\JeecgBoot-main\jeecg-boot\jeecg-module-system\jeecg-system-biz\src\main\java\org\jeecg\modules\system\controller\SysFormFileController.java
2
请完成以下Java代码
public class X_M_DiscountSchemaBreak_V extends org.compiere.model.PO implements I_M_DiscountSchemaBreak_V, org.compiere.model.I_Persistent { private static final long serialVersionUID = 1372859297L; /** Standard Constructor */ public X_M_DiscountSchemaBreak_V (final Properties ctx, final int M_DiscountSchem...
set_ValueNoCheck (COLUMNNAME_M_DiscountSchema_ID, M_DiscountSchema_ID); } @Override public int getM_DiscountSchema_ID() { return get_ValueAsInt(COLUMNNAME_M_DiscountSchema_ID); } @Override public void setM_DiscountSchemaBreak_V_ID (final int M_DiscountSchemaBreak_V_ID) { if (M_DiscountSchemaBreak_V_ID < ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_DiscountSchemaBreak_V.java
1
请完成以下Java代码
public String getDeleteReason() { return deleteReason; } public String getSuperProcessInstanceId() { return superProcessInstanceId; } public String getSuperCaseInstanceId() { return superCaseInstanceId; } public String getCaseInstanceId() { return caseInstanceId; } public String getT...
HistoricProcessInstanceDto dto = new HistoricProcessInstanceDto(); dto.id = historicProcessInstance.getId(); dto.businessKey = historicProcessInstance.getBusinessKey(); dto.processDefinitionId = historicProcessInstance.getProcessDefinitionId(); dto.processDefinitionKey = historicProcessInstance.getProc...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\history\HistoricProcessInstanceDto.java
1