instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
class QuickInputSupportDescriptorLoader { private static final AdMessageKey MSG_QuickInput_OpenButton_Caption = AdMessageKey.of("webui.window.batchEntry.caption"); private static final AdMessageKey MSG_QuickInput_CloseButton_Caption = AdMessageKey.of("webui.window.batchEntryClose.caption"); @Nullable public static...
openButtonCaption = TranslatableStrings.adMessage(MSG_QuickInput_OpenButton_Caption); } ITranslatableString closeButtonCaption = gridTabVO.getQuickInputCloseButtonCaption(); if (TranslatableStrings.isEmpty(closeButtonCaption)) { closeButtonCaption = TranslatableStrings.adMessage(MSG_QuickInput_CloseButton_C...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\descriptor\factory\standard\QuickInputSupportDescriptorLoader.java
1
请完成以下Java代码
public static String parseTemplateContent(String tplContent, Map<String, Object> paras, boolean keepSpace) { try { String sqlUnderline="sql_"; StringWriter swriter = new StringWriter(); if (stringTemplateLoader.findTemplateSource(sqlUnderline + tplContent.hashCode()) == null)...
//", " String commaSpace = SymbolConstant.COMMA + " "; if (sql.endsWith(DataBaseConstant.SQL_WHERE) || sql.endsWith(whereSpace)) { sql = sql.substring(0, sql.lastIndexOf("where")); } // 去掉where and 这样的问题 int index = 0; while ((index = StringUtils.indexOfIgnore...
repos\JeecgBoot-main\jeecg-boot\jeecg-boot-base-core\src\main\java\org\jeecg\common\util\dynamic\db\FreemarkerParseFactory.java
1
请完成以下Java代码
public void execute(ActivityExecution execution) throws Exception { String businessKey = signalDefinition.getEventPayload().getBusinessKey(execution); VariableMap variableMap = signalDefinition.getEventPayload().getInputVariables(execution); String eventName = signalDefinition.resolveExpressionOfEventName...
} protected boolean isActiveEventSubscription(EventSubscriptionEntity signalEventSubscriptionEntity) { return isStartEventSubscription(signalEventSubscriptionEntity) || isActiveIntermediateEventSubscription(signalEventSubscriptionEntity); } protected boolean isStartEventSubscription(EventSubscriptio...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\bpmn\behavior\ThrowSignalEventActivityBehavior.java
1
请在Spring Boot框架中完成以下Java代码
ApplicationRunner runGolfTournament(PgaTourService pgaTourService) { return args -> { GolfTournament golfTournament = GolfTournament.newGolfTournament("The Masters") .at(GolfCourseBuilder.buildAugustaNational()) .register(GolferBuilder.buildGolfers(GolferBuilder.FAVORITE_GOLFER_NAMES)) .buildPai...
@Configuration @UseMemberName(APPLICATION_NAME) @EnableCachingDefinedRegions(serverRegionShortcut = RegionShortcut.REPLICATE) static class GeodeConfiguration { } // end::geode-configuration[] // tag::peer-cache-configuration[] @PeerCacheApplication @Profile("peer-cache") @Import({ AsyncInlineCachingConfigurati...
repos\spring-boot-data-geode-main\spring-geode-samples\caching\inline-async\src\main\java\example\app\caching\inline\async\client\BootGeodeAsyncInlineCachingClientApplication.java
2
请完成以下Java代码
public String getConditionExpression() { return conditionExpression; } public void setConditionExpression(String conditionExpression) { this.conditionExpression = conditionExpression; } public String getSourceRef() { return sourceRef; } public void setSourceRef(String ...
} public void setTargetFlowElement(FlowElement targetFlowElement) { this.targetFlowElement = targetFlowElement; } public List<Integer> getWaypoints() { return waypoints; } public void setWaypoints(List<Integer> waypoints) { this.waypoints = waypoints; } public Str...
repos\Activiti-develop\activiti-core\activiti-bpmn-model\src\main\java\org\activiti\bpmn\model\SequenceFlow.java
1
请完成以下Java代码
public PickingSlotRowId getRootRowIdWhichIncludes(@NonNull final PickingSlotRowId rowId) { return getRowsIndex().getRootRowId(rowId); } private static final PickingSlotRow assertRowNotNull(final PickingSlotRowId pickingSlotRowId, final PickingSlotRow pickingSlotRow) { if (pickingSlotRow == null) { throw n...
@Nullable public PickingSlotRow getRootRow(final PickingSlotRowId rowId) { final PickingSlotRowId rootRowId = getRootRowId(rowId); if (rootRowId == null) { return null; } return getRow(rootRowId); } public PickingSlotRowId getRootRowId(final PickingSlotRowId rowId) { return rowId2root...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\picking\pickingslot\PickingSlotRowsCollection.java
1
请完成以下Java代码
public final int getCountGeneratedDeliveryDays() { return countGeneratedDeliveryDays; } /** * Create entries in Delivery Day * * @param tourVersionRange * @param tourVersionLine Tour version line */ private void createDeliveryDaysForLine(final ITourVersionRange tourVersionRange, final I_M_TourVersionL...
return null; } loggable.addLog("@Created@ @M_DeliveryDay_ID@ " + dateTimeFormat.format(deliveryDay.getDeliveryDate())); countGeneratedDeliveryDays++; return deliveryDay; } private void inactivateDeliveryDaysInRange(final ITourVersionRange tourVersionRange, final String trxName) { final I_M_TourVersion ...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\tourplanning\api\impl\DeliveryDayGenerator.java
1
请完成以下Java代码
public Quantity computeQtyRequired(@NonNull final BigDecimal qtyOfFinishedGood) { return computeQtyRequired(Quantity.of(qtyOfFinishedGood, bomProductUOM)); } public Quantity computeQtyRequired(@NonNull final Quantity qtyOfFinishedGood) { final Quantity qtyOfFinishedGoodInRightUOM = uomConversionService.convert...
uom); } else { return qtyForOneFinishedGood; } } @Deprecated public Quantity computeQtyOfFinishedGoodsForComponentQty(@NonNull final BigDecimal componentsQty) { return computeQtyOfFinishedGoodsForComponentQty(Quantity.of(componentsQty, uom)); } public Quantity computeQtyOfFinishedGoodsForComponentQ...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\org\eevolution\api\QtyCalculationsBOMLine.java
1
请完成以下Java代码
public Mono<List<JWK>> get(JWKSelector jwkSelector) { // @formatter:off return this.cachedJWKSet.get() .switchIfEmpty(Mono.defer(this::getJWKSet)) .flatMap((jwkSet) -> get(jwkSelector, jwkSet)) .switchIfEmpty(Mono.defer(() -> getJWKSet() .map(jwkSelector::select)) ); // @formatter:on } pr...
} private JWKSet parse(String body) { try { return JWKSet.parse(body); } catch (ParseException ex) { throw new RuntimeException(ex); } } /** * Returns the first specified key ID (kid) for a JWK matcher. * @param jwkMatcher The JWK matcher. Must not be {@code null}. * @return The first key ID, {...
repos\spring-security-main\oauth2\oauth2-jose\src\main\java\org\springframework\security\oauth2\jwt\ReactiveRemoteJWKSource.java
1
请完成以下Java代码
public void setAmount (String Amount) { throw new IllegalArgumentException ("Amount is virtual column"); } /** Get Amount. @return Amount in a defined currency */ public String getAmount () { return (String)get_Value(COLUMNNAME_Amount); } /** Set Bank statement line. @param C_BankStatementLine_ID ...
public int getC_DirectDebit_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_C_DirectDebit_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Dtafile. @param Dtafile Copy of the *.dta stored as plain text */ public void setDtafile (String Dtafile) { set_Value (COLUMNNAME_Dtafile...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.base\src\main\java-gen\org\compiere\model\X_C_DirectDebit.java
1
请完成以下Java代码
public CustomerTradeMargin getById(@NonNull final CustomerTradeMarginId customerTradeMarginId) { final I_C_Customer_Trade_Margin record = queryBL.createQueryBuilder(I_C_Customer_Trade_Margin.class) .addOnlyActiveRecordsFilter() .addEqualsFilter(I_C_Customer_Trade_Margin.COLUMNNAME_C_Customer_Trade_Margin_ID,...
.create() .stream() .map(this::toCustomerTradeMarginLine) .collect(ImmutableList.toImmutableList()); } @NonNull private CustomerTradeMarginLine toCustomerTradeMarginLine(@NonNull final I_C_Customer_Trade_Margin_Line record) { final CustomerTradeMarginId customerTradeMarginId = CustomerTradeMarginId.o...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\pricing\trade_margin\CustomerTradeMarginRepository.java
1
请完成以下Java代码
public class Instance { public int[][] featureMatrix; public int[] tagArray; protected Instance() { } protected static int[] toFeatureArray(List<Integer> featureVector) { int[] featureArray = new int[featureVector.size() + 1]; // 最后一列留给转移特征 int index = -1; for (In...
int id = featureMap.idOf(rawFeature.toString()); if (id != -1) { featureVector.add(id); } rawFeature.setLength(0); } /** * 根据标注集还原字符形式的标签 * * @param tagSet * @return */ public String[] tags(TagSet tagSet) { assert tagArray != ...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\model\perceptron\instance\Instance.java
1
请完成以下Java代码
protected String doIt() { final List<I_M_HU> fromCUs = getSourceCUs(); final IAllocationSource source = HUListAllocationSourceDestination.of(fromCUs) .setDestroyEmptyHUs(true); final IAllocationDestination destination = HUListAllocationSourceDestination.of(getTargetTU()); final HULoader huLoader = HULoad...
} private BigDecimal getQtyCUsPerTU() { if (isAllQty) { return getSingleSelectedPickingSlotRow().getHuQtyCU(); } else { final BigDecimal qtyCU = this.qtyCUsPerTU; if (qtyCU == null || qtyCU.signum() <= 0) { throw new FillMandatoryException(PARAM_QtyCUsPerTU); } return qtyCU; } } ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\pickingslotsClearing\process\WEBUI_PickingSlotsClearingView_TakeOutCUsAndAddToTU.java
1
请完成以下Java代码
public Instant getDemandDate() {return getDdOrderCandidate().getDemandDate();} @JsonIgnore public boolean isSimulated() {return getDdOrderCandidate().isSimulated();} @Nullable @JsonIgnore public MinMaxDescriptor getFromWarehouseMinMaxDescriptor() {return getDdOrderCandidate().getFromWarehouseMinMaxDescriptor();}...
@JsonIgnore public DistributionNetworkAndLineId getDistributionNetworkAndLineId() {return getDdOrderCandidate().getDistributionNetworkAndLineId();} @Nullable @JsonIgnore public MaterialDispoGroupId getMaterialDispoGroupId() {return getDdOrderCandidate().getMaterialDispoGroupId();} @Nullable @JsonIgnore public ...
repos\metasfresh-new_dawn_uat\backend\de.metas.material\event\src\main\java\de\metas\material\event\ddordercandidate\AbstractDDOrderCandidateEvent.java
1
请在Spring Boot框架中完成以下Java代码
public JsonWFProcess setUserConfirmation( @PathVariable("wfProcessId") final String wfProcessIdStr, @PathVariable("wfActivityId") final String wfActivityIdStr) { final UserId invokerId = Env.getLoggedUserId(); final WFProcessId wfProcessId = WFProcessId.ofString(wfProcessIdStr); assertAccess(wfProcessId.ge...
.frontendUrl(jsonErrorItem.getFrontendUrl()) .build(); } @GetMapping("/trolley") public JsonGetCurrentTrolleyResponse getCurrentTrolley() { return trolleyService.getCurrent(Env.getLoggedUserId()) .map(JsonGetCurrentTrolleyResponse::ofQRCode) .orElse(JsonGetCurrentTrolleyResponse.EMPTY); } @PostMap...
repos\metasfresh-new_dawn_uat\backend\de.metas.workflow.rest-api\src\main\java\de\metas\workflow\rest_api\controller\v2\WorkflowRestController.java
2
请完成以下Java代码
public KeyNamePair getKeyNamePair() { return new KeyNamePair(get_ID(), getName()); } /** POSKeyLayoutType AD_Reference_ID=53351 */ public static final int POSKEYLAYOUTTYPE_AD_Reference_ID=53351; /** Keyboard = K */ public static final String POSKEYLAYOUTTYPE_Keyboard = "K"; /** Numberpad = N */ ...
The type of Key Layout */ public void setPOSKeyLayoutType (String POSKeyLayoutType) { set_Value (COLUMNNAME_POSKeyLayoutType, POSKeyLayoutType); } /** Get POS Key Layout Type. @return The type of Key Layout */ public String getPOSKeyLayoutType () { return (String)get_Value(COLUMNNAME_POSKeyLayoutTy...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_POSKeyLayout.java
1
请完成以下Java代码
public String getParentCaseInstanceId() { return parentCaseInstanceId; } public boolean isWithoutCallbackId() { return withoutCallbackId; } public String getReferenceId() { return referenceId; } public String getReferenceType() { return referenceType; } ...
if (AbstractEngineConfiguration.DATABASE_TYPE_ORACLE.equals(databaseType) || AbstractEngineConfiguration.DATABASE_TYPE_DB2.equals(databaseType) || AbstractEngineConfiguration.DATABASE_TYPE_MSSQL.equals(databaseType)) { // When using oracle, db2 or mssql we don't n...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\HistoricProcessInstanceQueryImpl.java
1
请完成以下Java代码
public boolean isExcludeProductCategory() { return get_ValueAsBoolean(COLUMNNAME_IsExcludeProductCategory); } @Override public void setM_Product_Category_ID (final int M_Product_Category_ID) { if (M_Product_Category_ID < 1) set_Value (COLUMNNAME_M_Product_Category_ID, null); else set_Value (COLUMNN...
set_Value (COLUMNNAME_PercentOfBasePoints, PercentOfBasePoints); } @Override public BigDecimal getPercentOfBasePoints() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_PercentOfBasePoints); return bd != null ? bd : BigDecimal.ZERO; } @Override public void setSeqNo (final int SeqNo) { set_Value...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java-gen\de\metas\contracts\commission\model\X_C_CommissionSettingsLine.java
1
请完成以下Java代码
public static Double getImportSysUserMap(String key, String type) { if (importSysUserMap.containsKey(key + "__" + type)) { return importSysUserMap.get(key + "__" + type); } return 0.0; } /** * 设置导入缓存 * * @param key 前村传过来的随机key * @param num 导入行数 ...
if(num == length){ percent = 100; } importSysUserMap.put(key + "__" + type, percent); } /** * 移除导入缓存 * * @param key */ public static void removeImportLowAppMap(String key) { importSysUserMap.remove(key); } }
repos\JeecgBoot-main\jeecg-boot\jeecg-module-system\jeecg-system-biz\src\main\java\org\jeecg\modules\system\util\ImportSysUserCache.java
1
请在Spring Boot框架中完成以下Java代码
public void setImportMetadata(AnnotationMetadata importMetadata) { if (isAnnotationPresent(importMetadata)) { AnnotationAttributes inGroupsAttributes = getAnnotationAttributes(importMetadata); setGroups(inGroupsAttributes.containsKey("value") ? inGroupsAttributes.getStringArray("value") : null); setG...
return Optional.ofNullable(this.groups) .filter(it -> it.length > 0); } @Bean ClientCacheConfigurer clientCacheGroupsConfigurer() { return (beaName, clientCacheFactoryBean) -> configureGroups(clientCacheFactoryBean); } @Bean PeerCacheConfigurer peerCacheGroupsConfigurer() { return (beaName, peerCacheFact...
repos\spring-boot-data-geode-main\spring-geode-project\spring-geode\src\main\java\org\springframework\geode\config\annotation\GroupsConfiguration.java
2
请完成以下Java代码
public class VectorOfBitsBenchmark { private boolean[] array; private BitSet bitSet; @Param({"100", "1000", "5000", "50000", "100000", "1000000", "2000000", "3000000", "5000000", "7000000", "10000000", "20000000", "30000000", "50000000", "70000000", "1000000000"}) public int size; @Setup(Le...
array[index] = true; } @Benchmark public void setBitSet() { int index = ThreadLocalRandom.current().nextInt(size); bitSet.set(index); } @Benchmark public int cardinalityBoolArray() { int sum = 0; for (boolean b : array) { if (b) { sum...
repos\tutorials-master\jmh\src\main\java\com\baeldung\bitset\VectorOfBitsBenchmark.java
1
请完成以下Java代码
public void setK_Category_ID (int K_Category_ID) { if (K_Category_ID < 1) set_ValueNoCheck (COLUMNNAME_K_Category_ID, null); else set_ValueNoCheck (COLUMNNAME_K_Category_ID, Integer.valueOf(K_Category_ID)); } /** Get Knowledge Category. @return Knowledge Category */ public int getK_Category_ID () ...
} /** 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 Re...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_K_CategoryValue.java
1
请完成以下Java代码
public List<I_M_HU> retrieveVhus(@NonNull final I_M_HU hu) { return handlingUnitsBL.getVHUs(hu); } /** * @return the {@code M_HU_ID} of the given {@code hu}'s topmost parent (or grandparent etc), * <b>or</b>{@code -1} if the given {@code hu} is not "physical". */ public int retrieveTopLevelHuId(@NonNull fi...
return Optional.empty(); } final I_C_UOM stockingUOM = productBL.getStockUOM(vhuProductId); final Quantity qty = vhuStorage.getQuantity(vhuProductId, stockingUOM); return Optional.of(ImmutablePair.of(vhuProductId, qty)); } public Optional<Quantity> retrieveProductQty(final HuId huId, final ProductId produc...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\trace\HUAccessService.java
1
请在Spring Boot框架中完成以下Java代码
class RecordsToHandleKey { public static RecordsToHandleKey of(@NonNull final String tableName) { return new RecordsToHandleKey(tableName); } String tableName; private RecordsToHandleKey(@NonNull final String tableName) { this.tableName = tableName; } /** Needed to identify the proper {@link R...
@NonNull final String documentNo, @NonNull final DocStatus docStatus) { final I_C_Order orderRecord = Services.get(IOrderDAO.class).getById(orderId, I_C_Order.class); final ADReferenceService adReferenceService = ADReferenceService.get(); final String docStatusTrl = adReferenceService.retrieveListNameTrl(Doc...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\order\voidorderandrelateddocs\VoidOrderAndRelatedDocsHandler.java
2
请完成以下Java代码
public String getIcon() { return "ChangeLog16"; } @Override public boolean isAvailable() { return true; } @Override public boolean isRunnable() { final GridField gridField = getEditor().getField();
if (gridField == null) { return false; } return true; } @Override public void run() { final GridField gridField = getEditor().getField(); FieldRecordInfo.start(gridField); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java\org\compiere\grid\ed\menu\RecordInfoContextMenuAction.java
1
请完成以下Java代码
public boolean isSuspended() { return suspended; } public Long getOverridingJobPriority() { return overridingJobPriority; } public String getTenantId() { return tenantId; } public String getDeploymentId() { return deploymentId; } public static JobDefinitionDto fromJobDefinition(JobDef...
dto.id = definition.getId(); dto.processDefinitionId = definition.getProcessDefinitionId(); dto.processDefinitionKey = definition.getProcessDefinitionKey(); dto.jobType = definition.getJobType(); dto.jobConfiguration = definition.getJobConfiguration(); dto.activityId = definition.getActivityId(); ...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\management\JobDefinitionDto.java
1
请完成以下Java代码
public class OrganisationIdentification4 { @XmlElement(name = "BICOrBEI") protected String bicOrBEI; @XmlElement(name = "Othr") protected List<GenericOrganisationIdentification1> othr; /** * Gets the value of the bicOrBEI property. * * @return * possible object is * ...
* Gets the value of the othr property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the oth...
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\OrganisationIdentification4.java
1
请完成以下Java代码
public void setTitle (final @Nullable java.lang.String Title) { set_Value (COLUMNNAME_Title, Title); } @Override public java.lang.String getTitle() { return get_ValueAsString(COLUMNNAME_Title); } @Override public void setVolume (final @Nullable BigDecimal Volume) { set_Value (COLUMNNAME_Volume, Volume...
if (Warehouse_Location_ID < 1) set_Value (COLUMNNAME_Warehouse_Location_ID, null); else set_Value (COLUMNNAME_Warehouse_Location_ID, Warehouse_Location_ID); } @Override public int getWarehouse_Location_ID() { return get_ValueAsInt(COLUMNNAME_Warehouse_Location_ID); } @Override public void setWeigh...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\eevolution\model\X_DD_Order_Header_v.java
1
请在Spring Boot框架中完成以下Java代码
public class EmployeeResource { @Autowired private EmployeeRepository employeeRepository; @GET @Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML }) public List<Employee> getAllEmployees() { return employeeRepository.getAllEmployees(); } @GET @Path("/{id}") ...
} @DELETE @Path("/{id}") @Consumes({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML }) public Response deleteEmployee(@PathParam("id") int id) { employeeRepository.deleteEmployee(id); return Response.status(Response.Status.OK.getStatusCode()).build(); } @POST @Consum...
repos\tutorials-master\spring-web-modules\spring-jersey\src\main\java\com\baeldung\server\rest\EmployeeResource.java
2
请在Spring Boot框架中完成以下Java代码
public class TenantRestServiceImpl extends AbstractAuthorizedRestResource implements TenantRestService { public TenantRestServiceImpl(String engineName, final ObjectMapper objectMapper) { super(engineName, TENANT, ANY, objectMapper); } @Override public TenantResource getTenant(String id) { id = PathUt...
.path(TenantRestService.PATH); ResourceOptionsDto resourceOptionsDto = new ResourceOptionsDto(); // GET / URI baseUri = baseUriBuilder.build(); resourceOptionsDto.addReflexiveLink(baseUri, HttpMethod.GET, "list"); // GET /count URI countUri = baseUriBuilder.clone().path("/count").build(); ...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\impl\TenantRestServiceImpl.java
2
请完成以下Java代码
private <T> T definePackage(DefinePackageCallType type, Supplier<T> call) { DefinePackageCallType existingType = this.definePackageCallType; try { this.definePackageCallType = type; return call.get(); } finally { this.definePackageCallType = existingType; } } private Manifest getManifest(Archive a...
private enum DefinePackageCallType { /** * A define package call from a resource that has a manifest. */ MANIFEST, /** * A define package call with a direct set of attributes. */ ATTRIBUTES } }
repos\spring-boot-4.0.1\loader\spring-boot-loader\src\main\java\org\springframework\boot\loader\launch\LaunchedClassLoader.java
1
请在Spring Boot框架中完成以下Java代码
public SseEmitter debugApp(@RequestBody AppDebugParams appDebugParams) { return airagChatService.debugApp(appDebugParams); } /** * 根据需求生成提示词 * * @param prompt * @return * @author chenrui * @date 2025/3/12 15:30 */ @GetMapping(value = "/prompt/generate") public...
} /** * 根据需求生成提示词 * * @param prompt * @return * @author chenrui * @date 2025/3/12 15:30 */ @PostMapping(value = "/prompt/generate") public SseEmitter generatePromptSse(@RequestParam(name = "prompt", required = true) String prompt) { return (SseEmitter) airagAppSer...
repos\JeecgBoot-main\jeecg-boot\jeecg-boot-module\jeecg-boot-module-airag\src\main\java\org\jeecg\modules\airag\app\controller\AiragAppController.java
2
请完成以下Java代码
public static String min(String s) { return "min(" + s + ")"; } public static String max(String s) { return "max(" + s + ")"; } public static String sum(String s) { return "sum(" + s + ")"; } public static String count(String s) { return "count(" + s + ")"; ...
case MIN: return MIN_AGGREGATION_COLUMNS; case MAX: return MAX_AGGREGATION_COLUMNS; case SUM: return SUM_AGGREGATION_COLUMNS; case COUNT: return COUNT_AGGREGATION_COLUMNS; case AVG: return AVG...
repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\model\ModelConstants.java
1
请完成以下Java代码
public class NotionalTokenizer { /** * 预置分词器 */ public static Segment SEGMENT = HanLP.newSegment(); public static List<Term> segment(String text) { return segment(text.toCharArray()); } /** * 分词 * * @param text 文本 * @return 分词结果 */ public static L...
return sentenceList; } /** * 分词断句 输出句子形式 * * @param text 待分词句子 * @param shortest 是否断句为最细的子句(将逗号也视作分隔符) * @return 句子列表,每个句子由一个单词列表组成 */ public static List<List<Term>> seg2sentence(String text, boolean shortest) { return SEGMENT.seg2sentence(text, shortest); ...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\tokenizer\NotionalTokenizer.java
1
请完成以下Java代码
public String getId() { return innerPlanItemInstance.getId(); } @Override public String getName() { return innerPlanItemInstance.getName(); } @Override public String getCaseInstanceId() { return innerPlanItemInstance.getCaseInstanceId(); } @Override public ...
} @Override public String getState() { return innerPlanItemInstance.getState(); } @Override public String toString() { return "GenericEventListenerInstanceImpl{" + "id='" + getId() + '\'' + ", name='" + getName() + '\'' + ", caseInsta...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\runtime\GenericEventListenerInstanceImpl.java
1
请完成以下Java代码
protected IAllocationResult allocateOnIncludedHUItem( @NonNull final I_M_HU_Item item, @NonNull final IAllocationRequest request) { // Prevent allocating on a included HU item final HUItemType itemType = services.getItemType(item); if (HUItemType.HandlingUnit.equals(itemType)) { if (services.isDevelop...
} // // We are about to allocate to Virtual HUs linked to given "item" (which shall be of type Material). // In this case we rely on the standard logic. return super.allocateOnIncludedHUItem(item, request); } /** * Does nothing, returns null result. */ @Override protected IAllocationResult allocateRem...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\allocation\strategy\UpperBoundAllocationStrategy.java
1
请完成以下Java代码
public class MessageInterpolatorFactory implements ObjectFactory<MessageInterpolator> { private static final Set<String> FALLBACKS; static { Set<String> fallbacks = new LinkedHashSet<>(); fallbacks.add("org.hibernate.validator.messageinterpolation.ParameterMessageInterpolator"); FALLBACKS = Collections.unmodi...
throw ex; } } private @Nullable MessageInterpolator getFallback() { for (String fallback : FALLBACKS) { try { return getFallback(fallback); } catch (Exception ex) { // Swallow and continue } } return null; } private MessageInterpolator getFallback(String fallback) { Class<?> interpol...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\validation\MessageInterpolatorFactory.java
1
请完成以下Java代码
public ProcessInstanceModificationBuilder createProcessInstanceModification(String processInstanceId) { return new ProcessInstanceModificationBuilderImpl(commandExecutor, processInstanceId); } @Override public ProcessInstantiationBuilder createProcessInstanceById(String processDefinitionId) { return Proc...
@Override public Incident createIncident(String incidentType, String executionId, String configuration, String message) { return commandExecutor.execute(new CreateIncidentCmd(incidentType, executionId, configuration, message)); } @Override public void resolveIncident(String incidentId) { commandExecuto...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\RuntimeServiceImpl.java
1
请完成以下Java代码
private Map<String, Object> getClaims(OidcUserRequest userRequest, OAuth2User oauth2User) { Converter<Map<String, Object>, Map<String, Object>> converter = this.claimTypeConverterFactory .apply(userRequest.getClientRegistration()); if (converter != null) { return converter.convert(oauth2User.getAttributes());...
* <ul> * <li>The user info endpoint is defined on the ClientRegistration</li> * <li>The Client Registration uses the * {@link AuthorizationGrantType#AUTHORIZATION_CODE}</li> * </ul> * @param retrieveUserInfo the {@code Predicate} used to determine if the UserInfo * Endpoint should be called * @since 6.3 ...
repos\spring-security-main\oauth2\oauth2-client\src\main\java\org\springframework\security\oauth2\client\oidc\userinfo\OidcUserService.java
1
请完成以下Java代码
public ProcessInstanceBuilder transientVariable(String variableName, Object value) { if (this.transientVariables == null) { this.transientVariables = new HashMap<>(); } this.transientVariables.put(variableName, value); return this; } @Override public ProcessInsta...
public String getBusinessKey() { return businessKey; } public String getTenantId() { return tenantId; } public Map<String, Object> getVariables() { return variables; } public Map<String, Object> getTransientVariables() { return transientVariables; } }
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\runtime\ProcessInstanceBuilderImpl.java
1
请在Spring Boot框架中完成以下Java代码
public class ReferenceId implements RepoIdAware { int repoId; @JsonCreator public static ReferenceId ofRepoId(final int repoId) { return new ReferenceId(repoId); } @Nullable public static ReferenceId ofRepoIdOrNull(@Nullable final Integer repoId) { return repoId != null && repoId > 0 ? new ReferenceId(rep...
private ReferenceId(final int repoId) { this.repoId = Check.assumeGreaterThanZero(repoId, "AD_Reference_ID"); } @JsonValue public int toJson() { return getRepoId(); } public static int toRepoId(@Nullable final ReferenceId id) {return id != null ? id.getRepoId() : -1;} public static boolean equals(@Nullab...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\ad_reference\ReferenceId.java
2
请在Spring Boot框架中完成以下Java代码
private static Path safeResolve(Path targetDir, String entryName) throws IOException { Path resolvedPath = targetDir.resolve(entryName).normalize(); if (!resolvedPath.startsWith(targetDir)) { throw new IOException("ZIP 路径穿越攻击被阻止:" + entryName); } return resolvedPath; } ...
*/ private static long copyLimited(InputStream in, OutputStream out, long maxBytes) throws IOException { byte[] buffer = new byte[8192]; long totalCopied = 0; int bytesRead; while ((bytesRead = in.read(buffer)) != -1) { totalCopied += bytesRead; if (totalCopie...
repos\JeecgBoot-main\jeecg-boot\jeecg-boot-module\jeecg-boot-module-airag\src\main\java\org\jeecg\modules\airag\llm\service\impl\AiragKnowledgeDocServiceImpl.java
2
请完成以下Java代码
public int getM_Product_ID() { return get_ValueAsInt(COLUMNNAME_M_Product_ID); } @Override public void setPP_WF_Node_Product_ID (final int PP_WF_Node_Product_ID) { if (PP_WF_Node_Product_ID < 1) set_ValueNoCheck (COLUMNNAME_PP_WF_Node_Product_ID, null); else set_ValueNoCheck (COLUMNNAME_PP_WF_Node_...
} @Override public java.lang.String getSpecification() { return get_ValueAsString(COLUMNNAME_Specification); } @Override public void setYield (final @Nullable BigDecimal Yield) { set_Value (COLUMNNAME_Yield, Yield); } @Override public BigDecimal getYield() { final BigDecimal bd = get_ValueAsBigDec...
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
请完成以下Java代码
public String toString() { return "MInvoiceTax[" + "C_Invoice_ID=" + getC_Invoice_ID() + ",C_Tax_ID=" + getC_Tax_ID() + ", Base=" + getTaxBaseAmt() + ",Tax=" + getTaxAmt() + "]"; } /** * @return true if there are no non packing material lines with the same tax as the packing material lines, false ot...
if (haveNonPackingMaterialLines) { log.warn("Found lines with packaging materials and lines without packing materials for C_Invoice_ID={} and C_Tax_ID={}. Considering {} not a packing material tax.", getC_Invoice_ID(), getC_Tax_ID(), this); return false; } return true; } else { return false; ...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java-legacy\org\compiere\model\MInvoiceTax.java
1
请完成以下Java代码
public static void destroyingProcessCreatedBySameProcess() throws IOException, InterruptedException { ProcessBuilder builder = new ProcessBuilder("notepad.exe"); Process process = builder.start(); Thread.sleep(10000); process.destroy(); } public static void destroyingProcessCrea...
public static void outputStreamDemo() throws IOException, InterruptedException { Logger log = Logger.getLogger(ProcessUnderstanding.class.getName()); Process pr = Runtime.getRuntime() .exec("javac -cp src src\\main\\java\\com\\baeldung\\java9\\process\\ChildProcess.java"); final Proc...
repos\tutorials-master\core-java-modules\core-java-os-2\src\main\java\com\baeldung\java9\process\ProcessUnderstanding.java
1
请在Spring Boot框架中完成以下Java代码
protected void doInTransactionWithoutResult( TransactionStatus status) { log.info("Starting second transaction ..."); Author author = new Author(); author.setAge(43); author.setName("Joel Bornis"); ...
log.info("Releasing lock ..."); } catch (InterruptedException ex) { Thread.currentThread().interrupt(); } } }); log.info("First transaction comitted!"); }); Thread tB = new Thread(...
repos\Hibernate-SpringBoot-master\HibernateSpringBootPessimisticLocksDelInsUpd\src\main\java\com\bookstore\service\BookstoreService.java
2
请完成以下Java代码
public void setImpEx_Connector_ID (int ImpEx_Connector_ID) { if (ImpEx_Connector_ID < 1) set_ValueNoCheck (COLUMNNAME_ImpEx_Connector_ID, null); else set_ValueNoCheck (COLUMNNAME_ImpEx_Connector_ID, Integer.valueOf(ImpEx_Connector_ID)); } /** Get Konnektor. @return Konnektor */ public int getImpEx_...
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 KeyNam...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java-gen\de\metas\impex\model\X_ImpEx_Connector.java
1
请完成以下Java代码
public Integer getOrderStatus() { return orderStatus; } public void setOrderStatus(Integer orderStatus) { this.orderStatus = orderStatus; } public String getNote() { return note; } public void setNote(String note) { this.note = note; }
@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", orderId=").append(orderId); sb.append(", o...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\OmsOrderOperateHistory.java
1
请在Spring Boot框架中完成以下Java代码
public Book updateBook(@PathVariable("id") final String id, @RequestBody final Book book) { return book; } @PatchMapping("/{id}") @ResponseStatus(HttpStatus.OK) public Book patchBook(@PathVariable("id") final String id, @RequestBody final Book book) { return book; } @PostMappin...
@ApiResponses(value = { @ApiResponse(responseCode = "201", description = "Book created successfully", content = { @Content(mediaType = "application/json", schema = @Schema(implementation = Book.class)) }), @ApiResponse(responseCode = "400", description = "Invalid input provid...
repos\tutorials-master\spring-boot-modules\spring-boot-springdoc\src\main\java\com\baeldung\springdoc\controller\BookController.java
2
请完成以下Java代码
public String getEntityType () { return (String)get_Value(COLUMNNAME_EntityType); } /** Set Key Column. @param KeyColumn Key Column for Table */ public void setKeyColumn (String KeyColumn) { set_Value (COLUMNNAME_KeyColumn, KeyColumn); } /** Get Key Column. @return Key Column for Table */ pu...
return 0; return ii.intValue(); } /** Set Product Column. @param ProductColumn Fully qualified Product column (M_Product_ID) */ public void setProductColumn (String ProductColumn) { set_Value (COLUMNNAME_ProductColumn, ProductColumn); } /** Get Product Column. @return Fully qualified Product colum...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_PA_MeasureCalc.java
1
请完成以下Java代码
public void createInitialParameters(MEXPProcessor processor) { exportProcessor.createInitialParameters(processor); } @Override public void process(Properties ctx, MEXPProcessor expProcessor, Document document, Trx trx) throws ExportProcessorException { try { exportProcessor.process(ctx, expProcessor, do...
@Override public void process(MEXPProcessor expProcessor, Document document, PO po) throws ExportProcessorException { final Properties ctx = po.getCtx(); final Trx trx = Trx.get(po.get_TrxName(), false); try { exportProcessor.process(ctx, expProcessor, document, trx); } catch (final Exception e) { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\process\rpl\ExportProcessor2Wrapper.java
1
请完成以下Java代码
public void updateFieldsFromDatePromised(@NonNull final I_M_Forecast forecast) { final CalendarId calendarId = calendarBL.getOrgCalendarOrDefault(OrgId.ofRepoId(forecast.getAD_Org_ID())); final Timestamp datePromised = forecast.getDatePromised(); final I_C_Period period = calendarDAO.findByCalendar(datePromised,...
I_M_Forecast.COLUMNNAME_C_Period_ID, I_M_Forecast.COLUMNNAME_DatePromised, I_M_Forecast.COLUMNNAME_M_Warehouse_ID }) public void updateForecastLines(@NonNull final I_M_Forecast forecast) { final List<I_M_ForecastLine> forecastLines = forecastsRepo.retrieveLinesByForecastId(ForecastId.ofRepoId(forecast.getM_F...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\material\interceptor\M_Forecast.java
1
请完成以下Java代码
public class AD_ImpFormat_CopyLinesFrom extends JavaProcess { private ImpFormatId from_AD_ImpFormat_ID; private ImpFormatId to_AD_ImpFormat_ID; @Override protected void prepare() { for (final ProcessInfoParameter para : getParameters()) { final String name = para.getParameterName(); if (para.getParamete...
} final String msg = "#" + fromRows.size(); if (!from.getFormatType().equals(target.getFormatType())) { return msg + " - Note: Format Type different!"; } return msg; } // doIt private I_AD_ImpFormat retrieveImpFormatRecord(@NonNull final ImpFormatId id) { final I_AD_ImpFormat from = load(id, I_AD_Im...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\impexp\process\AD_ImpFormat_CopyLinesFrom.java
1
请完成以下Java代码
public I_M_HU_PI_Item_Product getM_HU_PI_ItemProductFor(final Object document, final ProductId productId) { if (productId == null) { return null; } final I_M_ForecastLine forecastLine = getForecastLine(document); final I_M_HU_PI_Item_Product piip; if (InterfaceWrapperHelper.isNew(forecastLine) && ...
} return piip; } @Override public void applyChangesFor(final Object document) { final I_M_ForecastLine forecastLine = getForecastLine(document); final ProductId productId = ProductId.ofRepoIdOrNull(forecastLine.getM_Product_ID()); final I_M_HU_PI_Item_Product piip = getM_HU_PI_ItemProductFor(forecastLine,...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\distribution\ddorder\hu_spis\ForecastLineHUDocumentHandler.java
1
请完成以下Java代码
public String getProcessDefinitionId() { return processDefinitionId; } public String getProcessInstanceId() { return processInstanceId; } public String getExecutionId() { return executionId; } public Date getIncidentTimestamp() { return incidentTimestamp; } public String getIncidentT...
public String getIncidentMessage() { return incidentMessage; } public String getTenantId() { return tenantId; } public String getJobDefinitionId() { return jobDefinitionId; } public String getAnnotation() { return annotation; } public static IncidentDto fromIncident(Incident incident...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\runtime\IncidentDto.java
1
请完成以下Java代码
public static LookupValuesList lookupValuesListFromJsonMap(final Map<String, Object> map) { @SuppressWarnings("unchecked") final List<Object> values = (List<Object>)map.get("values"); // // Corner case: the `map` it's just a single lookup value if (values == null && map.get(JSONLookupValue.PROPERTY_Key) !...
.add("values", values) .add("error", error) .add("properties", otherProperties == null || otherProperties.isEmpty() ? null : otherProperties) .toString(); } public List<JSONLookupValue> getValues() { return values; } @JsonAnyGetter public Map<String, Object> getOtherProperties() { return otherP...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\datatypes\json\JSONLookupValuesList.java
1
请完成以下Java代码
public String getColumnName() { String sql = getColumnSQL(); if (!Check.isEmpty(sql, true)) { return sql; } int AD_Column_ID = getAD_Column_ID(); return MColumn.getColumnName(getCtx(), AD_Column_ID); } @Override public String toString() { StringBuffer sb = new StringBuffer("MIndexColumn[").append...
final Object[] params = { indexTable.get_ID(), column.get_ID() }; MIndexColumn indexColumn = new Query(ctx, Table_Name, whereClause, trxName).setParameters(params).firstOnly(MIndexColumn.class); if (indexColumn == null) { indexColumn = new MIndexColumn(ctx, 0, trxName); indexColumn.setAD_Index_Table...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\compiere\model\MIndexColumn.java
1
请在Spring Boot框架中完成以下Java代码
public void setC_UOM_ID (final int C_UOM_ID) { if (C_UOM_ID < 1) set_Value (COLUMNNAME_C_UOM_ID, null); else set_Value (COLUMNNAME_C_UOM_ID, C_UOM_ID); } @Override public int getC_UOM_ID() { return get_ValueAsInt(COLUMNNAME_C_UOM_ID); } @Override public void setExternalId (final java.lang.Strin...
@Override public BigDecimal getQty() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_Qty); return bd != null ? bd : BigDecimal.ZERO; } @Override public void setScannedBarcode (final @Nullable java.lang.String ScannedBarcode) { set_Value (COLUMNNAME_ScannedBarcode, ScannedBarcode); } @Override ...
repos\metasfresh-new_dawn_uat\backend\de.metas.pos.base\src\main\java-gen\de\metas\pos\repository\model\X_C_POS_OrderLine.java
2
请完成以下Spring Boot application配置
spring.application.name=spring-boot-multi-mongodb mongodb.primary.uri=mongodb://192.168.0.74:27017 mongodb.primary.database=primary mongodb.secondary.uri
=mongodb://192.168.0.74:27017 mongodb.secondary.database=secondary
repos\spring-boot-leaning-master\1.x\第12课:MongoDB 实战\spring-boot-multi-mongodb\src\main\resources\application.properties
2
请完成以下Java代码
public class ConnectionFactoryContextWrapper { private final ConnectionFactory connectionFactory; public ConnectionFactoryContextWrapper(ConnectionFactory connectionFactory) { Assert.notNull(connectionFactory, "'connectionFactory' must not be null"); this.connectionFactory = connectionFactory; } /** * Exec...
/** * Execute a {@link Runnable} binding the given {@link ConnectionFactory} and finally unbinding it. * @param contextName the name of the context. In null, empty or blank, default context is bound. * @param runnable the {@link Runnable} object to be executed. * @throws RuntimeException when a RuntimeExcept...
repos\spring-amqp-main\spring-rabbit\src\main\java\org\springframework\amqp\rabbit\connection\ConnectionFactoryContextWrapper.java
1
请完成以下Java代码
private ResourcePatternResolver getServletContextResourcePatternResolver( AbstractApplicationContext applicationContext, @Nullable ResourceLoader resourceLoader) { ResourceLoader targetResourceLoader = (resourceLoader != null) ? resourceLoader : new WebApplicationContextResourceLoader(applicationContext::ge...
WebApplicationContextResourceLoader(Supplier<Collection<ProtocolResolver>> protocolResolvers, WebApplicationContext applicationContext) { super(protocolResolvers); this.applicationContext = applicationContext; } @Override protected Resource getResourceByPath(String path) { if (this.applicationContex...
repos\spring-boot-4.0.1\module\spring-boot-devtools\src\main\java\org\springframework\boot\devtools\restart\ClassLoaderFilesResourcePatternResolver.java
1
请完成以下Java代码
public void remove() { throw new UnsupportedOperationException(); } }; } public void forEach(Consumer<? super String> action) { for (String s : this) { action.accept(s); } } public void iterateParallel() { list.forEach(System.out:...
} public void removeInStreamForEach() { list.stream().forEach(removeElement); } public static void main(String[] argv) { ReverseList collectionForEach = new ReverseList(); collectionForEach.iterateParallel(); collectionForEach.iterateReverse(); collectionForEach.re...
repos\tutorials-master\core-java-modules\core-java-streams\src\main\java\com\baeldung\stream\forEach\ReverseList.java
1
请完成以下Spring Boot application配置
# # Copyright 2015-2023 the original author or authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
ither express or implied. # See the License for the specific language governing permissions and # limitations under the License. # logging.level.root=WARN logging.level.sample.mybatis.annotation.mapper=TRACE
repos\spring-boot-starter-master\mybatis-spring-boot-samples\mybatis-spring-boot-sample-annotation\src\main\resources\application.properties
2
请完成以下Java代码
public boolean isExcludeSubprocesses() { return excludeSubprocesses; } public SuspensionState getSuspensionState() { return suspensionState; } public void setSuspensionState(SuspensionState suspensionState) { this.suspensionState = suspensionState; } public List<EventS...
public String getNameLikeIgnoreCase() { return nameLikeIgnoreCase; } public void setNameLikeIgnoreCase(String nameLikeIgnoreCase) { this.nameLikeIgnoreCase = nameLikeIgnoreCase; } public Date getStartedBefore() { return startedBefore; } public void setStartedBefore(Dat...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\ExecutionQueryImpl.java
1
请在Spring Boot框架中完成以下Java代码
public static void addCookie(HttpServletResponse response, String name, String value, int maxAge) { Cookie cookie = new Cookie(name, value); cookie.setPath("/"); cookie.setHttpOnly(true); cookie.setMaxAge(maxAge); response.addCookie(cookie); } public static void deleteCo...
try { return Base64.getUrlEncoder() .encodeToString(OBJECT_MAPPER.writeValueAsBytes(object)); } catch (JsonProcessingException e) { throw new IllegalArgumentException("The given Json object value: " + object + " cannot be transformed to a String", ...
repos\thingsboard-master\application\src\main\java\org\thingsboard\server\service\security\auth\oauth2\CookieUtils.java
2
请完成以下Java代码
public Facets add(@NonNull final Facets other) { return addAll(ImmutableSet.of(other)); } public Facets addAll(@NonNull final Collection<Facets> others) { if (others.isEmpty()) { return this; } else { final FacetsBuilder builder = toBuilder(); for (final Facets other : others) ...
private boolean isCustomerMatching(final BPartnerId customerId) {return customerIds.isEmpty() || customerIds.contains(customerId);} private boolean isDeliveryDateMatching(final PickingJobReference pickingJobReference) { final ZonedDateTime deliveryDate = pickingJobReference.getDeliveryDate(); return delivery...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\picking\job\model\PickingJobQuery.java
1
请完成以下Java代码
public Optional<JsonResponseCompositeList> retrieveBPartnersSince( @Nullable final Long epochMilli, @Nullable final String nextPageId) { final SinceQuery sinceQuery = SinceQuery.anyEntity( extractInstant(epochMilli), getPageSize(), null, null); final NextPageQuery nextPageQuery = NextPageQue...
final ImmutableList<JsonResponseContact> jsonContacts = page .getItems() .stream() .flatMap(bpc -> bpc.getContacts().stream()) .collect(ImmutableList.toImmutableList()); final QueryResultPage<JsonResponseContact> sizeAdjustedPage = page.withItems(jsonContacts); final JsonPagingDescriptor jsonPaging...
repos\metasfresh-new_dawn_uat\backend\de.metas.business.rest-api-impl\src\main\java\de\metas\rest_api\v1\bpartner\BPartnerEndpointService.java
1
请完成以下Java代码
public int hashCode() { int result = bookId != null ? bookId.hashCode() : 0; result = 31 * result + (title != null ? title.hashCode() : 0); result = 31 * result + (author != null ? author.hashCode() : 0); return result; } public Integer getBookId() { return bookId; }...
return title; } public void setTitle(String title) { this.title = title; } public String getAuthor() { return author; } public void setAuthor(String author) { this.author = author; } }
repos\tutorials-master\jackson-modules\jackson-conversions\src\main\java\com\baeldung\jackson\tocollection\Book.java
1
请完成以下Java代码
public class StatusType { @XmlAttribute(name = "status_in", required = true) @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String statusIn; @XmlAttribute(name = "status_out", required = true) @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String statusOut; /** ...
this.statusIn = value; } /** * Gets the value of the statusOut property. * * @return * possible object is * {@link String } * */ public String getStatusOut() { return statusOut; } /** * Sets the value of the statusOut property. * ...
repos\metasfresh-new_dawn_uat\backend\vertical-healthcare_ch\forum_datenaustausch_ch.invoice_440_response\src\main\java-xjc\de\metas\vertical\healthcare_ch\forum_datenaustausch_ch\invoice_440\response\StatusType.java
1
请在Spring Boot框架中完成以下Java代码
private String getDescription(DataSourceBeanCreationException cause) { StringBuilder description = new StringBuilder(); description.append("Failed to configure a DataSource: "); if (!StringUtils.hasText(cause.getProperties().getUrl())) { description.append("'url' attribute is not specified and "); } descri...
+ "profile you may need to activate it") .append(getActiveProfiles()); return action.toString(); } private String getActiveProfiles() { StringBuilder message = new StringBuilder(); String[] profiles = this.environment.getActiveProfiles(); if (ObjectUtils.isEmpty(profiles)) { message.append(" (no profil...
repos\spring-boot-4.0.1\module\spring-boot-jdbc\src\main\java\org\springframework\boot\jdbc\autoconfigure\DataSourceBeanCreationFailureAnalyzer.java
2
请在Spring Boot框架中完成以下Java代码
public ApplicationRunner init() { return args -> { System.out.println("\nfetchBooksAndAuthorsJpql: "); bookstoreService.fetchBooksAndAuthorsJpql() .forEach((e) -> System.out.println(e.getName() + " | " + e.getTitle())); System.out.println("\nfetchBooksAn...
bookstoreService.findAuthorsAndBooksByGenreAndPriceJpql("History", 40) .forEach((e) -> System.out.println(e.getName() + " | " + e.getTitle())); System.out.println("\nfindAuthorsAndBooksByGenreAndPriceSql: "); bookstoreService.findAuthorsAndBooksByGenreAndPriceSql...
repos\Hibernate-SpringBoot-master\HibernateSpringBootDtoViaInnerJoins\src\main\java\com\bookstore\MainApplication.java
2
请完成以下Java代码
public static DmnDeploymentEntityManager getDeploymentEntityManager() { return getDeploymentEntityManager(getCommandContext()); } public static DmnDeploymentEntityManager getDeploymentEntityManager(CommandContext commandContext) { return getDmnEngineConfiguration(commandContext).getDeployme...
public static DmnRepositoryService getDmnRepositoryService(CommandContext commandContext) { return getDmnEngineConfiguration(commandContext).getDmnRepositoryService(); } public static DmnEngineAgenda getAgenda() { return getAgenda(getCommandContext()); } public static DmnEngineAgenda g...
repos\flowable-engine-main\modules\flowable-dmn-engine\src\main\java\org\flowable\dmn\engine\impl\util\CommandContextUtil.java
1
请完成以下Java代码
public User createUser(@Valid RegisterParam registerParam) { User user = new User( registerParam.getEmail(), registerParam.getUsername(), passwordEncoder.encode(registerParam.getPassword()), "", defaultImage); userRepository.save(user); ret...
.map(user -> user.equals(targetUser)) .orElse(true); if (isEmailValid && isUsernameValid) { return true; } else { context.disableDefaultConstraintViolation(); if (!isEmailValid) { context .buildConstraintViolationWithTemplate("email already exist") ....
repos\spring-boot-realworld-example-app-master\src\main\java\io\spring\application\user\UserService.java
1
请完成以下Java代码
private Integer estimateSize() { return getFixedHUIds().map(HuIdsFilterList::estimateSize).orElse(null); } interface CaseConverter<T> { T acceptAll(); T acceptAllBut(@NonNull Set<HuId> alwaysIncludeHUIds, @NonNull Set<HuId> excludeHUIds); T acceptNone(); T acceptOnly(@NonNull HuIdsFilterList fixedHUId...
return converter.acceptAllBut(ImmutableSet.copyOf(mustHUIds), ImmutableSet.copyOf(shallNotHUIds)); } } else { final ImmutableSet<HuId> fixedHUIds = Stream.concat( initialHUIds.stream(), mustHUIds.stream()) .distinct() .filter(huId -> !shallNotHUIds.contains(huId)) // not exc...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\handlingunits\filter\HUIdsFilterData.java
1
请完成以下Java代码
public byte[] serialize(String topic, @Nullable Headers headers, @Nullable T data) { if (data == null) { return null; } if (this.addTypeInfo && headers != null) { headers.add(this.typeInfoHeader, data.getClass().getName().getBytes()); } return data.toString().getBytes(this.charset); } @Override pu...
/** * Set a charset to use when converting {@link String} to byte[]. Default UTF-8. * @param charset the charset. */ public void setCharset(Charset charset) { Assert.notNull(charset, "'charset' cannot be null"); this.charset = charset; } /** * Get the configured charset. * @return the charset. */ ...
repos\spring-kafka-main\spring-kafka\src\main\java\org\springframework\kafka\support\serializer\ToStringSerializer.java
1
请完成以下Java代码
private class ListWeakReference extends WeakReference<T> { private final ListEntry parent; public ListWeakReference(final T value, final ListEntry parent) { super(value, queue); this.parent = parent; } public ListEntry getListEntry() { return this.parent; } } private class ListEntry { f...
*/ @Override public boolean equals(final Object obj) { if (this == obj) { return true; } return false; } @Override public int hashCode() { // NOTE: we implemented this method only to get rid of "implemented equals() but not hashCode() warning" return super.hashCode(); } @Overri...
repos\metasfresh-new_dawn_uat\backend\de.metas.util\src\main\java\de\metas\util\WeakList.java
1
请完成以下Java代码
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 path) { } }; void openedFileChannel(Path path); void closedFileChannel(Path path); } }
repos\spring-boot-4.0.1\loader\spring-boot-loader\src\main\java\org\springframework\boot\loader\zip\FileDataBlock.java
1
请完成以下Java代码
public static URI getHost(URI uri) { URI effectiveURI = null; try { effectiveURI = new URI(uri.getScheme(), uri.getUserInfo(), uri.getHost(), uri.getPort(), null, null, null); } catch (Throwable var4) { effectiveURI = null; } return effectiveURI; } ...
value = value.replaceAll("[\\\"\\\'][\\s]*javascript:(.*)[\\\"\\\']", "\"\""); value = value.replaceAll("script", "scr1pt"); value = value.replaceAll("insert", "1nsert"); value = value.replaceAll("drop", "dr0p"); value = value.replaceAll("create", "cre0ate"); value = value.replac...
repos\spring-boot-projects-main\SpringBoot咨询发布系统实战项目源码\springboot-project-news-publish-system\src\main\java\com\site\springboot\core\util\AntiXssUtils.java
1
请完成以下Java代码
public MDunningRunEntry[] getEntries (boolean requery) { return getEntries(requery, false); } /** * Get Entries * @param requery requery requery * @param onlyInvoices only invoices * @return entries */ public MDunningRunEntry[] getEntries (boolean requery, boolean onlyInvoices) { if (m_entries !...
if (ok) m_entries = null; return ok; } // deleteEntries /** * Get/Create Entry for BPartner * @param C_BPartner_ID business partner * @param C_Currency_ID currency * @param SalesRep_ID sales rep * @param C_DunningLevel_ID dunning level * @return entry */ public MDunningRunEntry getEntry (int C_...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java-legacy\org\compiere\model\MDunningRun.java
1
请完成以下Java代码
public Matrix col(int j) { double[][] X = new double[m][1]; for (int i = 0; i < m; i++) { X[i][0] = A[i][j]; } return new Matrix(X); } /** * 取出第i行作为一个行向量 * @param i * @return */ public Matrix row(int i) { double[][] X =...
for (int i = 0; i < m; i++) { for (int j = 0; j < n; j++) { A[i][j] = 0.; } } } public void save(DataOutputStream out) throws Exception { out.writeInt(m); out.writeInt(n); for (int i = 0; i < m; i++) { ...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\dependency\nnparser\Matrix.java
1
请完成以下Java代码
public void stop() { if(timer != null) { // cancel the timer timer.cancel(); timer = null; // collect and log manually for the last time reportNow(); } } public void reportNow() { if(metricsCollectionTask != null) { metricsCollectionTask.run(); } } public vo...
return metricsCollectionTask; } public void setMetricsCollectionTask(MetricsCollectionTask metricsCollectionTask) { this.metricsCollectionTask = metricsCollectionTask; } public void setReporterId(String reporterId) { this.reporterId = reporterId; if (metricsCollectionTask != null) { metricsC...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\metrics\reporter\DbMetricsReporter.java
1
请完成以下Java代码
public class Order { private Integer id; private Integer productId; private String customerId; private String status; private String address; private String creationDate; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } ...
return customerId; } public void setCustomerId(String customerId) { this.customerId = customerId; } public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } public String getCreationDate() { retu...
repos\tutorials-master\spring-boot-modules\spring-boot-graphql-2\src\main\java\com\baeldung\graphqlvsrest\entity\Order.java
1
请完成以下Java代码
public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException) throws IOException { // compute a nonce (do not use remote IP address due to proxy farms) format of // nonce is: base64(expirationTime + ":" + md5Hex(expirationTime + ":" + key)) long expiryTim...
public @Nullable String getRealmName() { return this.realmName; } public void setKey(String key) { this.key = key; } public void setNonceValiditySeconds(int nonceValiditySeconds) { this.nonceValiditySeconds = nonceValiditySeconds; } public void setRealmName(String realmName) { this.realmName = realmNam...
repos\spring-security-main\web\src\main\java\org\springframework\security\web\authentication\www\DigestAuthenticationEntryPoint.java
1
请完成以下Java代码
public String toString() { return "CreatePartitionRequest [onNotDLMTable=" + onNotDLMTable + ", oldestFirst=" + oldestFirst + ", partitionToComplete=" + partitionToComplete + ", recordToAttach=" + recordToAttach + ", config=" + config + "]"; } } /** * Passed to {@link DLMPartitionerWorkpackageProcessor#sche...
*/ public int getCount() { return count; } /** * Don't enqueue another workpackage after the given time has passed. One intended usage scenario is to start partitioning in the evening and stop in the morning. * * @return never returns <code>null</code>, but might return <code>9999-12-31</code>. ...
repos\metasfresh-new_dawn_uat\backend\de.metas.dlm\base\src\main\java\de\metas\dlm\partitioner\PartitionRequestFactory.java
1
请完成以下Java代码
public IView getByIdOrNull(@NonNull final ViewId viewId) { return views.getIfPresent(viewId); } @Override public void closeById(@NonNull final ViewId viewId, @NonNull final ViewCloseAction closeAction) { // Don't remove the view if not allowed. // Will be removed when it will expire. final IView view = vi...
private void onViewRemoved(final RemovalNotification<Object, Object> notification) { final IView view = (IView)notification.getValue(); logger.debug("View `{}` removed from cache. Cause: {}", view.getViewId(), notification.getCause()); view.afterDestroy(); } @Override public void invalidateView(final ViewId ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\view\DefaultViewsRepositoryStorage.java
1
请完成以下Java代码
private ListenableFuture<AttributesSaveResult> doSave(TenantId tenantId, EntityId entityId, AttributeScope scope, List<AttributeKvEntry> attributes) { List<ListenableFuture<Long>> futures = new ArrayList<>(attributes.size()); for (AttributeKvEntry attribute : attributes) { ListenableFuture<L...
} keys.add(key); } return keys; }, MoreExecutors.directExecutor()); } @Override public int removeAllByEntityId(TenantId tenantId, EntityId entityId) { List<Pair<AttributeScope, String>> deleted = attributesDao.removeAllByEntityId(tenantId, entityId); ...
repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\attributes\BaseAttributesService.java
1
请在Spring Boot框架中完成以下Java代码
public String getNotifyId() { return notifyId; } /** 通知记录ID **/ public void setNotifyId(String notifyId) { this.notifyId = notifyId; } /** 请求信息 **/ public String getRequest() { return request; } /** 请求信息 **/ public void setRequest(String request) { ...
/** 商户编号 **/ public void setMerchantNo(String merchantNo) { this.merchantNo = merchantNo == null ? null : merchantNo.trim(); } /** 商户订单号 **/ public String getMerchantOrderNo() { return merchantOrderNo; } /** 商户订单号 **/ public void setMerchantOrderNo(String merchantOrderNo) {...
repos\roncoo-pay-master\roncoo-pay-service\src\main\java\com\roncoo\pay\notify\entity\RpNotifyRecordLog.java
2
请完成以下Java代码
public class DelegateFormFieldValidator implements FormFieldValidator { protected String clazz; protected Expression delegateExpression; public DelegateFormFieldValidator(Expression expression) { delegateExpression = expression; } public DelegateFormFieldValidator(String clazz) { this.clazz = clazz...
FormFieldValidator validator; if(clazz != null) { // resolve validator using Fully Qualified Classname Object validatorObject = ReflectUtil.instantiate(clazz); if(validatorObject instanceof FormFieldValidator) { validator = (FormFieldValidator) validatorObject; } else { thr...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\form\validator\DelegateFormFieldValidator.java
1
请完成以下Java代码
public boolean checkPassword(char[] password, String token) { Matcher m = layout.matcher(token); if (!m.matches()) throw new IllegalArgumentException("Invalid token format"); int iterations = iterations(Integer.parseInt(m.group(1))); byte[] hash = Base64.getUrlDecoder().decode(m.group(2)); b...
@Deprecated public String hash(String password) { return hash(password.toCharArray()); } /** * Authenticate with a password in an immutable {@code String} and a stored * password token. * * @deprecated Use {@link #checkPassword(char[],String)} instead. * @see #hash(String) */ @Deprecate...
repos\tutorials-master\core-java-modules\core-java-security-2\src\main\java\com\baeldung\passwordhashing\PBKDF2Hasher.java
1
请完成以下Java代码
public boolean isSystemUser () { Object oo = get_Value(COLUMNNAME_IsSystemUser); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Nachname. @param Lastname Nachname */ @Override public void setLastname ...
public void setProcessed (boolean Processed) { 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) ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_I_User.java
1
请完成以下Java代码
public String getProcessInstanceId() { return processInstanceId; } public List<AbstractProcessInstanceModificationCommand> getModificationOperations() { return operations; } public void setModificationOperations(List<AbstractProcessInstanceModificationCommand> operations) { this.operations = opera...
} public void setSkipIoMappings(boolean skipIoMappings) { this.skipIoMappings = skipIoMappings; } public VariableMap getProcessVariables() { return processVariables; } public String getModificationReason() { return modificationReason; } public void setModificationReason(String modification...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\ProcessInstanceModificationBuilderImpl.java
1
请完成以下Java代码
public void setUserAgent (String UserAgent) { set_Value (COLUMNNAME_UserAgent, UserAgent); } /** Get User Agent. @return Browser Used */ public String getUserAgent () { return (String)get_Value(COLUMNNAME_UserAgent); } /** Set Web Session. @param WebSession
Web Session ID */ public void setWebSession (String WebSession) { set_Value (COLUMNNAME_WebSession, WebSession); } /** Get Web Session. @return Web Session ID */ public String getWebSession () { return (String)get_Value(COLUMNNAME_WebSession); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_CM_WebAccessLog.java
1
请完成以下Java代码
public @Nullable String getRouteIdPrefix() { return routeIdPrefix; } public void setRouteIdPrefix(String routeIdPrefix) { this.routeIdPrefix = routeIdPrefix; } public String getIncludeExpression() { return includeExpression; } public void setIncludeExpression(String includeExpression) { this.includeExp...
public List<PredicateDefinition> getPredicates() { return predicates; } public void setPredicates(List<PredicateDefinition> predicates) { this.predicates = predicates; } public List<FilterDefinition> getFilters() { return filters; } public void setFilters(List<FilterDefinition> filters) { this.filters ...
repos\spring-cloud-gateway-main\spring-cloud-gateway-server-webflux\src\main\java\org\springframework\cloud\gateway\discovery\DiscoveryLocatorProperties.java
1
请完成以下Java代码
public static Color darker(Color color, double factor) { if (factor < 0.0) factor = 0.7; else if (factor > 1.0) factor = 0.7; return new Color( Math.max((int)(color.getRed() * factor), 0), Math.max((int)(color.getGreen() * factor), 0), Math.max((int)(color.getBlue() * factor), 0)); }...
* @return brighter color */ public static Color brighter (Color color, double factor) { if (factor < 0.0) factor = 0.7; else if (factor > 1.0) factor = 0.7; return new Color( Math.min((int)(color.getRed() / factor), 255), Math.min((int)(color.getGreen() / factor), 255), Math.min...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\adempiere\apps\graph\GraphUtil.java
1
请完成以下Java代码
public boolean isPayFrom() { return get_ValueAsBoolean(COLUMNNAME_IsPayFrom); } @Override public void setIsRemitTo (final boolean IsRemitTo) { set_Value (COLUMNNAME_IsRemitTo, IsRemitTo); } @Override public boolean isRemitTo() { return get_ValueAsBoolean(COLUMNNAME_IsRemitTo); } @Override public ...
public static final String ROLE_HealthInsurance = "HI"; /** Nursing Home = NH */ public static final String ROLE_NursingHome = "NH"; /** Caregiver = CG */ public static final String ROLE_Caregiver = "CG"; /** Preferred Pharmacy = PP */ public static final String ROLE_PreferredPharmacy = "PP"; /** Nursing Service...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_BP_Relation.java
1
请在Spring Boot框架中完成以下Java代码
private Optional<Map<String, Object>> getHeaders(@NonNull final Exchange exchange) { if (exchange.getIn().getHeaders() == null) { return Optional.empty(); } final Map<String, Object> headers = exchange.getIn().getHeaders().entrySet() .stream() .filter(entry -> !Exchange.HTTP_SERVLET_REQUEST.equals(...
} catch (final Exception e) { return headersStringCollector.append(getHeadersErrorMessage(e, headers)).toString(); } } @NonNull private String getHeadersErrorMessage(@NonNull final Exception exception, @NonNull final Map<String, Object> headers) { final StringWriter sw = new StringWriter(); final Prin...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\core\src\main\java\de\metas\camel\externalsystems\core\AuditFileTrailUtil.java
2
请完成以下Java代码
public int getM_Material_Tracking_Ref_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_M_Material_Tracking_Ref_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Bewegungsdatum. @param MovementDate Datum, an dem eine Produkt in oder aus dem Bestand bewegt wurde */ @Override public...
@param QtyReceived Empfangene Menge */ @Override public void setQtyReceived (java.math.BigDecimal QtyReceived) { throw new IllegalArgumentException ("QtyReceived is virtual column"); } /** Get Empfangene Menge. @return Empfangene Menge */ @Override public java.math.BigDecimal getQtyReceived () { BigD...
repos\metasfresh-new_dawn_uat\backend\de.metas.materialtracking\src\main\java-gen\de\metas\materialtracking\model\X_M_Material_Tracking_Ref.java
1
请完成以下Java代码
public @NonNull DocumentReportInfo getDocumentReportInfo( @NonNull final TableRecordReference recordRef, @Nullable final PrintFormatId adPrintFormatToUseId, final AdProcessId reportProcessIdToUse) { final InOutId inoutId = recordRef.getIdAssumingTableName(I_M_InOut.Table_Name, InOutId::ofRepoId); final I_M_I...
.onlyCopiesGreaterZero(true) .build(); return DocumentReportInfo.builder() .recordRef(TableRecordReference.of(I_M_InOut.Table_Name, inoutId)) .reportProcessId(util.getReportProcessIdByPrintFormatId(printFormatId)) .copies(util.getDocumentCopies(docType, bpPrintFormatQuery)) .documentNo(inout.getD...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\inout\InOutDocumentReportAdvisor.java
1
请完成以下Java代码
public EntitySearchDirection getDirection() { return filter.getDirection(); } @Override public int getMaxLevel() { return filter.getMaxLevel(); } @Override public boolean isMultiRoot() { return filter.isMultiRoot(); } @Override public boolean isFetchLastLev...
protected boolean check(RelationInfo relationInfo) { if (hasFilters) { for (var f : filter.getFilters()) { if (((!filter.isNegate() && !f.isNegate()) || (filter.isNegate() && f.isNegate())) == f.getRelationType().equals(relationInfo.getType())) { if (f.getEntityTy...
repos\thingsboard-master\common\edqs\src\main\java\org\thingsboard\server\edqs\query\processor\RelationQueryProcessor.java
1
请完成以下Java代码
public AppConfigurationEntry[] getAppConfigurationEntry(String name) { HashMap<String, String> options = new HashMap<String, String>(); options.put("storeKey", "true"); if (this.debug) { options.put("debug", "true"); } return new AppConfigurationEntry[] { new AppConfigurationEntry("com.sun.secu...
@Override public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException { for (Callback callback : callbacks) { if (callback instanceof NameCallback) { NameCallback ncb = (NameCallback) callback; ncb.setName(this.username); } else if (callback instanceof PasswordCa...
repos\spring-security-main\kerberos\kerberos-core\src\main\java\org\springframework\security\kerberos\authentication\sun\SunJaasKerberosClient.java
1