instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
public class X509IssuerSerialType { @XmlElement(name = "X509IssuerName", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) protected String x509IssuerName; @XmlElement(name = "X509SerialNumber", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true) protected BigInteger x50...
* */ public BigInteger getX509SerialNumber() { return x509SerialNumber; } /** * Sets the value of the x509SerialNumber property. * * @param value * allowed object is * {@link BigInteger } * */ public void setX509SerialNumber(BigInteger ...
repos\metasfresh-new_dawn_uat\backend\vertical-healthcare_ch\forum_datenaustausch_ch.invoice_440_request\src\main\java-xjc\de\metas\vertical\healthcare_ch\forum_datenaustausch_ch\invoice_440\request\X509IssuerSerialType.java
1
请完成以下Java代码
protected void createHUDocumentsFromTypedModel(final HUDocumentsCollector documentsCollector, final I_M_HU hu) { final ZonedDateTime dateTrx = SystemTime.asZonedDateTimeAtStartOfDay(); // // Storage Factory final IHUStorageDAO storageDAO = new SaveDecoupledHUStorageDAO(); final IHUStorageFactory storageFact...
public Result beforeHUItemStorage(final IMutable<IHUItemStorage> itemStorageMutable) { final int huId = itemStorageMutable.getValue().getM_HU_Item().getM_HU_ID(); final List<IHUDocumentLine> documentLines = huId2documentLines.get(huId); final IHUItemStorage itemStorage = itemStorageMutable.getValue(); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\document\impl\HandlingUnitHUDocumentFactory.java
1
请完成以下Java代码
protected void ensureCamundaAdminGroupExists(ProcessEngine processEngine) { final IdentityService identityService = processEngine.getIdentityService(); final AuthorizationService authorizationService = processEngine.getAuthorizationService(); // create group if(identityService.createGroupQuery().group...
protected void ensureSetupAvailable(ProcessEngine processEngine) { if (processEngine.getIdentityService().isReadOnly() || (processEngine.getIdentityService().createUserQuery().memberOfGroup(Groups.CAMUNDA_ADMIN).count() > 0)) { throw LOGGER.setupActionNotAvailable(); } } protected ProcessEng...
repos\camunda-bpm-platform-master\webapps\assembly\src\main\java\org\camunda\bpm\admin\impl\web\SetupResource.java
1
请在Spring Boot框架中完成以下Java代码
public class QRCodeConfigurationId implements RepoIdAware { @JsonCreator public static QRCodeConfigurationId ofRepoId(final int repoId) { return new QRCodeConfigurationId(repoId); } public static QRCodeConfigurationId ofRepoIdOrNull(final int repoId) { return repoId > 0 ? new QRCodeConfigurationId(repoId) : ...
int repoId; private QRCodeConfigurationId(final int repoId) { this.repoId = Check.assumeGreaterThanZero(repoId, "QRCode_Configuration_ID"); } @JsonValue @Override public int getRepoId() { return repoId; } public static int toRepoId(final QRCodeConfigurationId qrCodeConfigurationId) { return qrCodeCon...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\qrcodes\model\QRCodeConfigurationId.java
2
请完成以下Java代码
public void setSecurityContextHolderStrategy(SecurityContextHolderStrategy securityContextHolderStrategy) { this.authentication = getAuthentication(securityContextHolderStrategy); } /** * Use this {@link AuthorizationEventPublisher} to publish the * {@link AuthorizationManager} result. * @param eventPublishe...
} return authentication; }; } private static class NoopAuthorizationEventPublisher implements AuthorizationEventPublisher { @Override public <T> void publishAuthorizationEvent(Supplier<Authentication> authentication, T object, @Nullable AuthorizationResult result) { } } }
repos\spring-security-main\messaging\src\main\java\org\springframework\security\messaging\access\intercept\AuthorizationChannelInterceptor.java
1
请完成以下Java代码
public void setVariable(String key, Object value) { if (delegate != VariableContainer.empty()) { this.delegate.setVariable(key, value); } else { setTransientVariable(key, value); } } /** * Sets a transient variable, which is local to this variable container....
public MapDelegateVariableContainer removeTransientVariable(String key){ this.transientVariables.remove(key); return this; } @Override public String getTenantId() { return this.delegate.getTenantId(); } @Override public Set<String> getVariableNames() { if (deleg...
repos\flowable-engine-main\modules\flowable-engine-common\src\main\java\org\flowable\common\engine\impl\variable\MapDelegateVariableContainer.java
1
请在Spring Boot框架中完成以下Java代码
public void initDataManagers() { if (batchDataManager == null) { batchDataManager = new MybatisBatchDataManager(this); } if (batchPartDataManager == null) { batchPartDataManager = new MybatisBatchPartDataManager(this); } } public void initEntityManagers()...
public BatchPartDataManager getBatchPartDataManager() { return batchPartDataManager; } public BatchServiceConfiguration setBatchPartDataManager(BatchPartDataManager batchPartDataManager) { this.batchPartDataManager = batchPartDataManager; return this; } public BatchEntityManage...
repos\flowable-engine-main\modules\flowable-batch-service\src\main\java\org\flowable\batch\service\BatchServiceConfiguration.java
2
请完成以下Java代码
public String toString() { return "MutableMoney [amount=" + amount + ", currency=" + currency + "]"; } public long getAmount() { return amount; } public void setAmount(long amount) { this.amount = amount; } public String getCurrency() { return currency; }
public void setCurrency(String currency) { this.currency = currency; } private long amount; private String currency; public MutableMoney(long amount, String currency) { super(); this.amount = amount; this.currency = currency; } }
repos\tutorials-master\google-auto-project\src\main\java\com\baeldung\autovalue\MutableMoney.java
1
请完成以下Java代码
public void setIsDepreciated (boolean IsDepreciated) { set_Value (COLUMNNAME_IsDepreciated, Boolean.valueOf(IsDepreciated)); } /** Get Depreciate. @return The asset will be depreciated */ public boolean isDepreciated () { Object oo = get_Value(COLUMNNAME_IsDepreciated); if (oo != null) { if (oo...
{ return (String)get_Value(COLUMNNAME_PostingType); } /** Set Processed. @param Processed The document has been processed */ public void setProcessed (boolean Processed) { set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); } /** Get Processed. @return The document has been processed ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_A_Depreciation_Exp.java
1
请完成以下Java代码
public int getAD_PrintColor_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintColor_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Validation code. @param Code Validation Code */ public void setCode (String Code) { set_Value (COLUMNNAME_Code, Code); } /** Get Valid...
} /** 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_AD_PrintColor.java
1
请在Spring Boot框架中完成以下Java代码
private static ClassLoader decideClassloader(@Nullable ClassLoader classLoader) { if (classLoader == null) { return ImportCandidates.class.getClassLoader(); } return classLoader; } private static Enumeration<URL> findUrlsInClasspath(ClassLoader classLoader, String location) { try { return classLoader.g...
@SuppressWarnings({ "unchecked", "rawtypes" }) private static Map<String, String> readReplacements(URL url) { try (BufferedReader reader = new BufferedReader( new InputStreamReader(new UrlResource(url).getInputStream(), StandardCharsets.UTF_8))) { Properties properties = new Properties(); properties.load(r...
repos\spring-boot-4.0.1\core\spring-boot-autoconfigure\src\main\java\org\springframework\boot\autoconfigure\AutoConfigurationReplacements.java
2
请完成以下Java代码
public class ActivateProcessDefinitionCmd extends AbstractSetProcessDefinitionStateCmd { public ActivateProcessDefinitionCmd( ProcessDefinitionEntity processDefinitionEntity, boolean includeProcessInstances, Date executionDate, String tenantId ) { super(processDefinition...
String tenantId ) { super(processDefinitionId, processDefinitionKey, includeProcessInstances, executionDate, tenantId); } protected SuspensionState getProcessDefinitionSuspensionState() { return SuspensionState.ACTIVE; } protected String getDelayedExecutionJobHandlerType() { ...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\cmd\ActivateProcessDefinitionCmd.java
1
请完成以下Java代码
private void deleteLines(@NonNull final I_DD_Order order) { queryBL.createQueryBuilder(I_DD_OrderLine.class) .addEqualsFilter(I_DD_OrderLine.COLUMNNAME_DD_Order_ID, order.getDD_Order_ID()) .create() .deleteDirectly(); } public void updateForwardPPOrderByIds(@NonNull final Set<DDOrderId> ddOrderIds, @N...
if (ddOrderIds.isEmpty()) { return ImmutableSet.of(); } final List<ProductId> productIds = queryBL.createQueryBuilder(I_DD_OrderLine.class) .addInArrayFilter(I_DD_Order.COLUMNNAME_DD_Order_ID, ddOrderIds) .addOnlyActiveRecordsFilter() .create() .listDistinct(I_DD_OrderLine.COLUMNNAME_M_Product...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing\src\main\java\de\metas\distribution\ddorder\lowlevel\DDOrderLowLevelDAO.java
1
请完成以下Java代码
public void handleEvent(EventSubscriptionEntity eventSubscription, Object payload, CommandContext commandContext) { if (eventSubscription.getExecutionId() != null) { super.handleEvent(eventSubscription, payload, commandContext); } else if (eventSubscription.getProcessDefinitionId() != null)...
} else { throw new FlowableException("Invalid signal handling: no execution nor process definition set for " + eventSubscription); } } protected Map<String, Object> getPayloadAsMap(Object payload) { Map<String, Object> variables = null; if (payload instanceof Map) { ...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\event\SignalEventHandler.java
1
请完成以下Java代码
public Builder setDocTypeName(final String docTypeName) { this.docTypeName = docTypeName; return this; } public Builder setDateInvoiced(final Date dateInvoiced) { this.dateInvoiced = dateInvoiced; return this; } public Builder setDateAcct(final Date dateAcct) { this.dateAcct = dateAcct; ...
this.paymentRequestAmtSupplier = Suppliers.ofInstance(paymentRequestAmt); return this; } public Builder setPaymentRequestAmt(final Supplier<BigDecimal> paymentRequestAmtSupplier) { this.paymentRequestAmtSupplier = paymentRequestAmtSupplier; return this; } public Builder setMultiplierAP(final BigDec...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.swingui\src\main\java\de\metas\banking\payment\paymentallocation\model\InvoiceRow.java
1
请完成以下Java代码
public class X_ExternalSystem_RuntimeParameter extends org.compiere.model.PO implements I_ExternalSystem_RuntimeParameter, org.compiere.model.I_Persistent { private static final long serialVersionUID = -312206168L; /** Standard Constructor */ public X_ExternalSystem_RuntimeParameter (final Properties ctx, f...
public int getExternalSystem_Config_ID() { return get_ValueAsInt(COLUMNNAME_ExternalSystem_Config_ID); } @Override public void setExternalSystem_RuntimeParameter_ID (final int ExternalSystem_RuntimeParameter_ID) { if (ExternalSystem_RuntimeParameter_ID < 1) set_ValueNoCheck (COLUMNNAME_ExternalSystem_Run...
repos\metasfresh-new_dawn_uat\backend\de.metas.externalsystem\src\main\java-gen\de\metas\externalsystem\model\X_ExternalSystem_RuntimeParameter.java
1
请在Spring Boot框架中完成以下Java代码
public class AuthorizationServerConfig extends AuthorizationServerConfigurerAdapter { // @Autowired // private TokenStore redisTokenStore; @Autowired private TokenStore jwtTokenStore; @Autowired private JwtAccessTokenConverter jwtAccessTokenConverter; @Autowired private AuthenticationMa...
.accessTokenConverter(jwtAccessTokenConverter) .userDetailsService(userDetailService); } @Override public void configure(ClientDetailsServiceConfigurer clients) throws Exception { clients.inMemory() .withClient("test1") .secret(new BCryptPasswordEncod...
repos\SpringAll-master\65.Spring-Security-OAuth2-Config\src\main\java\cc\mrbird\security\config\AuthorizationServerConfig.java
2
请完成以下Java代码
public List<ListenableFuture<String>> removeAll(TenantId tenantId, EntityId entityId, AttributeScope attributeScope, List<String> keys) { List<ListenableFuture<String>> futuresList = new ArrayList<>(keys.size()); for (String key : keys) { futuresList.add(service.submit(() -> { ...
} @Transactional @Override public List<Pair<AttributeScope, String>> removeAllByEntityId(TenantId tenantId, EntityId entityId) { return jdbcTemplate.queryForList("DELETE FROM attribute_kv WHERE entity_id = ? " + "RETURNING attribute_type, attribute_key", entityId.getId()).st...
repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\sql\attributes\JpaAttributeDao.java
1
请完成以下Java代码
public void onNext(String item) { buffer.add(item); // if buffer is full, process the items. if (buffer.size() >= BUFFER_SIZE) { processBuffer(); } //request more items. subscription.request(1); } private void processBuffer() { if (buffer.isEm...
e.printStackTrace(); } counter = counter + buffer.size(); buffer.clear(); } @Override public void onError(Throwable t) { t.printStackTrace(); } @Override public void onComplete() { completed = true; // process any remaining items in buffer before...
repos\tutorials-master\core-java-modules\core-java-9-new-features\src\main\java\com\baeldung\java9\reactive\BaeldungBatchSubscriberImpl.java
1
请完成以下Java代码
public void SetIsManualDiscount(final I_C_OrderLine orderLine) { orderLine.setIsManualDiscount(true); } /** * Sets {@code C_OrderLine.IsManualPrice='Y'}, but only if the user "manually" edited the price. */ @CalloutMethod(columnNames = { I_C_OrderLine.COLUMNNAME_PriceEntered }, skipIfCopying = true, skipIfIn...
{ documentLocationBL.updateRenderedAddressAndCapturedLocation(OrderLineDocumentLocationAdapterFactory.locationAdapter(orderLine)); } @CalloutMethod(columnNames = I_C_OrderLine.COLUMNNAME_AD_User_ID, skipIfCopying = true) public void updateRenderedAddress(final I_C_OrderLine orderLine) { documentLocationBL.upda...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\order\callout\C_OrderLine.java
1
请完成以下Java代码
public class ExternalWorkerServiceTaskExport extends AbstractPlanItemDefinitionExport<ExternalWorkerServiceTask> { @Override public String getPlanItemDefinitionXmlElementValue(ExternalWorkerServiceTask casePageTask) { return ELEMENT_TASK; } @Override public void writePlanItemDefinitionSpec...
} @Override protected boolean writePlanItemDefinitionExtensionElements(CmmnModel model, ExternalWorkerServiceTask planItemDefinition, boolean didWriteExtensionElement, XMLStreamWriter xtw) throws Exception { boolean extensionElementWritten = super.writePlanItemDefinitionExtensionElements(model, planIte...
repos\flowable-engine-main\modules\flowable-cmmn-converter\src\main\java\org\flowable\cmmn\converter\export\ExternalWorkerServiceTaskExport.java
1
请完成以下Java代码
public boolean containsRawMaterialsIssueStep(final PPOrderIssueScheduleId issueScheduleId) { return steps.stream().anyMatch(step -> PPOrderIssueScheduleId.equals(step.getId(), issueScheduleId)); } @NonNull public ITranslatableString getProductValueAndProductName() { final TranslatableStringBuilder message = T...
@NonNull public Quantity getQtyLeftToIssue() { return qtyToIssue.subtract(qtyIssued); } public boolean isAllowManualIssue() { return !issueMethod.isIssueOnlyForReceived(); } public boolean isIssueOnlyForReceived() {return issueMethod.isIssueOnlyForReceived();} }
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing.rest-api\src\main\java\de\metas\manufacturing\job\model\RawMaterialsIssueLine.java
1
请在Spring Boot框架中完成以下Java代码
private void filterActiveServices(@NonNull final Exchange exchange) { final JsonExternalStatusResponse externalStatusInfoResponse = exchange.getIn().getBody(JsonExternalStatusResponse.class); exchange.getIn().setBody(externalStatusInfoResponse.getExternalStatusResponses() .stream() .filter(r...
if (matchedExternalService.isEmpty()) { log.warn("*** No Service found for value = " + externalStatusResponse.getServiceValue() + " !"); return; } final InvokeExternalSystemActionCamelRequest camelRequest = InvokeExternalSystemActionCamelRequest.builder() .externalSystemChildValue(externalStatusRespons...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\core\src\main\java\de\metas\camel\externalsystems\core\restapi\ExternalSystemRestAPIHandler.java
2
请完成以下Java代码
public class CustomAuthenticationFilter extends UsernamePasswordAuthenticationFilter { public static final String SPRING_SECURITY_FORM_DOMAIN_KEY = "domain"; @Override public Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response) throws AuthenticationExcept...
username = ""; } if (password == null) { password = ""; } if (domain == null) { domain = ""; } return new CustomAuthenticationToken(username, password, domain); } private String obtainDomain(HttpServletRequest request) { return re...
repos\tutorials-master\spring-security-modules\spring-security-web-login-2\src\main\java\com\baeldung\loginextrafieldscustom\CustomAuthenticationFilter.java
1
请在Spring Boot框架中完成以下Java代码
public class PublisherService { private final PublisherRepository publisherRepository; public PublisherService(PublisherRepository publisherRepository) { this.publisherRepository = publisherRepository; } public Publishers save(Publishers publishers) { return publisherRepository.save(p...
.orElseThrow(() -> new RuntimeException("Publisher not found")); } public void delete(int id) { publisherRepository.deleteById(id); } public Publishers update(Publishers publishers) { return publisherRepository.save(publishers); } public List<Publishers> findAllByLocation(Stri...
repos\tutorials-master\persistence-modules\spring-persistence-simple\src\main\java\com\baeldung\spring\jpa\guide\service\PublisherService.java
2
请在Spring Boot框架中完成以下Java代码
public void incrementBufferHead() { if (bufferHead == maxSentenceSize) bufferHead = -1; else bufferHead++; } public void setBufferHead(int bufferHead) { this.bufferHead = bufferHead; } @Override public State clone() { State state ...
state.rightDepLabels[h] = rightDepLabels[h]; } if (leftMostArcs[h] != 0) { state.leftMostArcs[h] = leftMostArcs[h]; state.leftValency[h] = leftValency[h]; state.leftDepLabels[h] = leftDepLabels[h]; ...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\dependency\perceptron\transition\configuration\State.java
2
请完成以下Java代码
private static ImmutableMap<String, String> normalizeTrlsMap(@Nullable final Map<String, String> trls) { if (trls == null || trls.isEmpty()) { return ImmutableMap.of(); } else if (trls.containsValue(null)) { ImmutableMap.Builder<String, String> builder = ImmutableMap.builder(); trls.forEach((adLangu...
{ return trlMap.getOrDefault(adLanguage, defaultValue); } @Override public String getDefaultValue() { return defaultValue; } @Override public Set<String> getAD_Languages() { return trlMap.keySet(); } @JsonIgnore // needed for snapshot testing public boolean isEmpty() { return defaultValue.isEmpty...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\i18n\ImmutableTranslatableString.java
1
请在Spring Boot框架中完成以下Java代码
private Map<EdgeId, Long> getLagByEdgeId(Map<EdgeId, MsgCounters> countersByEdge) { Map<EdgeId, String> edgeToTopicMap = countersByEdge.entrySet().stream() .collect(Collectors.toMap( Map.Entry::getKey, e -> topicService.buildEdgeEventNotificationsT...
Futures.addCallback(future, new FutureCallback<>() { @Override public void onSuccess(TimeseriesSaveResult result) { log.debug("Successfully saved edge time-series stats: {} for edge: {}", statsEntries, edgeId); } @Override ...
repos\thingsboard-master\application\src\main\java\org\thingsboard\server\service\edge\stats\EdgeStatsService.java
2
请完成以下Java代码
public List<IWord> flow(List<IWord> input) { return input; } } ); add(analyzer); } /** * 获取代理的词法分析器 * * @return */ public LexicalAnalyzer getAnalyzer() { for (Pipe<List<IWord>, List<IWord>> p...
@Override public String[] tag(String... words) { LexicalAnalyzer analyzer = getAnalyzer(); if (analyzer == null) throw new IllegalStateException("流水线中没有LexicalAnalyzerPipe"); return analyzer.tag(words); } @Override public String[] tag(List<String> wordList) {...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\tokenizer\pipe\LexicalAnalyzerPipeline.java
1
请在Spring Boot框架中完成以下Java代码
public class CompleteDistributionWFActivityHandler implements WFActivityHandler, UserConfirmationSupport { public static final WFActivityType HANDLED_ACTIVITY_TYPE = WFActivityType.ofString("distribution.complete"); @NonNull private final DistributionRestService distributionRestService; @Override public WFActivit...
@Override public WFActivityStatus computeActivityState(final WFProcess wfProcess, final WFActivity completeDistributionWFActivity) { final DistributionJob job = DistributionMobileApplication.getDistributionJob(wfProcess); return computeActivityState(job); } public static WFActivityStatus computeActivityState(f...
repos\metasfresh-new_dawn_uat\backend\de.metas.distribution.rest-api\src\main\java\de\metas\distribution\mobileui\workflows_api\activity_handlers\CompleteDistributionWFActivityHandler.java
2
请完成以下Spring Boot application配置
# # these properties are local to my dev environment # server.port=8181 spring.rabbitmq.host=localhost # spring.rabbitmq.host=192.168.99.100 # note: 192.168.99.100 is probably the correct IP if it runs in minikube on your local virtualbox spring.rabbitmq.port=${RABBITMQ_PORT:30050} spring.rabbitmq.username=guest spr...
q.ssl.enabled=true # spring.rabbitmq.ssl.validate-server-certificate=false #spring.boot.admin.url=http://localhost:30060 management.security.enabled=false spring.boot.admin.client.prefer-ip=true
repos\metasfresh-new_dawn_uat\misc\dev-support\application.properties\metasfresh\backend\de.metas.report\metasfresh-report-service-standalone\src\main\resources\application.properties
2
请完成以下Java代码
public String getMemberIcon() { return memberIcon; } public void setMemberIcon(String memberIcon) { this.memberIcon = memberIcon; } public Integer getReplayCount() { return replayCount; } public void setReplayCount(Integer replayCount) { this.replayCount = repl...
sb.append(", memberNickName=").append(memberNickName); sb.append(", productName=").append(productName); sb.append(", star=").append(star); sb.append(", memberIp=").append(memberIp); sb.append(", createTime=").append(createTime); sb.append(", showStatus=").append(showStatus); ...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\PmsComment.java
1
请完成以下Java代码
public String getProperty(final String key) { if (key == null) { return ""; } if (props == null) { return ""; } final String value = props.getProperty(key, ""); if (Check.isEmpty(value)) { return ""; } return value; } /** * Get Property as Boolean *
* @param key Key * @return Value */ public boolean isPropertyBool(final String key) { final String value = getProperty(key); return DisplayType.toBooleanNonNull(value, false); } public void updateContext(final Properties ctx) { Env.setContext(ctx, "#ShowTrl", true); Env.setContext(ctx, "#ShowAdvanced"...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\session\UserPreference.java
1
请完成以下Java代码
public class X_AD_Role_OrgAccess extends org.compiere.model.PO implements I_AD_Role_OrgAccess, org.compiere.model.I_Persistent { /** * */ private static final long serialVersionUID = 936006794L; /** Standard Constructor */ public X_AD_Role_OrgAccess (Properties ctx, int AD_Role_OrgAccess_ID, String trx...
*/ @Override public int getAD_Role_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_AD_Role_ID); if (ii == null) return 0; return ii.intValue(); } /** Set AD_Role_OrgAccess. @param AD_Role_OrgAccess_ID AD_Role_OrgAccess */ @Override public void setAD_Role_OrgAccess_ID (int AD_Role_OrgAccess_ID)...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_Role_OrgAccess.java
1
请在Spring Boot框架中完成以下Java代码
public class BookController { private static final String BOOK_FORM_PATH_NAME = "bookForm"; private static final String BOOK_LIST_PATH_NAME = "bookList"; private static final String REDIRECT_TO_BOOK_URL = "redirect:/book"; @Autowired BookService bookService; /** * 获取 Book 列表 * 处理 "/...
/** * 更新 Book * 处理 "/update" 的 PUT 请求,用来更新 Book 信息 */ @RequestMapping(value = "/update", method = RequestMethod.POST) public String putBook(@ModelAttribute Book book) { bookService.update(book); return REDIRECT_TO_BOOK_URL; } /** * 删除 Book * 处理 "/book/{id}" 的 GE...
repos\springboot-learning-example-master\chapter-5-spring-boot-data-jpa\src\main\java\demo\springboot\web\BookController.java
2
请完成以下Java代码
public String getEntityType () { return (String)get_Value(COLUMNNAME_EntityType); } /** Set Included_Val_Rule_ID. @param Included_Val_Rule_ID Validation rule to be included. */ public void setIncluded_Val_Rule_ID (int Included_Val_Rule_ID) { if (Included_Val_Rule_ID < 1) set_ValueNoCheck (COLUMNN...
@param SeqNo Zur Bestimmung der Reihenfolge der Einträge; die kleinste Zahl kommt zuerst */ public void setSeqNo (String SeqNo) { set_Value (COLUMNNAME_SeqNo, SeqNo); } /** Get Reihenfolge. @return Zur Bestimmung der Reihenfolge der Einträge; die kleinste Zahl kommt zuerst */ public String getSeqNo (...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_Val_Rule_Included.java
1
请在Spring Boot框架中完成以下Java代码
public class Book { @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long id; private String name; public Book() { } public Book(String name) { this.name = name; } public Long getId() { return id; }
public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } @Override public String toString() { return "Book [id=" + id + ", name=" + name + "]"; } }
repos\tutorials-master\persistence-modules\spring-boot-persistence-2\src\main\java\com\baeldung\spring\oracle\pooling\entity\Book.java
2
请完成以下Java代码
protected void onAfterInit() { // Do not initialize if the printing module is disabled if (!checkPrintingEnabled()) { return; } Services.get(IPrintingQueueBL.class).registerHandler(DocumentPrintingQueueHandler.instance); // task 09833 // Register the Default Printing Info ctx provider Services.get...
{ return ImmutableList.of(Printing_Constants.USER_NOTIFICATIONS_TOPIC); } @Override public void onUserLogin(final int AD_Org_ID, final int AD_Role_ID, final int AD_User_ID) { // make sure that the host key is set in the context if (checkPrintingEnabled()) { final Properties ctx = Env.getCtx(); final ...
repos\metasfresh-new_dawn_uat\backend\de.metas.printing\de.metas.printing.base\src\main\java\de\metas\printing\model\validator\Main.java
1
请完成以下Java代码
public boolean put(K key, V value) { this.lock.writeLock().lock(); try { CacheElement<K, V> item = new CacheElement<K, V>(key, value); LinkedListNode<CacheElement<K, V>> newNode; if (this.linkedListNodeMap.containsKey(key)) { LinkedListNode<CacheElemen...
this.lock.writeLock().lock(); try { linkedListNodeMap.clear(); doublyLinkedList.clear(); } finally { this.lock.writeLock().unlock(); } } private boolean evictElement() { this.lock.writeLock().lock(); try { LinkedListNode<C...
repos\tutorials-master\data-structures\src\main\java\com\baeldung\lrucache\LRUCache.java
1
请在Spring Boot框架中完成以下Java代码
private void setAllowBeanDefinitionOverriding(Map<String, Object> defaultProperties) { defaultProperties.put(ALLOW_BEAN_DEFINITION_OVERRIDING_PROPERTY, Boolean.TRUE.toString()); } /** * Copy from BusEnvironmentPostProcessor#addOrReplace(MutablePropertySources, Map) * * @param propertySou...
for (String key : map.keySet()) { if (!target.containsProperty(key)) { target.getSource().put(key, map.get(key)); } } } } if (target == null) { target = new MapPropertySource(PROPERTY_SOURCE_NAME, map...
repos\dubbo-spring-boot-project-master\dubbo-spring-boot-compatible\autoconfigure\src\main\java\org\apache\dubbo\spring\boot\env\DubboDefaultPropertiesEnvironmentPostProcessor.java
2
请在Spring Boot框架中完成以下Java代码
public void setHandlerType(String handlerType) { this.handlerType = handlerType; } @ApiModelProperty(example = "cmmn-trigger-timer") public String getHandlerType() { return handlerType; } @ApiModelProperty(example = "3") public Integer getRetries() { return retries; ...
return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } @ApiModelProperty(example = "node1") public String getLockOwner() { return lockOwner; } public void setLockOwner(String lockOwner) { this.lockOwner = lockOwner; ...
repos\flowable-engine-main\modules\flowable-cmmn-rest\src\main\java\org\flowable\cmmn\rest\service\api\management\JobResponse.java
2
请完成以下Spring Boot application配置
spring.datasource.url=jdbc:mysql://localhost:3306/bookstoredb?createDatabaseIfNotExist=true spring.datasource.username=root spring.datasource.password=root spring.jpa.hibernate.ddl-auto=create spring.jpa.show-sql=true spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect spring.jpa.open-i...
vel.org.springframework.orm.jpa=DEBUG logging.level.org.springframework.transaction=DEBUG # global transaction timeout # spring.transaction.default-timeout=10
repos\Hibernate-SpringBoot-master\HibernateSpringBootTransactionTimeout\src\main\resources\application.properties
2
请完成以下Java代码
public void deleteOrderBOMLinesByOrderId(@NonNull final PPOrderId orderId) { final List<I_PP_Order_BOMLine> lines = queryBL .createQueryBuilder(I_PP_Order_BOMLine.class) .addEqualsFilter(I_PP_Order_BOMLine.COLUMN_PP_Order_ID, orderId) // .addOnlyActiveRecordsFilter() .create() .list(); for (fi...
public void deleteByOrderId(@NonNull final PPOrderId orderId) { final I_PP_Order_BOM orderBOM = getByOrderIdOrNull(orderId); if (orderBOM != null) { InterfaceWrapperHelper.delete(orderBOM); } } @Override public void markBOMLinesAsProcessed(@NonNull final PPOrderId orderId) { for (final I_PP_Order_BOM...
repos\metasfresh-new_dawn_uat\backend\de.metas.material\planning\src\main\java\de\metas\material\planning\pporder\impl\PPOrderBOMDAO.java
1
请完成以下Java代码
protected void suspending(CmmnActivityExecution execution) { String id = execution.getId(); Context .getCommandContext() .getTaskManager() .updateTaskSuspensionStateByCaseExecutionId(id, SuspensionState.SUSPENDED); } protected void resuming(CmmnActivityExecution execution) { String i...
// getters/setters ///////////////////////////////////////////////// public TaskDecorator getTaskDecorator() { return taskDecorator; } public void setTaskDecorator(TaskDecorator taskDecorator) { this.taskDecorator = taskDecorator; } public TaskDefinition getTaskDefinition() { return taskDecorat...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\cmmn\behavior\HumanTaskActivityBehavior.java
1
请完成以下Java代码
public ResponseEntity<BaseResponse> doBind(@RequestHeader(name="Content-Type", defaultValue = "application/json") String contentType, @RequestHeader(name="Authorization", defaultValue="token") String token, @RequestBody BindPa...
public VersionResult version(@RequestHeader(name="Content-Type", defaultValue = "application/json") String contentType, @RequestHeader(name="Authorization", defaultValue="token") String token, @RequestBody VersionParam param) { _logger.info("版本检查...
repos\SpringBootBucket-master\springboot-swagger2\src\main\java\com\xncoding\jwt\api\PublicController.java
1
请完成以下Java代码
public class AddIdentityLinkForProcessInstanceCmd implements Command<Void>, Serializable { private static final long serialVersionUID = 1L; protected String processInstanceId; protected String userId; protected String groupId; protected String type; public AddIdentityLinkForProcessInstance...
} @Override public Void execute(CommandContext commandContext) { ExecutionEntityManager executionEntityManager = CommandContextUtil.getExecutionEntityManager(commandContext); ExecutionEntity processInstance = executionEntityManager.findById(processInstanceId); if (processInstance == n...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\cmd\AddIdentityLinkForProcessInstanceCmd.java
1
请完成以下Java代码
public void setC_Queue_WorkPackage(de.metas.async.model.I_C_Queue_WorkPackage C_Queue_WorkPackage) { set_ValueFromPO(COLUMNNAME_C_Queue_WorkPackage_ID, de.metas.async.model.I_C_Queue_WorkPackage.class, C_Queue_WorkPackage); } /** Set WorkPackage Queue. @param C_Queue_WorkPackage_ID WorkPackage Queue */ @Over...
/** Get WorkPackage Notified. @return WorkPackage Notified */ @Override public int getC_Queue_WorkPackage_Notified_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_C_Queue_WorkPackage_Notified_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Notified. @param IsNotified Notified ...
repos\metasfresh-new_dawn_uat\backend\de.metas.async\src\main\java-gen\de\metas\async\model\X_C_Queue_WorkPackage_Notified.java
1
请完成以下Java代码
public String[] tag(List<String> wordList) { String[] words = new String[wordList.size()]; wordList.toArray(words); return tag(words); } @Override public String[] tag(String... words) { return perceptronPOSTagger.tag(createInstance(words)); } private POSInst...
Iterator<int[]> offsetIterator = featureTemplateArray[i].offsetList.iterator(); Iterator<String> delimiterIterator = featureTemplateArray[i].delimiterList.iterator(); delimiterIterator.next(); // ignore U0 之类的id while (offsetIterator.hasNext()) ...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\model\crf\CRFPOSTagger.java
1
请在Spring Boot框架中完成以下Java代码
protected void registerIntegrationPropertiesPropertySource(ConfigurableEnvironment environment, Resource resource) { PropertiesPropertySourceLoader loader = new PropertiesPropertySourceLoader(); try { OriginTrackedMapPropertySource propertyFileSource = (OriginTrackedMapPropertySource) loader .load("META-INF/...
mappings.put(PREFIX + "endpoint.default-timeout", IntegrationProperties.ENDPOINTS_DEFAULT_TIMEOUT); mappings.put(PREFIX + "endpoint.throw-exception-on-late-reply", IntegrationProperties.THROW_EXCEPTION_ON_LATE_REPLY); mappings.put(PREFIX + "endpoint.read-only-headers", IntegrationProperties.READ_ONLY_HEADERS...
repos\spring-boot-4.0.1\module\spring-boot-integration\src\main\java\org\springframework\boot\integration\autoconfigure\IntegrationPropertiesEnvironmentPostProcessor.java
2
请在Spring Boot框架中完成以下Java代码
Output div(Output x, Output y) { return binaryOp("Div", x, y); } Output sub(Output x, Output y) { return binaryOp("Sub", x, y); } Output resizeBilinear(Output images, Output size) { return binaryOp("ResizeBilinear", images, size); } ...
.setAttr("value", t) .build() .output(0); } private Output binaryOp(String type, Output in1, Output in2) { return g.opBuilder(type, type, scope).addInput(in1).addInput(in2).build().output(0); } private final Graph g; } @PreDestroy ...
repos\springboot-demo-master\Tensorflow\src\main\java\com\et\tf\service\ClassifyImageService.java
2
请完成以下Java代码
public class SystecResultStringElement { private final String name; private final int startByte; private final int length; private final Format format; public SystecResultStringElement(final String name, final int startByte, final int length, final Format format) { this.name = name; this.startByte = star...
public int getLength() { return length; } public Format getFormat() { return format; } @Override public String toString() { return String.format("SystecResultStringElement [name=%s, startByte=%s, length=%s, format=%s]", name, startByte, length, format); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.device.scales\src\main\java\de\metas\device\scales\impl\systec\SystecResultStringElement.java
1
请在Spring Boot框架中完成以下Java代码
public class DatabaseItemWriterDemo { @Autowired private JobBuilderFactory jobBuilderFactory; @Autowired private StepBuilderFactory stepBuilderFactory; @Autowired private ListItemReader<TestData> simpleReader; @Autowired private DataSource dataSource; @Bean public Job datasourc...
// 其他实现:MongoItemWriter,Neo4jItemWriter等 JdbcBatchItemWriter<TestData> writer = new JdbcBatchItemWriter<>(); writer.setDataSource(dataSource); // 设置数据源 String sql = "insert into TEST(id,field1,field2,field3) values (:id,:field1,:field2,:field3)"; writer.setSql(sql); // 设置插入sql脚本 ...
repos\SpringAll-master\69.spring-batch-itemwriter\src\main\java\cc\mrbird\batch\job\DatabaseItemWriterDemo.java
2
请在Spring Boot框架中完成以下Java代码
public Binding fanoutBinding1(Queue directOneQueue, FanoutExchange fanoutExchange) { return BindingBuilder.bind(directOneQueue).to(fanoutExchange); } /** * 分列模式绑定队列2 * * @param queueTwo 绑定队列2 * @param fanoutExchange 分列模式交换器 */ @Bean public Binding fanoutBinding2(Q...
public Binding topicBinding2(Queue queueTwo, TopicExchange topicExchange) { return BindingBuilder.bind(queueTwo).to(topicExchange).with(RabbitConsts.TOPIC_ROUTING_KEY_TWO); } /** * 主题模式绑定队列3 * * @param queueThree 队列3 * @param topicExchange 主题模式交换器 */ @Bean public Bin...
repos\spring-boot-demo-master\demo-mq-rabbitmq\src\main\java\com\xkcoding\mq\rabbitmq\config\RabbitMqConfig.java
2
请在Spring Boot框架中完成以下Java代码
public void setCorePoolSize(int corePoolSize) { threadPoolExecutor.setCorePoolSize(corePoolSize); } public void setMaximumPoolSize(int maximumPoolSize) { threadPoolExecutor.setMaximumPoolSize(maximumPoolSize); } public int getMaximumPoolSize() { return threadPoolExecutor.getMaximumPoolSize(); } ...
public long getCompletedTaskCount() { return threadPoolExecutor.getCompletedTaskCount(); } public int getQueueCount() { return threadPoolQueue.size(); } public int getQueueAddlCapacity() { return threadPoolQueue.remainingCapacity(); } public ThreadPoolExecutor getThreadPoolExecutor() { re...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\container\impl\jmx\services\JmxManagedThreadPool.java
2
请在Spring Boot框架中完成以下Java代码
public class TableAttachmentListenerRepository { private final CCache<AdTableId, ImmutableList<AttachmentListenerSettings>> cache = CCache.<AdTableId, ImmutableList<AttachmentListenerSettings>> builder() .cacheName("listenersByAdTableId") .cacheMapType(CCache.CacheMapType.LRU) .initialCapacity(100) .tableN...
.orderBy(I_AD_Table_AttachmentListener.COLUMNNAME_SeqNo) .create() .list() .stream() .map(this::buildAttachmentListenerSettings) .collect(ImmutableList.toImmutableList()); } private AttachmentListenerSettings buildAttachmentListenerSettings( final I_AD_Table_AttachmentListener record ) { retur...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\attachments\listener\TableAttachmentListenerRepository.java
2
请完成以下Java代码
public java.sql.Timestamp getPhonecallTimeMax () { return (java.sql.Timestamp)get_Value(COLUMNNAME_PhonecallTimeMax); } /** Set Erreichbar von. @param PhonecallTimeMin Erreichbar von */ @Override public void setPhonecallTimeMin (java.sql.Timestamp PhonecallTimeMin) { set_Value (COLUMNNAME_PhonecallTimeM...
{ set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); } /** Get Reihenfolge. @return Zur Bestimmung der Reihenfolge der Einträge; die kleinste Zahl kommt zuerst */ @Override public int getSeqNo () { Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); if (ii == null) return 0; return ii.intValue...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_Phonecall_Schema_Version_Line.java
1
请完成以下Java代码
public class BreadthFirstSearchAlgorithm { private static final Logger LOGGER = LoggerFactory.getLogger(BreadthFirstSearchAlgorithm.class); public static <T> Optional<Tree<T>> search(T value, Tree<T> root) { Queue<Tree<T>> queue = new ArrayDeque<>(); queue.add(root); Tree<T> currentNo...
Queue<Node<T>> queue = new ArrayDeque<>(); queue.add(start); Node<T> currentNode; Set<Node<T>> alreadyVisited = new HashSet<>(); while (!queue.isEmpty()) { currentNode = queue.remove(); LOGGER.debug("Visited node with value: {}", currentNode.getValue()); ...
repos\tutorials-master\algorithms-modules\algorithms-searching\src\main\java\com\baeldung\algorithms\breadthfirstsearch\BreadthFirstSearchAlgorithm.java
1
请完成以下Java代码
public void setReadOnly(boolean readOnly) { m_readOnly = readOnly; } /** * Set Color Column * @param colorColumn color */ public void setColorColumn(boolean colorColumn) { m_colorColumn = colorColumn; } /** * ColorColumn * @return true if color column */ public boolean isColorColumn() { ret...
this.columnName = columnName; return this; } /** * * @return internal (not translated) column name */ public String getColumnName() { return columnName; } private int precision = -1; /** * Sets precision to be used in case it's a number. * * If not set, default displayType's precision will ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\minigrid\ColumnInfo.java
1
请在Spring Boot框架中完成以下Java代码
public void deleteBySlug(String slug) { bus.executeCommand(new DeleteArticle(slug)); } @Override public FavoriteArticleResult favorite(String slug) { return bus.executeCommand(new FavoriteArticle(slug)); } @Override public UnfavoriteArticleResult unfavorite(String slug) { ...
public GetCommentsResult findAllComments(String slug) { return bus.executeQuery(new GetComments(slug)); } @Override public AddCommentResult addComment(String slug, @Valid AddComment command) { return bus.executeCommand(command.withSlug(slug)); } @Override public void deleteComm...
repos\realworld-backend-spring-master\service\src\main\java\com\github\al\realworld\infrastructure\web\ArticleController.java
2
请完成以下Java代码
public class HistoricCaseActivityStatisticsImpl implements HistoricCaseActivityStatistics { protected String id; protected long available; protected long enabled; protected long disabled; protected long active; protected long completed; protected long terminated; public String getId() { return id;...
public long getDisabled() { return disabled; } public long getActive() { return active; } public long getCompleted() { return completed; } public long getTerminated() { return terminated; } }
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\HistoricCaseActivityStatisticsImpl.java
1
请在Spring Boot框架中完成以下Java代码
public Producer createProducer() { // 创建默认的 Producer Producer<?, ?> producer = super.createProducer(); // 创建可链路追踪的 Producer return kafkaTracing.producer(producer); } }; // 设置事务前缀 String transactionIdPrefix = properties...
@Override public Consumer<?, ?> createConsumer(String groupId, String clientIdPrefix, String clientIdSuffix) { return this.createConsumer(groupId, clientIdPrefix, clientIdSuffix, null); } @Override public Consumer<?, ?> createConsumer(String groupId, Str...
repos\SpringBoot-Labs-master\lab-40\lab-40-kafka\src\main\java\cn\iocoder\springboot\lab40\zipkindemo\config\ZipkinConfiguration.java
2
请完成以下Java代码
public String getName() { return this.headerName; } /** * Gets the values of the header. Cannot be null, empty, or contain null values. * @return the values of the header */ public List<String> getValues() { return this.headerValues; } @Override public boolean equals(Object obj) { if (this == obj) {...
return false; } return this.headerValues.equals(other.headerValues); } @Override public int hashCode() { return this.headerName.hashCode() + this.headerValues.hashCode(); } @Override public String toString() { return "Header [name: " + this.headerName + ", values: " + this.headerValues + "]"; } }
repos\spring-security-main\web\src\main\java\org\springframework\security\web\header\Header.java
1
请在Spring Boot框架中完成以下Java代码
public Access matcher(PayloadExchangeMatcher matcher) { return new Access(matcher); } public final class Access { private final PayloadExchangeMatcher matcher; private Access(PayloadExchangeMatcher matcher) { this.matcher = matcher; } public AuthorizePayloadsSpec authenticated() { return ...
public AuthorizePayloadsSpec access( ReactiveAuthorizationManager<PayloadExchangeAuthorizationContext> authorization) { AuthorizePayloadsSpec.this.authzBuilder .add(new PayloadExchangeMatcherEntry<>(this.matcher, authorization)); return AuthorizePayloadsSpec.this; } public AuthorizePayloadsSpec...
repos\spring-security-main\config\src\main\java\org\springframework\security\config\annotation\rsocket\RSocketSecurity.java
2
请在Spring Boot框架中完成以下Java代码
public class TestData { private static final Logger log = LoggerFactory.getLogger(TestData.class); @Autowired @Qualifier("jdbcBookRepository") private BookRepository bookRepository; @Autowired private JdbcTemplate jdbcTemplate; private static final String SQL_CREATE_TABLE = "" ...
List<Book> books = Arrays.asList( new Book("Thinking in Java", new BigDecimal("46.32")), new Book("Mkyong in Java", new BigDecimal("1.99")), new Book("Getting Clojure", new BigDecimal("37.3")), new Book("Head First Android Development", new BigDecimal("41....
repos\spring-boot-master\spring-jdbc\src\main\java\com\mkyong\sp\TestData.java
2
请完成以下Java代码
public String getTenantId() { return tenantId; } public String getTenantIdLike() { return tenantIdLike; } public boolean isWithoutTenantId() { return withoutTenantId; } public String getAuthorizationUserId() { return authorizationUserId; } public Strin...
} public String getEventSubscriptionType() { return eventSubscriptionType; } public ProcessDefinitionQueryImpl startableByUser(String userId) { if (userId == null) { throw new ActivitiIllegalArgumentException("userId is null"); } this.authorizationUserId = userI...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\ProcessDefinitionQueryImpl.java
1
请完成以下Java代码
public void afterPropertiesSet() throws Exception { Assert.notNull(this.resourceLoader, "resourceLoader cannot be null"); Resource webXml = this.resourceLoader.getResource("/WEB-INF/web.xml"); Document doc = getDocument(webXml.getInputStream()); NodeList webApp = doc.getElementsByTagName("web-app"); Assert.is...
} finally { try { aStream.close(); } catch (IOException ex) { this.logger.warn("Failed to close input stream for web.xml", ex); } } } /** * We do not need to resolve external entities, so just return an empty String. */ private static final class MyEntityResolver implements EntityResolve...
repos\spring-security-main\web\src\main\java\org\springframework\security\web\authentication\preauth\j2ee\WebXmlMappableAttributesRetriever.java
1
请完成以下Java代码
public void handlerAdded(ChannelHandlerContext ctx) throws Exception { log.info("有新的客户端链接:[{}]", ctx.channel().id().asLongText()); // 添加到channelGroup 通道组 NettyConfig.getChannelGroup().add(ctx.channel()); } /** * 读取数据 */ @Override protected void channelRead0(ChannelHand...
} @Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { log.info("异常:{}", cause.getMessage()); // 删除通道 NettyConfig.getChannelGroup().remove(ctx.channel()); removeUserId(ctx); ctx.close(); } /** * 删除用户与channel的对...
repos\springboot-demo-master\netty\src\main\java\com\et\netty\handler\WebSocketHandler.java
1
请完成以下Java代码
public int getInsufficientQtyAvailableForSalesColor_ID() { return get_ValueAsInt(COLUMNNAME_InsufficientQtyAvailableForSalesColor_ID); } @Override public void setIsAsync (final boolean IsAsync) { set_Value (COLUMNNAME_IsAsync, IsAsync); } @Override public boolean isAsync() { return get_ValueAsBoolean...
return get_ValueAsInt(COLUMNNAME_MD_AvailableForSales_Config_ID); } @Override public void setSalesOrderLookBehindHours (final int SalesOrderLookBehindHours) { set_Value (COLUMNNAME_SalesOrderLookBehindHours, SalesOrderLookBehindHours); } @Override public int getSalesOrderLookBehindHours() { return get_Va...
repos\metasfresh-new_dawn_uat\backend\de.metas.material\cockpit\src\main\java-gen\de\metas\material\cockpit\model\X_MD_AvailableForSales_Config.java
1
请在Spring Boot框架中完成以下Java代码
public String getCustomResourcePrefixPath() { return customResourcePrefixPath; } public void setCustomResourcePrefixPath(String customResourcePrefixPath) { this.customResourcePrefixPath = customResourcePrefixPath; } public Elasticsearch getElasticsearch() { return elasticsearch...
return domainUrl; } public void setDomainUrl(DomainUrl domainUrl) { this.domainUrl = domainUrl; } public String getSignUrls() { return signUrls; } public void setSignUrls(String signUrls) { this.signUrls = signUrls; } public String getFileViewDomain() { ...
repos\JeecgBoot-main\jeecg-boot\jeecg-boot-base-core\src\main\java\org\jeecg\config\JeecgBaseConfig.java
2
请完成以下Java代码
public static ResultType get(String code) { BeanUtil.requireNonNull(code, "code is null"); ResultType[] list = values(); for (ResultType resultType : list) { if (code.equals(resultType.getCode().toString())) { return resultType; } } return ...
/** * 获得结果描述 * * @return 结果描述 */ public String getDescription() { return description; } @Override public String toString() { return "ResultType{" + "code=" + code + ", description='" + description + '\'' + '}'; } }
repos\spring-boot-quick-master\quick-wx-public\src\main\java\com\wx\pn\api\enums\ResultType.java
1
请完成以下Java代码
public int getM_Shipper_ID() { return get_ValueAsInt(COLUMNNAME_M_Shipper_ID); } @Override public void setM_Warehouse_ID (final int M_Warehouse_ID) { if (M_Warehouse_ID < 1) set_Value (COLUMNNAME_M_Warehouse_ID, null); else set_Value (COLUMNNAME_M_Warehouse_ID, M_Warehouse_ID); } @Override publ...
/** Check = S */ public static final String PAYMENTRULE_Check = "S"; /** OnCredit = P */ public static final String PAYMENTRULE_OnCredit = "P"; /** DirectDebit = D */ public static final String PAYMENTRULE_DirectDebit = "D"; /** Mixed = M */ public static final String PAYMENTRULE_Mixed = "M"; /** PayPal = L */ ...
repos\metasfresh-new_dawn_uat\backend\de.metas.salescandidate.base\src\main\java-gen\de\metas\ordercandidate\model\X_C_OLCandProcessor.java
1
请完成以下Java代码
public class X_C_BPartner_Report_Text extends org.compiere.model.PO implements I_C_BPartner_Report_Text, org.compiere.model.I_Persistent { private static final long serialVersionUID = 998540969L; /** * Standard Constructor */ public X_C_BPartner_Report_Text(final Properties ctx, final int C_BPartner_Report_Tex...
public void setC_BPartner_ID(final int C_BPartner_ID) { if (C_BPartner_ID < 1) set_Value(COLUMNNAME_C_BPartner_ID, null); else set_Value(COLUMNNAME_C_BPartner_ID, C_BPartner_ID); } @Override public int getC_BPartner_ID() { return get_ValueAsInt(COLUMNNAME_C_BPartner_ID); } @Override public void se...
repos\metasfresh-new_dawn_uat\backend\de.metas.fresh\de.metas.fresh.base\src\main\java\de\metas\fresh\partnerreporttext\model\X_C_BPartner_Report_Text.java
1
请完成以下Java代码
public class CustomFunctionTransformer extends JavaFunctionProvider { protected static final ScalaFeelLogger LOGGER = ScalaFeelLogger.LOGGER; protected Map<String, JavaFunction> functions; protected ValueMapper valueMapper; public CustomFunctionTransformer(List<FeelCustomFunctionProvider> functionProviders, ...
Function<List<Object>, Object> functionHandler = function.getFunction(); Object result = functionHandler.apply(unpackedArgs); return toVal(result); }; } protected List<Object> unpackVals(List<Val> args) { return args.stream() .map(this::unpackVal) .collect(Collectors.toList()); }...
repos\camunda-bpm-platform-master\engine-dmn\feel-scala\src\main\java\org\camunda\bpm\dmn\feel\impl\scala\function\CustomFunctionTransformer.java
1
请在Spring Boot框架中完成以下Java代码
public class ConfigurationMetadataGroup implements Serializable { private final String id; private final Map<String, ConfigurationMetadataSource> sources = new HashMap<>(); private final Map<String, ConfigurationMetadataProperty> properties = new HashMap<>(); public ConfigurationMetadataGroup(String id) { thi...
/** * Return the {@link ConfigurationMetadataProperty properties} defined in this group. * <p> * A property may appear more than once for a given source, potentially with * conflicting type or documentation. This is a "merged" view of the properties of * this group. * @return the properties of the group *...
repos\spring-boot-4.0.1\configuration-metadata\spring-boot-configuration-metadata\src\main\java\org\springframework\boot\configurationmetadata\ConfigurationMetadataGroup.java
2
请完成以下Java代码
static Passenger from(String firstName, String lastName, Integer seatNumber) { return new Passenger(firstName, lastName, seatNumber); } @Override public boolean equals(Object object) { if (this == object) return true; if (object == null || getClass() != object.getClass()...
} Long getId() { return id; } String getFirstName() { return firstName; } String getLastName() { return lastName; } Integer getSeatNumber() { return seatNumber; } }
repos\tutorials-master\persistence-modules\spring-data-jpa-query\src\main\java\com\baeldung\boot\passenger\Passenger.java
1
请完成以下Java代码
public static void applyFieldDeclaration(List<FieldDeclaration> fieldDeclarations, Object target) { if (fieldDeclarations != null) { for (FieldDeclaration declaration : fieldDeclarations) { applyFieldDeclaration(declaration, target); } } } public static v...
// Check if the delegate field's type is correct if (!fieldTypeCompatible(declaration, field)) { throw new ActivitiIllegalArgumentException( "Incompatible type set on field declaration '" + declaration.getName() + "' for class " + ...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\helper\ClassDelegateUtil.java
1
请完成以下Java代码
public PropertySource<Iterable<ConfigurationPropertySource>> getDelegate() { return delegate; } /** {@inheritDoc} */ @Override public void refresh() { } /** {@inheritDoc} */ @Override public Object getProperty(String name) { ConfigurationProperty configurationProperty ...
// simulate non-exposed version of ConfigurationPropertyName.of(name, nullIfInvalid) if(ex.getInvalidCharacters().size() == 1 && ex.getInvalidCharacters().get(0).equals('.')) { return null; } throw ex; } } private ConfigurationProperty findConfigurati...
repos\jasypt-spring-boot-master\jasypt-spring-boot\src\main\java\com\ulisesbocchio\jasyptspringboot\wrapper\EncryptableConfigurationPropertySourcesPropertySource.java
1
请完成以下Java代码
public String getSerializerName() { return serializerName; } public void setSerializerName(String serializerName) { this.serializerName = serializerName; } public void addImplicitUpdateListener(TypedValueUpdateListener listener) { updateListeners.add(listener); } /** * @return the type nam...
} } /** * If the variable value could not be loaded, this returns the error message. * * @return an error message indicating why the variable value could not be loaded. */ public String getErrorMessage() { return errorMessage; } @Override public void postLoad() { } public void clear()...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\util\TypedValueField.java
1
请完成以下Java代码
public class Role { private static final long serialVersionUID = 1L; /** * 主键ID */ private Integer id; /** * 角色名称 */ private String role; /** * 角色说明 */ private String description; /** * 创建时间 */ private Date createdTime; /** * 更新时间 ...
} /** * 设置 角色说明. * * @param description 角色说明. */ public void setDescription(String description) { this.description = description; } /** * 获取 创建时间. * * @return 创建时间. */ public Date getCreatedTime() { return createdTime; } /** * 设...
repos\SpringBootBucket-master\springboot-jwt\src\main\java\com\xncoding\jwt\dao\domain\Role.java
1
请完成以下Java代码
public void addTreeListener(ITreeListener listener, boolean isWeak) { if (!listeners.contains(listener)) listeners.add(listener, isWeak); } public void removeTreeListener(ITreeListener listener) { listeners.remove(listener); } @Override public void onNodeInserted(PO po) { for (ITreeListener listener...
public void onNodeDeleted(PO po) { for (ITreeListener listener : listeners) { listener.onNodeDeleted(po); } } @Override public void onParentChanged(int AD_Table_ID, int nodeId, int newParentId, int oldParentId, String trxName) { if (newParentId == oldParentId) return; for (ITreeListener listener :...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\model\tree\TreeListenerSupport.java
1
请完成以下Java代码
public I_M_Material_Tracking getMaterialTrackingOrNull(@Nullable final AttributeSetInstanceId asiId) { if (asiId == null || asiId.isNone()) { return null; } final I_M_AttributeInstance materialTrackingAttributeInstance = getMaterialTrackingAttributeInstanceOrNull(asiId, false); // createIfNotFound=false ...
} final Object materialTrackingIdObj = attributeSet.getValue(M_Attribute_Value_MaterialTracking); if (materialTrackingIdObj == null) { return -1; } final String materialTrackingIdStr = materialTrackingIdObj.toString(); return getMaterialTrackingIdFromMaterialTrackingIdStr(materialTrackingIdStr); } @O...
repos\metasfresh-new_dawn_uat\backend\de.metas.materialtracking\src\main\java\de\metas\materialtracking\impl\MaterialTrackingAttributeBL.java
1
请在Spring Boot框架中完成以下Java代码
public class SpringSecurityConfig extends WebSecurityConfigurerAdapter { @Autowired private AccessDeniedHandler accessDeniedHandler; // role admin allow to access / admin/** //roles user allow to access /user/** // custom 403 access denied handler @Override protected void configure(HttpSe...
// .antMatchers("/login**", "/").permitAll() // .antMatchers("/user/**").access("hasAnyAuthority('USER')") // .antMatchers("/admin/**").access("hasAnyAuthority('ADMIN')") // // .anyRequest().fullyAuthenticated() // .and() // .form...
repos\SpringBoot-Projects-FullStack-master\Part-6 Spring Boot Security\12.SpringSecuritySimpleExample\src\main\java\spring\security\config\SpringSecurityConfig.java
2
请在Spring Boot框架中完成以下Java代码
class ClonedWFNodesInfo { private static final String DYNATTR_ClonedWFStepsInfo = "ClonedWFStepsInfo"; public static ClonedWFNodesInfo getOrCreate(I_AD_Workflow targetWorkflow) { return InterfaceWrapperHelper.computeDynAttributeIfAbsent(targetWorkflow, DYNATTR_ClonedWFStepsInfo, ClonedWFNodesInfo::new); } @Nul...
public void addOriginalToClonedWFStepMapping(@NonNull final WFNodeId originalWFStepId, @NonNull final WFNodeId targetWFStepId) { original2targetWFStepIds.put(originalWFStepId, targetWFStepId); } public WFNodeId getTargetWFStepId(@NonNull final WFNodeId originalWFStepId) { final WFNodeId targetWFStepId = origin...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\workflow\service\impl\ClonedWFNodesInfo.java
2
请在Spring Boot框架中完成以下Java代码
private Map<String, String> createMap() { if (bundle == null) { return ImmutableMap.of(); } final Set<String> keysSet = bundle.keySet(); if (keysSet == null || keysSet.isEmpty()) { return ImmutableMap.of(); } final Map<String, String> map = new HashMap<>(); for (final String key : keysSet) ...
} @Override public String put(final String key, final String value) { throw new UnsupportedOperationException(); } @Override public String remove(final Object key) { throw new UnsupportedOperationException(); } @Override public void putAll(final Map<? extends String, ? extends String> m) { throw new...
repos\metasfresh-new_dawn_uat\backend\de.metas.report\metasfresh-report-service\src\main\java\de\metas\report\xls\engine\ResourceBundleMapWrapper.java
2
请在Spring Boot框架中完成以下Java代码
public class MongoConfig extends AbstractMongoClientConfiguration { private final List<Converter<?, ?>> converters = new ArrayList<Converter<?, ?>>(); @Override protected String getDatabaseName() { return "test"; } @Override public MongoClient mongoClient() { final ConnectionS...
@Override public MongoCustomConversions customConversions() { converters.add(new UserWriterConverter()); return new MongoCustomConversions(converters); } @Bean MongoTransactionManager transactionManager(MongoDatabaseFactory dbFactory) { return new MongoTransactionManager(dbFacto...
repos\tutorials-master\persistence-modules\spring-data-mongodb\src\main\java\com\baeldung\config\MongoConfig.java
2
请完成以下Java代码
protected boolean afterSave (boolean newRecord, boolean success) { if (success) updateAchievementGoals(); return success; } // afterSave /** * After Delete * @param success success * @return success */ @Override protected boolean afterDelete (boolean success) {
if (success) updateAchievementGoals(); return success; } // afterDelete /** * Update Goals with Achievement */ private void updateAchievementGoals() { MMeasure measure = MMeasure.get (getCtx(), getPA_Measure_ID()); measure.updateGoals(); } // updateAchievementGoals } // MAchievement
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java-legacy\org\compiere\model\MAchievement.java
1
请在Spring Boot框架中完成以下Java代码
public class Course { @Id private Long id; private String name; @ManyToMany @JoinTable(name = "course_student", joinColumns = @JoinColumn(name = "course_id"), inverseJoinColumns = @JoinColumn(name = "student_id")) private List<Student> students; public List<Student> g...
} public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public void setStudents(List<Student> students) { this.students = students; } }
repos\tutorials-master\persistence-modules\hibernate-mapping\src\main\java\com\baeldung\associations\biredirectional\Course.java
2
请完成以下Java代码
public ValueExpression getVariable(int index) { return variables[index]; } /** * Test if given index is bound to a variable. * This method performs an index check. * @param index identifier index * @return <code>true</code> if the given index is bound to a variable */ publi...
MethodWrapper[] wrappers = new MethodWrapper[functions.length]; for (int i = 0; i < wrappers.length; i++) { wrappers[i] = new MethodWrapper(functions[i]); } out.writeObject(wrappers); } private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException ...
repos\Activiti-develop\activiti-core-common\activiti-juel-jakarta\src\main\java\org\activiti\core\el\juel\tree\Bindings.java
1
请完成以下Java代码
public class JobDefinitionDto { protected String id; protected String processDefinitionId; protected String processDefinitionKey; protected String jobType; protected String jobConfiguration; protected String activityId; protected boolean suspended; protected Long overridingJobPriority; protected Stri...
} public Long getOverridingJobPriority() { return overridingJobPriority; } public String getTenantId() { return tenantId; } public String getDeploymentId() { return deploymentId; } public static JobDefinitionDto fromJobDefinition(JobDefinition definition) { JobDefinitionDto dto = new Jo...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\management\JobDefinitionDto.java
1
请在Spring Boot框架中完成以下Java代码
public class ConfigureNotifyKeyspaceEventsAction implements ConfigureRedisAction { static final String CONFIG_NOTIFY_KEYSPACE_EVENTS = "notify-keyspace-events"; /* * @see * org.springframework.session.data.redis.config.ConfigureRedisAction#configure(org. * springframework.data.redis.connection.RedisConnection...
connection.serverCommands().setConfig(CONFIG_NOTIFY_KEYSPACE_EVENTS, customizedNotifyOptions); } } private String getNotifyOptions(RedisConnection connection) { try { Properties config = connection.serverCommands().getConfig(CONFIG_NOTIFY_KEYSPACE_EVENTS); if (config.isEmpty()) { return ""; } ret...
repos\spring-session-main\spring-session-data-redis\src\main\java\org\springframework\session\data\redis\config\ConfigureNotifyKeyspaceEventsAction.java
2
请完成以下Java代码
private final class ICTrxItemExceptionHandler extends FailTrxItemExceptionHandler { private final ICUpdateResult result; public ICTrxItemExceptionHandler(@NonNull final ICUpdateResult result) { this.result = result; } /** * Resets the given IC to its old values, and sets an error flag in it. */ ...
result.incrementErrorsCount(); final I_C_Invoice_Candidate ic = InterfaceWrapperHelper.create(item, I_C_Invoice_Candidate.class); // gh #428: don't discard changes that were already made, because they might include a change of QtyInvoice. // in that case, a formerly Processed IC might need to be flagged as u...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\invoicecandidate\api\impl\InvoiceCandInvalidUpdater.java
1
请完成以下Java代码
public Integer getCollectTopicCount() { return collectTopicCount; } public void setCollectTopicCount(Integer collectTopicCount) { this.collectTopicCount = collectTopicCount; } public Integer getCollectCommentCount() { return collectCommentCount; } public void setCollec...
StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", memberId=").append(memberId); sb.append(", consumeAmount=").append(consumeAmount); ...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\UmsMemberStatisticsInfo.java
1
请完成以下Java代码
protected SSLSocketFactory createSslSocketFactory() { try { SSLContext sslContext = SSLContext.getInstance("TLS"); KeyManagerFactory keyManagerFactory = createAndInitKeyManagerFactory(); TrustManagerFactory trustManagerFactory = createAndInitTrustManagerFactory(); ...
return null; } List<X509Certificate> certificates = SslUtil.readCertFileByPath(redisSslCredentials.getCertFile()); PrivateKey privateKey = SslUtil.readPrivateKeyByFilePath(redisSslCredentials.getUserKeyFile(), null); KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); ...
repos\thingsboard-master\common\cache\src\main\java\org\thingsboard\server\cache\TBRedisCacheConfiguration.java
1
请完成以下Java代码
public void setM_Product_AlbertaTherapy_ID (final int M_Product_AlbertaTherapy_ID) { if (M_Product_AlbertaTherapy_ID < 1) set_ValueNoCheck (COLUMNNAME_M_Product_AlbertaTherapy_ID, null); else set_ValueNoCheck (COLUMNNAME_M_Product_AlbertaTherapy_ID, M_Product_AlbertaTherapy_ID); } @Override public int ...
/** Beatmung = 8 */ public static final String THERAPY_Beatmung = "8"; /** Sonstiges = 9 */ public static final String THERAPY_Sonstiges = "9"; /** OSA = 10 */ public static final String THERAPY_OSA = "10"; /** Hustenhilfen = 11 */ public static final String THERAPY_Hustenhilfen = "11"; /** Absaugung = 12 */ p...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.healthcare.alberta\src\main\java-gen\de\metas\vertical\healthcare\alberta\model\X_M_Product_AlbertaTherapy.java
1
请完成以下Java代码
protected void initializeCommand(CaseExecutionCommandBuilder commandBuilder, CaseExecutionTriggerDto triggerDto, String transition) { Map<String, TriggerVariableValueDto> variables = triggerDto.getVariables(); if (variables != null && !variables.isEmpty()) { initializeCommandWithVariables(commandBuilder, ...
throw new RestException(e.getStatus(), e, errorMessage); } } } protected void initializeCommandWithDeletions(CaseExecutionCommandBuilder commandBuilder, List<VariableNameDto> deletions, String transition) { for (VariableNameDto variableName : deletions) { if (variableName.isLocal()) { ...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\sub\runtime\impl\CaseInstanceResourceImpl.java
1
请在Spring Boot框架中完成以下Java代码
public Map<String, String> getProperties() { return this.properties; } public @Nullable String getJndiName() { return this.jndiName; } public void setJndiName(@Nullable String jndiName) { this.jndiName = jndiName; } public Ssl getSsl() { return this.ssl; } public static class Ssl { /** * Wheth...
*/ private @Nullable String bundle; public boolean isEnabled() { return this.enabled; } public void setEnabled(boolean enabled) { this.enabled = enabled; } public @Nullable String getBundle() { return this.bundle; } public void setBundle(@Nullable String bundle) { this.bundle = bundle; ...
repos\spring-boot-4.0.1\module\spring-boot-mail\src\main\java\org\springframework\boot\mail\autoconfigure\MailProperties.java
2
请完成以下Java代码
private HuId getParentHUIdOfSelectedRow() { final HUEditorRow huRow = getSelectedRow(); final I_M_HU hu = huRow.getM_HU(); if (hu == null) { return null; } return handlingUnitsDAO.retrieveParentId(hu); } public LookupValuesList getM_HU_PI_Item_IDs() { final ActionType actionType = getActionType()...
{ final ActionType currentActionType = getActionType(); if (currentActionType == null) { return false; } final boolean isMoveToWarehouseAllowed = _isMoveToDifferentWarehouseEnabled && statusBL.isStatusActive(getSelectedRow().getM_HU()); if (!isMoveToWarehouseAllowed) { return false; } final ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\handlingunits\process\WebuiHUTransformParametersFiller.java
1
请完成以下Java代码
public StockQtyAndUOMQty getAllocatedQty(@NonNull final I_C_Invoice_Candidate ic, @NonNull final IInvoiceLineRW il) { return getAllocatedQty(ic, ic.getC_Invoice_Candidate_ID(), il); } /** * This method does the actual work for {@link #getAllocatedQty(I_C_Invoice_Candidate, IInvoiceLineRW)}. For an explanation o...
@Override public String toString() { return "InvoiceCandAggregateImpl [allLines=" + allLines + "]"; } @Override public void negateLineAmounts() { for (final IInvoiceLineRW line : getAllLines()) { line.negateAmounts(); } } }
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\invoicecandidate\api\impl\InvoiceCandAggregateImpl.java
1
请完成以下Java代码
public long executeCount(CommandContext commandContext) { checkQueryOk(); ensureVariablesInitialized(); return commandContext .getCaseExecutionManager() .findCaseExecutionCountByQueryCriteria(this); } public List<CaseExecution> executeList(CommandContext commandContext, Page page) { che...
public boolean isCaseInstancesOnly() { return false; } public String getSuperProcessInstanceId() { return superProcessInstanceId; } public String getSubProcessInstanceId() { return subProcessInstanceId; } public String getSuperCaseInstanceId() { return superCaseInstanceId; } public S...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\cmmn\entity\runtime\CaseExecutionQueryImpl.java
1
请完成以下Java代码
public long findHistoricVariableInstanceCountByQueryCriteria( HistoricVariableInstanceQueryImpl historicProcessVariableQuery ) { return (Long) getDbSqlSession().selectOne( "selectHistoricVariableInstanceCountByQueryCriteria", historicProcessVariableQuery ); } ...
@Override @SuppressWarnings("unchecked") public List<HistoricVariableInstance> findHistoricVariableInstancesByNativeQuery( Map<String, Object> parameterMap, int firstResult, int maxResults ) { return getDbSqlSession().selectListWithRawParameter( "selectHistoricVar...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\persistence\entity\data\impl\MybatisHistoricVariableInstanceDataManager.java
1