instruction
string
input
string
output
string
source_file
string
priority
int64
请在Spring Boot框架中完成以下Java代码
public class Person { @Id @GeneratedValue(strategy = GenerationType.AUTO) private int id; private String name; @OneToMany(mappedBy = "person", cascade = CascadeType.ALL) private List<Address> addresses; public int getId() { return id; } public void setId(int id) { t...
return addresses; } public void setAddresses(List<Address> addresses) { this.addresses = addresses; } public String getName() { return name; } public void setName(String name) { this.name = name; } }
repos\tutorials-master\persistence-modules\jpa-hibernate-cascade-type\src\main\java\com\baeldung\cascading\domain\Person.java
2
请完成以下Java代码
public boolean isMatching( @NonNull final TableRecordReference recordRef, @NonNull final DataEntrySubTabId subTabId) { return dataEntryRecord.getMainRecord().equals(recordRef) && dataEntryRecord.getDataEntrySubTabId().equals(subTabId); } public void setFieldValue(final DataEntryFieldId fieldId, f...
} catch (Exception ex) { throw AdempiereException.wrapIfNeeded(ex) .setParameter("field", field) .appendParametersToMessage(); } } public boolean isNewDataEntryRecord() { return !dataEntryRecord.getId().isPresent(); } } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\dataentry\data\impexp\DataEntryRecordsImportProcess.java
1
请完成以下Java代码
public ResponseEntity<JsonAttachment> importPatientInvoiceXML( @RequestParam("file") @NonNull final MultipartFile xmlInvoiceFile, @ApiParam(defaultValue = "DONT_UPDATE", value = "This is applied only to the biller; the invoice recipient (patient) is always created or updated on the fly.") // @RequestParam(re...
.ifExists(coalesce(ifProductsExist, IfExists.DONT_UPDATE)) .ifNotExists(coalesce(ifProductsNotExist, IfNotExists.CREATE)) .build(); return importInvoiceXML(xmlInvoiceFile, HealthCareInvoiceDocSubType.EA, billerSyncAdvise, debitorSyncAdvise, productSyncAdvise); } private ResponseEntity<JsonAttachment> impo...
repos\metasfresh-new_dawn_uat\backend\vertical-healthcare_ch\forum_datenaustausch_ch.invoice_rest-api\src\main\java\de\metas\vertical\healthcare\forum_datenaustausch_ch\rest\HealthcareChInvoice440RestController.java
1
请在Spring Boot框架中完成以下Java代码
public class ScheduledJobs { private static final Logger log = LoggerFactory.getLogger(SequentialJobsConfig.class); @Autowired private Job jobOne; @Autowired private Job jobTwo; @Autowired private JobLauncher jobLauncher; @Scheduled(cron = "0 */1 * * * *") // Run every minutes ...
JobParameters jobParameters = new JobParametersBuilder().addString("ID", "Scheduled 1") .toJobParameters(); jobLauncher.run(jobOne, jobParameters); } @Scheduled(fixedRate = 1000 * 60 * 3) // Run every 3 minutes public void runJob2() throws Exception { JobParameters jobParamete...
repos\tutorials-master\spring-batch-2\src\main\java\com\baeldung\springbatch\jobs\ScheduledJobs.java
2
请完成以下Java代码
public void setAD_Workbench_ID (int AD_Workbench_ID) { if (AD_Workbench_ID < 1) set_Value (COLUMNNAME_AD_Workbench_ID, null); else set_Value (COLUMNNAME_AD_Workbench_ID, Integer.valueOf(AD_Workbench_ID)); } /** Get Workbench. @return Collection of windows, reports */ public int getAD_Workbench_ID ...
/** Set Sequence. @param SeqNo Method of ordering records; lowest number comes first */ public void setSeqNo (int SeqNo) { set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); } /** Get Sequence. @return Method of ordering records; lowest number comes first */ public int getSeqNo () { Integer ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_DesktopWorkbench.java
1
请在Spring Boot框架中完成以下Java代码
public PatientPrimaryDoctorInstitution institutionId(String institutionId) { this.institutionId = institutionId; return this; } /** * Alberta-Id des Institution (nur bei Pfelgeheim und Klinik) * @return institutionId **/ @Schema(example = "a4adecb6-126a-4fa6-8fac-e80165ac4264", description = "Al...
@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PatientPrimaryDoctorInstitution {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.appen...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\alberta\alberta-patient-api\src\main\java\io\swagger\client\model\PatientPrimaryDoctorInstitution.java
2
请完成以下Java代码
private void invokeServerSyncBL(@NonNull final RequestToMetasfresh requestToMetasfresh) { final IServerSyncBL serverSyncBL = Services.get(IServerSyncBL.class); if (requestToMetasfresh instanceof PutWeeklySupplyRequest) { serverSyncBL.reportWeekSupply((PutWeeklySupplyRequest)requestToMetasfresh); } ...
.message(infoMessage) .relatedEventId(requestToMetasfresh.getEventId()) .build()); } else if (requestToMetasfresh instanceof PutUserChangedRequest) { serverSyncBL.reportUserChanged((PutUserChangedRequest)requestToMetasfresh); } else { throw new AdempiereException(...
repos\metasfresh-new_dawn_uat\backend\de.metas.procurement.base\src\main\java\de\metas\procurement\base\rabbitmq\ReceiverFromProcurementWeb.java
1
请在Spring Boot框架中完成以下Java代码
public abstract class AbstractCacheableService { protected static final int BOUNDED_MULTIPLIER = 3; protected static final long BASE_MILLISECONDS = 2000L; protected static final long ONE_SECOND_IN_MILLISECONDS = 1000L; protected final AtomicBoolean cacheMiss = new AtomicBoolean(false); protected final Random m...
return simulateLatency(delayInMilliseconds()); } protected boolean simulateLatency(long milliseconds) { try { Thread.sleep(milliseconds); return true; } catch (InterruptedException ignore) { Thread.currentThread().interrupt(); return false; } } } // end::class[]
repos\spring-boot-data-geode-main\spring-geode-samples\caching\near\src\main\java\example\app\caching\near\client\service\support\AbstractCacheableService.java
2
请完成以下Java代码
public void setAD_Workflow_ID (final int AD_Workflow_ID) { if (AD_Workflow_ID < 1) set_Value (COLUMNNAME_AD_Workflow_ID, null); else set_Value (COLUMNNAME_AD_Workflow_ID, AD_Workflow_ID); } @Override public int getAD_Workflow_ID() { return get_ValueAsInt(COLUMNNAME_AD_Workflow_ID); } @Override ...
public int getRecord_ID() { return get_ValueAsInt(COLUMNNAME_Record_ID); } @Override public void setTextMsg (final java.lang.String TextMsg) { set_Value (COLUMNNAME_TextMsg, TextMsg); } @Override public java.lang.String getTextMsg() { return get_ValueAsString(COLUMNNAME_TextMsg); } @Override publ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_WF_Process.java
1
请完成以下Java代码
protected void onTreeNodeSelected(final MTreeNode node) { // nothing } /** * Loads the auto-complete suggestions. * * @param root */ public final void setTreeNodesFromRoot(final MTreeNode root) { treeSearchAutoCompleter.setTreeNodes(root); } /** @return the search label of {@link #getSearchField()...
/** @return the search field (with auto-complete support) */ public final CTextField getSearchField() { return treeSearch; } public final void requestFocus() { treeSearch.requestFocus(); } public final boolean requestFocusInWindow() { return treeSearch.requestFocusInWindow(); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\grid\tree\VTreePanelSearchSupport.java
1
请完成以下Java代码
public class ArraySortBenchmark { @State(Scope.Thread) public static class Initialize { Integer[] numbers = { -769214442, -1283881723, 1504158300, -1260321086, -1800976432, 1278262737, 1863224321, 1895424914, 2062768552, -1051922993, 751605209, -1500919212, 2094856518, -1014488489, -931226326, -1677121...
public int[] benchmarkArraysIntSort(ArraySortBenchmark.Initialize state) { Arrays.sort(state.primitives); return state.primitives; } public static void main(String[] args) throws Exception { Options options = new OptionsBuilder() .include(ArraySortBenchmark.class.getSim...
repos\tutorials-master\core-java-modules\core-java-collections-3\src\main\java\com\baeldung\collections\sortingcomparison\ArraySortBenchmark.java
1
请完成以下Java代码
public DeploymentQuery deploymentSource(String source) { sourceQueryParamEnabled = true; this.source = source; return this; } public DeploymentQuery deploymentBefore(Date before) { ensureNotNull("deploymentBefore", before); this.deploymentBefore = before; return this; } public Deployme...
@Override public long executeCount(CommandContext commandContext) { checkQueryOk(); return commandContext .getDeploymentManager() .findDeploymentCountByQueryCriteria(this); } @Override public List<Deployment> executeList(CommandContext commandContext, Page page) { checkQueryOk(); re...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\DeploymentQueryImpl.java
1
请完成以下Java代码
public class ShpDatas { private String name; /** 属性【字段】集合*/ private List<Map<String,Object>> props; /** shp文件路径地址*/ private String shpPath; public ShpDatas(){ props = new ArrayList<>(); } public String getName() { return name; } public void setName(String n...
this.props = props; } public void addProp(Map<String,Object> prop){ this.props.add(prop); } public String getShpPath() { return shpPath; } public void setShpPath(String shpPath) { this.shpPath = shpPath; } }
repos\springboot-demo-master\GeoTools\src\main\java\com\et\geotools\pojos\ShpDatas.java
1
请完成以下Java代码
default void setFrom(@NonNull final DocumentLocation from) { setBill_BPartner_ID(BPartnerId.toRepoId(from.getBpartnerId())); setBill_Location_ID(BPartnerLocationId.toRepoId(from.getBpartnerLocationId())); setBill_Location_Value_ID(LocationId.toRepoId(from.getLocationId())); setBill_User_ID(BPartnerContactId.to...
default BPartnerLocationAndCaptureId getBPartnerLocationAndCaptureId() { return getBPartnerLocationAndCaptureIdIfExists() .orElseThrow(() -> new AdempiereException("Failed extracting " + BPartnerLocationAndCaptureId.class.getSimpleName() + " from " + this)); } default Optional<BPartnerLocationAndCaptureId> ge...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\document\location\adapter\IDocumentBillLocationAdapter.java
1
请完成以下Java代码
public <ChildType> IQueryBuilder<ChildType> andCollectChildren( @NonNull final String linkColumnNameInChildTable, @NonNull final Class<ChildType> childType) { final String thisIDColumnName = getKeyColumnName(); final IQuery<T> thisQuery = create(); return new QueryBuilder<>(childType, null) // tableName=n...
} @Override public <TargetModelType> QueryAggregateBuilder<T, TargetModelType> aggregateOnColumn(final ModelColumn<T, TargetModelType> column) { return aggregateOnColumn(column.getColumnName(), column.getColumnModelType()); } @Override public <TargetModelType> QueryAggregateBuilder<T, TargetModelType> aggrega...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\dao\impl\QueryBuilder.java
1
请完成以下Java代码
public DbOperation addRemovalTimeToActivityInstancesByRootProcessInstanceId(String rootProcessInstanceId, Date removalTime, Integer batchSize) { Map<String, Object> parameters = new HashMap<>(); parameters.put("rootProcessInstanceId", rootProcessInstanceId); parameters.put("removalTime", removalTime); p...
public DbOperation deleteHistoricActivityInstancesByRemovalTime(Date removalTime, int minuteFrom, int minuteTo, int batchSize) { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("removalTime", removalTime); if (minuteTo - minuteFrom + 1 < 60) { parameters.put("minuteFrom"...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\HistoricActivityInstanceManager.java
1
请完成以下Java代码
public class TbKafkaNodeConfiguration implements NodeConfiguration<TbKafkaNodeConfiguration> { private String topicPattern; private String keyPattern; private String bootstrapServers; private int retries; private int batchSize; private int linger; private int bufferMemory; private Strin...
public TbKafkaNodeConfiguration defaultConfiguration() { TbKafkaNodeConfiguration configuration = new TbKafkaNodeConfiguration(); configuration.setTopicPattern("my-topic"); configuration.setBootstrapServers("localhost:9092"); configuration.setRetries(0); configuration.setBatchSiz...
repos\thingsboard-master\rule-engine\rule-engine-components\src\main\java\org\thingsboard\rule\engine\kafka\TbKafkaNodeConfiguration.java
1
请在Spring Boot框架中完成以下Java代码
public int compareTo(Object o) { if (!(o instanceof Configuration)) return hashCode() - o.hashCode(); // may be unsafe Configuration configuration = (Configuration) o; float diff = getScore(true) - configuration.getScore(true); if (diff > 0) return (...
} return false; } @Override public Configuration clone() { Configuration configuration = new Configuration(sentence); configuration.actionHistory = new ArrayList<Integer>(actionHistory); configuration.score = score; configuration.state = state.clone(); r...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\dependency\perceptron\transition\configuration\Configuration.java
2
请在Spring Boot框架中完成以下Java代码
private void addMapHints(ConfigurationMetadataProperty property, ConfigurationMetadataHint hint) { property.getHints().getKeyHints().addAll(hint.getValueHints()); property.getHints().getKeyProviders().addAll(hint.getValueProviders()); } /** * Create a new builder instance using {@link StandardCharsets#UTF_8} a...
*/ public static ConfigurationMetadataRepositoryJsonBuilder create() { return create(StandardCharsets.UTF_8); } /** * Create a new builder instance using the specified default {@link Charset}. * @param defaultCharset the default charset to use * @return a new {@link ConfigurationMetadataRepositoryJsonBuilde...
repos\spring-boot-4.0.1\configuration-metadata\spring-boot-configuration-metadata\src\main\java\org\springframework\boot\configurationmetadata\ConfigurationMetadataRepositoryJsonBuilder.java
2
请完成以下Java代码
public void setM_Product_ID (int M_Product_ID) { if (M_Product_ID < 1) set_Value (COLUMNNAME_M_Product_ID, null); else set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Produkt. @return Produkt, Leistung, Artikel */ @Override public int getM_Product_ID () { Integer...
public void setM_Shipment_Declaration_Line_ID (int M_Shipment_Declaration_Line_ID) { if (M_Shipment_Declaration_Line_ID < 1) set_ValueNoCheck (COLUMNNAME_M_Shipment_Declaration_Line_ID, null); else set_ValueNoCheck (COLUMNNAME_M_Shipment_Declaration_Line_ID, Integer.valueOf(M_Shipment_Declaration_Line_ID))...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_Shipment_Declaration_Line.java
1
请在Spring Boot框架中完成以下Java代码
public class POTrlInfo { public static final POTrlInfo NOT_TRANSLATED = POTrlInfo.builder().translated(false).build(); /** * True if at least one column is translated */ boolean translated; String tableName; String keyColumnName; @Default @NonNull ImmutableList<String> translatedColumnNames = ImmutableList....
*/ @Default @NonNull Optional<String> sqlSelectTrlByIdAndLanguage = Optional.empty(); /** * SQL SELECT used to fetch the translations of a given record for any language. * <code>SELECT ... FROM TableName_Trl WHERE KeyColumnName=?</code> or <code>null</code> */ @Default @NonNull Optional<String> sqlSelectTrl...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\i18n\po\POTrlInfo.java
2
请完成以下Java代码
public void setIsRange (boolean IsRange) { set_Value (COLUMNNAME_IsRange, Boolean.valueOf(IsRange)); } /** Get Range. @return The parameter is a range of values */ @Override public boolean isRange () { Object oo = get_Value(COLUMNNAME_IsRange); if (oo != null) { if (oo instanceof Boolean) ...
{ return (java.lang.String)get_Value(COLUMNNAME_ValueMax); } /** Set Min. Wert. @param ValueMin Minimum Value for a field */ @Override public void setValueMin (java.lang.String ValueMin) { set_Value (COLUMNNAME_ValueMin, ValueMin); } /** Get Min. Wert. @return Minimum Value for a field */ @Ov...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_Process_Para.java
1
请完成以下Java代码
private Optional<JSONDocumentField> getClearanceNoteField(@NonNull final JSONOptions jsonOptions) { final boolean isDisplayedClearanceStatus = Services.get(ISysConfigBL.class).getBooleanValue(SYS_CONFIG_CLEARANCE, true); if (!isDisplayedClearanceStatus || Check.isBlank(clearanceNote)) { return Optional.empty...
final DocumentFieldWidgetType widgetType = HUEditorRowAttributesHelper.extractWidgetType(attributeValue); changesCollector.collectEvent(MutableDocumentFieldChangedEvent.of(documentPath, attributeCode.getCode(), widgetType) .setValue(jsonValue)); } @Override public void onAttributeValueCreated(f...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\handlingunits\HUEditorRowAttributes.java
1
请完成以下Java代码
void cleanExpiredSessions() { long now = System.currentTimeMillis(); long prevMin = roundDownMinute(now); if (logger.isDebugEnabled()) { logger.debug("Cleaning up sessions expiring at " + new Date(prevMin)); } String expirationKey = getExpirationKey(prevMin); Set<Object> sessionsToExpire = this.redis.b...
static long expiresInMillis(Session session) { int maxInactiveInSeconds = (int) session.getMaxInactiveInterval().getSeconds(); long lastAccessedTimeInMillis = session.getLastAccessedTime().toEpochMilli(); return lastAccessedTimeInMillis + TimeUnit.SECONDS.toMillis(maxInactiveInSeconds); } static long roundUpTo...
repos\spring-session-main\spring-session-data-redis\src\main\java\org\springframework\session\data\redis\RedisSessionExpirationPolicy.java
1
请完成以下Java代码
private void loadLines() { ArrayList<MReportLine> list = new ArrayList<MReportLine>(); String sql = "SELECT * FROM PA_ReportLine " + "WHERE PA_ReportLineSet_ID=? AND IsActive='Y' " + "ORDER BY SeqNo"; PreparedStatement pstmt = null; try { pstmt = DB.prepareStatement(sql, get_TrxName()); pstmt.set...
{ return m_lines; } // getLines /** * List Info */ public void list() { System.out.println(toString()); if (m_lines == null) return; for (int i = 0; i < m_lines.length; i++) m_lines[i].list(); } // list /** * String representation * @return info */ public String toString () { Strin...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\report\MReportLineSet.java
1
请完成以下Java代码
public int getReversal_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_Reversal_ID); if (ii == null) return 0; return ii.intValue(); } @Override public org.compiere.model.I_AD_User getSalesRep() throws RuntimeException { return get_ValueAsPO(COLUMNNAME_SalesRep_ID, org.compiere.model.I_AD_User.cla...
@Override public org.compiere.model.I_C_ElementValue getUser2() throws RuntimeException { return get_ValueAsPO(COLUMNNAME_User2_ID, org.compiere.model.I_C_ElementValue.class); } @Override public void setUser2(org.compiere.model.I_C_ElementValue User2) { set_ValueFromPO(COLUMNNAME_User2_ID, org.compiere.model...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_Movement.java
1
请完成以下Java代码
public Integer getHistoryTimeToLive() { return historyTimeToLive; } public void setHistoryTimeToLive(Integer historyTimeToLive) { this.historyTimeToLive = historyTimeToLive; } public long getFinishedDecisionInstanceCount() { return finishedDecisionInstanceCount; } public void setFinishedDecis...
List<CleanableHistoricDecisionInstanceReportResultDto> dtos = new ArrayList<CleanableHistoricDecisionInstanceReportResultDto>(); for (CleanableHistoricDecisionInstanceReportResult current : reportResult) { CleanableHistoricDecisionInstanceReportResultDto dto = new CleanableHistoricDecisionInstanceReportResult...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\history\CleanableHistoricDecisionInstanceReportResultDto.java
1
请在Spring Boot框架中完成以下Java代码
public Map getHeaders() { return headers; } public void addHeader(String key, String value){ this.headers.put(key, value); } public void addHeaders(String key, Collection<String> values){ this.headers.put(key, values); } public void setHeaders(Map _headers) { this.headers.putAll(_headers); } public int ...
public ClientKeyStore getClientKeyStore() { return clientKeyStore; } public void setClientKeyStore(ClientKeyStore clientKeyStore) { this.clientKeyStore = clientKeyStore; } public com.roncoo.pay.trade.utils.httpclient.TrustKeyStore getTrustKeyStore() { return TrustKeyStore; } public void setTrustKeyStore(com...
repos\roncoo-pay-master\roncoo-pay-service\src\main\java\com\roncoo\pay\trade\utils\httpclient\SimpleHttpParam.java
2
请完成以下Java代码
public void setRecord_ID (final int Record_ID) { if (Record_ID < 0) set_ValueNoCheck (COLUMNNAME_Record_ID, null); else set_ValueNoCheck (COLUMNNAME_Record_ID, Record_ID); } @Override public int getRecord_ID() { return get_ValueAsInt(COLUMNNAME_Record_ID); } /** * Type AD_Reference_ID=541967 ...
/** Posting Done = posting_ok */ public static final String TYPE_PostingDone = "posting_ok"; /** Posting Error = posting_error */ public static final String TYPE_PostingError = "posting_error"; @Override public void setType (final @Nullable java.lang.String Type) { set_ValueNoCheck (COLUMNNAME_Type, Type); } ...
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java-gen\de\metas\acct\model\X_Document_Acct_Log.java
1
请完成以下Java代码
public int getP_UsageVariance_Acct () { Integer ii = (Integer)get_Value(COLUMNNAME_P_UsageVariance_Acct); if (ii == null) return 0; return ii.intValue(); } @Override public org.compiere.model.I_C_ValidCombination getP_WIP_A() throws RuntimeException { return get_ValueAsPO(COLUMNNAME_P_WIP_Acct, org.c...
{ set_Value (COLUMNNAME_P_WIP_Acct, Integer.valueOf(P_WIP_Acct)); } /** Get Work In Process. @return The Work in Process account is the account used Manufacturing Order */ @Override public int getP_WIP_Acct () { Integer ii = (Integer)get_Value(COLUMNNAME_P_WIP_Acct); if (ii == null) return 0; re...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_Product_Acct.java
1
请完成以下Java代码
public JsonObject writeConfiguration(RestartProcessInstancesBatchConfiguration configuration) { JsonObject json = JsonUtil.createObject(); JsonUtil.addListField(json, PROCESS_INSTANCE_IDS, configuration.getIds()); JsonUtil.addListField(json, PROCESS_INSTANCE_ID_MAPPINGS, DeploymentMappingJsonConverter.INST...
List<String> processInstanceIds = readProcessInstanceIds(json); DeploymentMappings idMappings = readIdMappings(json); List<AbstractProcessInstanceModificationCommand> instructions = JsonUtil.asList(JsonUtil.getArray(json, INSTRUCTIONS), ModificationCmdJsonConverter.INSTANCE); return new RestartProcessInsta...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\RestartProcessInstancesBatchConfigurationJsonConverter.java
1
请完成以下Java代码
public Dimension getPreferredSize() { final Dimension d = super.getPreferredSize(); final Dimension m = getMaximumSize(); if (d.height > m.height || d.width > m.width) { final Dimension d1 = new Dimension(); d1.height = Math.min(d.height, m.height); d1.width = Math.min(d.width, m.width...
} @Override public Dimension getPreferredSize() { final Dimension d = super.getPreferredSize(); final Dimension m = getMaximumSize(); if (d.height > m.height || d.width > m.width) { final Dimension d1 = new Dimension(); d1.height = Math.min(d.height, m.height); d1.width = Math.min(d.width...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java\de\metas\process\ui\ProcessPanel.java
1
请完成以下Java代码
private I_C_Print_Job_Detail createPrintJobDetail( final I_C_Print_Job_Line printJobLine, final I_AD_PrinterRouting routing) { final I_C_Print_Job_Detail printJobDetail = InterfaceWrapperHelper.newInstance(I_C_Print_Job_Detail.class, printJobLine); printJobDetail.setAD_Org_ID(printJobLine.getAD_Org_ID()); ...
{ final PrinterRoutingsQuery query = printingQueueBL.createPrinterRoutingsQueryForItem(item); final List<de.metas.adempiere.model.I_AD_PrinterRouting> rs = printerRoutingDAO.fetchPrinterRoutings(query); return InterfaceWrapperHelper.createList(rs, I_AD_PrinterRouting.class); } @Override public String getSumm...
repos\metasfresh-new_dawn_uat\backend\de.metas.printing\de.metas.printing.base\src\main\java\de\metas\printing\api\impl\PrintJobBL.java
1
请完成以下Java代码
public boolean isHighVolume() { return false; } @Override public LookupSource getLookupSourceType() { return LookupSource.lookup; } @Override public boolean hasParameters() { return true; } @Override public Set<String> getDependsOnFieldNames() { return CtxNames.toNames(parameters); } @Overrid...
return labelsValuesLookupDataSource.findEntities(evalCtx, filter); } public Set<Object> normalizeStringIds(final Set<String> stringIds) { if (stringIds.isEmpty()) { return ImmutableSet.of(); } if (isLabelsValuesUseNumericKey()) { return stringIds.stream() .map(LabelsLookup::convertToInt) ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\model\lookup\LabelsLookup.java
1
请完成以下Java代码
public class C_BankStatement_ChangeCurrencyRate extends BankStatementBasedProcess implements IProcessDefaultParametersProvider { private static final String PARAM_CurrencyRate = "CurrencyRate"; @Param(parameterName = PARAM_CurrencyRate, mandatory = true) private BigDecimal currencyRate; @Override public ProcessPr...
@Nullable @Override public Object getParameterDefaultValue(final IProcessDefaultParameter parameter) { if (PARAM_CurrencyRate.equals(parameter.getColumnName())) { return getSingleSelectedBankStatementLine().getCurrencyRate(); } else { return IProcessDefaultParametersProvider.DEFAULT_VALUE_NOTAVAILABL...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\banking\process\C_BankStatement_ChangeCurrencyRate.java
1
请完成以下Java代码
public static Result evaluate(Segment segment, String outputPath, String goldFile, String dictPath) throws IOException { IOUtil.LineIterator lineIterator = new IOUtil.LineIterator(goldFile); BufferedWriter bw = IOUtil.newBufferedWriter(outputPath); for (String line : lineIterator) { ...
CWSEvaluator evaluator = new CWSEvaluator(dictPath); while (goldIter.hasNext() && predIter.hasNext()) { evaluator.compare(goldIter.next(), predIter.next()); } return evaluator.getResult(); } public static class Result { public float P, R, F1, OOV_R, IV_R;...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\seg\common\CWSEvaluator.java
1
请完成以下Java代码
public int getRevisionNext() { return revision+1; } public String getId() { return id; } public void setId(String id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getType() { return type; } ...
this.type = type; } public int getRevision() { return revision; } public void setRevision(int revision) { this.revision = revision; } @Override public String toString() { return this.getClass().getSimpleName() + "[id=" + id + ", revision=" + revision + ", name...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\GroupEntity.java
1
请完成以下Java代码
public GolfCourse withHole(int holeNumber, int par) { assertValidHoleNumber(holeNumber); assertValidParForHole(par, holeNumber); this.parForHole.add(indexForHole(holeNumber), par); return this; } private void assertValidHoleNumber(int hole) { Assert.isTrue(isValidHoleNumber(hole), () -> String.format...
Assert.isTrue(isValidPar(par), () -> String.format("Par [%1$d] for hole [%2$d] must be in [%3$s]", par, hole, VALID_PARS_FOR_HOLE)); } private int indexForHole(int hole) { return hole - 1; } public boolean isValidHoleNumber(int hole) { return hole >= 1 && hole <= 18; } public boolean isValidPar(int par)...
repos\spring-boot-data-geode-main\spring-geode-samples\caching\inline-async\src\main\java\example\app\caching\inline\async\client\model\GolfCourse.java
1
请完成以下Java代码
public boolean isNull(final Object model, final String columnName) { if (model == null) { return true; } return getHelperThatCanHandle(model) .isNull(model, columnName); } @Nullable @Override public <T> T getDynAttribute(@NonNull final Object model, @NonNull final String attributeName) { return...
} return getHelperThatCanHandle(model) .getPO(model, strict); } @Override public Evaluatee getEvaluatee(final Object model) { if (model == null) { return null; } else if (model instanceof Evaluatee) { final Evaluatee evaluatee = (Evaluatee)model; return evaluatee; } return getHelperT...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\wrapper\CompositeInterfaceWrapperHelper.java
1
请在Spring Boot框架中完成以下Java代码
public class UserDO { /** * 用户编号 */ @Id @GeneratedValue(strategy = GenerationType.IDENTITY, // strategy 设置使用数据库主键自增策略; generator = "JDBC") // generator 设置插入完成后,查询最后生成的 ID 填充到该属性中。 private Integer id; /** * 账号 */ @Column(nullable = false) private String usern...
public UserDO setUsername(String username) { this.username = username; return this; } public String getPassword() { return password; } public UserDO setPassword(String password) { this.password = password; return this; } public Date getCreateTime() { ...
repos\SpringBoot-Labs-master\lab-13-spring-data-jpa\lab-13-jpa\src\main\java\cn\iocoder\springboot\lab13\jpa\dataobject\UserDO.java
2
请完成以下Java代码
protected void prepare() { ProcessInfoParameter[] para = getParametersAsArray(); for (int i = 0; i < para.length; i++) { String name = para[i].getParameterName(); //noinspection StatementWithEmptyBody if (para[i].getParameter() == null) ; else if (name.equals("AD_Role_ID") && i == 0) m_AD_Ro...
+ " (AD_Client_ID, AD_Org_ID, Created, CreatedBy, Updated, UpdatedBy, " + "AD_Role_ID, " + keycolumn + ", isActive"; if (column_SeqNo) sql += ", SeqNo "; if (column_IsReadWrite) sql += ", isReadWrite) "; else sql += ") "; sql += "SELECT " + m_AD_Client_ID + ", " + m_AD_Org_ID + ",...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\process\CopyRole.java
1
请在Spring Boot框架中完成以下Java代码
public final class AggregationHelper { private static final transient Logger logger = Logger.getLogger(AggregationHelper.class.getName()); private AggregationHelper() { super(); } /** * @see {@link #aggregateElement(Collection, Object, boolean, Set)}, under the assumption that isNullableResultElement=true &&...
} // if it's null-able, do not add it else if (element == null) { if (isNullableResultElement) { AggregationHelper.logger.log(Level.WARNING, "Skipping aggregation for null element..."); // TODO handle this case separately (add it or not if null), depending on our needs return; } throw new Runt...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java\de\metas\edi\esb\commons\processor\strategy\aggregation\AggregationHelper.java
2
请完成以下Java代码
public synchronized void run(final long delayMillis) { // Do nothig if already done if (done.get()) { return; } // If we already have an execution scheduled, and it was not performed yet then cancel it. if (future != null && !future.isDone()) { final boolean mayInterruptIfRunning = false; // don't...
public synchronized boolean isDone() { return done.get(); } /** * Try to stop any scheduled run (triggered by invoking {@link #run(long)}) and reset this helper to initial state, * which means that next time when you will call {@link #run(long)} it will be like first time. */ public synchronized final void...
repos\metasfresh-new_dawn_uat\backend\de.metas.util\src\main\java\org\adempiere\util\concurrent\DelayedRunnableExecutor.java
1
请完成以下Java代码
public String getLockOwner() { return lockOwner; } public void setLockOwner(String lockOwner) { this.lockOwner = lockOwner; } public boolean isAutoActivate() { return isAutoActivate; } public void setProcessEngines(List<ProcessEngineImpl> processEngines) { this.processEngines = processEng...
return isActive; } public RejectedJobsHandler getRejectedJobsHandler() { return rejectedJobsHandler; } public void setRejectedJobsHandler(RejectedJobsHandler rejectedJobsHandler) { this.rejectedJobsHandler = rejectedJobsHandler; } protected void startJobAcquisitionThread() { if (jobAcquisitionT...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\jobexecutor\JobExecutor.java
1
请完成以下Java代码
public class FTSConfigSourceTablesMap { public static final FTSConfigSourceTablesMap EMPTY = new FTSConfigSourceTablesMap(ImmutableList.of()); private final ImmutableListMultimap<TableName, FTSConfigSourceTable> sourceTablesByTableName; private final ImmutableListMultimap<FTSConfigId, FTSConfigSourceTable> sourceTa...
public ImmutableList<FTSConfigSourceTable> getByTableName(@NonNull final TableName tableName) { return sourceTablesByTableName.get(tableName); } public ImmutableList<FTSConfigSourceTable> getByConfigId(@NonNull final FTSConfigId ftsConfigId) { return sourceTablesByConfigId.get(ftsConfigId); } public FTSConf...
repos\metasfresh-new_dawn_uat\backend\de.metas.elasticsearch\src\main\java\de\metas\fulltextsearch\config\FTSConfigSourceTablesMap.java
1
请完成以下Java代码
public boolean equals(Object obj) { if (this == obj) return true; if (obj == null || getClass() != obj.getClass()) return false; Car car = (Car) obj; // Use Objects.equals for safe String comparison return year == car.year && Objects.equals(make, car.make); } /** *...
return "Car{" + "make='" + make + '\'' + ", year=" + year + '}'; } /** * Overrides the protected clone() method from Object to perform a shallow copy. * This is the standard pattern when implementing the Cloneable marker interface. */ @Override public Objec...
repos\tutorials-master\core-java-modules\core-java-lang-oop-types\src\main\java\com\baeldung\objectclassguide\Car.java
1
请完成以下Java代码
private void pop(char c) throws JSONException { if (this.top <= 0) { throw new JSONException("Nesting error."); } char m = this.stack[this.top - 1] == null ? 'a' : 'k'; if (m != c) { throw new JSONException("Nesting error."); } this.top -= 1; ...
* A double. * @return this * @throws JSONException * If the number is not finite. */ public JSONWriter value(double d) throws JSONException { return this.value(Double.valueOf(d)); } /** * Append a long value. * * @param l * A long....
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\util\json\JSONWriter.java
1
请完成以下Java代码
public String getProcessMsg() { return null; } @Override public int getDoc_User_ID() { return getSalesRep_ID(); } @Override public BigDecimal getApprovalAmt() { return getGrandTotal(); } public void setRMA(final MRMA rma) { final MInvoice originalInvoice = rma.getOriginalInvoice(); if (original...
setC_Activity_ID(originalInvoice.getC_Activity_ID()); setC_Campaign_ID(originalInvoice.getC_Campaign_ID()); setUser1_ID(originalInvoice.getUser1_ID()); setUser2_ID(originalInvoice.getUser2_ID()); } /** * Document Status is Complete or Closed * * @return true if CO, CL or RE * @deprecated Please use {@l...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java-legacy\org\compiere\model\MInvoice.java
1
请完成以下Java代码
public class MLocator extends X_M_Locator { /** * */ private static final long serialVersionUID = 6019655556196171287L; public MLocator (Properties ctx, int M_Locator_ID, String trxName) { super (ctx, M_Locator_ID, trxName); if (is_new()) { // setM_Locator_ID (0); // PK // setM_Warehouse_ID (0);...
// setX (null); // setY (null); // setZ (null); } } // MLocator public MLocator (Properties ctx, ResultSet rs, String trxName) { super(ctx, rs, trxName); } // MLocator // IMPORTANT for Swing VLocator @Override public String toString() { return getValue(); } // getValue }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\MLocator.java
1
请完成以下Java代码
protected String getDocumentation(CmmnElement element) { Collection<Documentation> documentations = element.getDocumentations(); if (documentations.isEmpty()) { PlanItemDefinition definition = getDefinition(element); documentations = definition.getDocumentations(); } if (documentations.isE...
} protected boolean isPlanItem(CmmnElement element) { return element instanceof PlanItem; } protected boolean isDiscretionaryItem(CmmnElement element) { return element instanceof DiscretionaryItem; } protected abstract List<String> getStandardEvents(CmmnElement element); }
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\cmmn\handler\ItemHandler.java
1
请完成以下Java代码
public class MessageDTO implements Serializable { private static final long serialVersionUID = -5690444483968058442L; /** * 发送人(用户登录账户) */ protected String fromUser; /** * 发送给(用户登录账户) */ protected String toUser; /** * 发送给所有人 */ protected Boolean toAll; ...
/** * 是否为定时任务推送email */ private Boolean isTimeJob = false; //---【邮件相关参数】------------------------------------------------------------- /** * 枚举:org.jeecg.common.constant.enums.NoticeTypeEnum * 通知类型(system:系统消息、file:知识库、flow:流程、plan:日程计划、meeting:会议) */ private String noticeT...
repos\JeecgBoot-main\jeecg-boot\jeecg-boot-base-core\src\main\java\org\jeecg\common\api\dto\message\MessageDTO.java
1
请完成以下Java代码
public void addExtensionElement(ExtensionElement extensionElement) { if (extensionElement != null && isNotEmpty(extensionElement.getName())) { extensionElements.computeIfAbsent(extensionElement.getName(), k -> new ArrayList<>()); this.extensionElements.get(extensionElement.getName()).add...
if (otherElement.getExtensionElements() != null && !otherElement.getExtensionElements().isEmpty()) { Map<String, List<ExtensionElement>> validExtensionElements = otherElement .getExtensionElements() .entrySet() .stream() .filter(e -> hasElement...
repos\Activiti-develop\activiti-core\activiti-bpmn-model\src\main\java\org\activiti\bpmn\model\BaseElement.java
1
请完成以下Java代码
public long getLastHeartbeat() { return lastHeartbeat; } public void setLastHeartbeat(long lastHeartbeat) { this.lastHeartbeat = lastHeartbeat; } @Override public int compareTo(MachineInfo o) { if (this == o) { return 0; } if (!port.equals(o....
MachineInfo that = (MachineInfo)o; return Objects.equals(app, that.app) && Objects.equals(ip, that.ip) && Objects.equals(port, that.port); } @Override public int hashCode() { return Objects.hash(app, ip, port); } /** * Information for log * * ...
repos\spring-boot-student-master\spring-boot-student-sentinel-dashboard\src\main\java\com\alibaba\csp\sentinel\dashboard\discovery\MachineInfo.java
1
请完成以下Java代码
public LinkedListNode<T> remove(T value) { this.lock.writeLock().lock(); try { LinkedListNode<T> linkedListNode = head.search(value); if (!linkedListNode.isEmpty()) { if (linkedListNode == tail) { tail = tail.getPrev(); } ...
public LinkedListNode<T> updateAndMoveToFront(LinkedListNode<T> node, T newValue) { this.lock.writeLock().lock(); try { if (node.isEmpty() || (this != (node.getListReference()))) { return dummyNode; } detach(node); add(newValue); ...
repos\tutorials-master\data-structures\src\main\java\com\baeldung\lrucache\DoublyLinkedList.java
1
请完成以下Java代码
public Mono<Void> fireAndForget(Payload payload) { return intercept(PayloadExchangeType.FIRE_AND_FORGET, payload) .flatMap((context) -> this.source.fireAndForget(payload).contextWrite(context)); } @Override public Mono<Payload> requestResponse(Payload payload) { return intercept(PayloadExchangeType.REQUEST_R...
public Mono<Void> metadataPush(Payload payload) { return intercept(PayloadExchangeType.METADATA_PUSH, payload) .flatMap((c) -> this.source.metadataPush(payload).contextWrite(c)); } private Mono<Context> intercept(PayloadExchangeType type, Payload payload) { return Mono.defer(() -> { ContextPayloadIntercept...
repos\spring-security-main\rsocket\src\main\java\org\springframework\security\rsocket\core\PayloadInterceptorRSocket.java
1
请完成以下Java代码
public boolean isSendInquiry () { Object oo = get_Value(COLUMNNAME_SendInquiry); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Send Order. @param SendOrder Send Order */ public void setSendOrder (bool...
} /** Get Send Order. @return Send Order */ public boolean isSendOrder () { Object oo = get_Value(COLUMNNAME_SendOrder); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_BP_EDI.java
1
请在Spring Boot框架中完成以下Java代码
public PatientDeliveryAddress city(String city) { this.city = city; return this; } /** * Get city * @return city **/ @Schema(example = "Nürnberg", description = "") public String getCity() { return city; } public void setCity(String city) { this.city = city; } @Override pu...
sb.append("class PatientDeliveryAddress {\n"); sb.append(" gender: ").append(toIndentedString(gender)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" address: ").append(toInd...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\alberta\alberta-patient-api\src\main\java\io\swagger\client\model\PatientDeliveryAddress.java
2
请在Spring Boot框架中完成以下Java代码
public static CamelRoutesGroup ofCode(@NonNull final String code) { return ofCodeOptional(code) .orElseThrow(() -> new RuntimeException("No CamelRoutesGroup could be found for code " + code + "!")); } @NonNull public static Optional<CamelRoutesGroup> ofCodeOptional(@Nullable final String code) { if (Check...
public boolean isStartOnDemand() { return this == START_ON_DEMAND; } public boolean isAlwaysOn() { return this == ALWAYS_ON; } private final static ImmutableMap<String, CamelRoutesGroup> code2Group = Stream.of(values()) .collect(ImmutableMap.toImmutableMap( CamelRoutesGroup::getCode, Function.i...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\common\src\main\java\de\metas\camel\externalsystems\common\CamelRoutesGroup.java
2
请完成以下Java代码
public abstract static class SimpleOperator implements Operator { public Object eval(Bindings bindings, ELContext context, AstNode node) { return apply(bindings, node.eval(bindings, context)); } protected abstract Object apply(TypeConverter converter, Object o); } public s...
private final Operator operator; private final AstNode child; public AstUnary(AstNode child, Operator operator) { this.child = child; this.operator = operator; } public Operator getOperator() { return operator; } @Override public Object eval(Bindings bindings, ELCo...
repos\Activiti-develop\activiti-core-common\activiti-juel-jakarta\src\main\java\org\activiti\core\el\juel\tree\impl\ast\AstUnary.java
1
请完成以下Java代码
public String getAnnotation() { return annotation; } public static HistoricIncidentDto fromHistoricIncident(HistoricIncident historicIncident) { HistoricIncidentDto dto = new HistoricIncidentDto(); dto.id = historicIncident.getId(); dto.processDefinitionKey = historicIncident.getProcessDefinitionK...
dto.rootCauseIncidentId = historicIncident.getRootCauseIncidentId(); dto.configuration = historicIncident.getConfiguration(); dto.historyConfiguration = historicIncident.getHistoryConfiguration(); dto.incidentMessage = historicIncident.getIncidentMessage(); dto.open = historicIncident.isOpen(); dto....
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\history\HistoricIncidentDto.java
1
请完成以下Java代码
public ProcessPreconditionsResolution checkPreconditionsApplicable(@NonNull final IProcessPreconditionsContext context) { final String tableName = context.getTableName(); if (!I_C_PaySelection.Table_Name.equals(tableName)) { return ProcessPreconditionsResolution.rejectWithInternalReason("Process " + C_PaySele...
final SEPAExportContext exportContext = SEPAExportContext.builder() .referenceAsEndToEndId(referenceAsEndToEndId) .build(); // // After the export header and lines have been created, marshal the document. final SEPACreditTransferXML xml = sepaDocumentBL.exportCreditTransferXML(sepaExport, exportContext); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.sepa\base\src\main\java\de\metas\payment\sepa\process\C_PaySelection_SEPA_XmlExport.java
1
请完成以下Java代码
public boolean supports(Class<?> containerType) { return Slice.class.isAssignableFrom(containerType); } @Override public <T> Collection<T> getContent(Object container) { Slice<T> slice = slice(container); return slice.getContent(); } @Override public boolean hasPrevious(Object container) { return slice(...
return slice(container).hasNext(); } @Override public String cursorAt(Object container, int index) { Slice<?> slice = slice(container); ScrollPosition position = ScrollPosition.offset((long) slice.getNumber() * slice.getSize() + index); return getCursorStrategy().toCursor(position); } @SuppressWarnings("un...
repos\spring-graphql-main\spring-graphql\src\main\java\org\springframework\graphql\data\query\SliceConnectionAdapter.java
1
请完成以下Java代码
public void setMaxBackoff(long maxBackoff) { this.maxBackoff = maxBackoff; } public int getBackoffDecreaseThreshold() { return backoffDecreaseThreshold; } public void setBackoffDecreaseThreshold(int backoffDecreaseThreshold) { this.backoffDecreaseThreshold = backoffDecreaseThreshold; } public...
} public void setRejectedJobsHandler(RejectedJobsHandler rejectedJobsHandler) { this.rejectedJobsHandler = rejectedJobsHandler; } protected void startJobAcquisitionThread() { if (jobAcquisitionThread == null) { jobAcquisitionThread = new Thread(acquireJobsRunnable, getName()); jobAcquisitionThread.s...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\jobexecutor\JobExecutor.java
1
请完成以下Java代码
public FetchExternalTasksExtendedDto getDto() { return dto; } public FetchAndLockRequest setDto(FetchExternalTasksExtendedDto dto) { this.dto = dto; return this; } public AsyncResponse getAsyncResponse() { return asyncResponse; } public FetchAndLockRequest setAsyncResponse(AsyncResponse a...
public FetchAndLockRequest setAuthentication(Authentication authentication) { this.authentication = authentication; return this; } public long getTimeoutTimestamp() { FetchExternalTasksExtendedDto dto = getDto(); long requestTime = getRequestTime().getTime(); long asyncResponseTimeout = dto.get...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\impl\FetchAndLockRequest.java
1
请在Spring Boot框架中完成以下Java代码
public Optional<AlreadyShippedHUsInPreviousSystem> getBySerialNo(@Nullable final String serialNo) { final String serialNoNorm = StringUtils.trimBlankToNull(serialNo); if (serialNoNorm == null) { return Optional.empty(); } try { final List<I_ServiceRepair_Old_Shipped_HU> rows = queryBL .createQu...
} catch (final Exception ex) { logger.debug("Failed fetching for {}. Returning empty.", serialNo, ex); return Optional.empty(); } } private static AlreadyShippedHUsInPreviousSystem fromRecord(@NonNull final I_ServiceRepair_Old_Shipped_HU record) { return AlreadyShippedHUsInPreviousSystem.builder() ...
repos\metasfresh-new_dawn_uat\backend\de.metas.servicerepair.base\src\main\java\de\metas\servicerepair\customerreturns\AlreadyShippedHUsInPreviousSystemRepository.java
2
请完成以下Java代码
public void setC_OrderLine(@NonNull final PPOrderId ppOrderId, @NonNull final OrderLineId orderLineId) { final I_PP_Order ppOrder = getById(ppOrderId); final I_C_OrderLine ol = orderDAO.getOrderLineById(orderLineId); ppOrder.setC_OrderLine(ol); ppOrdersRepo.save(ppOrder); } @Override public void postPPOrd...
return resourceDAO.getById(resourceId).getName(); } @Override public void updateDraftedOrdersMatchingBOM(@NonNull final ProductBOMVersionsId bomVersionsId, @NonNull final ProductBOMId newVersionId) { ppOrdersRepo.streamDraftedPPOrdersFor(bomVersionsId) .filter(draftedOrder -> !isSomethingProcessed(draftedOrd...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing\src\main\java\org\eevolution\api\impl\PPOrderBL.java
1
请完成以下Java代码
private List<String> getProductValuesWithPricesDependingOn(@NonNull final I_M_Product_TaxCategory productTaxCategory) { final IQuery<I_M_PriceList_Version> priceListVersionQuery; if (productTaxCategory.getC_Country_ID() > 0) { priceListVersionQuery = queryBL.createQueryBuilder(I_M_PriceList.class) .addOn...
return ImmutableList.of(); } final List<String> dependentProductValues = new ArrayList<>(); while (productPriceIterator.hasNext()) { final I_M_ProductPrice productPrice = productPriceIterator.next(); final boolean isSolelyDependentOnTheChangedTax = productTaxCategoryService.findAllFor(productPrice).cou...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\pricing\interceptor\M_Product_TaxCategory.java
1
请在Spring Boot框架中完成以下Java代码
protected boolean saveOrUpdateTbResource(TenantId tenantId, TbResourceId tbResourceId, ResourceUpdateMsg resourceUpdateMsg) { boolean resourceKeyUpdated = false; try { TbResource resource = JacksonUtil.fromString(resourceUpdateMsg.getEntity(), TbResource.class, true); if (resourc...
link -> edgeCtx.getResourceService().findTenantResourcesByResourceTypeAndPageLink(tenantId, resourceType, link), 1024); for (TbResource tbResource : resourcesIterable) { if (tbResource.getResourceKey().equals(resourceKey) && !tbResourceId.equals(tbResource.getId())) { res...
repos\thingsboard-master\application\src\main\java\org\thingsboard\server\service\edge\rpc\processor\resource\BaseResourceProcessor.java
2
请完成以下Java代码
public String getName() { return name; } public String getCacheName() { return cacheName; } public String getCacheListName() { return cacheListName; } public String getOutFilePath() { return outFilePath; } public String getOriginFilePath() { return...
} public void setUrl(String url) { this.url = url; } public Boolean getSkipDownLoad() { return skipDownLoad; } public void setSkipDownLoad(Boolean skipDownLoad) { this.skipDownLoad = skipDownLoad; } public String getTifPreviewType() { return tifPreviewType...
repos\kkFileView-master\server\src\main\java\cn\keking\model\FileAttribute.java
1
请完成以下Java代码
public List<HistoricCaseInstance> executeList(CommandContext commandContext, Page page) { checkQueryOk(); ensureVariablesInitialized(); return commandContext .getHistoricCaseInstanceManager() .findHistoricCaseInstancesByQueryCriteria(this, page); } @Override protected boolean hasExcluding...
return caseInstanceIds; } public String getStartedBy() { return createdBy; } public String getSuperCaseInstanceId() { return superCaseInstanceId; } public void setSuperCaseInstanceId(String superCaseInstanceId) { this.superCaseInstanceId = superCaseInstanceId; } public List<String> getCa...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\HistoricCaseInstanceQueryImpl.java
1
请完成以下Java代码
public Criteria andTagIdNotBetween(Long value1, Long value2) { addCriterion("tag_id not between", value1, value2, "tagId"); return (Criteria) this; } } public static class Criteria extends GeneratedCriteria { protected Criteria() { super(); } } ...
super(); this.condition = condition; this.typeHandler = null; this.noValue = true; } protected Criterion(String condition, Object value, String typeHandler) { super(); this.condition = condition; this.value = value; thi...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\UmsMemberMemberTagRelationExample.java
1
请完成以下Java代码
public class Responder { @GET @Path("/ok") public Response getOkResponse() { String message = "This is a text response"; return Response .status(Response.Status.OK) .entity(message) .build(); } @GET @Path("/not_ok") public Response getNOkText...
Person person = new Person("Abh", "Nepal"); return Response .status(Response.Status.OK) .entity(person) .build(); } @GET @Path("/json") public Response getJsonResponse() { String message = "{\"hello\": \"This is a JSON response\"}"; return Respon...
repos\tutorials-master\web-modules\jersey\src\main\java\com\baeldung\jersey\server\Responder.java
1
请完成以下Java代码
public void setThresholdMax (BigDecimal ThresholdMax) { set_Value (COLUMNNAME_ThresholdMax, ThresholdMax); } /** Get Threshold max. @return Maximum gross amount for withholding calculation (0=no limit) */ public BigDecimal getThresholdMax () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ThresholdM...
public void setThresholdmin (BigDecimal Thresholdmin) { set_Value (COLUMNNAME_Thresholdmin, Thresholdmin); } /** Get Threshold min. @return Minimum gross amount for withholding calculation */ public BigDecimal getThresholdmin () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Thresholdmin); if (bd ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_Withholding.java
1
请完成以下Java代码
public JSONDocumentField setMandatory(final boolean mandatory) { setMandatory(mandatory, null); return this; } public JSONDocumentField setDisplayed(final boolean displayed, @Nullable final String reason) { this.displayed = displayed; displayedReason = reason; return this; } public JSONDocumentField s...
} public JSONDocumentField putDebugProperty(final String name, final Object jsonValue) { otherProperties.put("debug-" + name, jsonValue); return this; } public void putDebugProperties(final Map<String, Object> debugProperties) { if (debugProperties == null || debugProperties.isEmpty()) { return; } ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\datatypes\json\JSONDocumentField.java
1
请完成以下Java代码
boolean isWildcardMatching() { return type == AttributeKeyPartPatternType.AttributeId; } AttributesKeyPart toAttributeKeyPart(@Nullable final AttributesKey context) { if (type == AttributeKeyPartPatternType.All) { return AttributesKeyPart.ALL; } else if (type == AttributeKeyPartPatternType.Other) { ...
{ return AttributesKeyPart.ofAttributeIdAndValue(attributeId, value); } else if (type == AttributeKeyPartPatternType.AttributeId) { if (context == null) { throw new AdempiereException("Context is required to convert `" + this + "` to " + AttributesKeyPart.class); } final String valueEffective =...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\org\adempiere\mm\attributes\keys\AttributesKeyPartPattern.java
1
请完成以下Java代码
public class X_PP_Workstation_UserAssign extends org.compiere.model.PO implements I_PP_Workstation_UserAssign, org.compiere.model.I_Persistent { private static final long serialVersionUID = 1053625593L; /** Standard Constructor */ public X_PP_Workstation_UserAssign (final Properties ctx, final int PP_Workst...
{ if (PP_Workstation_UserAssign_ID < 1) set_ValueNoCheck (COLUMNNAME_PP_Workstation_UserAssign_ID, null); else set_ValueNoCheck (COLUMNNAME_PP_Workstation_UserAssign_ID, PP_Workstation_UserAssign_ID); } @Override public int getPP_Workstation_UserAssign_ID() { return get_ValueAsInt(COLUMNNAME_PP_Work...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_PP_Workstation_UserAssign.java
1
请完成以下Java代码
private void copyPropertySources(ConfigurableEnvironment source, ConfigurableEnvironment target) { removePropertySources(target.getPropertySources(), isServletEnvironment(target.getClass(), this.classLoader)); for (PropertySource<?> propertySource : source.getPropertySources()) { if (!SERVLET_ENVIRONMENT_SOURCE_...
} } private void removePropertySources(MutablePropertySources propertySources, boolean isServletEnvironment) { Set<String> names = new HashSet<>(); for (PropertySource<?> propertySource : propertySources) { names.add(propertySource.getName()); } for (String name : names) { if (!isServletEnvironment || ...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\EnvironmentConverter.java
1
请完成以下Java代码
public String getNamespace() { return namespace; } public void setNamespace(String namespace) { this.namespace = namespace; } @Override public String toString() { StringBuilder sb = new StringBuilder(); if (namespacePrefix != null) { sb.append(namespaceP...
} public ExtensionAttribute clone() { ExtensionAttribute clone = new ExtensionAttribute(); clone.setValues(this); return clone; } public void setValues(ExtensionAttribute otherAttribute) { setName(otherAttribute.getName()); setValue(otherAttribute.getValue()); ...
repos\Activiti-develop\activiti-core\activiti-bpmn-model\src\main\java\org\activiti\bpmn\model\ExtensionAttribute.java
1
请完成以下Java代码
public DmnTransformException decisionTableRuleIdIsMissing(DmnDecision dmnDecision, DmnDecisionTableRuleImpl dmnDecisionTableRule) { return new DmnTransformException(exceptionMessage( "013", "The decision table rule '{}' of decision '{}' must have a 'id' attribute set.", dmnDecisionTableRule, dmnDecision...
return new DmnTransformException(exceptionMessage( "016", "Error while transforming decision requirements graph: " + cause.getMessage()), cause ); } public DmnTransformException drdIdIsMissing(DmnDecisionRequirementsGraph drd) { return new DmnTransformException(exceptionMessage( "01...
repos\camunda-bpm-platform-master\engine-dmn\engine\src\main\java\org\camunda\bpm\dmn\engine\impl\transform\DmnTransformLogger.java
1
请完成以下Java代码
public void setC_PaymentTerm_ID (final int C_PaymentTerm_ID) { if (C_PaymentTerm_ID < 1) set_ValueNoCheck (COLUMNNAME_C_PaymentTerm_ID, null); else set_ValueNoCheck (COLUMNNAME_C_PaymentTerm_ID, C_PaymentTerm_ID); } @Override public int getC_PaymentTerm_ID() { return get_ValueAsInt(COLUMNNAME_C_Pay...
public static final int NETDAY_AD_Reference_ID=167; /** Sunday = 7 */ public static final String NETDAY_Sunday = "7"; /** Monday = 1 */ public static final String NETDAY_Monday = "1"; /** Tuesday = 2 */ public static final String NETDAY_Tuesday = "2"; /** Wednesday = 3 */ public static final String NETDAY_Wedne...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_PaySchedule.java
1
请完成以下Java代码
public static void disableDistributedEvents() { if (!distributedEventsEnabled) { return; } distributedEventsEnabled = false; getLogger(EventBusConfig.class).info("Distributed events broadcasting disabled"); } /** * Topic used for general notifications. To be used mainly for broadcasting messages to ...
// NOTE: in case of unit tests which are checking what notifications were arrived, // allowing the events to be posted async could be a problem because the event might arrive after the check. if (Adempiere.isUnitTestMode()) { return false; } final String nameForAllTopics = "de.metas.event.asyncEventBus"; ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\event\EventBusConfig.java
1
请完成以下Java代码
public static class Builder<T> { private final Set<T> includes = new LinkedHashSet<>(); private final Set<T> excludes = new LinkedHashSet<>(); private IncludeExcludeListPredicate<T> lastBuilt = null; private Builder() { super(); } public IncludeExcludeListPredicate<T> build() { if (lastBuilt !=...
public Builder<T> exclude(final T itemToExclude) { // guard against null: tollerate it but do nothing if (itemToExclude == null) { return this; } final boolean added = excludes.add(itemToExclude); // Reset last built, in case of change if (added) { lastBuilt = null; } return t...
repos\metasfresh-new_dawn_uat\backend\de.metas.util\src\main\java\de\metas\util\collections\IncludeExcludeListPredicate.java
1
请在Spring Boot框架中完成以下Java代码
public ImmutableList<ImmutableList<HUItemToGroup>> buildGroups() { return key2Group.values() .stream() .map(ImmutableList.Builder::build) .collect(ImmutableList.toImmutableList()); } } @Value @Builder private static class HUItemToGroup { @NonNull I_M_HU hu; @NonNull ProductId productId; ...
public boolean isGroupingByMatchingAttributesEnabled() { return productQrCodeConfiguration != null && productQrCodeConfiguration.isGroupingByAttributesEnabled(); } } private interface GroupKey {} @Value @Builder private static class TUGroupKey implements GroupKey { @NonNull ProductId productId; @NonN...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\qrcodes\service\HUQRCodeGenerateForExistingHUsCommand.java
2
请完成以下Java代码
public String getValueAsString() { return data != null ? data.getValue() : null; } public <T> T getValue(@NonNull final Function<String, T> mapper) { final String valueStr = getValueAsString(); if (valueStr == null) { return null; } return mapper.apply(valueStr); } public BigDecimal getValueAsBi...
return null; } } public Integer getValueAsInteger() { return getValue(COL::toInteger); } private static Integer toInteger(final String valueStr) { if (valueStr == null || valueStr.trim().isEmpty()) { return null; } try { return Integer.parseInt(valueStr); } catch (final Exception e) {...
repos\metasfresh-new_dawn_uat\misc\de-metas-common\de-metas-common-filemaker\src\main\java\de\metas\common\filemaker\COL.java
1
请在Spring Boot框架中完成以下Java代码
public void setSubScopeId(String subScopeId) { this.subScopeId = subScopeId; } @Override public void setScopeType(String scopeType) { this.scopeType = scopeType; } @Override public void setTenantId(String tenantId) { this.tenantId = tenantId; } @Override pu...
@Override public String getExecutionId() { return executionId; } @Override public String getProcessInstanceId() { return processInstanceId; } @Override public String getProcessDefinitionId() { return processDefinitionId; } @Override public String getSco...
repos\flowable-engine-main\modules\flowable-task-service\src\main\java\org\flowable\task\service\impl\persistence\entity\HistoricTaskLogEntryEntityImpl.java
2
请完成以下Java代码
public class Palindrome { public boolean isPalindrome(String text) { String clean = text.replaceAll("\\s+", "") .toLowerCase(); int length = clean.length(); int forward = 0; int backward = length - 1; while (backward > forward) { char forwardChar = cl...
if (forward == backward) return true; if ((text.charAt(forward)) != (text.charAt(backward))) return false; if (forward < backward + 1) { return recursivePalindrome(text, forward + 1, backward - 1); } return true; } public boolean isPalindrome...
repos\tutorials-master\core-java-modules\core-java-string-algorithms-2\src\main\java\com\baeldung\palindrom\Palindrome.java
1
请完成以下Java代码
protected byte[] serializeToByteArray(Object deserializedObject) throws Exception { ByteArrayOutputStream out = new ByteArrayOutputStream(); OutputStreamWriter outWriter = new OutputStreamWriter(out, Context.getProcessEngineConfiguration().getDefaultCharset()); BufferedWriter bufferedWriter = new BufferedWr...
try { Object wrapper = dataFormat.getReader().readInput(bufferedReader); return dataFormat.createWrapperInstance(wrapper); } finally{ IoUtil.closeSilently(bais); IoUtil.closeSilently(inReader); IoUtil.closeSilently(bufferedReader); } } protected boolean isSerializationTex...
repos\camunda-bpm-platform-master\engine-plugins\spin-plugin\src\main\java\org\camunda\spin\plugin\impl\SpinValueSerializer.java
1
请完成以下Java代码
public Element setLang(String lang) { addAttribute("lang",lang); addAttribute("xml:lang",lang); return this; } /** Adds an Element to the element. @param hashcode name of element for hash table @param element Adds an Element to the element. ...
@param element Adds an Element to the element. */ public title addElement(String element) { addElementToRegistry(element); return(this); } /** Removes an Element from the element. @param hashcode the name of the element to be removed. */ public ti...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\tools\src\main\java-legacy\org\apache\ecs\xhtml\title.java
1
请完成以下Java代码
public java.math.BigDecimal getQty () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty); if (bd == null) { return Env.ZERO; } return bd; } /** Set Menge (old). @param Qty_Old Menge (old) */ @Override public void setQty_Old (java.math.BigDecimal Qty_Old) { set_Value (COLUMNNAME_Qty_Old, Q...
@param Type Type of Validation (SQL, Java Script, Java Language) */ @Override public void setType (java.lang.String Type) { set_Value (COLUMNNAME_Type, Type); } /** Get Art. @return Type of Validation (SQL, Java Script, Java Language) */ @Override public java.lang.String getType () { return (jav...
repos\metasfresh-new_dawn_uat\backend\de.metas.procurement.base\src\main\java-gen\de\metas\procurement\base\model\X_PMM_RfQResponse_ChangeEvent.java
1
请完成以下Java代码
public Map<String, List<ExtensionElement>> getChildElements() { return childElements; } public void addChildElement(ExtensionElement childElement) { if (childElement != null && StringUtils.isNotEmpty(childElement.getName())) { List<ExtensionElement> elementList = null; i...
childElements = new LinkedHashMap<String, List<ExtensionElement>>(); if (otherElement.getChildElements() != null && !otherElement.getChildElements().isEmpty()) { for (String key : otherElement.getChildElements().keySet()) { List<ExtensionElement> otherElementList = otherElement.getCh...
repos\Activiti-develop\activiti-core\activiti-bpmn-model\src\main\java\org\activiti\bpmn\model\ExtensionElement.java
1
请完成以下Java代码
public class DeleteHistoricDecisionInstancesBulkCmd implements Command<Object> { protected final List<String> decisionInstanceIds; public DeleteHistoricDecisionInstancesBulkCmd(List<String> decisionInstanceIds) { this.decisionInstanceIds = decisionInstanceIds; } @Override public Object execute(CommandC...
commandContext.getHistoricDecisionInstanceManager().deleteHistoricDecisionInstanceByIds(decisionInstanceIds); return null; } protected void writeUserOperationLog(CommandContext commandContext, int numInstances) { List<PropertyChange> propertyChanges = new ArrayList<PropertyChange>(); propertyChanges.a...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\dmn\cmd\DeleteHistoricDecisionInstancesBulkCmd.java
1
请完成以下Spring Boot application配置
spring.application.name=sample-08 spring.kafka.template.observation-enabled=true spring.kafka.template.default-topic=observation-topic spring.kafka.listener.observation-enabled=true spring.kafka.consumer.group-id=observation-group spring.kafka.consumer.auto-offset-reset=earliest logging.pattern.level=%5p [${spring.ap...
name:},%X{traceId:-},%X{spanId:-}] logging.level.root=error logging.level.com.example.sample08=info management.tracing.sampling.probability=1
repos\spring-kafka-main\samples\sample-08\src\main\resources\application.properties
2
请在Spring Boot框架中完成以下Java代码
public Class<? extends DeadLetterJobEntity> getManagedEntityClass() { return DeadLetterJobEntityImpl.class; } @Override public DeadLetterJobEntity create() { return new DeadLetterJobEntityImpl(); } @Override public DeadLetterJobEntity findJobByCorrelationId(String correlationId...
@SuppressWarnings("unchecked") public List<DeadLetterJobEntity> findJobsByProcessInstanceId(final String processInstanceId) { return getDbSqlSession().selectList("selectDeadLetterJobsByProcessInstanceId", processInstanceId); } @Override public void updateJobTenantIdForDeployment(String deployme...
repos\flowable-engine-main\modules\flowable-job-service\src\main\java\org\flowable\job\service\impl\persistence\entity\data\impl\MybatisDeadLetterJobDataManager.java
2
请完成以下Java代码
public abstract class AbstractScriptDecoratorAdapter implements IScriptScanner { private final IScriptScanner internalScanner; public AbstractScriptDecoratorAdapter(final IScriptScanner scanner) { internalScanner = scanner; } protected IScriptScanner getInternalScanner() { return internalScanner; } @Over...
} @Override public void setScriptFactory(IScriptFactory scriptFactory) { internalScanner.setScriptFactory(scriptFactory); } @Override public IScriptFactory getScriptFactoryToUse() { return internalScanner.getScriptFactoryToUse(); } @Override public boolean hasNext() { return internalScanner.hasNext(...
repos\metasfresh-new_dawn_uat\backend\de.metas.migration\de.metas.migration.base\src\main\java\de\metas\migration\scanner\impl\AbstractScriptDecoratorAdapter.java
1
请在Spring Boot框架中完成以下Java代码
public BigDecimal getBaseAmount() { return baseAmount; } /** * Sets the value of the baseAmount property. * * @param value * allowed object is * {@link BigDecimal } * */ public void setBaseAmount(BigDecimal value) { this.baseAmount = value; ...
*/ public void setAmount(BigDecimal value) { this.amount = value; } /** * Free text comment field for the given discount. * * @return * possible object is * {@link String } * */ public String getComment() { return comment; } /** ...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_ecosio_remadv\at\erpel\schemas\_1p0\documents\DiscountType.java
2
请完成以下Java代码
private static String getDbType() { return CommonUtils.getDatabaseType(); } /** * 获取前端传过来的 "多字段排序信息: sortInfoString" * @return */ public static List<OrderItem> getQueryConditionOrders(String column, String order, String queryInfoString){ List<OrderItem> list = new ArrayList<>...
} log.info("queryInfoString 解码 = {}", queryInfoString); } JSONArray array = JSONArray.parseArray(queryInfoString); Iterator it = array.iterator(); while(it.hasNext()){ JSONObject json = (JSONObject)it.next(); String tempColu...
repos\JeecgBoot-main\jeecg-boot\jeecg-boot-base-core\src\main\java\org\jeecg\common\system\util\SqlConcatUtil.java
1
请完成以下Java代码
public Map<MessageCorrelationResultImpl, List<PropertyChange>> getPropChangesForOperation(List<MessageCorrelationResultImpl> results) { Map<MessageCorrelationResultImpl, List<PropertyChange>> resultPropChanges = new HashMap<>(); for (MessageCorrelationResultImpl messageCorrelationResultImpl : results) { L...
propChanges.add(new PropertyChange("nrOfInstances", null, results.size())); return propChanges; } protected List<PropertyChange> getGenericPropChangesForOperation() { ArrayList<PropertyChange> propChanges = new ArrayList<>(); propChanges.add(new PropertyChange("messageName", null, messageName)); i...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\cmd\CorrelateAllMessageCmd.java
1
请完成以下Java代码
public void setM_CostType(final org.compiere.model.I_M_CostType M_CostType) { set_ValueFromPO(COLUMNNAME_M_CostType_ID, org.compiere.model.I_M_CostType.class, M_CostType); } @Override public void setM_CostType_ID (final int M_CostType_ID) { if (M_CostType_ID < 1) set_Value (COLUMNNAME_M_CostType_ID, null)...
@Override public int getM_Product_ID() { return get_ValueAsInt(COLUMNNAME_M_Product_ID); } @Override public void setNewCostPrice (final BigDecimal NewCostPrice) { set_Value (COLUMNNAME_NewCostPrice, NewCostPrice); } @Override public BigDecimal getNewCostPrice() { final BigDecimal bd = get_ValueAsBig...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_CostRevaluationLine.java
1
请完成以下Java代码
public PostalAddressSEPA createPostalAddressSEPA() { return new PostalAddressSEPA(); } /** * Create an instance of {@link PurposeSEPA } * */ public PurposeSEPA createPurposeSEPA() { return new PurposeSEPA(); } /** * Create an instance of {@link RemittanceInform...
* */ public StructuredRemittanceInformationSEPA1 createStructuredRemittanceInformationSEPA1() { return new StructuredRemittanceInformationSEPA1(); } /** * Create an instance of {@link JAXBElement }{@code <}{@link Document }{@code >} * * @param value * Java instance re...
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.sepa\schema-pain_008_003_02\src\main\java-xjc\de\metas\payment\sepa\jaxb\sct\pain_008_003_02\ObjectFactory.java
1
请完成以下Java代码
public PickingSlotQueues getNotEmptyQueues(@NonNull final PickingSlotQueueQuery query) { final ImmutableListMultimap<PickingSlotId, PickingSlotQueueItem> items = dao.retrieveAllPickingSlotHUs(query) .stream() .collect(ImmutableListMultimap.toImmutableListMultimap( PickingSlotQueueRepository::extractPic...
} private static @NonNull PickingSlotId extractPickingSlotId(final I_M_PickingSlot_HU queueItemRecord) { return PickingSlotId.ofRepoId(queueItemRecord.getM_PickingSlot_ID()); } private static PickingSlotQueueItem fromRecord(final I_M_PickingSlot_HU queueItemRecord) { return PickingSlotQueueItem.builder() ...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\picking\slot\PickingSlotQueueRepository.java
1