instruction
string
input
string
output
string
source_file
string
priority
int64
请在Spring Boot框架中完成以下Java代码
public JdbcCursorItemReader<Product> dbReader() { return new JdbcCursorItemReaderBuilder<Product>() .name("dbReader") .dataSource(dataSource()) .sql("SELECT productid, productname, stock, price FROM products") .rowMapper((rs, rowNum) -> new Product( ...
}; } @Bean public Step step(JobRepository jobRepository, PlatformTransactionManager transactionManager, @Qualifier("compositeReader") ItemReader<Product> compositeReader, ItemWriter<Product> productWriter) { return new StepBuilder("productStep", jobRepository) .<Product, Product>chunk(...
repos\tutorials-master\spring-batch-2\src\main\java\com\baeldung\batch\CompositeItemReaderConfig.java
2
请完成以下Java代码
public AssetProfile findDefaultEntityByTenantId(UUID tenantId) { return findDefaultAssetProfile(TenantId.fromUUID(tenantId)); } @Override public List<AssetProfileInfo> findByTenantAndImageLink(TenantId tenantId, String imageLink, int limit) { return assetProfileRepository.findByTenantAndIma...
public PageData<AssetProfile> findAllByTenantId(TenantId tenantId, PageLink pageLink) { return findByTenantId(tenantId.getId(), pageLink); } @Override public List<AssetProfileFields> findNextBatch(UUID id, int batchSize) { return assetProfileRepository.findNextBatch(id, Limit.of(batchSize))...
repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\sql\asset\JpaAssetProfileDao.java
1
请完成以下Java代码
public String getProcessDefinitionId() { return processDefinitionId; } public void setProcessDefinitionId(String processDefinitionId) { this.processDefinitionId = processDefinitionId; } public String getProcessInstanceId() { return processInstanceId; } public void setP...
return getClass() + " - " + type; } public String getReason() { return reason; } public void setReason(String reason) { this.reason = reason; } public String getActor() { return actor; } public void setActor(String actor) { this.actor = actor; } }
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\delegate\event\impl\ActivitiEventImpl.java
1
请完成以下Java代码
private static LocalDateTime max(final Collection<LocalDateTime> dates) { Check.assumeNotEmpty(dates, "dates is not empty"); return dates.stream().max(Comparator.naturalOrder()).get(); } // // // // // public static class DateSequenceGeneratorBuilder { public DateSequenceGeneratorBuilder byDay() { ...
private static ICalendarIncrementor createCalendarIncrementor(final Frequency frequency) { if (frequency.isWeekly()) { return CalendarIncrementors.eachNthWeek(frequency.getEveryNthWeek(), DayOfWeek.MONDAY); } else if (frequency.isMonthly()) { return CalendarIncrementors.eachNthMonth(frequency.g...
repos\metasfresh-new_dawn_uat\backend\de.metas.util\src\main\java\de\metas\util\time\generator\DateSequenceGenerator.java
1
请完成以下Java代码
public void changePriceIfNeeded(@NonNull final I_C_Flatrate_Term contract, final BigDecimal priceActual) { if (priceActual != null) { changeFlatrateTermPrice(contract, priceActual); subscriptionBL.createPriceChange(contract); } } public void changeQtyIfNeeded(@NonNull final I_C_Flatrate_Term contract, f...
invalidateInvoiceCandidatesOfFlatrateTerm(term); } private void invalidateInvoiceCandidatesOfFlatrateTerm(@NonNull final I_C_Flatrate_Term term) { Services.get(IInvoiceCandidateHandlerBL.class).invalidateCandidatesFor(term); } private void changeQtyInSubscriptionProgressOfFlatrateTerm(@NonNull final I_C_Flatra...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\impl\ContractChangePriceQtyService.java
1
请完成以下Java代码
public long getCreatedTime() { return createdTime; } public void setCreatedTime(long createdTime) { this.createdTime = createdTime; } @Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + Long.hashCo...
if (getClass() != obj.getClass()) return false; BaseData other = (BaseData) obj; return createdTime == other.createdTime; } @Override public String toString() { StringBuilder builder = new StringBuilder(); builder.append("BaseData [createdTime="); builder...
repos\thingsboard-master\common\data\src\main\java\org\thingsboard\server\common\data\BaseData.java
1
请完成以下Java代码
public String getName() { return name; } @Override public int getRevision() { return revision; } @Override public void setRevision(int revision) { this.revision = revision; } public String getValue() { return value; } public void setValue(Strin...
return name; } @Override public Object getPersistentState() { return value; } @Override public void setId(String id) { throw new ActivitiException("only provided id generation allowed for properties"); } @Override public int getRevisionNext() { return revis...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\persistence\entity\PropertyEntity.java
1
请完成以下Java代码
public void setInfo(final String text) { infoLine.setVisible(true); infoLine.setText(text); } // setInfo /** * Show {@link RecordInfo} dialog */ private void showRecordInfo() { if (m_dse == null) { return; } final int adTableId = m_dse.getAdTableId(); final ComposedRecordId recordId = m_dse....
return; } if (!Env.getUserRolePermissions().isShowPreference()) { return; } // final RecordInfo info = new RecordInfo(SwingUtils.getFrame(this), adTableId, recordId); AEnv.showCenterScreen(info); } public void removeBorders() { statusLine.setBorder(BorderFactory.createEmptyBorder()); statusDB...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\apps\StatusBar.java
1
请完成以下Java代码
public String getSsn() { return ssn; } /** * Sets the value of the ssn property. * * @param value * allowed object is * {@link String } * */ public void setSsn(String value) { this.ssn = value; } /** * Gets the value of the nif ...
* */ public String getNif() { return nif; } /** * Sets the value of the nif property. * * @param value * allowed object is * {@link String } * */ public void setNif(String value) { this.nif = value; } }
repos\metasfresh-new_dawn_uat\backend\vertical-healthcare_ch\forum_datenaustausch_ch.invoice_440_request\src\main\java-xjc\de\metas\vertical\healthcare_ch\forum_datenaustausch_ch\invoice_440\request\IvgLawType.java
1
请完成以下Java代码
public String asString() { return "messaging.system"; } }, /** * Messaging operation. */ MESSAGING_OPERATION { @Override @NonNull public String asString() { return "messaging.operation"; } }, /** * Messaging destination name. */ MESSAGING_DESTINATION_NAME { @Overr...
*/ public static final DefaultKafkaTemplateObservationConvention INSTANCE = new DefaultKafkaTemplateObservationConvention(); @Override public KeyValues getLowCardinalityKeyValues(KafkaRecordSenderContext context) { return KeyValues.of( TemplateLowCardinalityTags.BEAN_NAME.withValue(context.getBeanNam...
repos\spring-kafka-main\spring-kafka\src\main\java\org\springframework\kafka\support\micrometer\KafkaTemplateObservation.java
1
请在Spring Boot框架中完成以下Java代码
public Optional<InvoicePaySchedule> getByInvoiceId(@NonNull final InvoiceId invoiceId) { return invoicePayScheduleRepository.getByInvoiceId(invoiceId); } public void createInvoicePaySchedules(final I_C_Invoice invoice) { InvoicePayScheduleCreateCommand.builder() .invoicePayScheduleRepository(invoicePaySche...
if (invoiceIds.isEmpty()) {return;} final ImmutableMap<InvoiceId, I_C_Invoice> invoicesById = Maps.uniqueIndex( invoiceBL.getByIds(invoiceIds), invoice -> InvoiceId.ofRepoId(invoice.getC_Invoice_ID()) ); invoicePayScheduleRepository.updateByIds(invoicesById.keySet(), invoicePaySchedule -> { final I_C...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\invoice\paymentschedule\service\InvoicePayScheduleService.java
2
请完成以下Java代码
public class PropertiesBasedDataSourceScriptDatabaseInitializer<T extends DatabaseInitializationProperties> extends DataSourceScriptDatabaseInitializer { /** * Create a new {@link PropertiesBasedDataSourceScriptDatabaseInitializer} instance. * @param dataSource the data source * @param properties the configur...
settings.setSchemaLocations(resolveSchemaLocations(dataSource, properties, driverMappings)); settings.setMode(properties.getInitializeSchema()); settings.setContinueOnError(properties.isContinueOnError()); return settings; } private static <T extends DatabaseInitializationProperties> List<String> resolveSchema...
repos\spring-boot-4.0.1\module\spring-boot-jdbc\src\main\java\org\springframework\boot\jdbc\init\PropertiesBasedDataSourceScriptDatabaseInitializer.java
1
请在Spring Boot框架中完成以下Java代码
public class Movie { @Id @MovieGeneratedId private Long id; private String title; private String director; public Movie() { } public Movie(Long id, String title, String director) { this.id = id; this.title = title; this.director = director; } public M...
return id; } public void setId(Long id) { this.id = id; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getDirector() { return director; } public void setDirector(String dir...
repos\tutorials-master\persistence-modules\hibernate6\src\main\java\com\baeldung\customidgenerator\Movie.java
2
请完成以下Java代码
public int getC_BPartner_Location_ID() { return get_ValueAsInt(COLUMNNAME_C_BPartner_Location_ID); } @Override public void setC_BPartner_Representative_ID (final int C_BPartner_Representative_ID) { if (C_BPartner_Representative_ID < 1) set_Value (COLUMNNAME_C_BPartner_Representative_ID, null); else ...
set_Value (COLUMNNAME_To_Country_ID, null); else set_Value (COLUMNNAME_To_Country_ID, To_Country_ID); } @Override public int getTo_Country_ID() { return get_ValueAsInt(COLUMNNAME_To_Country_ID); } @Override public void setValidFrom (final java.sql.Timestamp ValidFrom) { set_Value (COLUMNNAME_ValidF...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_Fiscal_Representation.java
1
请在Spring Boot框架中完成以下Java代码
public String getOpenId() { return openId; } public void setOpenId(String openId) { this.openId = openId; } public String getPayWayCode() { return payWayCode; } public void setPayWayCode(String payWayCode) { this.payWayCode = payWayCode; }
public String getRemark() { return remark; } public void setRemark(String remark) { this.remark = remark; } public String getSign() { return sign; } public void setSign(String sign) { this.sign = sign; } }
repos\roncoo-pay-master\roncoo-pay-service\src\main\java\com\roncoo\pay\trade\vo\AuthProgramInitParamVo.java
2
请在Spring Boot框架中完成以下Java代码
public List<PmsOperatorRole> listOperatorRoleByOperatorId(Long operatorId) { return pmsOperatorRoleDao.listByOperatorId(operatorId); } /** * 保存操作員信息及其关联的角色. * * @param pmsOperator * . * @param OperatorRoleStr * . */ public void saveOperator(PmsOperator pmsOperator, String Oper...
Map<Long, PmsOperatorRole> delMap = new HashMap<Long, PmsOperatorRole>(); for (PmsOperatorRole pmsOperatorRole : listPmsOperatorRoles) { delMap.put(pmsOperatorRole.getRoleId(), pmsOperatorRole); } if (StringUtils.isNotBlank(roleIdsStr)) { // 创建新的关联 String[] roleIds = roleIdsStr.split(","); for (int i ...
repos\roncoo-pay-master\roncoo-pay-service\src\main\java\com\roncoo\pay\permission\service\impl\PmsOperatorRoleServiceImpl.java
2
请完成以下Java代码
public Set<LogLevel> getSupportedLogLevels() { return LEVELS.getSupported(); } @Override public void setLogLevel(@Nullable String loggerName, @Nullable LogLevel level) { if (loggerName == null || ROOT_LOGGER_NAME.equals(loggerName)) { loggerName = ""; } Logger logger = Logger.getLogger(loggerName); if ...
return logger.getLevel(); } @Override public Runnable getShutdownHandler() { return () -> LogManager.getLogManager().reset(); } @Override public void cleanUp() { this.configuredLoggers.clear(); } /** * {@link LoggingSystemFactory} that returns {@link JavaLoggingSystem} if possible. */ @Order(Ordered...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\logging\java\JavaLoggingSystem.java
1
请完成以下Java代码
private List<Object> castToNumericIfPossible(List<Object> values) { try { if (values.get(6) != null && NumberUtils.isNumber(values.get(6).toString())) { Double casted = NumberUtils.createDouble(values.get(6).toString()); List<Object> numeric = Lists.newArrayList(); ...
return values; } private boolean isBlockFinished(String line) { return StringUtils.isBlank(line) || line.equals("\\."); } private boolean isBlockTsStarted(String line) { return line.startsWith("COPY public.ts_kv ("); } private boolean isBlockLatestStarted(String line) { ...
repos\thingsboard-master\tools\src\main\java\org\thingsboard\client\tools\migrator\PgCaMigrator.java
1
请完成以下Java代码
public Builder verificationUri(String verificationUri) { this.verificationUri = verificationUri; return this; } /** * Sets the end-user verification URI that includes the user code. * @param verificationUriComplete the end-user verification URI that includes the * user code * @return the {@link B...
} /** * Builds a new {@link OAuth2DeviceAuthorizationResponse}. * @return a {@link OAuth2DeviceAuthorizationResponse} */ public OAuth2DeviceAuthorizationResponse build() { Assert.hasText(this.verificationUri, "verificationUri cannot be empty"); Assert.isTrue(this.expiresIn > 0, "expiresIn must be gr...
repos\spring-security-main\oauth2\oauth2-core\src\main\java\org\springframework\security\oauth2\core\endpoint\OAuth2DeviceAuthorizationResponse.java
1
请在Spring Boot框架中完成以下Java代码
public class JsonRequestBankAccountUpsertItem { @ApiModelProperty(position = 10, allowEmptyValue = false) @JsonProperty("iban") String iban; @ApiModelProperty(position = 20, allowEmptyValue = true) @JsonProperty("currencyCode") String currencyCode; @ApiModelProperty(position = 30, required = false, value = "If...
@ApiModelProperty(value = "Sync advise about this contact's individual properties.\n" + PARENT_SYNC_ADVISE_DOC) @JsonInclude(Include.NON_NULL) SyncAdvise syncAdvise; @JsonCreator public JsonRequestBankAccountUpsertItem( @JsonProperty("iban") @NonNull String iban, @JsonProperty("currencyCode") @Nullable final...
repos\metasfresh-new_dawn_uat\misc\de-metas-common\de-metas-common-bpartner\src\main\java\de\metas\common\bpartner\v2\request\JsonRequestBankAccountUpsertItem.java
2
请完成以下Java代码
public class ErrorEndEventActivityBehavior extends FlowNodeActivityBehavior { private static final long serialVersionUID = 1L; protected String errorCode; protected List<IOParameter> outParameters; public ErrorEndEventActivityBehavior(String errorCode, List<IOParameter> outParameters) { this....
Object errorMessage = payload.remove("errorMessage"); BpmnError error = new BpmnError(errorCode, errorMessage != null ? errorMessage.toString() : null); if (!payload.isEmpty()) { error.setAdditionalDataContainer(new VariableContainerWrapper(payload)); } ErrorPropagation.propa...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\bpmn\behavior\ErrorEndEventActivityBehavior.java
1
请完成以下Java代码
public void setMSV3_Tourabweichung (boolean MSV3_Tourabweichung) { set_Value (COLUMNNAME_MSV3_Tourabweichung, Boolean.valueOf(MSV3_Tourabweichung)); } /** Get Tourabweichung. @return Tourabweichung */ @Override public boolean isMSV3_Tourabweichung () { Object oo = get_Value(COLUMNNAME_MSV3_Tourabweichun...
/** KeineLieferungAberVerbundMoeglich = KeineLieferungAberVerbundMoeglich */ public static final String MSV3_TYP_KeineLieferungAberVerbundMoeglich = "KeineLieferungAberVerbundMoeglich"; /** KeineLieferungAberNachlieferungMoeglich = KeineLieferungAberNachlieferungMoeglich */ public static final String MSV3_TYP_KeineL...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma.vendor.gateway.msv3\src\main\java-gen\de\metas\vertical\pharma\vendor\gateway\msv3\model\X_MSV3_BestellungAnteil.java
1
请完成以下Java代码
public String getName() { return name; } public void setName(String name) { this.name = name; } public String getYear() { return year; } public void setYear(String year) { this.year = year; }
public String getDirector() { return director; } public void setDirector(String director) { this.director = director; } public Double getRating() { return rating; } public void setRating(Double rating) { this.rating = rating; } }
repos\tutorials-master\web-modules\ratpack\src\main\java\com\baeldung\model\Movie.java
1
请完成以下Java代码
public void setName2 (String Name2) { set_Value (COLUMNNAME_Name2, Name2); } /** Get Name 2. @return Additional Name */ public String getName2 () { return (String)get_Value(COLUMNNAME_Name2); } /** Set National Code. @param NationalCode National Code */ public void setNationalCode (String Nation...
set_Value (COLUMNNAME_SSCode, SSCode); } /** Get Social Security Code. @return Social Security Code */ public String getSSCode () { return (String)get_Value(COLUMNNAME_SSCode); } /** Set Start Date. @param StartDate First effective day (inclusive) */ public void setStartDate (Timestamp StartDate...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\eevolution\model\X_HR_Employee.java
1
请完成以下Java代码
public class MyCommonsMultipartFile implements MultipartFile { private final byte[] fileContent; private final String fileName; private final String contentType; // 新增构造方法,支持 FileItem 参数 public MyCommonsMultipartFile(FileItem fileItem) throws IOException { this.fileName = fileItem.getName(...
@Override public boolean isEmpty() { return fileContent.length == 0; } @Override public long getSize() { return fileContent.length; } @Override public byte[] getBytes() { return fileContent; } @Override public InputStream getInputStream() { retu...
repos\JeecgBoot-main\jeecg-boot\jeecg-boot-base-core\src\main\java\org\jeecg\common\util\MyCommonsMultipartFile.java
1
请完成以下Java代码
public boolean isFoundGoalRecord() { return foundGoal; } @Override public boolean contains(final ITableRecordReference forwardReference) { return g.containsVertex(forwardReference); } public List<ITableRecordReference> getPath() { final List<ITableRecordReference> result = new ArrayList<>(); final As...
if (!result.contains(edgeSource)) { result.add(edgeSource); } else { result.add(undirectedGraph.getEdgeTarget(e)); } } return ImmutableList.copyOf(result); } /* package */ Graph<ITableRecordReference, DefaultEdge> getGraph() { return g; } @Override public String toString() { ret...
repos\metasfresh-new_dawn_uat\backend\de.metas.dlm\base\src\main\java\de\metas\dlm\partitioner\graph\FindPathIterateResult.java
1
请完成以下Java代码
public class Payment { private String reference; private BigDecimal amount; private Currency currency; public String getReference() { return reference; } public void setReference(String reference) { this.reference = reference; } public BigDecimal getAmount() { ...
this.amount = amount; } public Currency getCurrency() { return currency; } public void setCurrency(Currency currency) { this.currency = currency; } @Override public String toString() { return new StringJoiner(", ", Payment.class.getSimpleName() + "[", "]").add("ref...
repos\tutorials-master\spring-kafka\src\main\java\com\baeldung\dlt\Payment.java
1
请完成以下Java代码
private void setup() { this.config = HystrixCommand.Setter.withGroupKey(HystrixCommandGroupKey.Factory.asKey(groupKey)); this.config = config.andCommandKey(HystrixCommandKey.Factory.asKey(key)); this.commandProperties = HystrixCommandProperties.Setter(); this.commandProperties.withExecu...
super(config); this.joinPoint = joinPoint; } @Override protected String run() throws Exception { try { return (String) joinPoint.proceed(); } catch (final Throwable th) { throw new Exception(th); } } } ...
repos\tutorials-master\hystrix\src\main\java\com\baeldung\hystrix\HystrixAspect.java
1
请完成以下Java代码
public String getProcessDefinitionId() { return processDefinitionId; } public String getProcessInstanceId() { return processInstanceId; } public String getExecutionId() { return executionId; } public String getRootProcessInstanceId() { return rootProcessInstanceId; } public Date getC...
return tenantId; } public String getJobDefinitionId() { return jobDefinitionId; } public Boolean isOpen() { return open; } public Boolean isDeleted() { return deleted; } public Boolean isResolved() { return resolved; } public String getAnnotation() { return annotation; } ...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\history\HistoricIncidentDto.java
1
请完成以下Java代码
protected org.compiere.model.POInfo initPO(final Properties ctx) { return org.compiere.model.POInfo.getPOInfo(Table_Name); } @Override public void setC_BPartner_EditableAttribute1_ID (final int C_BPartner_EditableAttribute1_ID) { if (C_BPartner_EditableAttribute1_ID < 1) set_ValueNoCheck (COLUMNNAME_C_BPa...
{ return get_ValueAsInt(COLUMNNAME_C_BPartner_EditableAttribute1_ID); } @Override public void setName (final @Nullable java.lang.String Name) { set_Value (COLUMNNAME_Name, Name); } @Override public java.lang.String getName() { return get_ValueAsString(COLUMNNAME_Name); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_BPartner_EditableAttribute1.java
1
请完成以下Java代码
public CamundaBpmRunAuthenticationProperties getAuth() { return auth; } public void setAuth(CamundaBpmRunAuthenticationProperties auth) { this.auth = auth; } public CamundaBpmRunCorsProperty getCors() { return cors; } public void setCors(CamundaBpmRunCorsProperty cors) { this.cors = cors;...
public CamundaBpmRunRestProperties getRest() { return rest; } public void setRest(CamundaBpmRunRestProperties rest) { this.rest = rest; } public CamundaBpmRunDeploymentProperties getDeployment() { return deployment; } public void setDeployment(CamundaBpmRunDeploymentProperties deployment) { ...
repos\camunda-bpm-platform-master\distro\run\core\src\main\java\org\camunda\bpm\run\property\CamundaBpmRunProperties.java
1
请在Spring Boot框架中完成以下Java代码
public Class<?> getObjectType() { return AuthenticationManager.class; } public void setEraseCredentialsAfterAuthentication(boolean eraseCredentialsAfterAuthentication) { this.eraseCredentialsAfterAuthentication = eraseCredentialsAfterAuthentication; } public void setAuthenticationEventPublisher(Authenti...
if (this.observationRegistry.isNoop()) { return new FilterChainProxy.VirtualFilterChainDecorator(); } return new ObservationFilterChainDecorator(this.observationRegistry); } @Override public Class<?> getObjectType() { return FilterChainProxy.FilterChainDecorator.class; } public void setObservat...
repos\spring-security-main\config\src\main\java\org\springframework\security\config\http\HttpSecurityBeanDefinitionParser.java
2
请完成以下Java代码
public class PORelationException extends AdempiereException { public static PORelationException throwWrongKeyColumnCount(final String tableName, final Collection<String> allKeyColumnNames) { final Object[] msgParams = new Object[] { tableName, allKeyColumnNames.size() }; throw new PORelationException(MSG_ERR_KEY_...
*/ private static final AdMessageKey MSG_ERR_KEY_COLUMNS_2P = AdMessageKey.of("MRelationType_Err_KeyColumns_2P"); /** * Message indicates that neither the reference nor the table have an * AD_Window_ID set. * <ul> * <li>Param 1: The AD_Reference's name</li> * <li>Param 2: The Table name</li> * <li>Param ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\adempiere\exceptions\PORelationException.java
1
请在Spring Boot框架中完成以下Java代码
public void addAllocatedAmounts(@NonNull final AllocationAmounts amounts) { amountsAllocated = amountsAllocated.add(amounts); amountsToAllocate = amountsToAllocate.subtract(amounts); } public void moveRemainingOpenAmtToDiscount() { amountsToAllocate = amountsToAllocate.movePayAmtToDiscount(); } public voi...
return amountsAllocated.getTotalAmt(); } public boolean isFullyAllocated() { return amountsToAllocate.getTotalAmt().isZero(); } public boolean isARC() { return isCreditMemo() && getSoTrx().isSales(); } public boolean isAPI() { return !isCreditMemo() && getSoTrx().isPurchase(); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.base\src\main\java\de\metas\banking\payment\paymentallocation\service\PayableDocument.java
2
请完成以下Java代码
public RawMaterialsIssue getRawMaterialsIssueAssumingNotNull() { if (rawMaterialsIssue == null) { throw new AdempiereException("Not a raw materials issuing activity"); } return rawMaterialsIssue; } public FinishedGoodsReceive getFinishedGoodsReceiveAssumingNotNull() { if (finishedGoodsReceive == null)...
} public ManufacturingJobActivity withChangedReceiveLine( @NonNull final FinishedGoodsReceiveLineId id, @NonNull UnaryOperator<FinishedGoodsReceiveLine> mapper) { if (finishedGoodsReceive != null) { return withFinishedGoodsReceive(finishedGoodsReceive.withChangedReceiveLine(id, mapper)); } else { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing.rest-api\src\main\java\de\metas\manufacturing\job\model\ManufacturingJobActivity.java
1
请完成以下Java代码
public class JpaApiKeyDao extends JpaAbstractDao<ApiKeyEntity, ApiKey> implements ApiKeyDao { @Autowired private ApiKeyRepository apiKeyRepository; @Override public ApiKey findByValue(String value) { return DaoUtil.getData(apiKeyRepository.findByValue(value)); } @Override public S...
@Override protected Class<ApiKeyEntity> getEntityClass() { return ApiKeyEntity.class; } @Override protected JpaRepository<ApiKeyEntity, UUID> getRepository() { return apiKeyRepository; } @Override public EntityType getEntityType() { return EntityType.API_KEY; } ...
repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\sql\pat\JpaApiKeyDao.java
1
请完成以下Java代码
/* package */class HandlingUnitHUDocumentLine extends AbstractHUDocumentLine { private final I_M_HU_Item item; public HandlingUnitHUDocumentLine(final I_M_HU_Item item, final IProductStorage storage) { super(storage, item); Check.assumeNotNull(item, "item not null"); this.item = item; } @Override public ...
throw new UnsupportedOperationException("not implemented"); } @Override public I_M_HU_Item getInnerHUItem() { return item; } @Override public int getC_BPartner_Location_ID() { return -1; // N/A } }
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\document\impl\HandlingUnitHUDocumentLine.java
1
请完成以下Java代码
public Optional<IDocumentLocationAdapter> getDocumentLocationAdapterIfHandled(final Object record) { return toInOut(record).map(InOutDocumentLocationAdapterFactory::locationAdapter); } @Override public Optional<IDocumentBillLocationAdapter> getDocumentBillLocationAdapterIfHandled(final Object record) { return...
} @Override public Optional<IDocumentHandOverLocationAdapter> getDocumentHandOverLocationAdapter(final Object record) { return Optional.empty(); } private static Optional<I_M_InOut> toInOut(final Object record) { return InterfaceWrapperHelper.isInstanceOf(record, I_M_InOut.class) ? Optional.of(Interface...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\inout\location\adapter\InOutDocumentLocationAdapterFactory.java
1
请完成以下Java代码
default <T> Stream<T> streamModelsByIds(@NonNull final DocumentIdsSelection rowIds, @NonNull final Class<T> modelClass) { return retrieveModelsByIds(rowIds, modelClass).stream(); } /** * @return a stream which contains only the {@link IViewRow}s which given <code>rowId</code>s. * If a {@link IViewRow} was not...
void notifyRecordsChanged(TableRecordReferenceSet recordRefs, boolean watchedByFrontend); /** * @return actions which were registered particularly for this view instance */ default ViewActionDescriptorsList getActions() { return ViewActionDescriptorsList.EMPTY; } default boolean isConsiderTableRelatedProce...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\view\IView.java
1
请完成以下Java代码
protected Boolean getAllowNegativeCapacityOverride(final IAllocationRequest request) { if (getCapacity().isInfiniteCapacity()) // 08443: For infinite capacity, disallow negative capacity overrides () { return false; } else if (isConsiderForceQtyAllocationFromRequest() && request.isForceQtyAllocation()) { ...
Check.assumeNotNull(qtyConverted, "qtyConverted not null (Qty={}, FromUOM={}, ToUOM={}, Product={}", qty, uom, storageUOM); return qtyConverted; } @Override public boolean isEmpty() { return getQty().isZero(); } public boolean isFull() { final BigDecimal qtyFree = getQtyFree(); return qtyFree....
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\storage\impl\AbstractProductStorage.java
1
请在Spring Boot框架中完成以下Java代码
public class MaterialCockpitRowLookups { @NonNull private final LookupDataSource uomLookup; @NonNull private final LookupDataSource bpartnerLookup; @NonNull private final LookupDataSource productLookup; @Autowired public MaterialCockpitRowLookups(final @NonNull LookupDataSourceFactory lookupFactory) { this.uom...
@NonNull final LookupDataSource productLookup) { this.uomLookup = uomLookup; this.bpartnerLookup = bpartnerLookup; this.productLookup = productLookup; } @Nullable public LookupValue lookupUOMById(@Nullable final UomId uomId) {return uomLookup.findById(uomId);} @Nullable public LookupValue lookupBPartnerBy...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\material\cockpit\MaterialCockpitRowLookups.java
2
请在Spring Boot框架中完成以下Java代码
private PhonecallSchemaVersionRange createPhonecallSchemaVersionRange( final PhonecallSchemaVersion schemaVersion, final LocalDate startDate, final LocalDate endDate) { return PhonecallSchemaVersionRange.builder() .phonecallSchemaVersion(schemaVersion) .startDate(startDate) .endDate(endDate) ...
final IBusinessDayMatcher businessDayMatcher = createBusinessDayMatcher(frequency, onNonBusinessDay); return BusinessDayShifter.builder() .businessDayMatcher(businessDayMatcher) .onNonBussinessDay(onNonBusinessDay != null ? onNonBusinessDay : OnNonBussinessDay.Cancel) .build(); } public static IBusine...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\phonecall\service\PhonecallScheduleService.java
2
请完成以下Java代码
protected void addToOverlaps(Intervalable interval, List<Intervalable> overlaps, List<Intervalable> newOverlaps) { for (Intervalable currentInterval : newOverlaps) { if (!currentInterval.equals(interval)) { overlaps.add(currentInterval); } ...
if (currentInterval.getEnd() >= interval.getStart()) { overlaps.add(currentInterval); } break; } } return overlaps; } /** * 是对IntervalNode.findOverlaps(Intervalable)的一个包装,防止NPE * @see Inter...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\algorithm\ahocorasick\interval\IntervalNode.java
1
请完成以下Java代码
public Iterator<Entry<String, Object>> iterator() { return new DecoratingEntryIterator(delegate.entrySet().iterator()); } @Override public int size() { return delegate.size(); } }; } private class DecoratingEntryIterator i...
} private class DecoratingEntryValueIterator implements Iterator<Object> { private final Iterator<Entry<String, Object>> entryIterator; DecoratingEntryValueIterator(Iterator<Entry<String, Object>> entryIterator) { this.entryIterator = entryIterator; } @Override ...
repos\jasypt-spring-boot-master\jasypt-spring-boot\src\main\java\com\ulisesbocchio\jasyptspringboot\caching\EncryptableMapWrapper.java
1
请完成以下Java代码
public void setIsReplicated (boolean IsReplicated) { set_Value (COLUMNNAME_IsReplicated, Boolean.valueOf(IsReplicated)); } /** Get Replicated. @return The data is successfully replicated */ public boolean isReplicated () { Object oo = get_Value(COLUMNNAME_IsReplicated); if (oo != null) { if (oo...
/** Set Process Message. @param P_Msg Process Message */ public void setP_Msg (String P_Msg) { set_Value (COLUMNNAME_P_Msg, P_Msg); } /** Get Process Message. @return Process Message */ public String getP_Msg () { return (String)get_Value(COLUMNNAME_P_Msg); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_Replication_Log.java
1
请完成以下Java代码
public int countNotificationTemplatesByTenantIdAndNotificationTypes(TenantId tenantId, Collection<NotificationType> notificationTypes) { return notificationTemplateDao.countByTenantIdAndNotificationTypes(tenantId, notificationTypes); } @Override public void deleteNotificationTemplateById(TenantId t...
} @Override public void deleteNotificationTemplatesByTenantId(TenantId tenantId) { notificationTemplateDao.removeByTenantId(tenantId); } @Override public void deleteByTenantId(TenantId tenantId) { deleteNotificationTemplatesByTenantId(tenantId); } @Override public Opti...
repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\notification\DefaultNotificationTemplateService.java
1
请完成以下Java代码
public String getBatchId() { return batchId; } public boolean isCreationLog() { return creationLog; } public boolean isFailureLog() { return failureLog; } public boolean isSuccessLog() { return successLog; } public boolean isDeletionLog() { return deletionLog; } public stati...
result.jobDefinitionId = historicJobLog.getJobDefinitionId(); result.jobDefinitionType = historicJobLog.getJobDefinitionType(); result.jobDefinitionConfiguration = historicJobLog.getJobDefinitionConfiguration(); result.activityId = historicJobLog.getActivityId(); result.failedActivityId = historicJobLo...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\history\HistoricJobLogDto.java
1
请完成以下Java代码
private void addHUProductStorage(final IHUProductStorage huProductStorage) { pickFromHUs.add(PickFromHU.builder() .huId(huProductStorage.getHuId()) .qtyToPick(huProductStorage.getQty()) .qtyToPickInStockingUOM(huProductStorage.getQtyInStockingUOM()) .build()); } public Quantity getQtyInSourceUOM()...
} description.insert(0, Services.get(IMsgBL.class).translate(Env.getCtx(), "M_HU_ID") + ": "); return description.toString(); } public LotNumberQuarantine getLotNumberQuarantine() { return lotNoQuarantine; } public Map<I_M_Attribute, Object> getAttributes() { return attributes; } // // -----------...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\distribution\ddorder\producer\DDOrderLineCandidate.java
1
请在Spring Boot框架中完成以下Java代码
private void forwardRpcRequestToDeviceActor(ToDeviceRpcRequest request, Consumer<FromDeviceRpcResponse> responseConsumer) { log.trace("[{}][{}] Processing local rpc call to device actor [{}]", request.getTenantId(), request.getId(), request.getDeviceId()); UUID requestId = request.getId(); toDev...
} else { log.warn("Failed to find tbCoreRpcService for local service. Possible duplication of serviceIds."); } } else { clusterService.pushNotificationToCore(originServiceId, response, null); } } private void scheduleTimeout(ToDeviceRpcRequest request, UU...
repos\thingsboard-master\application\src\main\java\org\thingsboard\server\service\rpc\DefaultTbRuleEngineRpcService.java
2
请在Spring Boot框架中完成以下Java代码
private CandidateSaveResult createHeaderCandidate(@NonNull final PPOrderCreatedEvent ppOrderEvent) { final PPOrder ppOrder = ppOrderEvent.getPpOrder(); final Candidate.CandidateBuilder builder = Candidate.builderForClientAndOrgId(ppOrder.getPpOrderData().getClientAndOrgId()); retrieveDemandDetail(ppOrder.getPp...
.build(); } @NonNull private Optional<DemandDetail> retrieveDemandDetail(@NonNull final PPOrderData ppOrderData) { if (ppOrderData.getShipmentScheduleId() <= 0) { return Optional.empty(); } final DemandDetailsQuery demandDetailsQuery = DemandDetailsQuery. ofShipmentScheduleId(ppOrderData.getShipmen...
repos\metasfresh-new_dawn_uat\backend\de.metas.material\dispo-service\src\main\java\de\metas\material\dispo\service\event\handler\pporder\PPOrderCreatedHandler.java
2
请完成以下Java代码
public static void fillBpmnTypes( Map<Class<? extends BaseElement>, Class<? extends BaseBpmnJsonConverter>> convertersToJsonMap ) {} protected String getStencilId(BaseElement baseElement) { return STENCIL_TASK_DECISION; } protected FlowElement convertJsonToElement( JsonNode ele...
} @Override protected void convertElementToJson(ObjectNode propertiesNode, BaseElement baseElement) {} @Override public void setDecisionTableMap(Map<String, String> decisionTableMap) { this.decisionTableMap = decisionTableMap; } protected void addExtensionAttributeToExtension(Extensio...
repos\Activiti-develop\activiti-core\activiti-json-converter\src\main\java\org\activiti\editor\language\json\converter\DecisionTaskJsonConverter.java
1
请完成以下Java代码
public void onError(Throwable e) { log.trace("Failed to process certificate chain: {}", certificateChain, e); latch.countDown(); } }); latch.await(10, TimeUnit.SECONDS); if...
try { if (chain.length > 1) { X509Certificate leafCert = chain[0]; for (int i = 1; i < chain.length; i++) { X509Certificate intermediateCert = chain[i]; leafCert.verify(intermediateCert.getPublicKey()); ...
repos\thingsboard-master\common\transport\mqtt\src\main\java\org\thingsboard\server\transport\mqtt\MqttSslHandlerProvider.java
1
请完成以下Java代码
public title addElement(String hashcode,Element element) { addElementToRegistry(hashcode,element); return(this); } /** Adds an Element to the element. @param hashcode name of element for hash table @param element Adds an Element to the element. */ ...
return(this); } /** 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. ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\tools\src\main\java-legacy\org\apache\ecs\xhtml\title.java
1
请完成以下Java代码
public void closing(CommandContext commandContext) { if (commandContext.getException() != null) { return; // Not interested in events about exceptions } ProcessEngineConfigurationImpl processEngineConfiguration = CommandContextUtil.getProcessEngineConfiguration(commandContext); ...
@Override public void closeFailure(CommandContext commandContext) { } @Override public Integer order() { return 100; } @Override public boolean multipleAllowed() { return false; } }
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\event\logger\DatabaseEventFlusher.java
1
请在Spring Boot框架中完成以下Java代码
static class Hikari { private final DataSource dataSource; private final ObjectProvider<MBeanExporter> mBeanExporter; Hikari(DataSource dataSource, ObjectProvider<MBeanExporter> mBeanExporter) { this.dataSource = dataSource; this.mBeanExporter = mBeanExporter; validateMBeans(); } private void val...
DataSourceProxy.class); if (dataSourceProxy != null) { try { return dataSourceProxy.createPool().getJmxPool(); } catch (SQLException ex) { logger.warn("Cannot expose DataSource to JMX (could not connect)"); } } return null; } } }
repos\spring-boot-4.0.1\module\spring-boot-jdbc\src\main\java\org\springframework\boot\jdbc\autoconfigure\DataSourceJmxConfiguration.java
2
请在Spring Boot框架中完成以下Java代码
public Result<List<ProductEntity>> findProducts(ProdQueryReq prodQueryReq) { return productService.findProducts(prodQueryReq); } @Override public Result createCategoty(CategoryEntity categoryEntity) { return productService.createCategoty(categoryEntity); } @Override public Resu...
@Override public Result createBrand(BrandInsertReq brandInsertReq) { return productService.createBrand(brandInsertReq); } @Override public Result modifyBrand(BrandInsertReq brandInsertReq) { return productService.modifyBrand(brandInsertReq); } @Override public Result<List<B...
repos\SpringBoot-Dubbo-Docker-Jenkins-master\Gaoxi-Controller\src\main\java\com\gaoxi\controller\product\ProductControllerImpl.java
2
请在Spring Boot框架中完成以下Java代码
public @Nullable String getPassword() { return this.properties.determinePassword(); } @Override public @Nullable String getVirtualHost() { return this.properties.determineVirtualHost(); } @Override public List<Address> getAddresses() { List<Address> addresses = new ArrayList<>(); for (String address : t...
} @Override public @Nullable SslBundle getSslBundle() { Ssl ssl = this.properties.getSsl(); if (!ssl.determineEnabled()) { return null; } if (StringUtils.hasLength(ssl.getBundle())) { Assert.notNull(this.sslBundles, "SSL bundle name has been set but no SSL bundles found in context"); return this.ssl...
repos\spring-boot-4.0.1\module\spring-boot-amqp\src\main\java\org\springframework\boot\amqp\autoconfigure\PropertiesRabbitConnectionDetails.java
2
请完成以下Java代码
public class EdiInvoiceCandidateListener implements IInvoiceCandidateListener { public static final EdiInvoiceCandidateListener instance = new EdiInvoiceCandidateListener(); private final IEDIDocumentBL ediDocumentBL = Services.get(IEDIDocumentBL.class); private EdiInvoiceCandidateListener() { } @Override pub...
return false; } final boolean isEdiEnabled = InterfaceWrapperHelper.create(fromCandidates.get(0), de.metas.edi.model.I_C_Invoice_Candidate.class).isEdiEnabled(); for (int i = 0; i < fromCandidates.size(); i++) { final de.metas.edi.model.I_C_Invoice_Candidate candidate = InterfaceWrapperHelper.create(fromCan...
repos\metasfresh-new_dawn_uat\backend\de.metas.edi\src\main\java\de\metas\edi\spi\impl\EdiInvoiceCandidateListener.java
1
请在Spring Boot框架中完成以下Java代码
default @Nullable String getUsername() { return null; } /** * Login to authenticate against the broker. * @return the login to authenticate against the broker or {@code null} */ default @Nullable String getPassword() { return null; } /** * Virtual host to use when connecting to the broker. * @retur...
*/ default Address getFirstAddress() { List<Address> addresses = getAddresses(); Assert.state(!addresses.isEmpty(), "Address list is empty"); return addresses.get(0); } /** * SSL bundle to use. * @return the SSL bundle to use */ default @Nullable SslBundle getSslBundle() { return null; } /** * A...
repos\spring-boot-4.0.1\module\spring-boot-amqp\src\main\java\org\springframework\boot\amqp\autoconfigure\RabbitConnectionDetails.java
2
请在Spring Boot框架中完成以下Java代码
public class TaskEntityStoreRepository { private static final String DB_PATH = "db\\.myAppData"; private static final String ENTITY_TYPE = "Task"; public EntityId save(TaskEntity taskEntity) { try (PersistentEntityStore entityStore = openStore()) { AtomicReference<EntityId> idHolder = ...
return taskEntity.get(); } } private TaskEntity mapToTaskEntity(Entity entity) { return new TaskEntity(entity.getProperty("description").toString(), entity.getProperty("labels").toString()); } public List<TaskEntity> findAll() { try (PersistentEntityStore entityStore ...
repos\tutorials-master\persistence-modules\persistence-libraries\src\main\java\com\baeldung\jetbrainsxodus\TaskEntityStoreRepository.java
2
请完成以下Java代码
public class PitfallsWhenUsingFinally { public String disregardsUnCaughtException() { try { System.out.println("Inside try"); throw new RuntimeException(); } finally { System.out.println("Inside finally"); return "from finally"; } } p...
return "from try"; } finally { System.out.println("Inside finally"); return "from finally"; } } public String throwsException() { try { System.out.println("Inside try"); return "from try"; } finally { throw new RuntimeE...
repos\tutorials-master\core-java-modules\core-java-lang-2\src\main\java\com\baeldung\finallykeyword\PitfallsWhenUsingFinally.java
1
请完成以下Java代码
private static QtyRejectedWithReason extractQtyRejected(final I_PP_Order_IssueSchedule record) { final QtyRejectedReasonCode reasonCode = QtyRejectedReasonCode.ofNullableCode(record.getRejectReason()).orElse(null); final BigDecimal qtyReject = record.getQtyReject(); if (qtyReject.signum() != 0 && reasonCode != ...
record.setQtyToIssue(issueSchedule.getQtyToIssue().toBigDecimal()); record.setC_UOM_ID(issueSchedule.getQtyToIssue().getUomId().getRepoId()); InterfaceWrapperHelper.save(record); } public void deleteNotProcessedByOrderId(@NonNull final PPOrderId ppOrderId) { queryBL.createQueryBuilder(I_PP_Order_IssueSchedul...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\pporder\api\issue_schedule\PPOrderIssueScheduleRepository.java
1
请完成以下Java代码
public static CallCredentials includeWhenPrivate(final CallCredentials callCredentials) { return new IncludeWhenPrivateCallCredentials(callCredentials); } /** * A call credentials implementation with increased security requirements. It ensures that the credentials and * requests aren't send v...
} } @Override public void thisUsesUnstableApi() {} // API evolution in progress @Override public String toString() { return "IncludeWhenPrivateCallCredentials [callCredentials=" + this.callCredentials + "]"; } } private CallCredentialsHelper() {} ...
repos\grpc-spring-master\grpc-client-spring-boot-starter\src\main\java\net\devh\boot\grpc\client\security\CallCredentialsHelper.java
1
请在Spring Boot框架中完成以下Java代码
String getKind() throws Exception { return findMethod("getKind").invoke(getInstance()).toString(); } Object getLiteralValue() throws Exception { if (this.literalTreeType.isAssignableFrom(getInstance().getClass())) { return this.literalValueMethod.invoke(getInstance()); } return null; } Object getFactor...
List<?> elements = (List<?>) this.arrayValueMethod.invoke(getInstance()); List<ExpressionTree> result = new ArrayList<>(); if (elements == null) { return result; } for (Object element : elements) { result.add(new ExpressionTree(element)); } return result; } return null; } record Member(...
repos\spring-boot-4.0.1\configuration-metadata\spring-boot-configuration-processor\src\main\java\org\springframework\boot\configurationprocessor\fieldvalues\javac\ExpressionTree.java
2
请在Spring Boot框架中完成以下Java代码
DefaultCookieSerializer cookieSerializer( ObjectProvider<DefaultCookieSerializerCustomizer> cookieSerializerCustomizers) { DefaultCookieSerializer cookieSerializer = new DefaultCookieSerializer(); PropertyMapper map = PropertyMapper.get(); Assert.notNull(this.servletContext, "ServletContext is re...
* {@link CookieSerializer} is not. */ static class DefaultCookieSerializerCondition extends AnyNestedCondition { DefaultCookieSerializerCondition() { super(ConfigurationPhase.REGISTER_BEAN); } @ConditionalOnMissingBean({ HttpSessionIdResolver.class, CookieSerializer.class }) static class NoComponentsAva...
repos\spring-boot-4.0.1\module\spring-boot-session\src\main\java\org\springframework\boot\session\autoconfigure\SessionAutoConfiguration.java
2
请完成以下Java代码
private static OAuth2Error invalidTokenResponse(String message) { return new OAuth2Error(INVALID_TOKEN_RESPONSE_ERROR_CODE, message, null); } private static Mono<AccessTokenResponse> oauth2AccessTokenResponse(TokenResponse tokenResponse) { if (tokenResponse.indicatesSuccess()) { return Mono.just(tokenResponse...
OAuth2AccessToken.TokenType accessTokenType = null; if (OAuth2AccessToken.TokenType.BEARER.getValue().equalsIgnoreCase(accessToken.getType().getValue())) { accessTokenType = OAuth2AccessToken.TokenType.BEARER; } long expiresIn = accessToken.getLifetime(); Set<String> scopes = (accessToken.getScope() != null)...
repos\spring-security-main\oauth2\oauth2-core\src\main\java\org\springframework\security\oauth2\core\web\reactive\function\OAuth2AccessTokenResponseBodyExtractor.java
1
请完成以下Java代码
private final void loadResultsAndShow(final ProcessExecutionResult result) { final StringBuilder messageText = new StringBuilder(); // Show process logs if any if (result.isShowProcessLogs()) { // // Update message messageText.append("<p><font color=\"").append(result.isError() ? "#FF0000" : "#0000FF"...
} public void moveCaretToEnd() { message.setCaretPosition(message.getDocument().getLength()); // scroll down } public void setText(final String text) { messageBuf.setLength(0); appendText(text); } public void appendText(final String text) { messageBuf.append(text); message.setText(mess...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java\de\metas\process\ui\ProcessPanel.java
1
请完成以下Java代码
public class MembershipEntityManagerImpl extends AbstractIdmEngineEntityManager<MembershipEntity, MembershipDataManager> implements MembershipEntityManager { public MembershipEntityManagerImpl(IdmEngineConfiguration idmEngineConfiguration, MembershipDataManager membershipDataManager) { super(idmEng...
FlowableIdmEventType.MEMBERSHIP_DELETED, groupId, userId), engineConfiguration.getEngineCfgKey()); } } @Override public void deleteMembershipByGroupId(String groupId) { dataManager.deleteMembershipByGroupId(groupId); } @Override public void deleteMembershipByUserId(String userI...
repos\flowable-engine-main\modules\flowable-idm-engine\src\main\java\org\flowable\idm\engine\impl\persistence\entity\MembershipEntityManagerImpl.java
1
请完成以下Java代码
public String toString() { StringBuffer sb = new StringBuffer ("X_R_IssueStatus[") .append(get_ID()).append("]"); return sb.toString(); } /** Set Description. @param Description Optional short description of the record */ public void setDescription (String Description) { set_Va...
@return ID/ColumnName pair */ public KeyNamePair getKeyNamePair() { return new KeyNamePair(get_ID(), getName()); } /** Set Issue Status. @param R_IssueStatus_ID Status of an Issue */ public void setR_IssueStatus_ID (int R_IssueStatus_ID) { if (R_IssueStatus_ID < 1) set_Value...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_R_IssueStatus.java
1
请完成以下Java代码
public PartyIdentificationSEPA3 getCdtrSchmeId() { return cdtrSchmeId; } /** * Sets the value of the cdtrSchmeId property. * * @param value * allowed object is * {@link PartyIdentificationSEPA3 } * */ public void setCdtrSchmeId(PartyIdentificationSEP...
* <p> * For example, to add a new item, do as follows: * <pre> * getDrctDbtTxInf().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link DirectDebitTransactionInformationSDD } * * */ public List<DirectD...
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\PaymentInstructionInformationSDD.java
1
请在Spring Boot框架中完成以下Java代码
public class ArticleFavoriteApi { private ArticleFavoriteRepository articleFavoriteRepository; private ArticleRepository articleRepository; private ArticleQueryService articleQueryService; @PostMapping public ResponseEntity favoriteArticle( @PathVariable("slug") String slug, @AuthenticationPrincipal Us...
articleRepository.findBySlug(slug).orElseThrow(ResourceNotFoundException::new); articleFavoriteRepository .find(article.getId(), user.getId()) .ifPresent( favorite -> { articleFavoriteRepository.remove(favorite); }); return responseArticleData(articleQuerySe...
repos\spring-boot-realworld-example-app-master\src\main\java\io\spring\api\ArticleFavoriteApi.java
2
请完成以下Java代码
private boolean isImmutableConfigurationPropertiesBeanDefinition(BeanDefinition beanDefinition) { return BindMethod.VALUE_OBJECT.equals(BindMethodAttribute.get(beanDefinition)); } private static class ConfigurationPropertiesBeanRegistrationCodeFragments extends BeanRegistrationCodeFragmentsDecorator { privat...
.addModifiers(Modifier.PRIVATE, Modifier.STATIC) .returns(beanClass) .addParameter(RegisteredBean.class, REGISTERED_BEAN_PARAMETER_NAME) .addStatement("$T beanFactory = registeredBean.getBeanFactory()", BeanFactory.class) .addStatement("$T beanName = registeredBean.getBeanName()", String.class) ...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\context\properties\ConfigurationPropertiesBeanRegistrationAotProcessor.java
1
请完成以下Java代码
public void setAD_Field_ID (int AD_Field_ID) { if (AD_Field_ID < 1) set_Value (COLUMNNAME_AD_Field_ID, null); else set_Value (COLUMNNAME_AD_Field_ID, Integer.valueOf(AD_Field_ID)); } /** Get Feld. @return Ein Feld einer Datenbanktabelle */ @Override public int getAD_Field_ID () { Integer ii =...
} @Override public org.compiere.model.I_AD_Window getAD_Window() throws RuntimeException { return get_ValueAsPO(COLUMNNAME_AD_Window_ID, org.compiere.model.I_AD_Window.class); } @Override public void setAD_Window(org.compiere.model.I_AD_Window AD_Window) { set_ValueFromPO(COLUMNNAME_AD_Window_ID, org.compi...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_Element_Link.java
1
请在Spring Boot框架中完成以下Java代码
public void setName(String name) { this.name = name; } public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } public List<Department> getDepartments() { return departments; } public void setDepartments(List<Department> departments) { this....
public List<Employee> getEmployees() { return employees; } public void setEmployees(List<Employee> employees) { this.employees = employees; } @Override public String toString() { return "Organization [id=" + id + ", name=" + name + ", address=" + address + "]"; } }
repos\sample-spring-microservices-new-master\organization-service\src\main\java\pl\piomin\services\organization\model\Organization.java
2
请在Spring Boot框架中完成以下Java代码
public static void validateFields(Object data, String errorPrefix) { Set<ConstraintViolation<Object>> constraintsViolations = fieldsValidator.validate(data); if (!constraintsViolations.isEmpty()) { throw new DataValidationException(errorPrefix + getErrorMessage(constraintsViolations)); ...
try (var validatorFactory = validatorConfiguration.buildValidatorFactory()) { fieldsValidator = validatorFactory.getValidator(); } } @Bean public LocalValidatorFactoryBean validatorFactoryBean() { LocalValidatorFactoryBean localValidatorFactoryBean = new LocalValidatorFactoryBea...
repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\service\ConstraintValidator.java
2
请完成以下Java代码
public String getEntityType () { return (String)get_Value(COLUMNNAME_EntityType); } /** Set Name. @param Name Alphanumeric identifier of the entity */ public void setName (String Name) { set_Value (COLUMNNAME_Name, Name); } /** Get Name.
@return Alphanumeric identifier of the entity */ public String getName () { return (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.swat\de.metas.swat.base\src\main\java-gen\org\adempiere\model\X_AD_TriggerUI.java
1
请完成以下Java代码
public List<MaterialCockpitRow> getIncludedRows() { return includedRows; } @Override public DocumentId getId() { return documentId; } @Override public IViewRowType getType() { return rowType; } @Override public DocumentPath getDocumentPath() { return documentPath; } /** * Return false, beca...
@Override public ImmutableSet<String> getFieldNames() { return values.getFieldNames(); } @Override public ViewRowFieldNameAndJsonValues getFieldNameAndJsonValues() { return values.get(this); } public DocumentZoomIntoInfo getZoomIntoInfo(@NonNull final String fieldName) { if (FIELDNAME_M_Product_ID.equa...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\material\cockpit\MaterialCockpitRow.java
1
请完成以下Java代码
protected POInfo initPO (Properties ctx) { POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName()); return poi; } public String toString() { StringBuffer sb = new StringBuffer ("X_C_JobCategory[") .append(get_ID()).append("]"); return sb.toString(); } /** Set ...
{ return (String)get_Value(COLUMNNAME_Description); } /** Set Comment/Help. @param Help Comment or Hint */ public void setHelp (String Help) { set_Value (COLUMNNAME_Help, Help); } /** Get Comment/Help. @return Comment or Hint */ public String getHelp () { return (String)get_Value(COLUMNNAM...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_JobCategory.java
1
请完成以下Java代码
public String getName() { return nameAttribute.getValue(this); } public void setName(String name) { nameAttribute.setValue(this, name); } public String getTargetNamespace() { return targetNamespaceAttribute.getValue(this); } public void setTargetNamespace(String namespace) { targetNamespa...
public void setExporter(String exporter) { exporterAttribute.setValue(this, exporter); } public String getExporterVersion() { return exporterVersionAttribute.getValue(this); } public void setExporterVersion(String exporterVersion) { exporterVersionAttribute.setValue(this, exporterVersion); } ...
repos\camunda-bpm-platform-master\model-api\bpmn-model\src\main\java\org\camunda\bpm\model\bpmn\impl\instance\DefinitionsImpl.java
1
请在Spring Boot框架中完成以下Java代码
public String getFax() { return fax; } public void setFax(String fax) { this.fax = fax; } public NursingHome email(String email) { this.email = email; return this; } /** * Get email * @return email **/ @Schema(example = "wagemann@berliner-stadtmission.de", description = "") p...
return false; } NursingHome nursingHome = (NursingHome) o; return Objects.equals(this._id, nursingHome._id) && Objects.equals(this.name, nursingHome.name) && Objects.equals(this.address, nursingHome.address) && Objects.equals(this.postalCode, nursingHome.postalCode) && Object...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\alberta\alberta-patient-api\src\main\java\io\swagger\client\model\NursingHome.java
2
请在Spring Boot框架中完成以下Java代码
public void setFromTime2(Integer value) { this.fromTime2 = value; } /** * Gets the value of the toTime2 property. * * @return * possible object is * {@link Integer } * */ public Integer getToTime2() { return toTime2; } /** * Set...
} /** * Sets the value of the extraPickup property. * * @param value * allowed object is * {@link Boolean } * */ public void setExtraPickup(Boolean value) { this.extraPickup = value; } /** * Gets the value of the collectionRequestAddress pr...
repos\metasfresh-new_dawn_uat\backend\de.metas.shipper.gateway.dpd\src\main\java-xjc\com\dpd\common\service\types\shipmentservice\_3\Pickup.java
2
请完成以下Java代码
protected void onRecordAndChildrenCopied(final PO to, final PO from, final CopyTemplate template) {} private Iterator<Object> retrieveChildPOsForParent(final CopyTemplate childTemplate, final PO parentPO) { final IQueryBuilder<Object> queryBuilder = queryBL.createQueryBuilder(childTemplate.getTableName()) .add...
protected final <T> T getParentModel(final Class<T> modelType) { return parentPO != null ? InterfaceWrapperHelper.create(parentPO, modelType) : null; } private int getParentID() { return parentPO != null ? parentPO.get_ID() : -1; } /** * Allows other modules to install customer code to be executed each ti...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\copy_with_details\GeneralCopyRecordSupport.java
1
请完成以下Spring Boot application配置
management: endpoints: # Actuator HTTP 配置项,对应 WebEndpointProperties 配置类 web: base-path: /actuator # Actuator 提供的 API 接口的根目录。默认为 /actuator exposure: include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。 exclude: # 在 include 的基础上,需要排除的端点。通过设置 * ,可以排除所有端点。 # server: # ...
y 配置项,对应 SecurityProperties 配置类 security: # 配置默认的 InMemoryUserDetailsManager 的用户账号与密码。 user: name: user # 账号 password: user # 密码 roles: ADMIN # 拥有角色
repos\SpringBoot-Labs-master\lab-34\lab-34-actuator-demo-security\src\main\resources\application.yaml
2
请完成以下Java代码
public class MemoryDataSet extends AbstractDataSet { List<Document> documentList; boolean editMode; public MemoryDataSet() { super(); documentList = new LinkedList<Document>(); } public MemoryDataSet(AbstractModel model) { super(model); documentList = new Li...
{ documentList.clear(); } @Override public IDataSet shrink(int[] idMap) { Iterator<Document> iterator = iterator(); while (iterator.hasNext()) { Document document = iterator.next(); FrequencyMap<Integer> tfMap = new FrequencyMap<Integer>(); ...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\classification\corpus\MemoryDataSet.java
1
请完成以下Java代码
public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Integer getSort() { return sort; } public void setSo...
this.status = status; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimp...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\OmsOrderReturnReason.java
1
请完成以下Java代码
public void initExecutor() { edgeEventExecutor = Executors.newSingleThreadExecutor(ThingsBoardThreadFactory.forName("edge-event-service")); } @PreDestroy public void shutdownExecutor() { if (edgeEventExecutor != null) { edgeEventExecutor.shutdown(); } } @Overrid...
public void onSuccess(Void result) { statsCounterService.ifPresent(statsCounterService -> statsCounterService.recordEvent(EdgeStatsKey.DOWNLINK_MSGS_ADDED, edgeEvent.getTenantId(), edgeEvent.getEdgeId(), 1)); eventPublisher.publishEvent(SaveEntityEvent.builder() ...
repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\edge\PostgresEdgeEventService.java
1
请完成以下Java代码
public void connectionAcquired(Call call, Connection connection) { logTimedEvent("connectionAcquired"); } @Override public void connectionReleased(Call call, Connection connection) { logTimedEvent("connectionReleased"); } @Override public void requestHeadersStart(Call call) { ...
} @Override public void responseFailed(Call call, IOException ioe) { logTimedEvent("responseFailed"); } @Override public void callEnd(Call call) { logTimedEvent("callEnd"); } @Override public void callFailed(Call call, IOException ioe) { logTimedEvent("callFail...
repos\tutorials-master\libraries-http-2\src\main\java\com\baeldung\okhttp\events\EventTimer.java
1
请在Spring Boot框架中完成以下Java代码
public class FMPXMLRESULT { @JacksonXmlProperty(localName = "ERRORCODE") String errorCode; @JacksonXmlProperty(localName = "PRODUCT") PRODUCT product; @JacksonXmlProperty(localName = "DATABASE") DATABASE database; @JacksonXmlProperty(localName = "METADATA") METADATA metadata; @JacksonXmlProperty(localName ...
this.metadata = metadata; this.resultset = resultset; } @JsonIgnore public boolean isEmpty() { return metadata == null || metadata.getFields() == null || metadata.getFields().isEmpty() || resultset == null || resultset.getRows() == null || resultset.getRows().isEmpty(); } }
repos\metasfresh-new_dawn_uat\misc\de-metas-common\de-metas-common-filemaker\src\main\java\de\metas\common\filemaker\FMPXMLRESULT.java
2
请在Spring Boot框架中完成以下Java代码
public class TaxId implements RepoIdAware { @JsonCreator @NonNull public static TaxId ofRepoId(final int repoId) { return new TaxId(repoId); } @Nullable public static TaxId ofRepoIdOrNull(final int repoId) { return repoId > 0 ? ofRepoId(repoId) : null; } public static Optional<TaxId> optionalOfRepoId(fi...
public static int toRepoIdOrNoTaxId(@Nullable final TaxId id) { return id != null ? id.getRepoId() : Tax.C_TAX_ID_NO_TAX_FOUND; } int repoId; private TaxId(final int repoId) { this.repoId = Check.assumeGreaterThanZero(repoId, "C_Tax_ID"); } @Override @JsonValue public int getRepoId() { return repoId;...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\tax\api\TaxId.java
2
请完成以下Java代码
protected boolean isJobReacquired(CommandContext commandContext) { // if persisted job's lockExpirationTime is different, then it's been already re-acquired JobEntity persistedJob = commandContext.getJobManager().findJobById(jobFailureCollector.getJobId()); JobEntity job = jobFailureCollector.getJob(); ...
public int getRetriesLeft() { return Math.max(0, totalRetries - countRetries); } protected class FailedJobListenerCmd implements Command<Void> { protected String jobId; protected Command<Object> cmd; public FailedJobListenerCmd(String jobId, Command<Object> cmd) { this.jobId = jobId; ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\jobexecutor\FailedJobListener.java
1
请完成以下Java代码
public void setIsStaled (boolean IsStaled) { throw new IllegalArgumentException ("IsStaled is virtual column"); } /** Get Zu aktualisieren. @return Zu aktualisieren */ @Override public boolean isStaled () { Object oo = get_Value(COLUMNNAME_IsStaled); if (oo != null) { if (oo instanceof Boolean) ...
set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); } /** Get Verarbeitet. @return Checkbox sagt aus, ob der Beleg verarbeitet wurde. */ @Override public boolean isProcessed () { Object oo = get_Value(COLUMNNAME_Processed); if (oo != null) { if (oo instanceof Boolean) return ((Bo...
repos\metasfresh-new_dawn_uat\backend\de.metas.dunning\src\main\java-gen\de\metas\dunning\model\X_C_Dunning_Candidate.java
1
请完成以下Java代码
public Mono<? extends EvaluationContextExtension> getExtension() { return Mono.deferContextual(contextView -> Mono.just(new TenantExtension(contextView.get(Tenant.class)))); } @Override public String getExtensionId() { return "my-reactive-tenant-extension"; } } /** * Actual extension providing acces...
@Override public Tenant getRootObject() { return tenant; } } /** * The root object. */ @Value public static class Tenant { String tenantId; } }
repos\spring-data-examples-main\cassandra\reactive\src\main\java\example\springdata\cassandra\spel\ApplicationConfiguration.java
1
请完成以下Java代码
public ITranslatableString ofTimeZone(@NonNull final ZoneId timeZone, @NonNull final TextStyle textStyle) { return TimeZoneTranslatableString.ofZoneId(timeZone, textStyle); } public static ITranslatableString parse(@Nullable final String text) { if (text == null || text.isEmpty()) { return TranslatableStr...
public static boolean isPossibleTranslatableString(final String text) { return text != null && text.indexOf('@') >= 0; } public static ITranslatableString adElementOrMessage(@NonNull final String columnName) { final IMsgBL msgBL = Services.get(IMsgBL.class); return msgBL.translatable(columnName); } public...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\i18n\TranslatableStrings.java
1
请完成以下Java代码
public OrderLineBuilder productId(final ProductId productId) { assertNotBuilt(); this.productId = productId; return this; } public OrderLineBuilder piItemProductId(@Nullable final HUPIItemProductId piItemProductId) { assertNotBuilt(); this.piItemProductId = piItemProductId; return this; } private Pr...
{ assertNotBuilt(); this.manualPrice = manualPrice; return this; } public OrderLineBuilder manualPrice(@Nullable final Money manualPrice) { return manualPrice(manualPrice != null ? manualPrice.toBigDecimal() : null); } public OrderLineBuilder manualDiscount(final BigDecimal manualDiscount) { assertNot...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\order\OrderLineBuilder.java
1
请完成以下Java代码
public String getId() { return id; } public void setId(String id) { this.id = id; } // onParts //////////////////////////////////////////////////////////// public List<CmmnOnPartDeclaration> getOnParts() { return onParts; } public List<CmmnOnPartDeclaration> getOnParts(String sourceId) { ...
} // variableOnParts public void addVariableOnParts(CmmnVariableOnPartDeclaration variableOnPartDeclaration) { variableOnParts.add(variableOnPartDeclaration); } public boolean hasVariableOnPart(String variableEventName, String variableName) { for(CmmnVariableOnPartDeclaration variableOnPartDeclaration...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\cmmn\model\CmmnSentryDeclaration.java
1
请完成以下Java代码
public static int toInt(@NonNull final Duration duration, @NonNull final TemporalUnit unit) { return (int)toLong(duration, unit); } public static long toLong(@NonNull final Duration duration, @NonNull final TemporalUnit unit) { if (unit == ChronoUnit.SECONDS) { return duration.getSeconds(); } else if ...
return durationBD.multiply(BigDecimal.valueOf(60)); } if (unit == ChronoUnit.SECONDS) { return durationBD.multiply(BigDecimal.valueOf(1000)); } throw Check.newException("No smaller temporal unit defined for {}", unit); } public static boolean isCompleteDays(@NonNull final Duration duration) { if (dur...
repos\metasfresh-new_dawn_uat\backend\de.metas.util\src\main\java\de\metas\util\time\DurationUtils.java
1
请完成以下Spring Boot application配置
spring.datasource.url=jdbc:mysql://localhost:3306/test spring.datasource.username=root spring.datasource.password=3145guofu spring.datasource.driver-class-name=com.mysql.jdbc.Driver logging.level.com.gf.map
per=debug spring.redis.host=127.0.0.1 debug=true fastjson.parser.autoTypeAccept=com.gf.
repos\SpringBootLearning-master (1)\springboot-cache\src\main\resources\application.properties
2
请完成以下Java代码
public String getTextValue() { return node.path("textValue").stringValue(null); } @Override public void setTextValue(String textValue) { throw new UnsupportedOperationException("Not supported to set text value"); } @Override public String getText...
throw new UnsupportedOperationException("Not supported to set double value"); } @Override public byte[] getBytes() { throw new UnsupportedOperationException("Not supported to get bytes"); } @Override public void setBytes(byte[] bytes) { throw new...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\delete\BatchDeleteCaseConfig.java
1
请完成以下Java代码
public void setTaxAmtInfo (final @Nullable BigDecimal TaxAmtInfo) { set_Value (COLUMNNAME_TaxAmtInfo, TaxAmtInfo); } @Override public BigDecimal getTaxAmtInfo() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_TaxAmtInfo); return bd != null ? bd : BigDecimal.ZERO; } @Override public void settax...
public java.lang.String getUPC_CU() { return get_ValueAsString(COLUMNNAME_UPC_CU); } @Override public void setUPC_TU (final @Nullable java.lang.String UPC_TU) { set_ValueNoCheck (COLUMNNAME_UPC_TU, UPC_TU); } @Override public java.lang.String getUPC_TU() { return get_ValueAsString(COLUMNNAME_UPC_TU);...
repos\metasfresh-new_dawn_uat\backend\de.metas.edi\src\main\java-gen\de\metas\esb\edi\model\X_EDI_cctop_invoic_500_v.java
1
请完成以下Java代码
public class AlarmNotificationInfo implements RuleOriginatedNotificationInfo { private String alarmType; private String action; private UUID alarmId; private EntityId alarmOriginator; private String alarmOriginatorName; private String alarmOriginatorLabel; private AlarmSeverity alarmSeverit...
templateData.put("alarmOriginatorEntityType", alarmOriginator.getEntityType().getNormalName()); templateData.put("alarmOriginatorName", alarmOriginatorName); templateData.put("alarmOriginatorLabel", alarmOriginatorLabel); templateData.put("alarmOriginatorId", alarmOriginator.getId().toString());...
repos\thingsboard-master\common\data\src\main\java\org\thingsboard\server\common\data\notification\info\AlarmNotificationInfo.java
1