instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
private void print (String amt) { try { System.out.println(amt + " = " + getAmtInWords(amt)); } catch (Exception e) { e.printStackTrace(); } } // pri...
* Test * @param args ignored */ public static void main (String[] args) { AmtInWords_TH aiw = new AmtInWords_TH(); // aiw.print (".23"); Error // aiw.print ("0.23"); // aiw.print ("1.23"); // aiw.p...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\compiere\util\AmtInWords_TH.java
1
请完成以下Java代码
public static String reverseTheOrderOfWords(String sentence) { if (sentence == null) { return null; } StringBuilder output = new StringBuilder(); String[] words = sentence.split(" "); for (int i = words.length - 1; i >= 0; i--) { output.append(words[i]);...
public static String reverseUsingStreamOfMethod(String str) { if (str == null) { return null; } return Stream.of(str) .map(string -> new StringBuilder(string).reverse()) .collect(Collectors.joining()); } public static String reverseUsingCharsMethod(Strin...
repos\tutorials-master\core-java-modules\core-java-string-algorithms\src\main\java\com\baeldung\reverse\ReverseStringExamples.java
1
请完成以下Java代码
public void setTomb(String tomb) { this.tomb = tomb; } public String getRemark() { return remark; } public void setRemark(String remark) { this.remark = remark; } public King getSuccessor() { return successor; } public void setSuccessor(King successor)...
public void setSons(List<FatherAndSonRelation> sons) { this.sons = sons; } /** * 添加友谊的关系 * @param */ public void addRelation(FatherAndSonRelation fatherAndSonRelation){ if(this.sons == null){ this.sons = new ArrayList<>(); } this.sons.add(fatherAnd...
repos\springBoot-master\springboot-neo4j\src\main\java\cn\abel\neo4j\bean\King.java
1
请完成以下Java代码
public void paint(Graphics g) { if (capture) { //capture preview image image = (BufferedImage)createImage(this.getWidth(),this.getHeight()); super.paint(image.createGraphics()); g.drawImage(image, 0, 0, null); capture = false; if (laf != null) { //reset to original setting if (laf instan...
//draw captured preview image if (image != null) g.drawImage(image, 0, 0, null); } } /** * Refresh look and feel preview, reset to original setting after * refresh. * @param currentLaf Current Look and feel * @param currentTheme Current Theme */ void refresh(LookAndFeel currentLaf, MetalTheme cu...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\adempiere\plaf\PLAFEditorPanel.java
1
请在Spring Boot框架中完成以下Java代码
public Integer getPathSegment() { return pathSegment; } public void setPathSegment(Integer pathSegment) { this.pathSegment = pathSegment; } public String getRequestParamName() { return requestParamName; } public void setRequestParamName(String requestParamName) { this.requestParamName = requestParamNam...
@Override public String toString() { // @formatter:off return new ToStringCreator(this) .append("defaultVersion", defaultVersion) .append("detectSupportedVersions", detectSupportedVersions) .append("headerName", headerName) .append("mediaType", mediaType) .append("mediaTypeParamName", mediaType...
repos\spring-cloud-gateway-main\spring-cloud-gateway-server-webflux\src\main\java\org\springframework\cloud\gateway\config\VersionProperties.java
2
请完成以下Java代码
public static ViewHeaderPropertiesProviderMap of(@NonNull final List<ViewHeaderPropertiesProvider> providers) { return !providers.isEmpty() ? new ViewHeaderPropertiesProviderMap(providers) : EMPTY; } private static final ViewHeaderPropertiesProviderMap EMPTY = new ViewHeaderPropertiesProviderMap(); priv...
{ if (!providersByTableName.containsKey(appliesOnlyToTableName)) { providersByTableName.putAll(appliesOnlyToTableName, genericProviders); } providersByTableName.put(appliesOnlyToTableName, provider); } } this.genericProviders = CompositeViewHeaderPropertiesProvider.of(genericProviders); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\view\ViewHeaderPropertiesProviderMap.java
1
请完成以下Java代码
public String getName() { return name; } /** * 设置 名字. * * @param name 名字. */ public void setName(String name) { this.name = name; } /** * 获取 密码. * * @return 密码. */ public String getPassword() { return password; } /** ...
public Integer getState() { return state; } /** * 设置 状态 1:正常 2:禁用. * * @param state 状态 1:正常 2:禁用. */ public void setState(Integer state) { this.state = state; } /** * 获取 创建时间. * * @return 创建时间. */ public Date getCreatedTime() { re...
repos\SpringBootBucket-master\springboot-jwt\src\main\java\com\xncoding\jwt\dao\domain\Manager.java
1
请完成以下Java代码
public class BankStatementImportFileAttachmentListener implements AttachmentListener { private static final Logger logger = LogManager.getLogger(BankStatementImportFileAttachmentListener.class); private final BankStatementImportFileService bankStatementImportFileService = SpringContextHolder.instance.getBean(BankSta...
@NonNull public AttachmentListenerConstants.ListenerWorkStatus beforeRecordLinked( @NonNull final AttachmentEntry attachmentEntry, @NonNull final TableRecordReference tableRecordReference) { Check.assume(tableRecordReference.getTableName().equals(I_C_BankStatement_Import_File.Table_Name), "This is only about ...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.base\src\main\java\de\metas\banking\importfile\listener\BankStatementImportFileAttachmentListener.java
1
请完成以下Java代码
public int getM_Securpharm_Action_Result_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_M_Securpharm_Action_Result_ID); if (ii == null) return 0; return ii.intValue(); } @Override public de.metas.vertical.pharma.securpharm.model.I_M_Securpharm_Productdata_Result getM_Securpharm_Productdata_Result() ...
@return Securpharm Produktdaten Ergebnise */ @Override public int getM_Securpharm_Productdata_Result_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_M_Securpharm_Productdata_Result_ID); if (ii == null) return 0; return ii.intValue(); } /** Set TransaktionsID Server. @param TransactionIDServer Tr...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma.securpharm\src\main\java-gen\de\metas\vertical\pharma\securpharm\model\X_M_Securpharm_Action_Result.java
1
请完成以下Java代码
public boolean isDeploymentBinding() { CallableElementBinding binding = getBinding(); return CallableElementBinding.DEPLOYMENT.equals(binding); } public boolean isVersionBinding() { CallableElementBinding binding = getBinding(); return CallableElementBinding.VERSION.equals(binding); } public b...
return null; } public ParameterValueProvider getVersionTagValueProvider() { return versionTagValueProvider; } public void setVersionTagValueProvider(ParameterValueProvider version) { this.versionTagValueProvider = version; } public void setTenantIdProvider(ParameterValueProvider tenantIdProvider...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\core\model\BaseCallableElement.java
1
请完成以下Java代码
public java.lang.String getDocStatus () { return (java.lang.String)get_Value(COLUMNNAME_DocStatus); } /** * PaymentRule AD_Reference_ID=195 * Reference name: _Payment Rule */ public static final int PAYMENTRULE_AD_Reference_ID=195; /** Cash = B */ public static final String PAYMENTRULE_Cash = "B"; /**...
/** 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 ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return f...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_Payment_Reservation.java
1
请完成以下Java代码
private Optional<I_C_DocType> getDocType(final I_GL_Journal glJournal) { return DocTypeId.optionalOfRepoId(glJournal.getC_DocType_ID()) .map(docTypeBL::getById); } @CalloutMethod(columnNames = I_GL_Journal.COLUMNNAME_DateDoc) public void onDateDoc(final I_GL_Journal glJournal) { final Timestamp dateDoc = ...
dateAcct, conversionTypeId, adClientId, adOrgId) .map(CurrencyRate::getConversionRate) .orElse(BigDecimal.ZERO); } else { currencyRate = BigDecimal.ONE; } // glJournal.setCurrencyRate(currencyRate); } // Old/missing callouts // "GL_Journal";"C_Period_ID";"org.compiere.model....
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java\de\metas\acct\callout\GL_Journal.java
1
请完成以下Java代码
public List<HistoricJobLogDto> queryHistoricJobLogs(HistoricJobLogQueryDto queryDto, Integer firstResult, Integer maxResults) { queryDto.setObjectMapper(objectMapper); HistoricJobLogQuery query = queryDto.toQuery(processEngine); List<HistoricJobLog> matchingHistoricJobLogs = QueryUtil.list(query, firstResu...
return queryHistoricJobLogsCount(queryDto); } @Override public CountResultDto queryHistoricJobLogsCount(HistoricJobLogQueryDto queryDto) { queryDto.setObjectMapper(objectMapper); HistoricJobLogQuery query = queryDto.toQuery(processEngine); long count = query.count(); CountResultDto result = new ...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\impl\history\HistoricJobLogRestServiceImpl.java
1
请完成以下Java代码
public class LwM2MTransportBootstrapConfig implements LwM2MSecureServerConfig { @Getter @Value("${transport.lwm2m.bootstrap.id:}") private Integer id; @Getter @Value("${transport.lwm2m.bootstrap.bind_address:}") private String host; @Getter @Value("${transport.lwm2m.bootstrap.bind_por...
private Integer securePort; @Bean @ConfigurationProperties(prefix = "transport.lwm2m.bootstrap.security.credentials") public SslCredentialsConfig lwm2mBootstrapCredentials() { return new SslCredentialsConfig("LWM2M Bootstrap DTLS Credentials", false); } @Autowired @Qualifier("lwm2mBoot...
repos\thingsboard-master\common\transport\lwm2m\src\main\java\org\thingsboard\server\transport\lwm2m\config\LwM2MTransportBootstrapConfig.java
1
请在Spring Boot框架中完成以下Java代码
public RpNotifyRecord getNotifyRecordById(String id) { return rpNotifyRecordDao.getById(id); } /** * 根据商户编号,商户订单号,通知类型获取通知记录 * * @param merchantNo * 商户编号 * @param merchantOrderNo * 商户订单号 * @param notifyType * 消息类型 * @return */ @Override public RpNotifyRecord g...
@Override public long createNotifyRecord(RpNotifyRecord rpNotifyRecord) { return rpNotifyRecordDao.insert(rpNotifyRecord); } /** * 修改消息通知 * * @param rpNotifyRecord */ @Override public void updateNotifyRecord(RpNotifyRecord rpNotifyRecord) { rpNotifyRecordDao.update(rpNotifyRecord); } /** * 创建消息通知...
repos\roncoo-pay-master\roncoo-pay-service\src\main\java\com\roncoo\pay\notify\service\impl\RpNotifyServiceImpl.java
2
请完成以下Java代码
private void createShippingPackages(@NonNull final I_M_PickingSlot pickingSlot) { final List<I_M_HU> huRecords = huPickingSlotDAO.retrieveAllHUs(pickingSlot); addLog("Found {} M_HUs in M_PickingSlot {}", huRecords.size(), pickingSlot.getPickingSlot()); for (final I_M_HU hu : huRecords) { // tasks 09033: ta...
addLog("M_HU {} is already assigned to a M_Package; => nothing to do", hu); return; } final I_M_Package mpackage = huPackageBL.createM_Package( CreatePackageForHURequest.builder() .hu(hu) .shipperId(shipperId) .build() ); final I_M_ShippingPackage shippingPackage = shipperTransportati...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\shipping\process\M_ShippingPackage_CreateFromPickingSlots.java
1
请完成以下Java代码
public I_Fact_Acct getFact_Acct() throws RuntimeException { return (I_Fact_Acct)MTable.get(getCtx(), I_Fact_Acct.Table_Name) .getPO(getFact_Acct_ID(), get_TrxName()); } /** Set Accounting Fact. @param Fact_Acct_ID Accounting Fact */ public void setFact_Acct_ID (int Fact_Acct_ID) { if (Fact_Acct_ID < ...
@param Name Alphanumeric identifier of the entity */ public void setName (String Name) { set_ValueNoCheck (COLUMNNAME_Name, Name); } /** Get Name. @return Alphanumeric identifier of the entity */ public String getName () { return (String)get_Value(COLUMNNAME_Name); } /** Get Record ID/Colum...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_T_ReportStatement.java
1
请完成以下Java代码
public BigDecimal getQtyUsageVariance(@NonNull final PPOrderBOMLineId orderBOMLineId) { final BigDecimal qtyUsageVariance = queryBL.createQueryBuilder(I_PP_Cost_Collector.class) .addEqualsFilter(I_PP_Cost_Collector.COLUMNNAME_PP_Order_BOMLine_ID, orderBOMLineId) .addInArrayFilter(I_PP_Cost_Collector.COLUMNNA...
.addEqualsFilter(I_PP_Cost_Collector.COLUMNNAME_PP_Order_Node_ID, activity.getId()) .addInArrayFilter(I_PP_Cost_Collector.COLUMNNAME_DocStatus, X_PP_Cost_Collector.DOCSTATUS_Completed, X_PP_Cost_Collector.DOCSTATUS_Closed) .addEqualsFilter(I_PP_Cost_Collector.COLUMNNAME_CostCollectorType, costCollectorType.getC...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing\src\main\java\org\eevolution\api\impl\PPCostCollectorDAO.java
1
请完成以下Java代码
public CaseDefinitionResource getCaseDefinitionByKey(String caseDefinitionKey) { CaseDefinition caseDefinition = getProcessEngine() .getRepositoryService() .createCaseDefinitionQuery() .caseDefinitionKey(caseDefinitionKey) .withoutTenantId() .latestVersion() .singleR...
@Override public CaseDefinitionResource getCaseDefinitionById(String caseDefinitionId) { return new CaseDefinitionResourceImpl(getProcessEngine(), caseDefinitionId, relativeRootResourcePath, getObjectMapper()); } @Override public List<CaseDefinitionDto> getCaseDefinitions(UriInfo uriInfo, Integer firstResu...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\impl\CaseDefinitionRestServiceImpl.java
1
请完成以下Java代码
public ImmutableList<DDOrderMoveSchedule> dropTo(@NonNull final DDOrderDropToRequest request) { return DDOrderDropToCommand.builder() .ppOrderSourceHUService(ppOrderSourceHUService) .ddOrderLowLevelDAO(ddOrderLowLevelDAO) .ddOrderMoveScheduleRepository(ddOrderMoveScheduleRepository) .request(request)...
public boolean hasInTransitSchedules(@NonNull final LocatorId inTransitLocatorId) { return ddOrderMoveScheduleRepository.queryInTransitSchedules(inTransitLocatorId).anyMatch(); } public void printMaterialInTransitReport( @NonNull final LocatorId inTransitLocatorId, @NonNull String adLanguage) { MaterialI...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\distribution\ddorder\movement\schedule\DDOrderMoveScheduleService.java
1
请完成以下Java代码
public void setDataFormat (final @Nullable java.lang.String DataFormat) { set_Value (COLUMNNAME_DataFormat, DataFormat); } @Override public java.lang.String getDataFormat() { return get_ValueAsString(COLUMNNAME_DataFormat); } /** * DataType AD_Reference_ID=541944 * Reference name: C_ScannableCode_For...
@Override public int getDecimalPointPosition() { return get_ValueAsInt(COLUMNNAME_DecimalPointPosition); } @Override public void setDescription (final @Nullable java.lang.String Description) { set_Value (COLUMNNAME_Description, Description); } @Override public java.lang.String getDescription() { ret...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_ScannableCode_Format_Part.java
1
请完成以下Java代码
public boolean hasTUs(final Properties ctx, final int bpartnerId, final int productId, final Date date) { final IHUPIItemProductDAO piItemProductDAO = Services.get(IHUPIItemProductDAO.class); final IHUPIItemProductQuery queryVO = piItemProductDAO.createHUPIItemProductQuery(); queryVO.setC_BPartner_ID(bpartnerId...
} } // // Try fetching best matching PIP final I_M_HU_PI_Item_Product pip = hupiItemProductDAO.retrieveMaterialItemProduct( productId, BPartnerId.ofRepoIdOrNull(forecast.getC_BPartner_ID()), TimeUtil.asZonedDateTime(forecast.getDatePromised()), X_M_HU_PI_Version.HU_UNITTYPE_TransportUnit, t...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\order\api\impl\HUOrderBL.java
1
请完成以下Java代码
public int getX() { return x; } public void setX(int x) { this.x = x; } public int getY() { return y; } public void setY(int y) { this.y = y; } public int getWidth() { return width; } public void setWidth(int width) { this.width = width; }
public int getHeight() { return height; } public void setHeight(int height) { this.height = height; } public List<String> getFlowNodeIds() { if(flowNodeIds == null) { flowNodeIds = new ArrayList<String>(); } return flowNodeIds; } }
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\pvm\process\Lane.java
1
请完成以下Java代码
public String getName() { return name; } public void setName(String name) { this.name = name; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public void addRole(Role role) { ...
public String getId() { return id; } void setId(String id) { this.id = id; } String encrypt(String password) { Objects.requireNonNull(password); try { Cipher cipher = Cipher.getInstance("AES"); cipher.init(Cipher.ENCRYPT_MODE, KEY); f...
repos\tutorials-master\patterns-modules\design-patterns-architectural\src\main\java\com\baeldung\dtopattern\domain\User.java
1
请在Spring Boot框架中完成以下Java代码
public class PeriodRepo { private final IOrgDAO orgDAO = Services.get(IOrgDAO.class); private final CCache<Integer, I_C_Period> periodCache = CCache.newLRUCache(I_C_Period.Table_Name + "#by#C_Period_ID", 100, 60); private final CCache<Integer, YearId> yearIdCache = CCache.newLRUCache(I_C_Year.Table_Name + "#by#C_Y...
public PeriodId getPeriodId(final int periodRepoId) { final I_C_Period periodRecord = getRecord(periodRepoId); return createPeriodId(periodRecord); } private PeriodId createPeriodId(final I_C_Period record) { final YearId yearId = getYearId(record.getC_Year_ID()); return PeriodId.ofRepoId(yearId, record.ge...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\calendar\PeriodRepo.java
2
请完成以下Java代码
public Optional<OrderCostDetail> getDetailByOrderLineIdIfExists(final OrderLineId orderLineId) { return details.stream() .filter(detail -> OrderLineId.equals(detail.getOrderLineId(), orderLineId)) .findFirst(); } public OrderCostDetail getDetailByOrderLineId(final OrderLineId orderLineId) { return getD...
.createdOrderLineId(createdOrderLineId != null ? mapper.getTargetOrderLineId(createdOrderLineId) : null) .details(details.stream() .map(detail -> detail.copy(mapper)) .collect(ImmutableList.toImmutableList())) .build(); } public void updateOrderLineInfoIfApplies( final OrderCostDetailOrderLine...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\order\costs\OrderCost.java
1
请在Spring Boot框架中完成以下Java代码
public class ThingsboardMonitoringApplication { private final List<BaseMonitoringService<?, ?>> monitoringServices; private final MonitoringEntityService entityService; private final NotificationService notificationService; @Value("${monitoring.monitoring_rate_ms}") private int monitoringRateMs; ...
@EventListener(ContextClosedEvent.class) public void onShutdown(ContextClosedEvent event) { log.info("Shutting down monitoring service"); try { var futures = notificationService.sendNotification(new InfoNotification(":warning: Monitoring is shutting down")); for (Future<?> fu...
repos\thingsboard-master\monitoring\src\main\java\org\thingsboard\monitoring\ThingsboardMonitoringApplication.java
2
请完成以下Java代码
public class AuthorizationObservationContext<T> extends Observation.Context { // FIXME: Should we make this non-null? private @Nullable Authentication authentication; private final T object; // FIXME: Should we make this non-null? private @Nullable AuthorizationResult authorizationResult; public Authorization...
public void setAuthentication(Authentication authentication) { this.authentication = authentication; } /** * Get the object for which access was requested * @return the requested object */ public T getObject() { return this.object; } /** * Get the observed {@link AuthorizationResult} * @return the ...
repos\spring-security-main\core\src\main\java\org\springframework\security\authorization\AuthorizationObservationContext.java
1
请完成以下Java代码
public void setC_AcctSchema_ID (int C_AcctSchema_ID) { if (C_AcctSchema_ID < 1) set_Value (COLUMNNAME_C_AcctSchema_ID, null); else set_Value (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. @return Rules for accounting */ public int getC_AcctSchema_ID ()...
/** Set Process Now. @param Processing Process Now */ public void setProcessing (boolean Processing) { set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); } /** Get Process Now. @return Process Now */ public boolean isProcessing () { Object oo = get_Value(COLUMNNAME_Processing); if (oo...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_A_Asset_Acct.java
1
请完成以下Java代码
private I_M_HU_PI_Item_Product getM_HU_PI_Item_ProductToUse(final I_M_HU hu, final ProductId productId) { if (tuPIItem == null) { return null; } final I_M_HU_PI_Item_Product piip = piipDAO.retrievePIMaterialItemProduct( tuPIItem, BPartnerId.ofRepoIdOrNull(hu.getC_BPartner_ID()), productId, S...
{ if (Adempiere.isUnitTestMode()) { handlingUnitsBL.destroyIfEmptyStorage(localHuContextCopy, huToSplit); // in unit test mode, there won't be a commit return; } // Destroy empty HUs from huToSplit trxManager.getCurrentTrxListenerManagerOrAutoCommit() .runAfterCommit(() -> trxManager .runInNe...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\allocation\transfer\impl\HUSplitBuilderCoreEngine.java
1
请完成以下Java代码
public long getId() { return id; } public void setId(long value) { this.id = value; } public String getEmail() { return email; } public void setEmail(String value) { this.email = value; } public String getName() { return name;
} public void setName(String value) { this.name = value; } public String getCity() { return city; } public void setCity(String value) { this.city = value; } } // class
repos\spring-boot-samples-master\spring-boot-hibernate-search\src\main\java\netgloo\models\User.java
1
请完成以下Java代码
public void setA_Asset_Reval_Index_ID (int A_Asset_Reval_Index_ID) { if (A_Asset_Reval_Index_ID < 1) set_ValueNoCheck (COLUMNNAME_A_Asset_Reval_Index_ID, null); else set_ValueNoCheck (COLUMNNAME_A_Asset_Reval_Index_ID, Integer.valueOf(A_Asset_Reval_Index_ID)); } /** Get A_Asset_Reval_Index_ID. @return...
set_Value (COLUMNNAME_A_Reval_Code, A_Reval_Code); } /** Get A_Reval_Code. @return A_Reval_Code */ public String getA_Reval_Code () { return (String)get_Value(COLUMNNAME_A_Reval_Code); } /** A_Reval_Multiplier AD_Reference_ID=53260 */ public static final int A_REVAL_MULTIPLIER_AD_Reference_ID=53260; /*...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_A_Asset_Reval_Index.java
1
请完成以下Java代码
public class ColumnName { private final String columnName; private ColumnName(@NonNull final String columnName) { final String columnNameNorm = StringUtils.trimBlankToNull(columnName); if (columnNameNorm == null) { throw new AdempiereException("Invalid column name: `" + columnName + "`"); } this.colum...
} @Override @Deprecated public String toString() { return getAsString(); } public String getAsString() { return columnName; } public boolean endsWith(@NonNull final String suffix) { return columnName.endsWith(suffix); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\table\api\ColumnName.java
1
请完成以下Java代码
public class LogEntry { private LogLevel level; private String message; private LocalDateTime timestamp; public LogLevel getLevel() { return level; } public void setLevel(LogLevel level) { this.level = level; } public String getMessage() {
return message; } public void setMessage(String message) { this.message = message; } public LocalDateTime getTimestamp() { return timestamp; } public void setTimestamp(LocalDateTime timestamp) { this.timestamp = timestamp; } }
repos\tutorials-master\text-processing-libraries-modules\antlr\src\main\java\com\baeldung\antlr\log\model\LogEntry.java
1
请在Spring Boot框架中完成以下Java代码
public class AppController { @Autowired ClassifyImageService classifyImageService; @PostMapping(value = "/classify") @CrossOrigin(origins = "*") public ClassifyImageService.LabelWithProbability classifyImage(@RequestParam MultipartFile file) throws IOException { checkImageContents(file); ...
private void checkImageContents(MultipartFile file) { MagicMatch match; try { match = Magic.getMagicMatch(file.getBytes()); } catch (Exception e) { throw new RuntimeException(e); } String mimeType = match.getMimeType(); if (!mimeType.startsWith("im...
repos\springboot-demo-master\Tensorflow\src\main\java\com\et\tf\api\AppController.java
2
请完成以下Java代码
public java.lang.String getOldValue () { return (java.lang.String)get_Value(COLUMNNAME_OldValue); } /** Set Datensatz-ID. @param Record_ID Direct internal record ID */ @Override public void setRecord_ID (int Record_ID) { if (Record_ID < 0) set_ValueNoCheck (COLUMNNAME_Record_ID, null); else ...
/** Set Transaktion. @param TrxName Name of the transaction */ @Override public void setTrxName (java.lang.String TrxName) { set_ValueNoCheck (COLUMNNAME_TrxName, TrxName); } /** Get Transaktion. @return Name of the transaction */ @Override public java.lang.String getTrxName () { return (java...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_ChangeLog.java
1
请完成以下Java代码
public static class Message { private final String summary; private final String themeColor; private final String title; @Builder.Default private final List<Section> sections = new ArrayList<>(); } @Data @Builder
public static class Section { private final String activityTitle; private final String activitySubtitle; @Builder.Default private final List<Fact> facts = new ArrayList<>(); } public record Fact(String name, @Nullable String value) { } }
repos\spring-boot-admin-master\spring-boot-admin-server\src\main\java\de\codecentric\boot\admin\server\notify\MicrosoftTeamsNotifier.java
1
请完成以下Java代码
protected org.compiere.model.POInfo initPO(final Properties ctx) { return org.compiere.model.POInfo.getPOInfo(Table_Name); } @Override public void setDescription (final @Nullable java.lang.String Description) { set_Value (COLUMNNAME_Description, Description); } @Override public java.lang.String getDescrip...
{ return get_ValueAsString(COLUMNNAME_Name); } @Override public void setPP_Product_BOMVersions_ID (final int PP_Product_BOMVersions_ID) { if (PP_Product_BOMVersions_ID < 1) set_ValueNoCheck (COLUMNNAME_PP_Product_BOMVersions_ID, null); else set_ValueNoCheck (COLUMNNAME_PP_Product_BOMVersions_ID, PP_P...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\eevolution\model\X_PP_Product_BOMVersions.java
1
请在Spring Boot框架中完成以下Java代码
public class LoginReq extends AbsReq { /** 用户名 */ private String username; /** 密码 */ private String password; /** 手机号 */ private String phone; /** 邮箱 */ private String mail; public String getUsername() { return username; } public void setUsername(String username...
public String getPhone() { return phone; } public void setPhone(String phone) { this.phone = phone; } public String getMail() { return mail; } public void setMail(String mail) { this.mail = mail; } @Override public String toString() { retur...
repos\SpringBoot-Dubbo-Docker-Jenkins-master\Gaoxi-Common-Service-Facade\src\main\java\com\gaoxi\req\user\LoginReq.java
2
请在Spring Boot框架中完成以下Java代码
public void onFailure(Throwable t) { stats.incrementFailed(); if (callback != null) callback.onFailure(t); } } private class MsgPackCallback implements TbQueueCallback { private final AtomicInteger msgCount; private final TransportServiceCallback<...
public void onError(Throwable e) { callback.onError(e); } } @Override public ExecutorService getCallbackExecutor() { return transportCallbackExecutor; } @Override public boolean hasSession(TransportProtos.SessionInfoProto sessionInfo) { return sessions.conta...
repos\thingsboard-master\common\transport\transport-api\src\main\java\org\thingsboard\server\common\transport\service\DefaultTransportService.java
2
请完成以下Java代码
public void setRecordByTableRecordId(final String tableName, final int recordId) { final TableRecordReference record = TableRecordReference.of(tableName, recordId); setRecords(Collections.singleton(record)); } private void setRecords(final Collection<TableRecordReference> records) { _records = new HashSet<>(...
public <T> void addRecordsByFilter(@NonNull final Class<T> modelClass, @NonNull final IQueryFilter<T> filters) { _records = null; _selection_AD_Table_ID = null; if (_filters == null) { _filters = new ArrayList<>(); } _filters.add(LockRecordsByFilter.of(modelClass, filters)); } public List<LockRecord...
repos\metasfresh-new_dawn_uat\backend\de.metas.async\src\main\java\de\metas\lock\api\impl\LockRecords.java
1
请在Spring Boot框架中完成以下Java代码
public String findPreviousDecisionDefinitionId(String decisionDefinitionKey, Integer version, String tenantId) { Map<String, Object> params = new HashMap<String, Object>(); params.put("key", decisionDefinitionKey); params.put("version", version); params.put("tenantId", tenantId); return (String) get...
} @Override public DecisionDefinitionEntity getCachedResourceDefinitionEntity(String definitionId) { return getDbEntityManager().getCachedEntity(DecisionDefinitionEntity.class, definitionId); } @Override public DecisionDefinitionEntity findLatestDefinitionByKeyAndTenantId(String definitionKey, String te...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\dmn\entity\repository\DecisionDefinitionManager.java
2
请完成以下Java代码
public Builder withZoomButton(final boolean withZoomButton) { this.withZoomButton = withZoomButton; return this; } /** * Advice builder to create the buttons with text on them. */ public Builder withText() { return withText(true); } /** * Advice builder to create the buttons without an...
* @param withText true if buttons shall have text on them */ public Builder withText(final boolean withText) { this.withText = withText; return this; } public Builder withSmallButtons(final boolean withSmallButtons) { smallButtons = withSmallButtons; return this; } } } // ConfirmPanel
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\apps\ConfirmPanel.java
1
请在Spring Boot框架中完成以下Java代码
public class RpOrderResultQueryVo extends BaseEntity { private static final long serialVersionUID = -6104194914044220447L; private Date createTime; /** 通知规则 */ private String notifyRule; /** 最后一次通知时间 **/ private Date lastNotifyTime; /** 通知次数 **/ private Integer notifyTimes; /**...
} /** 最后一次通知时间 **/ public void setLastNotifyTime(Date lastNotifyTime) { this.lastNotifyTime = lastNotifyTime; } /** 通知次数 **/ public Integer getNotifyTimes() { return notifyTimes; } /** 通知次数 **/ public void setNotifyTimes(Integer notifyTimes) { this.notifyTimes ...
repos\roncoo-pay-master\roncoo-pay-service\src\main\java\com\roncoo\pay\notify\entity\RpOrderResultQueryVo.java
2
请完成以下Java代码
private void scanMetasfreshHome() { final File home = new File(Adempiere.getMetasfreshHome() + File.separator + "migration"); if (!home.exists() && !home.isDirectory()) { logger.warn("No migration directory found (" + home + ")"); return; } logger.info("Processing migration files in directory: " + hom...
{ logger.warn("Unhandled type " + o + " [SKIP]"); } } } private void execute(I_AD_Migration migration) { final Properties ctx = InterfaceWrapperHelper.getCtx(migration); final int migrationId = migration.getAD_Migration_ID(); final IMigrationExecutorProvider executorProvider = Services.get(IMigratio...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\process\MigrationLoader.java
1
请完成以下Java代码
public java.lang.String getConfigurationLevel() { return get_ValueAsString(COLUMNNAME_ConfigurationLevel); } /** * EntityType AD_Reference_ID=389 * Reference name: _EntityTypeNew */ public static final int ENTITYTYPE_AD_Reference_ID=389; @Override public void setEntityType (final java.lang.String Entit...
@Override public void setSeqNo (final int SeqNo) { set_Value (COLUMNNAME_SeqNo, SeqNo); } @Override public int getSeqNo() { return get_ValueAsInt(COLUMNNAME_SeqNo); } @Override public void setSpecification (final @Nullable java.lang.String Specification) { set_Value (COLUMNNAME_Specification, Specifi...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\eevolution\model\X_PP_WF_Node_Product.java
1
请在Spring Boot框架中完成以下Java代码
static class PropertiesOtlpTracingConnectionDetails implements OtlpTracingConnectionDetails { private final OtlpTracingProperties properties; PropertiesOtlpTracingConnectionDetails(OtlpTracingProperties properties) { this.properties = properties; } @Override public String getUrl(Transport transpor...
return builder.build(); } @Bean @ConditionalOnProperty(name = "management.opentelemetry.tracing.export.otlp.transport", havingValue = "grpc") OtlpGrpcSpanExporter otlpGrpcSpanExporter(OtlpTracingProperties properties, OtlpTracingConnectionDetails connectionDetails, ObjectProvider<MeterProvider> meterProvid...
repos\spring-boot-4.0.1\module\spring-boot-micrometer-tracing-opentelemetry\src\main\java\org\springframework\boot\micrometer\tracing\opentelemetry\autoconfigure\otlp\OtlpTracingConfigurations.java
2
请完成以下Java代码
public class TypeDeclaration implements Annotatable { private final AnnotationContainer annotations = new AnnotationContainer(); private final String name; private String extendedClassName; private List<String> implementsClassNames = Collections.emptyList(); /** * Creates a new instance. * @param name the...
/** * Implement the given interfaces. * @param names the names of the interfaces to implement */ public void implement(String... names) { this.implementsClassNames = List.of(names); } @Override public AnnotationContainer annotations() { return this.annotations; } public String getName() { return thi...
repos\initializr-main\initializr-generator\src\main\java\io\spring\initializr\generator\language\TypeDeclaration.java
1
请完成以下Spring Boot application配置
server.port=8082 spring.security.oauth2.client.registration.baeldung.client-id=SampleClientId spring.security.oauth2.client.registration.baeldung.client-secret=secret spring.security.oauth2.client.registration.baeldung.authorization-grant-type=authorization_code spring.security.oauth2.client.registration.baeldung.redi...
pring.security.oauth2.client.provider.baeldung.authorization-uri=http://localhost:8081/auth/oauth/authorize spring.security.oauth2.client.provider.baeldung.user-info-uri=http://localhost:8081/auth/user/me
repos\tutorials-master\spring-security-modules\spring-security-oauth2\src\main\resources\application-oauth2-extractors-baeldung.properties
2
请完成以下Java代码
public class DySmsLimit { // 1分钟内最大发短信数量(单一IP) private static final int MAX_MESSAGE_PER_MINUTE = 5; // 1分钟 private static final int MILLIS_PER_MINUTE = 60000; // 一分钟内报警线最大短信数量,超了进黑名单(单一IP) private static final int MAX_TOTAL_MESSAGE_PER_MINUTE = 20; private static ConcurrentHashMap<String, ...
/** * 图片二维码验证成功之后清空数量 * * @param ip IP地址 */ public static void clearSendSmsCount(String ip) { long currentTime = System.currentTimeMillis(); ipRequestCount.put(ip, 0); ipLastRequestTime.put(ip, currentTime); } // public static void main(String[] args) { // ...
repos\JeecgBoot-main\jeecg-boot\jeecg-boot-base-core\src\main\java\org\jeecg\common\util\DySmsLimit.java
1
请完成以下Java代码
public ScriptInfo getScriptInfo() { return scriptInfo; } /** * Sets the script info * * @see #getScriptInfo() */ @Override public void setScriptInfo(ScriptInfo scriptInfo) { this.scriptInfo = scriptInfo; } @Override public FlowableListener clone() { ...
super.setValues(otherListener); setEvent(otherListener.getEvent()); setImplementation(otherListener.getImplementation()); setImplementationType(otherListener.getImplementationType()); if (otherListener.getScriptInfo() != null) { setScriptInfo(otherListener.getScriptInfo().clo...
repos\flowable-engine-main\modules\flowable-bpmn-model\src\main\java\org\flowable\bpmn\model\FlowableListener.java
1
请完成以下Java代码
public final class FieldUtils { private FieldUtils() { } /** * Attempts to locate the specified field on the class. * @param clazz the class definition containing the field * @param fieldName the name of the field to locate * @return the Field (never null) * @throws IllegalStateException if field could n...
public static @Nullable Object getProtectedFieldValue(String protectedField, Object object) { Field field = FieldUtils.getField(object.getClass(), protectedField); try { field.setAccessible(true); return field.get(object); } catch (Exception ex) { ReflectionUtils.handleReflectionException(ex); retur...
repos\spring-security-main\core\src\main\java\org\springframework\security\util\FieldUtils.java
1
请完成以下Java代码
public int getParentMenu_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_ParentMenu_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Position. @param Position Position */ public void setPosition (String Position) { set_Value (COLUMNNAME_Position, Position); } /** Get Position....
/** Set Web Menu. @param U_WebMenu_ID Web Menu */ public void setU_WebMenu_ID (int U_WebMenu_ID) { if (U_WebMenu_ID < 1) set_ValueNoCheck (COLUMNNAME_U_WebMenu_ID, null); else set_ValueNoCheck (COLUMNNAME_U_WebMenu_ID, Integer.valueOf(U_WebMenu_ID)); } /** Get Web Menu. @return Web Menu */ pub...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_U_WebMenu.java
1
请完成以下Java代码
public void doFilter(final ServletRequest request, final ServletResponse response, final FilterChain chain) throws IOException, ServletException { HttpServletRequest req = (HttpServletRequest) request; HttpSession session = req.getSession(true); // get authentication from session Authentications ...
} finally { Authentications.clearCurrent(); AuthenticationUtil.updateSession(req.getSession(false), authentications); } } public void destroy() { } public Long getCacheTimeToLive() { return cacheTimeToLive; } }
repos\camunda-bpm-platform-master\webapps\assembly\src\main\java\org\camunda\bpm\webapp\impl\security\auth\AuthenticationFilter.java
1
请在Spring Boot框架中完成以下Java代码
public class DefaultTbMobileAppService extends AbstractTbEntityService implements TbMobileAppService { private final MobileAppService mobileAppService; @Override public MobileApp save(MobileApp mobileApp, User user) throws Exception { ActionType actionType = mobileApp.getId() == null ? ActionType....
@Override public void delete(MobileApp mobileApp, User user) { ActionType actionType = ActionType.DELETED; TenantId tenantId = mobileApp.getTenantId(); MobileAppId mobileAppId = mobileApp.getId(); try { mobileAppService.deleteMobileAppById(tenantId, mobileAppId); ...
repos\thingsboard-master\application\src\main\java\org\thingsboard\server\service\entitiy\mobile\DefaultTbMobileAppService.java
2
请完成以下Java代码
public void setContentTypeOptionsValue(String contentTypeOptionsValue) { this.contentTypeOptionsValue = contentTypeOptionsValue; } public boolean isHstsDisabled() { return hstsDisabled; } public void setHstsDisabled(boolean hstsDisabled) { this.hstsDisabled = hstsDisabled; } public boolean is...
this.hstsMaxAge = hstsMaxAge; } @Override public String toString() { StringJoiner joinedString = joinOn(this.getClass()) .add("xssProtectionDisabled=" + xssProtectionDisabled) .add("xssProtectionOption=" + xssProtectionOption) .add("xssProtectionValue=" + xssProtectionValue) .add("c...
repos\camunda-bpm-platform-master\spring-boot-starter\starter\src\main\java\org\camunda\bpm\spring\boot\starter\property\HeaderSecurityProperties.java
1
请完成以下Java代码
public class StringRedisSerializer implements RedisSerializer<Object> { private final Charset charset; private final String target = "\""; private final String replacement = ""; public StringRedisSerializer() { this(Charset.forName("UTF8")); } public StringRedisSerializer(Charset ch...
@Override public String deserialize(byte[] bytes) { return (bytes == null ? null : new String(bytes, charset)); } @Override public byte[] serialize(Object object) { String string = JSON.toJSONString(object); if (string == null) { return null; } string...
repos\spring-boot-student-master\spring-boot-student-cache-redis\src\main\java\com\xiaolyuh\redis\serializer\StringRedisSerializer.java
1
请完成以下Java代码
public ProjectAccounts getAccounts(@NonNull final ProjectId projectId, @NonNull final AcctSchemaId acctSchemaId) { final ImmutableMap<AcctSchemaId, ProjectAccounts> map = cache.getOrLoad(projectId, this::retrieveAccounts); final ProjectAccounts accounts = map.get(acctSchemaId); if (accounts == null) { throw...
.addEqualsFilter(I_C_Project_Acct.COLUMNNAME_C_Project_ID, projectId) .create() .stream() .map(ProjectAccountsRepository::fromRecord) .collect(ImmutableMap.toImmutableMap(ProjectAccounts::getAcctSchemaId, accounts -> accounts)); } private static ProjectAccounts fromRecord(@NonNull final I_C_Project_A...
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java\de\metas\acct\accounts\ProjectAccountsRepository.java
1
请在Spring Boot框架中完成以下Java代码
public class OrderPayScheduleId implements RepoIdAware { @JsonCreator public static OrderPayScheduleId ofRepoId(final int repoId) { return new OrderPayScheduleId(repoId); } @Nullable public static OrderPayScheduleId ofRepoIdOrNull(final int repoId) { return repoId > 0 ? ofRepoId(repoId) : null; } public ...
this.repoId = Check.assumeGreaterThanZero(repoId, "C_OrderPaySchedule_ID"); } @Override @JsonValue public int getRepoId() { return repoId; } public static int toRepoId(@Nullable final OrderPayScheduleId id) { return id != null ? id.getRepoId() : -1; } public static boolean equals(@Nullable final OrderP...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\order\paymentschedule\OrderPayScheduleId.java
2
请在Spring Boot框架中完成以下Java代码
public class LongStringType extends SerializableType { public static final String TYPE_NAME = "longString"; private final int minLength; public LongStringType(int minLength) { this(minLength, NoopVariableLengthVerifier.INSTANCE); } public LongStringType(int minLength, VariableLengthVerifi...
return; } String textValue = (String) value; lengthVerifier.verifyLength(textValue.length(), valueFields, this); byte[] serializedValue = serialize(textValue, valueFields); valueFields.setBytes(serializedValue); valueFields.setCachedValue(textValue); } @Override ...
repos\flowable-engine-main\modules\flowable-variable-service\src\main\java\org\flowable\variable\service\impl\types\LongStringType.java
2
请完成以下Java代码
public Integer getCartId() { return cartId; } public void setCartId(Integer cartId) { this.cartId = cartId; } public Integer getProductId() { return productId; } public void setProductId(Integer productId) { this.productId = productId; }
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof CartProductId)) return false; CartProductId that = (CartProductId) o; return Objects.equals(cartId, that.cartId) && Objects.equals(productId, that.productId); } @Overri...
repos\E-commerce-project-springBoot-master2\JtProject\src\main\java\com\jtspringproject\JtSpringProject\models\CartProductId.java
1
请在Spring Boot框架中完成以下Java代码
public ValidationResult validate(Condition condition, Assertion assertion, ValidationContext context) { // applications should validate their own OneTimeUse conditions return ValidationResult.VALID; } }); conditions.add(new ProxyRestrictionConditionValidator()); subjects.add(new BearerSubjectConf...
ResponseToken(Response response, Saml2AuthenticationToken token) { this.token = token; this.response = response; } Response getResponse() { return this.response; } Saml2AuthenticationToken getToken() { return this.token; } } /** * A tuple containing an OpenSAML {@link Assertion} and its as...
repos\spring-security-main\saml2\saml2-service-provider\src\main\java\org\springframework\security\saml2\provider\service\authentication\BaseOpenSamlAuthenticationProvider.java
2
请在Spring Boot框架中完成以下Java代码
public class BookstoreService { private final AuthorRepository authorRepository; private final BookRepository bookRepository; public BookstoreService(AuthorRepository authorRepository, BookRepository bookRepository) { this.authorRepository = authorRepository; this.bookReposito...
System.out.println("This book 'Mastering JSF 2.2' doesn't exist!"); } } private void getAuthorName(Author author) { Optional<String> name = author.getName(); if (name.isPresent()) { System.out.println("Author name: " + name.get()); } else { System.out.pr...
repos\Hibernate-SpringBoot-master\HibernateSpringBootOptional\src\main\java\com\bookstore\service\BookstoreService.java
2
请完成以下Java代码
public String getMemberNickname() { return memberNickname; } public void setMemberNickname(String memberNickname) { this.memberNickname = memberNickname; } public Integer getGetType() { return getType; } public void setGetType(Integer getType) { this.getType = ...
public void setOrderSn(String orderSn) { this.orderSn = orderSn; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=")...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\SmsCouponHistory.java
1
请在Spring Boot框架中完成以下Java代码
public DataSource dataSource() { return new EmbeddedDatabaseBuilder() .setType(EmbeddedDatabaseType.H2) .addScript("classpath:table.sql") .build(); } @Bean public DataSourceTransactionManager txManager() { return new DataSourceTransactionManag...
System.out.print("Integration flow is running. Type q + <enter> to quit "); while (true) { final String input = scanner.nextLine(); if ("q".equals(input.trim())) { context.close(); scanner.close(); break; } } Sys...
repos\tutorials-master\spring-integration\src\main\java\com\baeldung\tx\TxIntegrationConfig.java
2
请完成以下Java代码
private static ImmutableSet<OLCandId> extractOLCandIds(final List<OLCand> olCands) { return olCands.stream().map(olCand -> OLCandId.ofRepoId(olCand.getId())).collect(ImmutableSet.toImmutableSet()); } private void allocatePayments(final POSOrder posOrder) { trxManager.assertThreadInheritedTrxExists(); fina...
} else if (invoices.size() > 1) { throw new AdempiereException("More than one invoice was generated for " + posOrder); } return invoices.get(0); } private I_C_Payment createPaymentReceipt(@NonNull final POSPayment posPayment, @NonNull POSOrder posOrder) { posPayment.assertNoPaymentReceipt(); return ...
repos\metasfresh-new_dawn_uat\backend\de.metas.pos.base\src\main\java\de\metas\pos\async\C_POSOrder_CreateInvoiceAndShipment.java
1
请完成以下Java代码
public void setProcessed (final boolean Processed) { set_Value (COLUMNNAME_Processed, Processed); } @Override public boolean isProcessed() { return get_ValueAsBoolean(COLUMNNAME_Processed); } @Override public void setProcessing (final boolean Processing) { set_Value (COLUMNNAME_Processing, Processing)...
public void setQtyCalculated (final @Nullable BigDecimal QtyCalculated) { set_Value (COLUMNNAME_QtyCalculated, QtyCalculated); } @Override public BigDecimal getQtyCalculated() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_QtyCalculated); return bd != null ? bd : BigDecimal.ZERO; } @Override ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_I_Forecast.java
1
请在Spring Boot框架中完成以下Java代码
public Mono<Void> updateInfo(InstanceId id) { return this.repository.computeIfPresent(id, (key, instance) -> this.doUpdateInfo(instance)).then(); } protected Mono<Instance> doUpdateInfo(Instance instance) { if (instance.getStatusInfo().isOffline() || instance.getStatusInfo().isUnknown()) { return Mono.empty()...
protected Mono<Info> convertInfo(Instance instance, ClientResponse response) { if (response.statusCode().is2xxSuccessful() && response.headers() .contentType() .filter((mt) -> mt.isCompatibleWith(MediaType.APPLICATION_JSON) || this.apiMediaTypeHandler.isApiMediaType(mt)) .isPresent()) { return respon...
repos\spring-boot-admin-master\spring-boot-admin-server\src\main\java\de\codecentric\boot\admin\server\services\InfoUpdater.java
2
请在Spring Boot框架中完成以下Java代码
public boolean isEnabled() { return this.enabled; } public void setEnabled(boolean enabled) { this.enabled = enabled; } public boolean isBlockIfFull() { return this.blockIfFull; } public void setBlockIfFull(boolean blockIfFull) { this.blockIfFull = blockIfFull; } public Duration getBlockIfFullTimeou...
public void setMaxSessionsPerConnection(int maxSessionsPerConnection) { this.maxSessionsPerConnection = maxSessionsPerConnection; } public Duration getTimeBetweenExpirationCheck() { return this.timeBetweenExpirationCheck; } public void setTimeBetweenExpirationCheck(Duration timeBetweenExpirationCheck) { thi...
repos\spring-boot-4.0.1\module\spring-boot-jms\src\main\java\org\springframework\boot\jms\autoconfigure\JmsPoolConnectionFactoryProperties.java
2
请完成以下Java代码
default int getWindowNo() { return Env.WINDOW_None; } boolean hasFieldValue(String fieldName); Object getFieldValue(String fieldName); default int getFieldValueAsInt(final String fieldName, final int defaultValue) { final Object value = getFieldValue(fieldName); return value != null ? (int)value...
{ return po.get_ColumnIndex(fieldName) >= 0; } @Override public Object getFieldValue(final String fieldName) { return po.get_Value(fieldName); } } @AllArgsConstructor private static final class GridTabSourceDocument implements SourceDocument { @NonNull private final GridTab gridTab; @Overri...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\letters\model\MADBoilerPlate.java
1
请在Spring Boot框架中完成以下Java代码
public @Nullable Duration getConnectTimeout() { return this.connectTimeout; } public void setConnectTimeout(@Nullable Duration connectTimeout) { this.connectTimeout = connectTimeout; } public @Nullable Duration getReadTimeout() { return this.readTimeout; } public void setReadTimeout(@Nullable Duration re...
/** * SSL bundle to use. */ private @Nullable String bundle; public @Nullable String getBundle() { return this.bundle; } public void setBundle(@Nullable String bundle) { this.bundle = bundle; } } }
repos\spring-boot-4.0.1\module\spring-boot-http-client\src\main\java\org\springframework\boot\http\client\autoconfigure\HttpClientSettingsProperties.java
2
请完成以下Java代码
public void updateById(TenantId tenantId, NotificationRequestId requestId, NotificationRequestStatus requestStatus, NotificationRequestStats stats) { notificationRequestRepository.updateStatusAndStatsById(requestId.getId(), requestStatus, JacksonUtil.valueToTree(stats)); } @Override public boolean ...
@Override protected Class<NotificationRequestEntity> getEntityClass() { return NotificationRequestEntity.class; } @Override protected JpaRepository<NotificationRequestEntity, UUID> getRepository() { return notificationRequestRepository; } @Override public EntityType getEnti...
repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\sql\notification\JpaNotificationRequestDao.java
1
请完成以下Java代码
public CreditorReferenceType2 getTp() { return tp; } /** * Sets the value of the tp property. * * @param value * allowed object is * {@link CreditorReferenceType2 } * */ public void setTp(CreditorReferenceType2 value) { this.tp = value; }...
* {@link String } * */ public String getRef() { return ref; } /** * Sets the value of the ref property. * * @param value * allowed object is * {@link String } * */ public void setRef(String value) { this.ref = value; ...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.camt53\src\main\java-xjc\de\metas\banking\camt53\jaxb\camt053_001_02\CreditorReferenceInformation2.java
1
请完成以下Java代码
public class SondertagBestellfenster { @XmlElement(name = "Endezeit", required = true) @XmlSchemaType(name = "time") protected XMLGregorianCalendar endezeit; @XmlElement(name = "Hauptbestellzeit", required = true) @XmlSchemaType(name = "time") protected XMLGregorianCalendar hauptbestellzeit; ...
* @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getHauptbestellzeit() { return hauptbestellzeit; } /** * Sets the value of the hauptbestellzeit property. * * @param value * allowed object is ...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma.msv3.schema.v2\src\main\java-xjc\de\metas\vertical\pharma\vendor\gateway\msv3\schema\v2\SondertagBestellfenster.java
1
请完成以下Java代码
public ProcessEngine getObject() throws Exception { if (processEngine == null) { initializeExpressionManager(); initializeTransactionExternallyManaged(); processEngine = (ProcessEngineImpl) processEngineConfiguration.buildProcessEngine(); } return processEngine; } protected void...
public boolean isSingleton() { return true; } // getters and setters ////////////////////////////////////////////////////// public ProcessEngineConfigurationImpl getProcessEngineConfiguration() { return processEngineConfiguration; } public void setProcessEngineConfiguration(ProcessEngineConfig...
repos\camunda-bpm-platform-master\engine-spring\core\src\main\java\org\camunda\bpm\engine\spring\ProcessEngineFactoryBean.java
1
请完成以下Java代码
public void setRenderedQRCode (final @Nullable java.lang.String RenderedQRCode) { set_Value (COLUMNNAME_RenderedQRCode, RenderedQRCode); } @Override public java.lang.String getRenderedQRCode() { return get_ValueAsString(COLUMNNAME_RenderedQRCode); } @Override public org.compiere.model.I_M_InventoryLine g...
{ throw new IllegalArgumentException ("UPC is virtual column"); } @Override public java.lang.String getUPC() { return get_ValueAsString(COLUMNNAME_UPC); } @Override public void setValue (final @Nullable java.lang.String Value) { throw new IllegalArgumentException ("Value is virtual column"); } @Overri...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_InventoryLine.java
1
请完成以下Java代码
public final class GTIN { @NonNull private final String value; private transient ExplainedOptional<EAN13> ean13Holder; // lazy private GTIN(@NonNull final String value) { final String valueNorm = StringUtils.trimBlankToNull(value); if (valueNorm == null) { throw new AdempiereException("Invalid GTIN value...
public ExplainedOptional<EAN13> toEAN13() { ExplainedOptional<EAN13> ean13Holder = this.ean13Holder; if (ean13Holder == null) { ean13Holder = this.ean13Holder = EAN13.ofString(value); } return ean13Holder; } public boolean isMatching(final @NonNull EAN13ProductCode expectedProductCode) { final EAN13...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\gs1\GTIN.java
1
请完成以下Java代码
protected MaterialCockpitView getView() { return MaterialCockpitView.cast(super.getView()); } @Override protected Stream<MaterialCockpitRow> streamSelectedRows() { return super.streamSelectedRows().map(MaterialCockpitRow::cast); } protected Set<Integer> getSelectedCockpitRecordIdsRecursively() { final M...
return materialCockpitView.streamByIds(getSelectedRowIds()) .flatMap(row -> row.getAllIncludedCockpitRecordIds().stream()) .collect(ImmutableSet.toImmutableSet()); } protected Set<ProductId> getSelectedProductIdsRecursively() { final MaterialCockpitView materialCockpitView = getView(); return materialC...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\material\cockpit\process\MaterialCockpitViewBasedProcess.java
1
请在Spring Boot框架中完成以下Java代码
public class WarehouseRestController { @NonNull private final WarehouseService warehouseService; @NonNull private final WarehouseRestService warehouseRestService; private @NotNull String getAdLanguage() {return Env.getADLanguageOrBaseLanguage();} @PutMapping("/{warehouseId}/outOfStockNotice") public ResponseEnti...
@RequestBody @NonNull final JsonRequestWarehouseUpsert request) { final JsonResponseUpsert responseUpsert = warehouseRestService.upsertWarehouses(orgCode, request); return ResponseEntity.ok(responseUpsert); } @GetMapping("/resolveLocator") @NonNull public JsonResolveLocatorResponse resolveLocatorScannedCode( ...
repos\metasfresh-new_dawn_uat\backend\de.metas.business.rest-api-impl\src\main\java\de\metas\rest_api\v2\warehouse\WarehouseRestController.java
2
请完成以下Java代码
private String sendEMail(final MADBoilerPlate text, final MInOut io, final I_AD_User orderUser) { final Properties ctx = Env.getCtx(); MADBoilerPlate.sendEMail(new IEMailEditor() { @Override public Object getBaseObject() { return io; } @Override public int getAD_Table_ID() { return ...
{ email.addTo(EMailAddress.ofString(st.nextToken())); } send(email); return email; } }, false); return ""; } private void send(EMail email) { int maxRetries = p_SMTPRetriesNo > 0 ? p_SMTPRetriesNo : 0; int count = 0; do { final EMailSentStatus emailSentStatus = email.send(); c...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\shipping\model\validator\ShipperTransportationMailNotification.java
1
请完成以下Java代码
public byte[] serialize(T t) throws SerializationException { if (t == null) { return EMPTY_BYTE_ARRAY; } Kryo kryo = kryos.get(); kryo.setReferences(false); kryo.register(clazz); try (ByteArrayOutputStream baos = new ByteArrayOutputStream(); Out...
@Override public T deserialize(byte[] bytes) throws SerializationException { if (bytes == null || bytes.length <= 0) { return null; } Kryo kryo = kryos.get(); kryo.setReferences(false); kryo.register(clazz); try (Input input = new Input(bytes)) { ...
repos\spring-boot-student-master\spring-boot-student-cache-redis-caffeine\src\main\java\com\xiaolyuh\cache\redis\serializer\KryoRedisSerializer.java
1
请完成以下Java代码
public boolean isOnlyChildExecutions() { return onlyChildExecutions; } public boolean isOnlyProcessInstanceExecutions() { return onlyProcessInstanceExecutions; } public boolean isOnlySubProcessExecutions() { return onlySubProcessExecutions; } public Date getStartedBefo...
public boolean isNeedsProcessDefinitionOuterJoin() { if (isNeedsPaging()) { if (AbstractEngineConfiguration.DATABASE_TYPE_ORACLE.equals(databaseType) || AbstractEngineConfiguration.DATABASE_TYPE_DB2.equals(databaseType) || AbstractEngineConfiguration.DATABASE_...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\ProcessInstanceQueryImpl.java
1
请完成以下Java代码
public abstract class AbstractESRPaymentStringParser implements IPaymentStringParser { private static final IMsgBL msgBL = Services.get(IMsgBL.class); protected static final AdMessageKey ERR_WRONG_PAYMENT_DATE = AdMessageKey.of("ESR_Wrong_Payment_Date"); protected static final AdMessageKey ERR_WRONG_ACCOUNT_DATE = A...
{ amount = NumberUtils.asBigDecimal(amountString); } catch (final NumberFormatException e) { final String wrongNumberFormatAmount = msgBL.getMsg(Env.getCtx(), ERR_WRONG_NUMBER_FORMAT_AMOUNT, new Object[] { amountString }); collectedErrors.add(wrongNumberFormatAmount); } return amount; } /** * ...
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.esr\src\main\java\de\metas\payment\spi\impl\AbstractESRPaymentStringParser.java
1
请完成以下Java代码
private boolean endsWith(@NonNull final EAN13ProductCode expectedProductNo, @Nullable final BPartnerId bpartnerId) { final GS1ProductCodes bpartnerCodes = bpartnerId != null ? codesByBPartnerId.get(bpartnerId) : null; return (bpartnerCodes != null && bpartnerCodes.endsWith(expectedProductNo)) || defaultCodes.e...
{ return endsWith(ean13ProductNo, bpartnerId); } } public Optional<GS1ProductCodes> getEffectiveCodes(@Nullable final BPartnerId bpartnerId) { final GS1ProductCodes bpartnerCodes = bpartnerId != null ? codesByBPartnerId.get(bpartnerId) : null; final GS1ProductCodes effectiveCodes = bpartnerCodes != null ...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\gs1\GS1ProductCodesCollection.java
1
请完成以下Java代码
void open() throws IOException { synchronized (this.lock) { if (this.referenceCount == 0) { debug.log("Opening '%s'", this.path); this.fileChannel = FileChannel.open(this.path, StandardOpenOption.READ); this.buffer = ByteBuffer.allocateDirect(BUFFER_SIZE); tracker.openedFileChannel(this.path)...
public String toString() { return this.path.toString(); } } /** * Internal tracker used to check open and closing of files in tests. */ interface Tracker { Tracker NONE = new Tracker() { @Override public void openedFileChannel(Path path) { } @Override public void closedFileChannel(Path...
repos\spring-boot-4.0.1\loader\spring-boot-loader\src\main\java\org\springframework\boot\loader\zip\FileDataBlock.java
1
请完成以下Java代码
public List<RefundConfig> getRefundConfigsToApplyForQuantity(@NonNull final BigDecimal qty) { final Predicate<RefundConfig> minQtyLessOrEqual = config -> config.getMinQty().compareTo(qty) <= 0; return refundConfigs .stream() .filter(minQtyLessOrEqual) .collect(ImmutableList.toImmutableList()); } pu...
final InvoiceSchedule invoiceSchedule = extractSingleElement(refundConfigs, RefundConfig::getInvoiceSchedule); LocalDate date = invoiceSchedule.calculateNextDateToInvoice(startDate); while (date.isBefore(currentDate)) { final LocalDate nextDate = invoiceSchedule.calculateNextDateToInvoice(date); Check.ass...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\refund\RefundContract.java
1
请在Spring Boot框架中完成以下Java代码
public class AuthController { private BladeRedis bladeRedis; @PostMapping("token") @Operation(summary = "获取认证token", description = "传入租户ID:tenantId,账号:account,密码:password") public R<AuthInfo> token(@Parameter(description = "授权类型", required = true) @RequestParam(defaultValue = "password", required = false) String ...
return R.data(TokenUtil.createAuthInfo(userInfo)); } @GetMapping("/captcha") @Operation(summary = "获取验证码") public R<Kv> captcha() { SpecCaptcha specCaptcha = new SpecCaptcha(130, 48, 5); String verCode = specCaptcha.text().toLowerCase(); String key = UUID.randomUUID().toString(); // 存入redis并设置过期时间为30分钟 b...
repos\SpringBlade-master\blade-auth\src\main\java\org\springblade\auth\controller\AuthController.java
2
请完成以下Java代码
public class CharacterWithHighestFrequency { public static Character byStream(String input) { return input.chars() .mapToObj(x -> (char) x) .collect(groupingBy(x -> x, counting())) .entrySet() .stream() .max(comparingByValue()) .get() .ge...
return map.keySet() .stream() .filter(c -> map.get(c) == maxCount) .collect(toSet()); } public static Set<Character> byBucket(String input) { int[] buckets = new int[128]; int maxCount = 0; for (char c : input.toCharArray()) { buckets[c]++; ...
repos\tutorials-master\core-java-modules\core-java-string-algorithms-3\src\main\java\com\baeldung\charfreq\CharacterWithHighestFrequency.java
1
请完成以下Java代码
public void addInParameter(IOParameter inParameter) { this.inParameters.add(inParameter); } @Override public List<IOParameter> getOutParameters() { return outParameters; } @Override public void setOutParameters(List<IOParameter> outParameters) { this.outParameters = out...
public void addOutParameter(IOParameter outParameter) { this.outParameters.add(outParameter); } @Override public ExternalWorkerServiceTask clone() { ExternalWorkerServiceTask clone = new ExternalWorkerServiceTask(); clone.setValues(this); return clone; } public void...
repos\flowable-engine-main\modules\flowable-bpmn-model\src\main\java\org\flowable\bpmn\model\ExternalWorkerServiceTask.java
1
请完成以下Java代码
private static InventoryAndLineId extractInventoryAndLineId(final I_M_InventoryLine_HU inventoryLineHU) { return InventoryAndLineId.ofRepoIds(inventoryLineHU.getM_Inventory_ID(), inventoryLineHU.getM_InventoryLine_ID()); } public void updateInventoryLineByRecord(final I_M_InventoryLine inventoryLineRecord, UnaryO...
{ // update M_InventoryLine final ICompositeQueryUpdater<org.compiere.model.I_M_InventoryLine> updaterInventoryLine = queryBL.createCompositeQueryUpdater(org.compiere.model.I_M_InventoryLine.class) .addSetColumnFromColumn(org.compiere.model.I_M_InventoryLine.COLUMNNAME_QtyCount, ModelColumnNameValue.forColumnNa...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\inventory\InventoryRepository.java
1
请在Spring Boot框架中完成以下Java代码
private static final class ControllerAdviceBeanWrapper implements MessagingAdviceBean { private final ControllerAdviceBean adviceBean; private ControllerAdviceBeanWrapper(ControllerAdviceBean adviceBean) { this.adviceBean = adviceBean; } @Override public @Nullable Class<?> getBeanType() { return this...
} @Override public boolean isApplicableToBeanType(Class<?> beanType) { return this.adviceBean.isApplicableToBeanType(beanType); } @Override public int getOrder() { return this.adviceBean.getOrder(); } } }
repos\spring-boot-4.0.1\module\spring-boot-rsocket\src\main\java\org\springframework\boot\rsocket\autoconfigure\RSocketMessagingAutoConfiguration.java
2
请在Spring Boot框架中完成以下Java代码
public class MessageEventHandler { private final SocketIOServer server; private static final Logger logger = LoggerFactory.getLogger(MessageEventHandler.class); @Autowired public MessageEventHandler(SocketIOServer server) { this.server = server; } //添加connect事件,当客户端发起连接时调用 @OnCon...
// 消息接收入口 @OnEvent(value = "chatevent") public void onEvent(SocketIOClient client, AckRequest ackRequest, ChatMessage chat) { logger.info("接收到客户端消息"); if (ackRequest.isAckRequested()) { // send ack response with data to client ackRequest.sendAckData("服务器回答chatevent, userN...
repos\SpringBootBucket-master\springboot-socketio\src\main\java\com\xncoding\jwt\handler\MessageEventHandler.java
2
请在Spring Boot框架中完成以下Java代码
public BigDecimal getSurchargeAmt() { return surchargeAmt; } /** * Sets the value of the surchargeAmt property. * * @param value * allowed object is * {@link BigDecimal } * */ public void setSurchargeAmt(BigDecimal value) { this.surchargeAmt ...
} /** * Sets the value of the taxAmtWithSurchargeAmt property. * * @param value * allowed object is * {@link BigDecimal } * */ public void setTaxAmtWithSurchargeAmt(BigDecimal value) { this.taxAmtWithSurchargeAmt = value; } /** * Gets the v...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_metasfreshinhousev1\de\metas\edi\esb\jaxb\metasfreshinhousev1\EDICctop901991VType.java
2
请在Spring Boot框架中完成以下Java代码
protected String doIt() { final HuId huId = huTrxBL.createHUContextProcessorExecutor().call(this::createHU); getView().addHUIdAndInvalidate(huId); return MSG_OK; } private HuId createHU(@NonNull final IHUContext huContext) { final I_C_UOM productStockingUOM = productBL.getStockUOM(productId); // final I_...
private LocatorId getLocatorId() { final I_M_InOut customerReturns = getCustomerReturns(); final WarehouseId warehouseId = WarehouseId.ofRepoId(customerReturns.getM_Warehouse_ID()); return warehouseBL.getOrCreateDefaultLocatorId(warehouseId); } private I_M_InOut getCustomerReturns() { I_M_InOut customerRet...
repos\metasfresh-new_dawn_uat\backend\de.metas.servicerepair.webui\src\main\java\de\metas\servicerepair\customerreturns\process\HUsToReturn_CreateShippedHU.java
2
请在Spring Boot框架中完成以下Java代码
public class DatasourceConfig { @Bean public ConnectionFactory connectionFactory(R2DBCConfigurationProperties properties) { ConnectionFactoryOptions baseOptions = ConnectionFactoryOptions.parse(properties.getUrl()); Builder ob = ConnectionFactoryOptions.builder().from(baseOptions);...
"iban varchar(80) not null," + "balance DECIMAL(18,2) not null)") .add("insert into Account(iban,balance)" + "values('BR430120980198201982',100.00)") .add("insert into Account(iban,balance)" + "values('BR430120998729871000',...
repos\tutorials-master\persistence-modules\r2dbc\src\main\java\com\baeldung\examples\r2dbc\DatasourceConfig.java
2
请完成以下Java代码
public void exportToExternalSystemIfRequired( @NonNull final TableRecordReference recordToExportReference, @Nullable final Supplier<Optional<Set<IExternalSystemChildConfigId>>> additionalExternalSystemIdsProvider) { final ImmutableSet.Builder<IExternalSystemChildConfigId> externalSysChildConfigCollector = Immu...
.stream() .map(id -> externalSystemConfigRepo.getChildByParentIdAndType(ExternalSystemParentConfigId.ofRepoId(id), getExternalSystemType())) .filter(Optional::isPresent) .map(Optional::get) .map(IExternalSystemChildConfig::getId) .collect(ImmutableSet.toImmutableSet()); } protected abstract Exter...
repos\metasfresh-new_dawn_uat\backend\de.metas.externalsystem\src\main\java\de\metas\externalsystem\export\ExportToExternalSystemService.java
1
请完成以下Java代码
public String getCanonicalName() { return "activity-init-stack-notify-listener-return"; } protected ScopeImpl getScope(PvmExecutionImpl execution) { ActivityImpl activity = execution.getActivity(); if (activity!=null) { return activity; } else { PvmExecutionImpl parent = execution.getP...
protected void eventNotificationsCompleted(PvmExecutionImpl execution) { super.eventNotificationsCompleted(execution); ScopeInstantiationContext startContext = execution.getScopeInstantiationContext(); InstantiationStack instantiationStack = startContext.getInstantiationStack(); // if the stack has be...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\pvm\runtime\operation\PvmAtomicOperationActivityInitStackNotifyListenerReturn.java
1
请在Spring Boot框架中完成以下Java代码
public JAXBElement<DQVAR1> createDQVAR1(DQVAR1 value) { return new JAXBElement<DQVAR1>(_DQVAR1_QNAME, DQVAR1 .class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link TRAILR }{@code >} * * @param value * Java instance representing xml element's val...
/** * Create an instance of {@link JAXBElement }{@code <}{@link TTAXI1 }{@code >} * * @param value * Java instance representing xml element's value. * @return * the new instance of {@link JAXBElement }{@code <}{@link TTAXI1 }{@code >} */ @XmlElementDecl(namespace = "", na...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_stepcom_desadv\de\metas\edi\esb\jaxb\stepcom\desadv\ObjectFactory.java
2
请在Spring Boot框架中完成以下Java代码
public class StoreOrdersResponseType { protected byte[] parcellabelsPDF; protected List<ShipmentResponse> shipmentResponses; /** * Gets the value of the parcellabelsPDF property. * * @return * possible object is * byte[] */ public byte[] getParcellabelsPDF() { ...
* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the shipmentResponses property. * * <p> * For example,...
repos\metasfresh-new_dawn_uat\backend\de.metas.shipper.gateway.dpd\src\main\java-xjc\com\dpd\common\service\types\shipmentservice\_3\StoreOrdersResponseType.java
2
请完成以下Java代码
public class BindingImpl extends DmnModelElementInstanceImpl implements Binding { protected static ChildElement<Parameter> parameterChild; protected static ChildElement<Expression> expressionChild; public BindingImpl(ModelTypeInstanceContext instanceContext) { super(instanceContext); } public Parameter...
public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Binding.class, DMN_ELEMENT_BINDING) .namespaceUri(LATEST_DMN_NS) .instanceProvider(new ModelTypeInstanceProvider<Binding>() { public Binding newInstance(ModelTypeInstanceCon...
repos\camunda-bpm-platform-master\model-api\dmn-model\src\main\java\org\camunda\bpm\model\dmn\impl\instance\BindingImpl.java
1