instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
private LookupValuesList hourLookupProvider() { return LookupValuesList.fromCollection( IntStream.range(0, 24) .mapToObj(this::toStringLookupValue) .collect(ImmutableList.toImmutableList()) ); } @ProcessParamLookupValuesProvider(parameterName = PARAM_Minute, numericKey = false, lookupSource = Do...
return selectedRowIds.stream() .map(PP_Order_Candidate_SetStartDate::toPPOrderCandidateId) .collect(ImmutableSet.toImmutableSet()); } } @NonNull private Timestamp convertParamsToTimestamp() { return Timestamp.valueOf(TimeUtil.asLocalDate(p_Date) .atTime(Integer.parseInt(p_Hour), Integer.parseInt(...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing.webui\src\main\java\de\metas\manufacturing\webui\process\PP_Order_Candidate_SetStartDate.java
1
请在Spring Boot框架中完成以下Java代码
public class UserInfoController { @Autowired private UserInfoService userInfoService; @RequestMapping public PageInfo<UserInfo> getAll(UserInfo userInfo) { List<UserInfo> userInfoList = userInfoService.getAll(userInfo); return new PageInfo<UserInfo>(userInfoList); } @RequestMa...
userInfoService.deleteById(id); result.put("msg", "删除成功!"); return result; } @RequestMapping(value = "/save", method = RequestMethod.POST) public ModelMap save(UserInfo userInfo) { ModelMap result = new ModelMap(); String msg = userInfo.getId() == null ? "新增成功!" : "更新成功!"; ...
repos\MyBatis-Spring-Boot-master\src\main\java\tk\mybatis\springboot\controller\UserInfoController.java
2
请在Spring Boot框架中完成以下Java代码
public void setProdName(String prodName) { this.prodName = prodName; } public String getMarketPrice() { return marketPrice; } public void setMarketPrice(String marketPrice) { this.marketPrice = marketPrice; } public String getShopPrice() { return shopPrice; ...
} public void setProdImageEntityList(List<ProdImageEntity> prodImageEntityList) { this.prodImageEntityList = prodImageEntityList; } public String getContent() { return content; } public void setContent(String content) { this.content = content; } public UserEntity ...
repos\SpringBoot-Dubbo-Docker-Jenkins-master\Gaoxi-Common-Service-Facade\src\main\java\com\gaoxi\entity\product\ProductEntity.java
2
请完成以下Spring Boot application配置
swagger.title=spring-boot-starter-swagger swagger.description=Starter for swagger 2.x swagger.version=1.9.0.RELEASE swagger.license=Apache License, Version 2.0 swagger.licenseUrl=https://www.apache.org/licenses/LICENSE-2.0.html swagger.termsOfServiceUrl=https://github.com/dyc87112/spring-boot-starter-swagger swagger.co...
di swagger.contact.url=http://blog.didispace.com swagger.contact.email=dyc87112@qq.com swagger.base-package=com.didispace swagger.base-path=/**
repos\SpringBoot-Learning-master\2.x\chapter2-2\src\main\resources\application.properties
2
请完成以下Java代码
public abstract class AbstractCassandraCluster { @Value("${cassandra.jmx}") private Boolean jmx; @Value("${cassandra.metrics}") private Boolean metrics; @Value("${cassandra.local_datacenter:datacenter1}") private String localDatacenter; @Value("${cassandra.cloud.secure_connect_bundle_path:...
this.sessionBuilder.withKeyspace(this.keyspaceName); } this.sessionBuilder.withLocalDatacenter(localDatacenter); if (StringUtils.isNotBlank(cloudSecureConnectBundlePath)) { this.sessionBuilder.withCloudSecureConnectBundle(Paths.get(cloudSecureConnectBundlePath)); this.se...
repos\thingsboard-master\common\dao-api\src\main\java\org\thingsboard\server\dao\cassandra\AbstractCassandraCluster.java
1
请完成以下Java代码
public class LinkedHashSetWithConversion { public static <E> List<E> convertToList(Set<E> set) { return new ArrayList<>(set); } public static <E> int getIndexByConversion(Set<E> set, E element) { List<E> list = new ArrayList<>(set); return list.indexOf(element); } public s...
@SuppressWarnings("unchecked") public static <E> E[] convertToArray(Set<E> set, Class<E> clazz) { return set.toArray((E[]) java.lang.reflect.Array.newInstance(clazz, set.size())); } public static <E> int getIndexByArray(Set<E> set, E element, Class<E> clazz) { E[] array = convertToArray(set...
repos\tutorials-master\core-java-modules\core-java-collections-set-2\src\main\java\com\baeldung\linkedhashsetindexof\LinkedHashSetWithConversion.java
1
请在Spring Boot框架中完成以下Java代码
protected static class WsConfiguration { } static class WsdlDefinitionBeanFactoryPostProcessor implements BeanDefinitionRegistryPostProcessor, ApplicationContextAware { @SuppressWarnings("NullAway.Init") private ApplicationContext applicationContext; @Override public void setApplicationContext(Applicat...
Assert.state(filename != null, "'filename' must not be null"); registry.registerBeanDefinition(StringUtils.stripFilenameExtension(filename), beanDefinition); } } private Resource[] getResources(String location, String pattern) { try { return this.applicationContext.getResources(ensureTrailingSlash(lo...
repos\spring-boot-4.0.1\module\spring-boot-webservices\src\main\java\org\springframework\boot\webservices\autoconfigure\WebServicesAutoConfiguration.java
2
请完成以下Java代码
public String getProcessInstanceId() { return processInstanceId; } public String getProcessInstanceIds() { return null; } public String getBusinessKey() { return businessKey; } public String getExecutionId() { return executionId; } public String getSup...
public String getTenantId() { return tenantId; } public String getTenantIdLike() { return tenantIdLike; } public boolean isWithoutTenantId() { return withoutTenantId; } public String getName() { return name; } public String getNameLike() { retu...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\ExecutionQueryImpl.java
1
请在Spring Boot框架中完成以下Java代码
public Spec getSpec() { return this.spec; } public static class Spec { /** * Sub-protocols to use in websocket handshake signature. */ private @Nullable String protocols; /** * Maximum allowable frame payload length. */ private DataSize maxFramePayloadLength = DataSize.ofBytes(6553...
public void setMaxFramePayloadLength(DataSize maxFramePayloadLength) { this.maxFramePayloadLength = maxFramePayloadLength; } public boolean isHandlePing() { return this.handlePing; } public void setHandlePing(boolean handlePing) { this.handlePing = handlePing; } public boolean isCompres...
repos\spring-boot-4.0.1\module\spring-boot-rsocket\src\main\java\org\springframework\boot\rsocket\autoconfigure\RSocketProperties.java
2
请在Spring Boot框架中完成以下Java代码
public class HazelcastProperties { /** * The location of the configuration file to use to initialize Hazelcast. */ private @Nullable Resource config; public @Nullable Resource getConfig() { return this.config; } public void setConfig(@Nullable Resource config) { this.config = config; }
/** * Resolve the config location if set. * @return the location or {@code null} if it is not set * @throws IllegalArgumentException if the config attribute is set to an unknown * location */ public @Nullable Resource resolveConfigLocation() { Resource config = this.config; if (config == null) { retur...
repos\spring-boot-4.0.1\module\spring-boot-hazelcast\src\main\java\org\springframework\boot\hazelcast\autoconfigure\HazelcastProperties.java
2
请在Spring Boot框架中完成以下Java代码
public void set50(String shade50) { this.shade50 = shade50; } public void set100(String shade100) { this.shade100 = shade100; } public void set200(String shade200) { this.shade200 = shade200; } public void set300(String shade300) { this.shade300 = shade300; } public void set400(String sh...
public void set600(String shade600) { this.shade600 = shade600; } public void set700(String shade700) { this.shade700 = shade700; } public void set800(String shade800) { this.shade800 = shade800; } public void set900(String shade900) { this.shade900 = shade900; } } }
repos\spring-boot-admin-master\spring-boot-admin-server-ui\src\main\java\de\codecentric\boot\admin\server\ui\config\AdminServerUiProperties.java
2
请完成以下Java代码
default Optional<TableRecordReference> getTableRecordReferenceIfPossible(@NonNull final DocumentPath documentPath) { if (documentPath.getWindowIdOrNull() == null || !documentPath.getWindowId().isInt()) { return Optional.empty(); } final DocumentEntityDescriptor rootEntityDescriptor = getDocumentEntityDescr...
return Optional.of(TableRecordReference.of(tableName, recordId)); } else { final DocumentId includedRowId = documentPath.getSingleRowId(); if (!includedRowId.isInt()) { return Optional.empty(); } final DocumentEntityDescriptor includedEntityDescriptor = rootEntityDescriptor.getIncludedEntityByD...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\descriptor\factory\DocumentDescriptorFactory.java
1
请完成以下Java代码
public class SetUserPictureCmd implements Command<Void>, Serializable { private static final long serialVersionUID = 1L; protected String userId; protected Picture picture; public SetUserPictureCmd(String userId, Picture picture) { this.userId = userId; this.picture = picture; } public Void exec...
pictureInfo = new IdentityInfoEntity(); pictureInfo.setUserId(userId); pictureInfo.setKey("picture"); commandContext.getDbEntityManager().insert(pictureInfo); } ByteArrayEntity byteArrayEntity = new ByteArrayEntity(picture.getMimeType(), picture.getBytes(), ResourceTypes.REPOSITORY); com...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\cmd\SetUserPictureCmd.java
1
请完成以下Java代码
public static long updateDateField() { Document document = new Document().append("title", "Piano lessons"); Bson update = Updates.currentDate("updatedAt"); UpdateOptions options = new UpdateOptions().upsert(false); try { UpdateResult result = collection.updateOne(document, up...
public static long deleteEventsByDate(LocalDate from, LocalDate to) { Bson query = and(gte("dateTime", from), lt("dateTime", to)); try { DeleteResult result = collection.deleteMany(query); return result.getDeletedCount(); } catch (MongoException me) { System.e...
repos\tutorials-master\persistence-modules\java-mongodb-queries\src\main\java\com\baeldung\mongo\crud\CrudClient.java
1
请在Spring Boot框架中完成以下Java代码
public void setScopeType(String scopeType) { this.scopeType = scopeType; } @Override public String getScopeDefinitionId() { return scopeDefinitionId; } @Override public void setScopeDefinitionId(String scopeDefinitionId) { this.scopeDefinitionId = scopeDefinitionId; ...
return null; } @Override public void setDoubleValue(Double doubleValue) { } @Override public byte[] getBytes() { return null; } @Override public void setBytes(byte[] bytes) { } @Override public Object getCachedValue() { return null; } @Overr...
repos\flowable-engine-main\modules\flowable-variable-service\src\main\java\org\flowable\variable\service\impl\persistence\entity\TransientVariableInstance.java
2
请完成以下Java代码
public int getAD_PrinterHW_ID() { return get_ValueAsInt(COLUMNNAME_AD_PrinterHW_ID); } @Override public void setAD_PrinterHW_MediaTray_ID (int AD_PrinterHW_MediaTray_ID) { if (AD_PrinterHW_MediaTray_ID < 1) set_ValueNoCheck (COLUMNNAME_AD_PrinterHW_MediaTray_ID, null); else set_ValueNoCheck (COLUMN...
set_Value (COLUMNNAME_Name, Name); } @Override public java.lang.String getName() { return (java.lang.String)get_Value(COLUMNNAME_Name); } @Override public void setTrayNumber (int TrayNumber) { set_ValueNoCheck (COLUMNNAME_TrayNumber, Integer.valueOf(TrayNumber)); } @Override public int getTrayNumber(...
repos\metasfresh-new_dawn_uat\backend\de.metas.printing\de.metas.printing.base\src\main\java-gen\de\metas\printing\model\X_AD_PrinterHW_MediaTray.java
1
请在Spring Boot框架中完成以下Java代码
RSocketStrategiesCustomizer jackson2JsonRSocketStrategyCustomizer(ObjectMapper objectMapper) { return (strategy) -> { strategy.decoder( new org.springframework.http.codec.json.Jackson2JsonDecoder(objectMapper, SUPPORTED_TYPES)); strategy.encoder( new org.springframework.http.codec.json.Jacks...
super(ConfigurationPhase.PARSE_CONFIGURATION); } @ConditionalOnMissingClass("tools.jackson.databind.json.JsonMapper") static class NoJackson { } @ConditionalOnProperty(name = "spring.rsocket.preferred-mapper", havingValue = "jackson2") static class Jackson2Preferred { } } }
repos\spring-boot-4.0.1\module\spring-boot-rsocket\src\main\java\org\springframework\boot\rsocket\autoconfigure\RSocketStrategiesAutoConfiguration.java
2
请完成以下Java代码
protected List<Integer> extractFeature(String text, FeatureMap featureMap) { List<Integer> featureList = new LinkedList<Integer>(); String givenName = extractGivenName(text); // 特征模板1:g[0] addFeature("1" + givenName.substring(0, 1), featureMap, featureList); // 特征模板2:g[1] ...
/** * 去掉姓氏,截取中国人名中的名字 * * @param name 姓名 * @return 名 */ public static String extractGivenName(String name) { if (name.length() <= 2) return "_" + name.substring(name.length() - 1); else return name.substring(name.length() - 2); } }
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\model\perceptron\PerceptronNameGenderClassifier.java
1
请完成以下Java代码
public HttpServletRequest transform(HttpServletRequest request) { HttpServletRequest wrapped = new AttributesSupportingHttpServletRequest(request); ServletRequestPathUtils.parseAndCache(wrapped); return wrapped; } private static final class AttributesSupportingHttpServletRequest extends HttpServletRequestWrapp...
} @Override public void setAttribute(String name, Object value) { this.attributes.put(name, value); } @Override public void removeAttribute(String name) { this.attributes.remove(name); } } }
repos\spring-security-main\web\src\main\java\org\springframework\security\web\access\PathPatternRequestTransformer.java
1
请完成以下Java代码
public final class AndRequestMatcher implements RequestMatcher { private final List<RequestMatcher> requestMatchers; /** * Creates a new instance * @param requestMatchers the {@link RequestMatcher} instances to try */ public AndRequestMatcher(List<RequestMatcher> requestMatchers) { Assert.notEmpty(requestM...
public MatchResult matcher(HttpServletRequest request) { Map<String, String> variables = new LinkedHashMap<>(); for (RequestMatcher matcher : this.requestMatchers) { MatchResult result = matcher.matcher(request); if (!result.isMatch()) { return MatchResult.notMatch(); } variables.putAll(result.getVa...
repos\spring-security-main\web\src\main\java\org\springframework\security\web\util\matcher\AndRequestMatcher.java
1
请完成以下Java代码
public I_M_AttributeSetInstance getM_AttributeSetInstance() throws RuntimeException { return (I_M_AttributeSetInstance)MTable.get(getCtx(), I_M_AttributeSetInstance.Table_Name) .getPO(getM_AttributeSetInstance_ID(), get_TrxName()); } /** Set Attribute Set Instance. @param M_AttributeSetInstance_ID Produ...
set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); else set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @return Product, Service, Item */ public int getM_Product_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); if (ii == null) return...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_LandedCostAllocation.java
1
请完成以下Java代码
public static HierarchyContract cast(@Nullable final CommissionContract contract) { return castOrEmpty(contract) .orElseThrow(() -> new AdempiereException("Cannot cast the given contract to HierarchyContract") .appendParametersToMessage() .setParameter("contract", contract)); } @JsonCreator @Buil...
this.pointsPrecision = assumeGreaterOrEqualToZero(pointsPrecision, "pointsPrecision"); this.commissionSettingsLineId = commissionSettingsLineId; this.isSimulation = isSimulation; } /** * Note: add "Hierarchy" as method parameters if and when we have a commission type where it makes a difference. */ public P...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\commission\commissioninstance\businesslogic\algorithms\hierarchy\HierarchyContract.java
1
请完成以下Java代码
public void onQtyCU_Set_Intercept(final I_DD_OrderLine ddOrderLine) { // Make sure the QtyTU is not changed for the second time if the QtyCU change was triggered by the QtyTU setting in the first place final boolean qtyTUChanged = InterfaceWrapperHelper.isValueChanged(ddOrderLine, I_DD_OrderLine.COLUMNNAME_QtyEnte...
final IHUPackingAware packingAware = new DDOrderLineHUPackingAware(ddOrderLine); // if the QtyTU was set to 0 or deleted, do nothing if (packingAware.getQtyTU().signum() <= 0) { return; } // if the QtyTU was changed but there is no M_HU_PI_Item_Product set, do nothing if (packingAware.getM_HU_PI_Item_P...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\distribution\ddorder\interceptor\DD_OrderLine.java
1
请在Spring Boot框架中完成以下Java代码
public class AmazonAthenaConfiguration { private final AwsConfigurationProperties awsConfigurationProperties; @Bean public AthenaClient athenaClient() { return AthenaClient.builder() .credentialsProvider(constructCredentials()) .build(); } @Bean pub...
@Bean public ResultConfiguration resultConfiguration() { final var outputLocation = awsConfigurationProperties.getAthena().getS3OutputLocation(); return ResultConfiguration.builder() .outputLocation(outputLocation) .build(); } private StaticCredentialsProvide...
repos\tutorials-master\aws-modules\amazon-athena\src\main\java\com\baeldung\athena\configuration\AmazonAthenaConfiguration.java
2
请完成以下Java代码
public class AD_User_Regenerate2FA_ForLoggedInUser extends JavaProcess implements IProcessPrecondition { private final User2FAService user2FAService = SpringContextHolder.instance.getBean(User2FAService.class); @Override public ProcessPreconditionsResolution checkPreconditionsApplicable(final @NonNull IProcessPreco...
return ProcessPreconditionsResolution.accept(); } @Override protected String doIt() { final UserId userId = UserId.ofRepoId(getRecord_ID()); final TOTPInfo totpInfo = user2FAService.enable(userId, true); getResult().setDisplayQRCode(ProcessExecutionResult.DisplayQRCode.builder() .code(totpInfo.toQRCodeS...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\security\user_2fa\process\AD_User_Regenerate2FA_ForLoggedInUser.java
1
请完成以下Java代码
public class DebeziumListener { private final Executor executor = Executors.newSingleThreadExecutor(); private final DebeziumEngine<RecordChangeEvent<SourceRecord>> debeziumEngine; public DebeziumListener(Configuration customerConnectorConfiguration) { this.debeziumEngine = DebeziumEngine.crea...
// log.info("Updated Data: {} with Operation: {}", payload, operation.name()); // } // } } @PostConstruct private void start() { this.executor.execute(debeziumEngine); } @PreDestroy private void stop() throws IOException { if (Objects.nonNull(this.de...
repos\springboot-demo-master\postgre\src\main\java\com\et\postgres\listener\DebeziumListener.java
1
请在Spring Boot框架中完成以下Java代码
public @Nullable String getDefaultVersion() { return this.defaultVersion; } public void setDefaultVersion(@Nullable String defaultVersion) { this.defaultVersion = defaultVersion; } public @Nullable List<String> getSupported() { return this.supported; } public void setSupported(@Nullable List<Str...
return this.header; } public void setHeader(@Nullable String header) { this.header = header; } public @Nullable String getQueryParameter() { return this.queryParameter; } public void setQueryParameter(@Nullable String queryParameter) { this.queryParameter = queryParameter; } publ...
repos\spring-boot-4.0.1\module\spring-boot-webflux\src\main\java\org\springframework\boot\webflux\autoconfigure\WebFluxProperties.java
2
请完成以下Java代码
private static int[][] transpose(int[][] input) { int[][] result = new int[input.length][]; for (int x = 0; x < input.length; ++x) { result[x] = new int[input[0].length]; for (int y = 0; y < input[0].length; ++y) { result[x][y] = input[y][x]; } ...
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Board board1 = (Board) o; return Arrays.deepEquals(board, board1.board); } @Override public ...
repos\tutorials-master\algorithms-modules\algorithms-miscellaneous-6\src\main\java\com\baeldung\algorithms\play2048\Board.java
1
请完成以下Java代码
public CostDetailCreateRequest withCostElement(@NonNull final CostElement costElement) { if (Objects.equals(this.costElement, costElement)) { return this; } return toBuilder().costElement(costElement).build(); } public CostDetailCreateRequest withAmount(@NonNull final CostAmount amt) { return withAmo...
return this; } return toBuilder().productId(productId).qty(qty).build(); } public CostDetailCreateRequest withQty(@NonNull final Quantity qty) { if (Objects.equals(this.qty, qty)) { return this; } return toBuilder().qty(qty).build(); } public CostDetailCreateRequest withQtyZero() { return wit...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\costing\CostDetailCreateRequest.java
1
请完成以下Java代码
public int getRfQ_Win_PrintFormat_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_RfQ_Win_PrintFormat_ID); if (ii == null) return 0; return ii.intValue(); } /** * RfQType AD_Reference_ID=540661 * Reference name: RfQType */ public static final int RFQTYPE_AD_Reference_ID=540661; /** Default = ...
@param RfQType Ausschreibung Art */ @Override public void setRfQType (java.lang.String RfQType) { set_Value (COLUMNNAME_RfQType, RfQType); } /** Get Ausschreibung Art. @return Ausschreibung Art */ @Override public java.lang.String getRfQType () { return (java.lang.String)get_Value(COLUMNNAME_RfQTyp...
repos\metasfresh-new_dawn_uat\backend\de.metas.rfq\src\main\java-gen\de\metas\rfq\model\X_C_RfQ_Topic.java
1
请完成以下Java代码
public static VariableValueDto fromFormPart(String type, FormPart binaryDataFormPart) { VariableValueDto dto = new VariableValueDto(); dto.type = type; dto.value = binaryDataFormPart.getBinaryContent(); if (ValueType.FILE.getName().equals(fromRestApiTypeName(type))) { String contentType = binar...
dto.valueInfo.put(FileValueType.VALUE_INFO_FILE_MIME_TYPE, mimeType.getBaseType()); String encoding = mimeType.getParameter("encoding"); if (encoding != null) { dto.valueInfo.put(FileValueType.VALUE_INFO_FILE_ENCODING, encoding); } String transientString = mimeType.getParameter("transi...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\VariableValueDto.java
1
请完成以下Java代码
public class FakeNumExample { // Here we use some String constants to represents countries. static final @Fenum("country") String ITALY = "IT"; static final @Fenum("country") String US = "US"; static final @Fenum("country") String UNITED_KINGDOM = "UK"; // Here we use other String constants to rep...
// parameter is a String that represent a planet. void greetPlanets(@Fenum("planet") String planet) { System.out.println("Hello " + planet); } public static void main(String[] args) { FakeNumExample obj = new FakeNumExample(); // This will fail because we pass a planet-String to a...
repos\tutorials-master\checker-framework\src\main\java\com\baeldung\typechecker\FakeNumExample.java
1
请完成以下Java代码
public String getResultVariableName() { return resultVariableName; } public void setResultVariableName(String resultVariableName) { this.resultVariableName = resultVariableName; } public List<String> getRuleNames() { return ruleNames; } public void setRuleNames(List<St...
this.className = className; } public BusinessRuleTask clone() { BusinessRuleTask clone = new BusinessRuleTask(); clone.setValues(this); return clone; } public void setValues(BusinessRuleTask otherElement) { super.setValues(otherElement); setResultVariableName(ot...
repos\Activiti-develop\activiti-core\activiti-bpmn-model\src\main\java\org\activiti\bpmn\model\BusinessRuleTask.java
1
请完成以下Java代码
public JsonResolveHUResponse resolveHU(@RequestBody @NonNull final JsonResolveHURequest request) { assertApplicationAccess(); final ResolveHUResponse response = jobService.resolveHU( ResolveHURequest.builder() .scannedCode(request.getScannedCode()) .callerId(Env.getLoggedUserId()) .wfProcess...
{ assertApplicationAccess(); final WFProcessId wfProcessId = WFProcessId.ofString(wfProcessIdStr); final InventoryLineId lineId = InventoryLineId.ofObject(lineIdStr); final InventoryLineHUId lineHUId = InventoryLineHUId.ofObject(lineHUIdStr); final InventoryLine line = jobService.getById(wfProcessId, Env.ge...
repos\metasfresh-new_dawn_uat\backend\de.metas.inventory.mobileui\src\main\java\de\metas\inventory\mobileui\rest_api\InventoryRestController.java
1
请完成以下Java代码
public void springUnSupportedFieldPatch(HttpServletResponse response) throws IOException { response.sendError(HttpStatus.METHOD_NOT_ALLOWED.value()); } // @Validate For Validating Path Variables and Request Parameters @ExceptionHandler(ConstraintViolationException.class) public void constraintV...
//Get all errors List<String> errors = ex.getBindingResult() .getFieldErrors() .stream() .map(x -> x.getDefaultMessage()) .collect(Collectors.toList()); body.put("errors", errors); return new ResponseEntity<>(body, headers, status...
repos\spring-boot-master\spring-rest-error-handling\src\main\java\com\mkyong\error\CustomGlobalExceptionHandler.java
1
请完成以下Java代码
public Mono<OAuth2AuthorizationRequest> loadAuthorizationRequest(ServerWebExchange exchange) { String state = getStateParameter(exchange); if (state == null) { return Mono.empty(); } // @formatter:off return getSessionAttributes(exchange) .filter((sessionAttrs) -> sessionAttrs.containsKey(this.sessionA...
sessionAttrs.remove(this.sessionAttributeName); return Mono.just(authorizationRequest); } return Mono.empty(); }); // @formatter:on } /** * Gets the state parameter from the {@link ServerHttpRequest} * @param exchange the exchange to use * @return the state parameter or null if not found ...
repos\spring-security-main\oauth2\oauth2-client\src\main\java\org\springframework\security\oauth2\client\web\server\WebSessionOAuth2ServerAuthorizationRequestRepository.java
1
请完成以下Java代码
public String classify(String text) throws IllegalArgumentException, IllegalStateException { Map<String, Double> scoreMap = predict(text); return CollectionUtility.max(scoreMap); } @Override public String classify(Document document) throws IllegalArgumentException, IllegalStateExceptio...
@Override public Map<String, Double> predict(Document document) { AbstractModel model = getModel(); if (model == null) { throw new IllegalStateException("未训练模型!无法执行预测!"); } if (document == null) { throw new IllegalArgumentException("参数 text...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\classification\classifiers\AbstractClassifier.java
1
请在Spring Boot框架中完成以下Java代码
public static String getErrorMessage(ConstraintViolation<Object> constraintViolation) { ConstraintDescriptor<?> constraintDescriptor = constraintViolation.getConstraintDescriptor(); String property = (String) constraintDescriptor.getAttributes().get("fieldName"); if (StringUtils.isEmpty(property...
@Bean public LocalValidatorFactoryBean validatorFactoryBean() { LocalValidatorFactoryBean localValidatorFactoryBean = new LocalValidatorFactoryBean(); localValidatorFactoryBean.setConfigurationInitializer(configuration -> { ((ConfigurationImpl) configuration).addMapping(getCustomConstrai...
repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\service\ConstraintValidator.java
2
请完成以下Java代码
public void setProcessDefinitionVersion(Integer processDefinitionVersion) { this.processDefinitionVersion = processDefinitionVersion; } public void setProcessDefinitionName(String processDefinitionName) { this.processDefinitionName = processDefinitionName; } public void setRootProcessI...
@Override public String toString() { return ( "ProcessInstance{" + "id='" + id + '\'' + ", name='" + name + '\'' + ", processDefinitionId='" + processDefinitionId + '\'' + ", p...
repos\Activiti-develop\activiti-core\activiti-api-impl\activiti-api-process-model-impl\src\main\java\org\activiti\api\runtime\model\impl\ProcessInstanceImpl.java
1
请完成以下Java代码
public void setCarrier_Service_ID (final int Carrier_Service_ID) { if (Carrier_Service_ID < 1) set_Value (COLUMNNAME_Carrier_Service_ID, null); else set_Value (COLUMNNAME_Carrier_Service_ID, Carrier_Service_ID); } @Override public int getCarrier_Service_ID() { return get_ValueAsInt(COLUMNNAME_Carri...
@Override public int getM_ShipmentSchedule_Carrier_Service_ID() { return get_ValueAsInt(COLUMNNAME_M_ShipmentSchedule_Carrier_Service_ID); } @Override public void setM_ShipmentSchedule_ID (final int M_ShipmentSchedule_ID) { if (M_ShipmentSchedule_ID < 1) set_Value (COLUMNNAME_M_ShipmentSchedule_ID, null...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_ShipmentSchedule_Carrier_Service.java
1
请完成以下Java代码
public void setCosts (BigDecimal Costs) { set_Value (COLUMNNAME_Costs, Costs); } /** Get Costs. @return Costs in accounting currency */ public BigDecimal getCosts () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Costs); if (bd == null) return Env.ZERO; return bd; } /** Set Description. ...
@return Alphanumeric identifier of the entity */ public String getName () { return (String)get_Value(COLUMNNAME_Name); } /** Get Record ID/ColumnName @return ID/ColumnName pair */ public KeyNamePair getKeyNamePair() { return new KeyNamePair(get_ID(), getName()); } /** ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_Campaign.java
1
请在Spring Boot框架中完成以下Java代码
public boolean isDefault() { return true; } }, /** * OpenMetrics text version 1.0.0. */ CONTENT_TYPE_OPENMETRICS_100(OpenMetricsTextFormatWriter.CONTENT_TYPE) { @Override void write(ExpositionFormats expositionFormats, OutputStream outputStream, MetricSnapshots snapshots) throws IOException { ...
}; private final MimeType mimeType; PrometheusOutputFormat(String mimeType) { this.mimeType = MimeTypeUtils.parseMimeType(mimeType); } @Override public MimeType getProducedMimeType() { return this.mimeType; } abstract void write(ExpositionFormats expositionFormats, OutputStream outputStream, MetricSnapsh...
repos\spring-boot-4.0.1\module\spring-boot-micrometer-metrics\src\main\java\org\springframework\boot\micrometer\metrics\autoconfigure\export\prometheus\PrometheusOutputFormat.java
2
请完成以下Spring Boot application配置
spring: datasource: url: jdbc:h2:mem:passkey sql: init: mode: always security: webauthn: rpName: "WebAuthn Demo" # Replace with the domainname of your application rpId: localhost allowedOrigins: # Replace with the UR
L of your application. Notice: this _MUST_ be an HTTPS URL with a valid certificate - "http://localhost:8080"
repos\tutorials-master\spring-security-modules\spring-security-passkey\src\main\resources\application-local.yaml
2
请完成以下Java代码
public void purgeExpiredSessionsNoFail() { try { purgeExpiredSessions(); } catch (final Throwable ex) { logger.warn("Failed purging expired sessions. Ignored.", ex); } } public void purgeExpiredSessions() { final Stopwatch stopwatch = Stopwatch.createStarted();
int countExpiredSessions = 0; final List<MapSession> sessionsToCheck = new ArrayList<>(sessions.values()); for (final MapSession session : sessionsToCheck) { if (session.isExpired()) { deleteAndFireEvent(session.getId(), true /* expired */); countExpiredSessions++; } } logger.debug("Purged ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\session\FixedMapSessionRepository.java
1
请完成以下Java代码
public void setReadWrite (boolean rw) { if (super.isEditable() != rw) super.setEditable (rw); setBackground(false); } // setEditable /** * Is it possible to edit * @return true, if editable */ @Override public boolean isReadWrite() { return super.isEditable(); } // isReadWrite /** * S...
*/ @Override public void setValue (Object value) { if (value == null) setText(""); else setText(value.toString()); } // setValue /** * Return Editor value * @return current value */ @Override public Object getValue() { return new String(super.getPassword()); } // getValue /** * R...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\swing\CPassword.java
1
请完成以下Java代码
protected RouteDefinition buildRouteDefinition(Expression urlExpr, ServiceInstance serviceInstance) { String serviceId = serviceInstance.getServiceId(); RouteDefinition routeDefinition = new RouteDefinition(); routeDefinition.setId(this.routeIdPrefix + serviceId); String uri = urlExpr.getValue(this.evalCtxt, se...
} @Override public int getPort() { return delegate.getPort(); } @Override public boolean isSecure() { return delegate.isSecure(); } @Override public URI getUri() { return delegate.getUri(); } @Override public @Nullable Map<String, String> getMetadata() { return delegate.getMetadata...
repos\spring-cloud-gateway-main\spring-cloud-gateway-server-webflux\src\main\java\org\springframework\cloud\gateway\discovery\DiscoveryClientRouteDefinitionLocator.java
1
请完成以下Java代码
public int hashCode() { return getClass().hashCode(); } /** * Dump out abstract syntax tree for a given expression * * @param args array with one element, containing the expression string */ public static void main(String[] args) { if (args.length != 1) { Sys...
public VariableMapper getVariableMapper() { return null; } @Override public FunctionMapper getFunctionMapper() { return null; } @Override public ELResolver getELResolver() { ...
repos\Activiti-develop\activiti-core-common\activiti-juel-jakarta\src\main\java\org\activiti\core\el\juel\tree\impl\Builder.java
1
请在Spring Boot框架中完成以下Java代码
public class LimitAspect { private final RedisTemplate<Object,Object> redisTemplate; private static final Logger logger = LoggerFactory.getLogger(LimitAspect.class); public LimitAspect(RedisTemplate<Object,Object> redisTemplate) { this.redisTemplate = redisTemplate; } @Pointcut("@annotati...
ImmutableList<Object> keys = ImmutableList.of(StringUtils.join(limit.prefix(), "_", key, "_", request.getRequestURI().replace("/","_"))); String luaScript = buildLuaScript(); RedisScript<Long> redisScript = new DefaultRedisScript<>(luaScript, Long.class); Long count = redisTemplate.execute(redi...
repos\eladmin-master\eladmin-common\src\main\java\me\zhengjie\aspect\LimitAspect.java
2
请完成以下Java代码
public ResponseEntity<Object> queryAllTables(){ return new ResponseEntity<>(generatorService.getTables(), HttpStatus.OK); } @ApiOperation("查询数据库数据") @GetMapping(value = "/tables") public ResponseEntity<PageResult<TableInfo>> queryTables(@RequestParam(defaultValue = "") String name, ...
return new ResponseEntity<>(HttpStatus.OK); } @ApiOperation("生成代码") @PostMapping(value = "/{tableName}/{type}") public ResponseEntity<Object> generatorCode(@PathVariable String tableName, @PathVariable Integer type, HttpServletRequest request, HttpServletResponse response){ if(!generatorEnabled...
repos\eladmin-master\eladmin-generator\src\main\java\me\zhengjie\rest\GeneratorController.java
1
请完成以下Java代码
public String jwtFromUser(User user) { final var messageToSign = JWT_HEADER.concat(".").concat(jwtPayloadFromUser(user)); final var signature = HmacSHA256.sign(secret, messageToSign); return messageToSign.concat(".").concat(base64URLFromBytes(signature)); } private String jwtPayloadFrom...
final var signatureBytes = HmacSHA256.sign(secret, splintedTokens[0].concat(".").concat(splintedTokens[1])); if (!base64URLFromBytes(signatureBytes).equals(splintedTokens[2])) { throw new IllegalArgumentException("Token has invalid signature: " + jwtToken); } try { final...
repos\realworld-springboot-java-master\src\main\java\io\github\raeperd\realworld\infrastructure\jwt\HmacSHA256JWTService.java
1
请完成以下Java代码
public SqlAndParamsExpression build() { return new SqlAndParamsExpression(this); } public Builder appendIfNotEmpty(@Nullable final String sqlToAppend) { if (sqlToAppend != null) { sql.appendIfNotEmpty(sqlToAppend); } return this; } public Builder append(@NonNull final String sqlToAppend, final...
if (sqlToAppend != null) { sql.append(sqlToAppend); } return this; } public Builder appendSqlList(@NonNull final String sqlColumnName, @NonNull final Collection<?> values) { final String sqlToAppend = DB.buildSqlList(sqlColumnName, values, sqlParams); sql.append(sqlToAppend); return this; ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\view\descriptor\SqlAndParamsExpression.java
1
请在Spring Boot框架中完成以下Java代码
public void setId(String _id) { this._id = _id; } public Region label(String label) { this.label = label; return this; } /** * Get label * @return label **/ @Schema(example = "Nordost", description = "") public String getLabel() { return label; } public void setLabel(String l...
this.timestamp = timestamp; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Region region = (Region) o; return Objects.equals(this._id, region._id) && Objects.equals...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\alberta\alberta-patient-api\src\main\java\io\swagger\client\model\Region.java
2
请完成以下Java代码
public class DLM_Partition_Create_Async extends AbstractDLM_Partition_Create { private final IDLMService dlmService = Services.get(IDLMService.class); @Param(mandatory = true, parameterName = I_DLM_Partition_Config.COLUMNNAME_DLM_Partition_Config_ID) private I_DLM_Partition_Config configDB; /** * How many async...
recordToAttach = TableRecordReference.of(adTable.getAD_Table_ID(), recordId); } final PartitionConfig config = dlmService.loadPartitionConfig(configDB); final CreatePartitionAsyncRequest request = PartitionRequestFactory.asyncBuilder() .setConfig(config) .setOldestFirst(oldestFirst) .setRecordToAtta...
repos\metasfresh-new_dawn_uat\backend\de.metas.dlm\base\src\main\java\de\metas\dlm\partitioner\process\DLM_Partition_Create_Async.java
1
请在Spring Boot框架中完成以下Java代码
public class NewRelicProperties extends StepRegistryProperties { /** * Whether to send the meter name as the event type instead of using the 'event-type' * configuration property value. Can be set to 'true' if New Relic guidelines are not * being followed or event types consistent with previous Spring Boot rele...
public String getEventType() { return this.eventType; } public void setEventType(String eventType) { this.eventType = eventType; } public ClientProviderType getClientProviderType() { return this.clientProviderType; } public void setClientProviderType(ClientProviderType clientProviderType) { this.client...
repos\spring-boot-4.0.1\module\spring-boot-micrometer-metrics\src\main\java\org\springframework\boot\micrometer\metrics\autoconfigure\export\newrelic\NewRelicProperties.java
2
请完成以下Java代码
public int getExternalSystem_Config_ID() { return get_ValueAsInt(COLUMNNAME_ExternalSystem_Config_ID); } @Override public void setExternalSystem_Config_ProCareManagement_ID (final int ExternalSystem_Config_ProCareManagement_ID) { if (ExternalSystem_Config_ProCareManagement_ID < 1) set_ValueNoCheck (COLUM...
return get_ValueAsInt(COLUMNNAME_ExternalSystem_Config_ProCareManagement_ID); } @Override public void setExternalSystemValue (final String ExternalSystemValue) { set_Value (COLUMNNAME_ExternalSystemValue, ExternalSystemValue); } @Override public String getExternalSystemValue() { return get_ValueAsString(...
repos\metasfresh-new_dawn_uat\backend\de.metas.externalsystem\src\main\java-gen\de\metas\externalsystem\model\X_ExternalSystem_Config_ProCareManagement.java
1
请完成以下Java代码
public void setM_AttributeSetInstance_ID(final int M_AttributeSetInstance_ID) { invoiceLine.setM_AttributeSetInstance_ID(M_AttributeSetInstance_ID); } @Override public int getC_UOM_ID() { return invoiceLine.getC_UOM_ID(); } @Override public void setC_UOM_ID(final int uomId) { invoiceLine.setC_UOM_ID(uo...
} @Override public BigDecimal getQtyTU() { return invoiceLine.getQtyEnteredTU(); } @Override public void setQtyTU(final BigDecimal qtyPacks) { invoiceLine.setQtyEnteredTU(qtyPacks); } @Override public void setC_BPartner_ID(final int partnerId) { values.setC_BPartner_ID(partnerId); } @Override pu...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\adempiere\gui\search\impl\InvoiceLineHUPackingAware.java
1
请完成以下Java代码
public void setText (String text) { m_text.setText (text); validateOnTextChanged(); } // setText /** * Get Text (clear) * @return text */ public String getText () { String text = m_text.getText(); return text; } // getText /** * Focus Gained. * Enabled with Obscure * @param e event *...
public void focusLost (FocusEvent e) { m_infocus = false; setText(getText()); // obscure } // focus Lost // metas @Override public boolean isAutoCommit() { return true; } @Override public final ICopyPasteSupportEditor getCopyPasteSupport() { return m_text == null ? NullCopyPasteSupportEditor.instan...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\grid\ed\VURL.java
1
请完成以下Java代码
public <R> R forProcessInstanceWritable(final DocumentId pinstanceId, final IDocumentChangesCollector changesCollector, final Function<IProcessInstanceController, R> processor) { final ViewActionInstance actionInstance = getActionInstance(pinstanceId); // Make sure the process was not already executed. // If it...
{ throw new EntityNotFoundException("No view action instance found for " + pinstanceId); } return actionInstance; } private DocumentId nextPInstanceId() { final int nextId = nextIdSupplier.incrementAndGet(); return DocumentId.ofString(viewId + "_" + nextId); } public static String extractVie...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\process\view\ViewProcessInstancesRepository.java
1
请完成以下Java代码
public static SecuritySignResp sign(SecuritySignReq req) { SecretKey secretKey = SecureUtil.generateKey(ALGORITHM); byte[] key= secretKey.getEncoded(); String prikey=req.getPrikey(); String data=req.getData(); AES aes = SecureUtil.aes(key); aes.getSecretKey().getEncoded(...
resp.setAesKey(Base64Encoder.encode(encryptAesKey)); resp.setData(encrptData); resp.setSignData(Base64Encoder.encode(signed)); return resp; } public static MyKeyPair generateKeyPair(){ KeyPair keyPair= SecureUtil.generateKeyPair(SignAlgorithm.SHA1withRSA.getValue(),2048); ...
repos\JeecgBoot-main\jeecg-boot\jeecg-boot-base-core\src\main\java\org\jeecg\common\util\security\SecurityTools.java
1
请在Spring Boot框架中完成以下Java代码
public List<TimerJobEntity> findTimerJobsByProcessInstanceId(String processInstanceId) { return getTimerJobEntityManager().findJobsByProcessInstanceId(processInstanceId); } @Override public List<TimerJobEntity> findJobsByTypeAndProcessDefinitionId(String type, String processDefinitionId) { ...
public TimerJobEntity createTimerJob() { return getTimerJobEntityManager().create(); } @Override public void insertTimerJob(TimerJobEntity timerJob) { getTimerJobEntityManager().insert(timerJob); } @Override public void deleteTimerJob(TimerJobEntity timerJob) { getTimer...
repos\flowable-engine-main\modules\flowable-job-service\src\main\java\org\flowable\job\service\impl\TimerJobServiceImpl.java
2
请完成以下Java代码
public static HistoricDecisionInstanceDto fromHistoricDecisionInstance(HistoricDecisionInstance historicDecisionInstance) { HistoricDecisionInstanceDto dto = new HistoricDecisionInstanceDto(); dto.id = historicDecisionInstance.getId(); dto.decisionDefinitionId = historicDecisionInstance.getDecisionDefiniti...
for (HistoricDecisionInputInstance input : historicDecisionInstance.getInputs()) { HistoricDecisionInputInstanceDto inputDto = HistoricDecisionInputInstanceDto.fromHistoricDecisionInputInstance(input); inputs.add(inputDto); } dto.inputs = inputs; } catch (ProcessEngineException e) { ...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\history\HistoricDecisionInstanceDto.java
1
请完成以下Java代码
protected void prepare() { final ProcessInfoParameter[] parameters = this.getParametersAsArray(); for (final ProcessInfoParameter p : parameters) { if (p.getParameterName().equals("CalendarYear")) { year = p.getParameter().toString(); return; } } year = SystemTime.asZonedDateTime().getYear()...
{ final String monthAsString = month + ""; final int days = selectedYear.atMonth(month).lengthOfMonth(); for (int day = 1; day <= days; day++) { final String dayAsString = day + ""; insertStmt.setString(2, monthAsString); insertStmt.setString(3, dayAsString); insertStmt.setString(5, ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\adempiere\process\UpdateSequenceNo.java
1
请在Spring Boot框架中完成以下Java代码
public class PostgresqlPubSubExample { private static final Logger log = LoggerFactory.getLogger(PostgresqlPubSubExample.class); private final Map<String,BigDecimal> orderSummary = new HashMap<>(); private final ObjectMapper om = new ObjectMapper(); private final Semaphore orderSemaphore ...
order.getQuantity(), order.getPrice()); BigDecimal orderTotal = order.getQuantity().multiply(order.getPrice()); if ( order.getOrderType() == OrderType.SELL) { orderTotal = orderTotal.negate(); } BigDecimal sum = orderSummary.get(order.getS...
repos\tutorials-master\spring-integration\src\main\java\com\baeldung\subflows\postgresqlnotify\PostgresqlPubSubExample.java
2
请完成以下Java代码
public void setId(long id) { this.id = id; } @Column(name = "first_name", nullable = false) public String getFirstName() { return firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } @Column(name = "last_name", nullable = false) public String getLastName...
} public void setEmailId(String emailId) { this.emailId = emailId; } @Column(name = "passport_number", nullable = false) public String getPassportNumber() { return passportNumber; } public void setPassportNumber(String passportNumber) { this.passportNumber = passportNumber; } }
repos\Spring-Boot-Advanced-Projects-main\springboot-crud-rest-api-validation\src\main\java\net\alanbinu\springboot\springbootcrudrestapivalidation\model\Employee.java
1
请完成以下Java代码
private static List<String> getAquiredConnectionInfos(final AbstractPoolBackedDataSource poolBackedDataSource) throws SQLException { final C3P0PooledConnectionPoolManager poolManager = AbstractPoolBackedDataSource_MetashfreshObserver.getPoolManager(poolBackedDataSource); final C3P0PooledConnectionPool pool = poolM...
result.add(toInfoString(punchCard)); } return result; } } private static String toInfoString(final PunchCard connectionPunchCard) { final StringBuilder info = new StringBuilder(); final Instant checkoutTime = Instant.ofEpochMilli(connectionPunchCard.checkout_time); info.append("checkout=").append(ch...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\com\mchange\v2\resourcepool\BasicResourcePool_MetasfreshObserver.java
1
请在Spring Boot框架中完成以下Java代码
public @Nullable String getUser() { return this.user; } public void setUser(@Nullable String user) { this.user = user; } public @Nullable String getPassword() { return this.password; } public void setPassword(@Nullable String password) { this.password = password; } public Embedded getEmbedded() { ...
public boolean isEnabled() { return this.enabled; } public void setEnabled(boolean enabled) { this.enabled = enabled; } } public static class Packages { /** * Whether to trust all packages. */ private @Nullable Boolean trustAll; /** * List of specific packages to trust (when not trusti...
repos\spring-boot-4.0.1\module\spring-boot-activemq\src\main\java\org\springframework\boot\activemq\autoconfigure\ActiveMQProperties.java
2
请完成以下Java代码
private void assertNotBuilt() { if (_built != null) { throw new AdempiereException("Filters were already built"); } } private CompositeSqlLookupFilter build() { final IValidationRuleFactory validationRuleFactory = Services.get(IValidationRuleFactory.class); final ArrayList<SqlLookupFilter> filters = ...
public void setCtxColumnName(final String ctxColumnName) { assertNotBuilt(); this.ctxColumnName = ctxColumnName; } public void setDisplayType(final int displayType) { assertNotBuilt(); this.displayType = displayType; } public void addFilter(@NonNull final Collection<IValidationRule> validationRules, @Nu...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\descriptor\sql\CompositeSqlLookupFilterBuilder.java
1
请完成以下Java代码
public class ProductBean { String id; String name; String price; public ProductBean(String id, String name, String price) { super(); this.id = id; this.name = name; this.price = price; } public String getId() { return id; } @Field("id") pro...
return name; } @Field("name") protected void setName(String name) { this.name = name; } public String getPrice() { return price; } @Field("price") protected void setPrice(String price) { this.price = price; } }
repos\tutorials-master\apache-libraries\src\main\java\com\baeldung\apache\solrjava\ProductBean.java
1
请完成以下Java代码
private Map<TableRecordReference, I_C_Order> getSalesOrdersRecordRef(@NonNull final List<I_C_Order> salesOrders) { return salesOrders .stream() .collect(ImmutableMap.toImmutableMap(order -> TableRecordReference.of(I_C_Order.Table_Name, order.getC_Order_ID()), Function.identity())); } @NonNul...
@NonNull private Optional<Map<TableRecordReference, I_Alberta_PrescriptionRequest>> getAlbertaPrescriptionsRecordRefs(@NonNull final Set<OrderId> salesOrderIds) { if (salesOrderIds.isEmpty()) { return Optional.empty(); } return Optional.of(albertaPrescriptionRequestDAO.getByOrderIds(salesOrderIds) ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\order\attachmenteditor\OrderAttachmentRowsLoader.java
1
请在Spring Boot框架中完成以下Java代码
public void applyTo(GenerationContext generationContext, BeanFactoryInitializationCode beanFactoryInitializationCode) { RuntimeHints runtimeHints = generationContext.getRuntimeHints(); for (String locationSuffix : locationSuffixes) { String path = locationPrefix + locationSuffix; ...
logger.debug("Transforming {} to a classpath resource", resource); String marker = "jar!"; String externalFormOfUrl = resource.getURL().toExternalForm(); if (externalFormOfUrl.contains(marker)) { String rest = externalFormOfUrl.substring(externalFormOfUrl.lastIndexOf(...
repos\flowable-engine-main\modules\flowable-spring-boot\flowable-spring-boot-starters\flowable-spring-boot-autoconfigure\src\main\java\org\flowable\spring\boot\aot\BaseAutoDeployResourceContribution.java
2
请完成以下Java代码
public static Access ofCode(@NonNull final String code) { final Access access = accessesByCode.get(code); if (access == null) { throw new AdempiereException("No Access found for code: " + code); } return access; } public static Set<Access> values() { return ALL_ACCESSES; } @NonNull String name; ...
public @NotNull String getCode() { return code; } public boolean isReadOnly() { return READ.equals(this); } public boolean isReadWrite() { return WRITE.equals(this); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\security\permissions\Access.java
1
请在Spring Boot框架中完成以下Java代码
private static final class BootstrapExecutorCondition extends AnyNestedCondition { BootstrapExecutorCondition() { super(ConfigurationPhase.REGISTER_BEAN); } @ConditionalOnProperty(name = "spring.data.jpa.repositories.bootstrap-mode", havingValue = "deferred") static class DeferredBootstrapMode { } @C...
static class JpaRepositoriesImportSelector implements ImportSelector { private static final boolean ENVERS_AVAILABLE = ClassUtils.isPresent( "org.springframework.data.envers.repository.config.EnableEnversRepositories", JpaRepositoriesImportSelector.class.getClassLoader()); @Override public String[] sele...
repos\spring-boot-4.0.1\module\spring-boot-data-jpa\src\main\java\org\springframework\boot\data\jpa\autoconfigure\DataJpaRepositoriesAutoConfiguration.java
2
请完成以下Java代码
public void staleRootDocument(final WindowId windowId, final DocumentId documentId) { staleRootDocument(windowId, documentId, false); } public void staleRootDocument(final WindowId windowId, final DocumentId documentId, final boolean markActiveTabStaled) { forCollector(collector -> collector.staleRootDocument(...
@NonNull private final JSONDocumentChangedWebSocketEventCollector collector = JSONDocumentChangedWebSocketEventCollector.newInstance(); @NonNull private final AtomicBoolean closed = new AtomicBoolean(false); @Override public String toString() { return "CloseableCollector[" + collector + "]"; } private ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\events\DocumentWebsocketPublisher.java
1
请完成以下Java代码
public void setErrorVariableName(String errorVariableName) { this.errorVariableName = errorVariableName; } public Boolean getErrorVariableTransient() { return errorVariableTransient; } public void setErrorVariableTransient(Boolean errorVariableTransient) { this.errorVariableTra...
this.errorVariableLocalScope = errorVariableLocalScope; } @Override public ErrorEventDefinition clone() { ErrorEventDefinition clone = new ErrorEventDefinition(); clone.setValues(this); return clone; } public void setValues(ErrorEventDefinition otherDefinition) { su...
repos\flowable-engine-main\modules\flowable-bpmn-model\src\main\java\org\flowable\bpmn\model\ErrorEventDefinition.java
1
请完成以下Java代码
public I_C_ValidCombination getV_Prepayment_A() throws RuntimeException { return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) .getPO(getV_Prepayment_Acct(), get_TrxName()); } /** Set Vendor Prepayment. @param V_Prepayment_Acct Account for Vendor Prepayments */ public v...
*/ public void setWriteOff_Acct (int WriteOff_Acct) { set_Value (COLUMNNAME_WriteOff_Acct, Integer.valueOf(WriteOff_Acct)); } /** Get Write-off. @return Account for Receivables write-off */ public int getWriteOff_Acct () { Integer ii = (Integer)get_Value(COLUMNNAME_WriteOff_Acct); if (ii == null) ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_BP_Group_Acct.java
1
请在Spring Boot框架中完成以下Java代码
public LegacyReference getLegacyReference() { return legacyReference; } public void setLegacyReference(LegacyReference legacyReference) { this.legacyReference = legacyReference; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getCla...
sb.append(" lineItemId: ").append(toIndentedString(lineItemId)).append("\n"); sb.append(" legacyReference: ").append(toIndentedString(legacyReference)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the firs...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\de-metas-camel-ebay\ebay-api-client\src\main\java\de\metas\camel\externalsystems\ebay\api\model\RefundItem.java
2
请完成以下Java代码
public com.baeldung.schema.EmployeeKey.Builder setId(int value) { validate(fields()[0], value); this.id = value; fieldSetFlags()[0] = true; return this; } /** * Checks whether the 'id' field has been set. * @return True if the 'id' field has been set, false otherwise. ...
fieldSetFlags()[1] = false; return this; } @Override @SuppressWarnings("unchecked") public EmployeeKey build() { try { EmployeeKey record = new EmployeeKey(); record.id = fieldSetFlags()[0] ? this.id : (java.lang.Integer) defaultValue(fields()[0]); record.departmentN...
repos\tutorials-master\spring-cloud-modules\spring-cloud-stream\spring-cloud-stream-kafka\src\main\java\com\baeldung\schema\EmployeeKey.java
1
请完成以下Java代码
private class Client { final String name; final ByteBuffer readOnlyBuffer; final AtomicLong readPos = new AtomicLong(); Client(String name, ByteBuffer source) { this.name = name; this.readOnlyBuffer = source.asReadOnlyBuffer(); } void readTrade...
final int writtenBytes = MarketDataUtil.encodeAndWrite(buffer, data); writePos.addAndGet(writtenBytes); log.info("<writeTradeData> buffer size remaining: %{}, data: {}", 100 * buffer.remaining() / buffer.capacity(), data); } catch (IndexOutOfBoundsException e) { buffer.clear(...
repos\tutorials-master\libraries-3\src\main\java\com\baeldung\sbe\MarketDataStreamServer.java
1
请完成以下Java代码
public void setPA_DashboardContent_ID (int PA_DashboardContent_ID) { if (PA_DashboardContent_ID < 1) set_ValueNoCheck (COLUMNNAME_PA_DashboardContent_ID, null); else set_ValueNoCheck (COLUMNNAME_PA_DashboardContent_ID, Integer.valueOf(PA_DashboardContent_ID)); } /** Get PA_DashboardContent_ID. @return...
public int getPA_Goal_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_PA_Goal_ID); if (ii == null) return 0; return ii.intValue(); } /** Set ZUL File Path. @param ZulFilePath Absolute path to zul file */ public void setZulFilePath (String ZulFilePath) { set_Value (COLUMNNAME_ZulFilePath, Z...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_PA_DashboardContent.java
1
请完成以下Java代码
@Override public void exitId(LabeledExprParser.IdContext ctx) { } /** * {@inheritDoc} * * <p>The default implementation does nothing.</p> */ @Override public void enterInt(LabeledExprParser.IntContext ctx) { } /** * {@inheritDoc} * * <p>The default implementation does nothing.</p> */ @Override publi...
* {@inheritDoc} * * <p>The default implementation does nothing.</p> */ @Override public void exitEveryRule(ParserRuleContext ctx) { } /** * {@inheritDoc} * * <p>The default implementation does nothing.</p> */ @Override public void visitTerminal(TerminalNode node) { } /** * {@inheritDoc} * * <p>T...
repos\springboot-demo-master\ANTLR\src\main\java\com\et\antlr\LabeledExprBaseListener.java
1
请完成以下Java代码
protected TreeNode createNode(Object cell) { TreeNode node = new TreeNode(cell); mxRectangle geo = getVertexBounds(cell); if (geo != null) { if (horizontal) { node.width = geo.getHeight(); node.height = geo.getWidth(); } else { ...
* */ protected TreeNode child, next; // parent, sibling /** * */ protected Polygon contour = new Polygon(); /** * */ public TreeNode(Object cell) { this.cell = cell; } } /** * */ protected s...
repos\Activiti-develop\activiti-core\activiti-bpmn-layout\src\main\java\org\activiti\bpmn\BPMNLayout.java
1
请完成以下Java代码
protected Optional<? extends I_M_ProductPrice> findMatchingProductPriceAttribute(final IPricingContext pricingCtx) { final I_M_AttributeSetInstance attributeSetInstance = getM_AttributeSetInstance(pricingCtx); if (attributeSetInstance == null) { Loggables.withLogger(logger, Level.DEBUG).addLog("findMatchingPr...
* Extracts an ASI from the given {@code pricingCtx}. * * @return <ul> * <li>ASI * <li><code>null</code> if the given <code>pricingCtx</code> has no <code>ReferencedObject</code><br/> * or if the referenced object can't be converted to an {@link IAttributeSetInstanceAware}<br/> * or if the referenced object ...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\pricing\attributebased\impl\AttributePricing.java
1
请完成以下Java代码
public class M_RequisitionLine { @CalloutMethod(columnNames = I_M_RequisitionLine.COLUMNNAME_M_Product_ID) public void onProductChanged(final I_M_RequisitionLine line) { if (line.getM_Product_ID() <= 0) { return; } updatePrice(line); final UomId uomId = Services.get(IProductBL.class).getStockUOMId(lin...
pp.setPriceDate(orderDate); // line.setPriceActual(pp.getPriceStd()); updateLineNetAmt(line); } private void updateLineNetAmt(final I_M_RequisitionLine line) { final BigDecimal qty = line.getQty(); final BigDecimal priceActual = line.getPriceActual(); // Multiply final BigDecimal lineNetAmt = qty.mu...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\requisition\callout\M_RequisitionLine.java
1
请完成以下Java代码
public class SessionCookieFilter implements Filter { protected CookieConfigurator cookieConfigurator = new CookieConfigurator(); @Override public void init(FilterConfig filterConfig) throws ServletException { cookieConfigurator.parseParams(filterConfig); } @Override public void doFilter(ServletReques...
} @Override public void sendRedirect(String location) throws IOException { appendSameSiteIfMissing(); super.sendRedirect(location); } @Override public PrintWriter getWriter() throws IOException { appendSameSiteIfMissing(); return super.getWriter(); } @Override ...
repos\camunda-bpm-platform-master\webapps\assembly\src\main\java\org\camunda\bpm\webapp\impl\security\filter\SessionCookieFilter.java
1
请完成以下Java代码
public String getNm() { return nm; } /** * Sets the value of the nm property. * * @param value * allowed object is * {@link String } * */ public void setNm(String value) { this.nm = value; } /** * Gets the value of the othr prop...
* {@link String } * */ public String getOthr() { return othr; } /** * Sets the value of the othr property. * * @param value * allowed object is * {@link String } * */ public void setOthr(String value) { this.othr = valu...
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.sepa\schema-pain_001_01_03_ch_02\src\main\java-xjc\de\metas\payment\sepa\jaxb\sct\pain_001_001_03_ch_02\ContactDetails2CH.java
1
请完成以下Java代码
public class ES_FTS_Config_Sync extends JavaProcess { private final FTSConfigService ftsConfigService = SpringContextHolder.instance.getBean(FTSConfigService.class); private final ModelsToIndexQueueService modelsToIndexQueueService = SpringContextHolder.instance.getBean(ModelsToIndexQueueService.class); private fina...
{ final Stream<ModelToIndexEnqueueRequest> requestsStream = queryBL.createQueryBuilder(sourceTableName.getAsString()) .addOnlyActiveRecordsFilter() .create() .setOption(IQuery.OPTION_GuaranteedIteratorRequired, true) .iterateAndStream() .flatMap(model -> extractRequests(model, sourceTablesMap).str...
repos\metasfresh-new_dawn_uat\backend\de.metas.elasticsearch\src\main\java\de\metas\fulltextsearch\indexer\process\ES_FTS_Config_Sync.java
1
请完成以下Java代码
protected void configureProcessDefinitionQuery(ProcessDefinitionQueryImpl query) { getAuthorizationManager().configureProcessDefinitionQuery(query); getTenantManager().configureQuery(query); } protected ListQueryParameterObject configureParameterizedQuery(Object parameter) { return getTenantManager().c...
@Override public ProcessDefinitionEntity findDefinitionByKeyVersionAndTenantId(String definitionKey, Integer definitionVersion, String tenantId) { return findProcessDefinitionByKeyVersionAndTenantId(definitionKey, definitionVersion, tenantId); } @Override public ProcessDefinitionEntity findDefinitionByKeyV...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\ProcessDefinitionManager.java
1
请完成以下Java代码
private int updateUserEntity(PublicKeyCredentialUserEntity userEntity) { List<SqlParameterValue> parameters = this.userEntityParametersMapper.apply(userEntity); SqlParameterValue userEntityId = parameters.remove(0); parameters.add(userEntityId); PreparedStatementSetter pss = new ArgumentPreparedStatementSetter(...
} private static class UserEntityRecordRowMapper implements RowMapper<PublicKeyCredentialUserEntity> { @Override public PublicKeyCredentialUserEntity mapRow(ResultSet rs, int rowNum) throws SQLException { Bytes id = Bytes.fromBase64(new String(rs.getString("id").getBytes())); String name = rs.getString("na...
repos\spring-security-main\webauthn\src\main\java\org\springframework\security\web\webauthn\management\JdbcPublicKeyCredentialUserEntityRepository.java
1
请完成以下Java代码
public String getLastName() { return lastName; } public String getFirstName() { return firstName; } public long getId() { return id; } public void setLastName(final String lastName) { this.lastName = lastName; } public void setFirstName(final String fi...
public void setSalary(final Optional<Salary> salary) { this.salary = salary; } @Override public String toString() { return "Employee{" + "lastName='" + lastName + '\'' + ", firstName='" + firstName + '\'' + ", id=" + id + ", salary...
repos\tutorials-master\spring-boot-modules\spring-boot-data-2\src\main\java\com\baeldung\jsonignore\absentfields\Employee.java
1
请完成以下Java代码
public VariableInstance getVariableInstance(String taskId, String variableName) { return commandExecutor.execute(new GetTaskVariableInstanceCmd(taskId, variableName, false)); } @Override public VariableInstance getVariableInstanceLocal(String taskId, String variableName) { return commandExe...
boolean withLocalizationFallback ) { return commandExecutor.execute( new GetTaskDataObjectsCmd(taskId, dataObjectNames, locale, withLocalizationFallback) ); } @Override public DataObject getDataObject(String taskId, String dataObject) { return commandExecutor.execute...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\TaskServiceImpl.java
1
请在Spring Boot框架中完成以下Java代码
public class WebMVCConfig implements WebMvcConfigurer, ApplicationContextAware { private ApplicationContext applicationContext; @Override public void setApplicationContext(ApplicationContext applicationContext) { this.applicationContext = applicationContext; } @Bean public ViewResolv...
messageSource.setBasename("messages"); return messageSource; } @Bean public LocaleResolver localeResolver() { SessionLocaleResolver localeResolver = new SessionLocaleResolver(); localeResolver.setDefaultLocale(new Locale("en")); return localeResolver; } @Bean pu...
repos\tutorials-master\spring-web-modules\spring-thymeleaf-5\src\main\java\com\baeldung\thymeleaf\config\WebMVCConfig.java
2
请完成以下Java代码
public int getAD_User_ID() { return get_ValueAsInt(COLUMNNAME_AD_User_ID); } @Override public void setAD_WF_Responsible_ID (final int AD_WF_Responsible_ID) { if (AD_WF_Responsible_ID < 1) set_ValueNoCheck (COLUMNNAME_AD_WF_Responsible_ID, null); else set_ValueNoCheck (COLUMNNAME_AD_WF_Responsible_I...
return get_ValueAsString(COLUMNNAME_Name); } /** * ResponsibleType AD_Reference_ID=304 * Reference name: WF_Participant Type */ public static final int RESPONSIBLETYPE_AD_Reference_ID=304; /** Organisation = O */ public static final String RESPONSIBLETYPE_Organisation = "O"; /** Human = H */ public stati...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_WF_Responsible.java
1
请完成以下Java代码
public String getName () { return (String)get_Value(COLUMNNAME_Name); } /** Get Record ID/ColumnName @return ID/ColumnName pair */ public KeyNamePair getKeyNamePair() { return new KeyNamePair(get_ID(), getName()); } /** Set Process Now. @param Processing Process Now */...
} public I_AD_User getSupervisor() throws RuntimeException { return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) .getPO(getSupervisor_ID(), get_TrxName()); } /** Set Supervisor. @param Supervisor_ID Supervisor for this user/organization - used for escalation and approval */ public void se...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_AlertProcessor.java
1
请在Spring Boot框架中完成以下Java代码
public List<Task> findTasksByParentTaskId(String parentTaskId) { return getDbSqlSession().selectList("selectTasksByParentTaskId", parentTaskId); } @Override public void updateTaskTenantIdForDeployment(String deploymentId, String newTenantId) { HashMap<String, Object> params = new HashMap<>(...
protected void setSafeInValueLists(TaskQueryImpl taskQuery) { if (taskQuery.getCandidateGroups() != null) { taskQuery.setSafeCandidateGroups(createSafeInValuesList(taskQuery.getCandidateGroups())); } if (taskQuery.getInvolvedGroups() != null) { taskQuery.setSafeI...
repos\flowable-engine-main\modules\flowable-task-service\src\main\java\org\flowable\task\service\impl\persistence\entity\data\impl\MybatisTaskDataManager.java
2
请完成以下Java代码
public class FlywayExtension implements Extension { DataSourceDefinition dataSourceDefinition = null; public void registerFlywayType(@Observes BeforeBeanDiscovery bbdEvent) { bbdEvent.addAnnotatedType(Flyway.class, Flyway.class.getName()); } public void detectDataSourceDefinition(@Observes @W...
abdEvent.addBean() .types(javax.sql.DataSource.class, DataSource.class) .qualifiers(new AnnotationLiteral<Default>() {}, new AnnotationLiteral<Any>() {}) .scope(ApplicationScoped.class) .name(DataSource.class.getName()) .beanClass(DataSourc...
repos\tutorials-master\di-modules\flyway-cdi-extension\src\main\java\com\baeldung\cdi\extension\FlywayExtension.java
1
请在Spring Boot框架中完成以下Java代码
protected org.compiere.model.POInfo initPO(final Properties ctx) { return org.compiere.model.POInfo.getPOInfo(Table_Name); } @Override public void setExternalId (final java.lang.String ExternalId) { set_Value (COLUMNNAME_ExternalId, ExternalId); } @Override public java.lang.String getExternalId() { re...
{ return get_ValueAsPO(COLUMNNAME_SUMUP_Config_ID, de.metas.payment.sumup.repository.model.I_SUMUP_Config.class); } @Override public void setSUMUP_Config(final de.metas.payment.sumup.repository.model.I_SUMUP_Config SUMUP_Config) { set_ValueFromPO(COLUMNNAME_SUMUP_Config_ID, de.metas.payment.sumup.repository.mo...
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.sumup\src\main\java-gen\de\metas\payment\sumup\repository\model\X_SUMUP_CardReader.java
2
请完成以下Java代码
public static Collector<ScannableCodeFormat, ?, ScannableCodeFormatsCollection> collect() { return GuavaCollectors.collectUsingListAccumulator(ScannableCodeFormatsCollection::ofList); } public static ScannableCodeFormatsCollection ofList(@Nullable final List<ScannableCodeFormat> formats) { return formats != nu...
final ExplainedOptional<ParsedScannedCode> result = format.parse(scannedCode); if (result.isPresent()) { return result; } if (!notMatchingExplanation.isEmpty()) { notMatchingExplanation.append(" | "); } notMatchingExplanation.append(format.getName()).append(" ").append(result.getExplanatio...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\scannable_code\format\ScannableCodeFormatsCollection.java
1
请在Spring Boot框架中完成以下Java代码
public String getMerchantNo() { return merchantNo; } public void setMerchantNo(String merchantNo) { this.merchantNo = merchantNo; } public String getPayOrderNo() { return payOrderNo; } public void setPayOrderNo(String payOrderNo) { this.payOrderNo = payOrderNo;...
public String getIdNo() { return idNo; } public void setIdNo(String idNo) { this.idNo = idNo; } public String getBankAccountNo() { return bankAccountNo; } public void setBankAccountNo(String bankAccountNo) { this.bankAccountNo = bankAccountNo; } }
repos\roncoo-pay-master\roncoo-pay-service\src\main\java\com\roncoo\pay\trade\entity\RpUserBankAuth.java
2
请完成以下Java代码
public final class UIComponentType { private static final ConcurrentMap<String, UIComponentType> cache = new MapMaker().makeMap(); // IMPORTANT to have it before the constants public static final UIComponentType SCAN_BARCODE = createAndCache("common/scanBarcode"); public static final UIComponentType SCAN_AND_VALIDAT...
private UIComponentType(@NonNull final String value) {this.value = Check.assumeNotEmpty(value, "value");} @Override @Deprecated public String toString() { return getAsString(); } @JsonValue public String getAsString() { return value; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.workflow.rest-api\src\main\java\de\metas\workflow\rest_api\model\UIComponentType.java
1
请完成以下Java代码
public HUPPOrderIssueProducer fixedQtyToIssue(@Nullable final Quantity fixedQtyToIssue) { this.fixedQtyToIssue = fixedQtyToIssue; return this; } public HUPPOrderIssueProducer considerIssueMethodForQtyToIssueCalculation(final boolean considerIssueMethodForQtyToIssueCalculation) { this.considerIssueMethodForQt...
{ final I_PP_Order ppOrder = getPpOrder(); final PPOrderPlanningStatus orderPlanningStatus = PPOrderPlanningStatus.ofCode(ppOrder.getPlanningStatus()); return PPOrderPlanningStatus.COMPLETE.equals(orderPlanningStatus); } else { throw new AdempiereException("Unknown processCandidatesPolicy: " + process...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\pporder\api\HUPPOrderIssueProducer.java
1