instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
public class DecisionServiceExecutionAuditContainer extends DecisionExecutionAuditContainer { protected Map<String, List<Map<String, Object>>> decisionServiceResult = new HashMap<>(); protected Map<String, DecisionExecutionAuditContainer> childDecisionExecutions = new LinkedHashMap<>(); public DecisionSer...
public List<Map<String, Object>> getDecisionServiceResultForDecision(String decisionKey) { return decisionServiceResult.get(decisionKey); } public DecisionExecutionAuditContainer getChildDecisionExecution(String decisionKey) { return childDecisionExecutions.get(decisionKey); } public vo...
repos\flowable-engine-main\modules\flowable-dmn-api\src\main\java\org\flowable\dmn\api\DecisionServiceExecutionAuditContainer.java
1
请完成以下Java代码
public Builder tokenType(OAuth2AccessToken.TokenType tokenType) { this.tokenType = tokenType; return this; } /** * Sets the lifetime (in seconds) of the access token. * @param expiresIn the lifetime of the access token, in seconds. * @return the {@link Builder} */ public Builder expiresIn(long ...
* Builds a new {@link OAuth2AccessTokenResponse}. * @return a {@link OAuth2AccessTokenResponse} */ public OAuth2AccessTokenResponse build() { Instant issuedAt = getIssuedAt(); Instant expiresAt = getExpiresAt(); OAuth2AccessTokenResponse accessTokenResponse = new OAuth2AccessTokenResponse(); accessT...
repos\spring-security-main\oauth2\oauth2-core\src\main\java\org\springframework\security\oauth2\core\endpoint\OAuth2AccessTokenResponse.java
1
请在Spring Boot框架中完成以下Java代码
public QName getServicedCondition() { return OneTimeUse.DEFAULT_ELEMENT_NAME; } @NonNull @Override public ValidationResult validate(Condition condition, Assertion assertion, ValidationContext context) { // applications should validate their own OneTimeUse conditions return ValidationResu...
} } /** * A tuple containing an OpenSAML {@link Assertion} and its associated authentication * token. * * @since 5.4 */ static class AssertionToken { private final Saml2AuthenticationToken token; private final Assertion assertion; AssertionToken(Assertion assertion, Saml2AuthenticationToken toke...
repos\spring-security-main\saml2\saml2-service-provider\src\main\java\org\springframework\security\saml2\provider\service\authentication\BaseOpenSamlAuthenticationProvider.java
2
请完成以下Java代码
private void processTable (MTable table, ClientId clientId) { StringBuffer sql = new StringBuffer(); MColumn[] columns = table.getColumns(false); for (MColumn column : columns) { if (column.getAD_Reference_ID() == DisplayType.String || column.getAD_Reference_ID() == DisplayType.Text) { String col...
String baseTable = table.getTableName(); baseTable = baseTable.substring(0, baseTable.length()-4); log.info(baseTable + ": " + sql); String columnNames = sql.toString(); sql = new StringBuffer(); sql.append("UPDATE ").append(table.getTableName()).append(" t SET (") .append(columnNames).append(") = (S...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\process\TranslationDocSync.java
1
请在Spring Boot框架中完成以下Java代码
private void checkRequest(HttpServletRequest request) { // 获取当前 request 的方法 String currentMethod = request.getMethod(); Multimap<String, String> urlMapping = allUrlMapping(); for (String uri : urlMapping.keySet()) { // 通过 AntPathRequestMatcher 匹配 url // 可以通过 2 种方...
*/ private Multimap<String, String> allUrlMapping() { Multimap<String, String> urlMapping = ArrayListMultimap.create(); // 获取url与类和方法的对应信息 Map<RequestMappingInfo, HandlerMethod> handlerMethods = mapping.getHandlerMethods(); handlerMethods.forEach((k, v) -> { // 获取当前 key...
repos\spring-boot-demo-master\demo-rbac-security\src\main\java\com\xkcoding\rbac\security\config\RbacAuthorityService.java
2
请完成以下Java代码
public Class<? extends DmnDeploymentEntity> getManagedEntityClass() { return DmnDeploymentEntityImpl.class; } @Override public DmnDeploymentEntity create() { return new DmnDeploymentEntityImpl(); } @Override public long findDeploymentCountByQueryCriteria(DmnDeploymentQueryImpl ...
} @Override public List<String> getDeploymentResourceNames(String deploymentId) { return getDbSqlSession().getSqlSession().selectList("selectDmnResourceNamesByDeploymentId", deploymentId); } @Override @SuppressWarnings("unchecked") public List<DmnDeployment> findDeploymentsByNativeQuer...
repos\flowable-engine-main\modules\flowable-dmn-engine\src\main\java\org\flowable\dmn\engine\impl\persistence\entity\data\impl\MybatisDmnDeploymentDataManager.java
1
请完成以下Java代码
public class PvmAtomicOperationActivityLeave implements PvmAtomicOperation { private final static PvmLogger LOG = PvmLogger.PVM_LOGGER; public boolean isAsync(PvmExecutionImpl execution) { return false; } public void execute(PvmExecutionImpl execution) { execution.activityInstanceDone(); Activi...
try { behavior.doLeave(execution); } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new PvmException("couldn't leave activity <"+activity.getProperty("type")+" id=\""+activity.getId()+"\" ...>: "+e.getMessage(), e); } } else { throw new PvmExcepti...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\pvm\runtime\operation\PvmAtomicOperationActivityLeave.java
1
请在Spring Boot框架中完成以下Java代码
public void setPoolPreparedStatements(Boolean poolPreparedStatements) { this.poolPreparedStatements = poolPreparedStatements; } public Integer getMaxPoolPreparedStatementPerConnectionSize() { return maxPoolPreparedStatementPerConnectionSize; } public void setMaxPoolPreparedStatementPer...
} public Boolean getRemoveAbandoned() { return removeAbandoned; } public void setRemoveAbandoned(Boolean removeAbandoned) { this.removeAbandoned = removeAbandoned; } public Integer getRemoveAbandonedTimeout() { return removeAbandonedTimeout; } public void setRemov...
repos\SpringBootBucket-master\springboot-batch\src\main\java\com\xncoding\trans\config\properties\DruidProperties.java
2
请完成以下Java代码
public void setAnalytics(boolean analytics) { this.analytics = analytics; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; VariableDefinitionImpl that = (VariableDefinitionImpl) o; re...
'\'' + ", name='" + name + '\'' + ", description='" + description + '\'' + ", type='" + type + '\'' + ", required=" + required + ", display=" + display + ...
repos\Activiti-develop\activiti-core\activiti-api-impl\activiti-api-process-model-impl\src\main\java\org\activiti\api\runtime\model\impl\VariableDefinitionImpl.java
1
请完成以下Java代码
public class RuleEngineComponentLifecycleEventNotificationInfo implements RuleOriginatedNotificationInfo { private RuleChainId ruleChainId; private String ruleChainName; private EntityId componentId; private String componentName; private String action; private ComponentLifecycleEvent eventType;...
"componentId", componentId.toString(), "componentType", componentId.getEntityType().getNormalName(), "componentName", componentName, "action", action, "eventType", eventType.name().toLowerCase(), "error", error ); } @Overri...
repos\thingsboard-master\common\data\src\main\java\org\thingsboard\server\common\data\notification\info\RuleEngineComponentLifecycleEventNotificationInfo.java
1
请在Spring Boot框架中完成以下Java代码
public String getAnnotationFontName() { return annotationFontName; } public void setAnnotationFontName(String annotationFontName) { this.annotationFontName = annotationFontName; } public boolean isFormFieldValidationEnabled() { return formFieldValidationEnabled; } public void setFormFieldV...
return historyCleaningCycle; } public void setHistoryCleaningCycle(String historyCleaningCycle) { this.historyCleaningCycle = historyCleaningCycle; } @Deprecated @DeprecatedConfigurationProperty(replacement = "flowable.history-cleaning-after", reason = "Switched to using a Duration that allo...
repos\flowable-engine-main\modules\flowable-spring-boot\flowable-spring-boot-starters\flowable-spring-boot-autoconfigure\src\main\java\org\flowable\spring\boot\FlowableProperties.java
2
请完成以下Java代码
public static boolean isRegular(@Nullable final HUPIItemProductId id) { return id != null && id.isRegular(); } public static final HUPIItemProductId TEMPLATE_HU = new HUPIItemProductId(100); public static final HUPIItemProductId VIRTUAL_HU = new HUPIItemProductId(101); int repoId; private HUPIItemProductId(f...
} public boolean isVirtualHU() { return isVirtualHU(repoId); } public static boolean isVirtualHU(final int repoId) { return repoId == VIRTUAL_HU.repoId; } public boolean isRegular() { return repoId != VIRTUAL_HU.repoId && repoId != TEMPLATE_HU.repoId; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\handlingunits\HUPIItemProductId.java
1
请完成以下Java代码
protected void setValue(Object value) { if (m_multiSelection) { boolean sel = false; if (value == null) ; else if (value instanceof IDColumn) sel = ((IDColumn)value).isSelected(); else if (value instanceof Boolean) sel = ((Boolean)value).booleanValue(); else sel = value.toString().eq...
* Return rendering component * @param table * @param value * @param isSelected * @param hasFocus * @param row * @param column * @return Component (CheckBox or Button) */ @Override public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, i...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\minigrid\IDColumnRenderer.java
1
请在Spring Boot框架中完成以下Java代码
public static Payment createPayment(PaymentRequest paymentRequest) { UUID uuid = UUID.randomUUID(); String uuidAsString = uuid.toString(); Payment payment = new Payment(); payment.setPaymentId(uuidAsString); payment.setOrderId(paymentRequest.getOrderId()); payment.setAmo...
try { expiry = dateFormat.parse(details.getExpiry()); } catch (ParseException e) { payment.setErrorMsg("Invalid expiry date:" + details.getExpiry()); return false; } Date today = new Date(); if (today.getTime() > expiry.get...
repos\tutorials-master\microservices-modules\saga-pattern\src\main\java\io\orkes\example\saga\service\PaymentService.java
2
请完成以下Java代码
public boolean isBlocking() { return isBlockingAttribute.getValue(this); } public void setIsBlocking(boolean isBlocking) { isBlockingAttribute.setValue(this, isBlocking); } public Collection<InputsCaseParameter> getInputs() { return inputsCollection.get(this); } public Collection<OutputsCaseP...
.defaultValue(true) .build(); SequenceBuilder sequenceBuilder = typeBuilder.sequence(); inputsCollection = sequenceBuilder.elementCollection(InputsCaseParameter.class) .build(); outputsCollection = sequenceBuilder.elementCollection(OutputsCaseParameter.class) .build(); inputP...
repos\camunda-bpm-platform-master\model-api\cmmn-model\src\main\java\org\camunda\bpm\model\cmmn\impl\instance\TaskImpl.java
1
请完成以下Java代码
protected Collection<Object> merge(Supplier<Collection<Object>> existing, Collection<Object> additional) { Collection<Object> existingCollection = getExistingIfPossible(existing); if (existingCollection == null) { return additional; } try { existingCollection.clear(); existingCollection.addAll(addition...
private Collection<Object> copyIfPossible(Collection<Object> collection) { try { return createNewCollection(collection); } catch (Exception ex) { return collection; } } private Collection<Object> createNewCollection(Collection<Object> collection) { Collection<Object> result = CollectionFactory.create...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\context\properties\bind\CollectionBinder.java
1
请完成以下Java代码
public List<Type> getContent() { return this.content; } /** * Return the {@link Type} with the specified id or {@code null} if no such type * exists. * @param id the ID to find * @return the Type or {@code null} */ public Type get(String id) { return this.content.stream().filter((it) -> id.equals(it.g...
*/ @Override public Type getDefault() { return this.content.stream().filter(DefaultMetadataElement::isDefault).findFirst().orElse(null); } @Override public void merge(List<Type> otherContent) { otherContent.forEach((it) -> { if (get(it.getId()) == null) { this.content.add(it); } }); } }
repos\initializr-main\initializr-metadata\src\main\java\io\spring\initializr\metadata\TypeCapability.java
1
请在Spring Boot框架中完成以下Java代码
public boolean isWithoutProcessInstanceId() { return withoutProcessInstanceId; } public String getActivityId() { return activityId; } public String getProcessDefinitionId() { return processDefinitionId; } public boolean isWithoutProcessDefinitionId() { return w...
} public boolean isWithoutTenantId() { return withoutTenantId; } public String getConfiguration() { return configuration; } public Collection<String> getConfigurations() { return configurations; } public boolean isWithoutConfiguration() { return withoutCon...
repos\flowable-engine-main\modules\flowable-eventsubscription-service\src\main\java\org\flowable\eventsubscription\service\impl\EventSubscriptionQueryImpl.java
2
请在Spring Boot框架中完成以下Java代码
public static <T> BaseResult<T> success() { return new BaseResult<>(); } public static <T> BaseResult<T> successWithData(T data) { return new BaseResult<>(data); } public static <T> BaseResult<T> failWithCodeAndMsg(int code, String msg) { return new BaseResult<>(code, msg, null...
private ResponseParam(int code, String msg) { this.code = code; this.msg = msg; } public static ResponseParam buildParam(int code, String msg) { return new ResponseParam(code, msg); } public int getCode() { return code; } ...
repos\spring-boot-leaning-master\2.x_42_courses\第 2-9 课:Spring Boot 中使用 Swagger2 构建 RESTful APIs\spring-boot-swagger\src\main\java\com\neo\config\BaseResult.java
2
请在Spring Boot框架中完成以下Java代码
public void init(PartitionedQueueConsumerManager<TbProtoQueueMsg<ToCalculatedFieldMsg>> eventConsumer) { super.stateService = new DefaultQueueStateService<>(eventConsumer); } @Override protected void doPersist(CalculatedFieldEntityCtxId stateId, CalculatedFieldStateProto stateMsgProto, TbCallback c...
stateMsg = CalculatedFieldStateProto.parseFrom(value); } catch (Exception e) { log.error("Failed to parse CalculatedFieldStateProto for key {}", key, e); return; } processRestoredState(stateMsg, null, new TbCallback() { ...
repos\thingsboard-master\application\src\main\java\org\thingsboard\server\service\cf\ctx\state\RocksDBCalculatedFieldStateService.java
2
请完成以下Java代码
public void preventMovingSourceHu(@NonNull final I_M_HU hu) { final ISourceHuDAO sourceHuDAO = Services.get(ISourceHuDAO.class); final boolean sourceHU = sourceHuDAO.isSourceHu(HuId.ofRepoId(hu.getM_HU_ID())); if (sourceHU) { throw new SourceHuMayNotBeRemovedException(hu); } } @SuppressWarnings("serial...
final boolean isHUConsumed = X_M_HU.HUSTATUS_Picked.equals(huStatus) || X_M_HU.HUSTATUS_Shipped.equals(huStatus) || X_M_HU.HUSTATUS_Issued.equals(huStatus); if (!isHUConsumed) { return; } if (!handlingUnitsBL.isHUHierarchyCleared(hu)) { throw new AdempiereException("M_HUs that are not cleared can not ...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\sourcehu\interceptor\M_HU.java
1
请完成以下Java代码
public DocumentId toDocumentId() { DocumentId documentId = this._documentId; if (documentId == null) { final String sb = type.getCode() + PARTS_SEPARATOR + parentRowId + PARTS_SEPARATOR + recordId; documentId = this._documentId = DocumentId.ofString(sb); } return documentId; } public stat...
} public static PPOrderLineRowId ofPPOrderId(int ppOrderId) { Preconditions.checkArgument(ppOrderId > 0, "ppOrderId > 0"); return new PPOrderLineRowId(PPOrderLineRowType.PP_Order, null, ppOrderId); } public static PPOrderLineRowId ofIssuedOrReceivedHU(@Nullable DocumentId parentRowId, @NonNull final HuId huId...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\pporder\PPOrderLineRowId.java
1
请完成以下Java代码
public VariableInstanceQuery variableValueLike(String variableName, String variableValue) { wrappedVariableInstanceQuery.variableValueLike(variableName, variableValue); return this; } @Override public VariableInstanceQuery variableValueLikeIgnoreCase(String variableName, String variableValu...
wrappedVariableInstanceQuery.orderBy(property, nullHandlingOnOrder); return this; } @Override public long count() { return wrappedVariableInstanceQuery.count(); } @Override public VariableInstance singleResult() { return wrappedVariableInstanceQuery.singleResult(); ...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\runtime\CmmnVariableInstanceQueryImpl.java
1
请完成以下Java代码
public class Jackson2JsonMessageConverter extends AbstractJackson2MessageConverter { /** * Construct with an internal {@link ObjectMapper} instance * and trusted packed to all ({@code *}). * @since 1.6.11 * @see JacksonUtils#enhancedObjectMapper() */ public Jackson2JsonMessageConverter() { this("*"); } ...
} /** * Construct with the provided {@link ObjectMapper} instance * and trusted packed to all ({@code *}). * @param jsonObjectMapper the {@link ObjectMapper} to use. * @since 1.6.12 */ public Jackson2JsonMessageConverter(ObjectMapper jsonObjectMapper) { this(jsonObjectMapper, "*"); } /** * Construct...
repos\spring-amqp-main\spring-amqp\src\main\java\org\springframework\amqp\support\converter\Jackson2JsonMessageConverter.java
1
请完成以下Java代码
public boolean supports(Class<?> authentication) { return OAuth2RefreshTokenAuthenticationToken.class.isAssignableFrom(authentication); } private static void verifyDPoPProofPublicKey(Jwt dPoPProof, ClaimAccessor accessTokenClaims) { JWK jwk = null; @SuppressWarnings("unchecked") Map<String, Object> jwkJson =...
} String jwkThumbprintClaim = null; Map<String, Object> confirmationMethodClaim = accessTokenClaims.getClaimAsMap("cnf"); if (!CollectionUtils.isEmpty(confirmationMethodClaim) && confirmationMethodClaim.containsKey("jkt")) { jwkThumbprintClaim = (String) confirmationMethodClaim.get("jkt"); } if (jwkThumbp...
repos\spring-security-main\oauth2\oauth2-authorization-server\src\main\java\org\springframework\security\oauth2\server\authorization\authentication\OAuth2RefreshTokenAuthenticationProvider.java
1
请完成以下Java代码
public class CompositeGridTabRowBuilder implements IGridTabRowBuilder { private static final transient Logger logger = LogManager.getLogger(CompositeGridTabRowBuilder.class); private final List<IGridTabRowBuilder> builders = new ArrayList<IGridTabRowBuilder>(); public void addGridTabRowBuilder(final IGridTabRowBui...
return createNewRecord; } /** * @return true if at least one builder is valid */ @Override public boolean isValid() { for (final IGridTabRowBuilder builder : builders) { if (builder.isValid()) { return true; } } return false; } @Override public void setSource(Object model) { for (...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\compiere\apps\search\impl\CompositeGridTabRowBuilder.java
1
请完成以下Java代码
public class Generic_OIHandler implements FAOpenItemsHandler { private final ElementValueService elementValueService; public Generic_OIHandler(final ElementValueService elementValueService) { this.elementValueService = elementValueService; } @Override public @NonNull Set<FAOpenItemsHandlerMatchingKey> getMatc...
return Optional.of(trxInfo); } else { return Optional.empty(); } } private static boolean isClearing(final String tableName) { return I_C_AllocationHdr.Table_Name.equals(tableName) || I_M_MatchInv.Table_Name.equals(tableName); } @Override public void onGLJournalLineCompleted(final SAPGLJournalL...
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java\de\metas\acct\open_items\handlers\Generic_OIHandler.java
1
请完成以下Java代码
public T orElseGet(Supplier<? extends T> other) { return (this.value != null) ? this.value : other.get(); } /** * Return the object that was bound, or throw an exception to be created by the * provided supplier if no value has been bound. * @param <X> the type of the exception to be thrown * @param excepti...
return true; } if (obj == null || getClass() != obj.getClass()) { return false; } return ObjectUtils.nullSafeEquals(this.value, ((BindResult<?>) obj).value); } @Override public int hashCode() { return ObjectUtils.nullSafeHashCode(this.value); } @SuppressWarnings("unchecked") static <T> BindResult<T...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\context\properties\bind\BindResult.java
1
请完成以下Java代码
public class HibernateScalarExample { private Session session; public HibernateScalarExample(Session session) { this.session = session; } public List<Object[]> fetchColumnWithNativeQuery() { return session.createNativeQuery("SELECT * FROM Student student") .list(); } ...
public List<String> fetchLimitedColumnWithScalar() { return session.createNativeQuery("SELECT * FROM Student student") .addScalar("name", StandardBasicTypes.STRING) .list(); } public List<Object[]> fetchColumnWithOverloadedScalar() { return session.createNativeQuery("SELECT ...
repos\tutorials-master\persistence-modules\hibernate-queries-2\src\main\java\com\baeldung\hibernate\scalarmethod\HibernateScalarExample.java
1
请完成以下Java代码
public List<ValidationResultType> getValidationResult() { if (validationResult == null) { validationResult = new ArrayList<ValidationResultType>(); } return this.validationResult; } /** * Gets the value of the originator property. * * @return * possi...
* */ public String getRemark() { return remark; } /** * Sets the value of the remark property. * * @param value * allowed object is * {@link String } * */ public void setRemark(String value) { this.remark = value; } /**...
repos\metasfresh-new_dawn_uat\backend\vertical-healthcare_ch\forum_datenaustausch_ch.invoice_440_request\src\main\java-xjc\de\metas\vertical\healthcare_ch\forum_datenaustausch_ch\invoice_440\request\ValidationType.java
1
请完成以下Java代码
public static EntityType resolveEntityType(EntityFilter entityFilter) { switch (entityFilter.getType()) { case SINGLE_ENTITY: return ((SingleEntityFilter) entityFilter).getSingleEntity().getEntityType(); case ENTITY_LIST: return ((EntityListFilter) entityF...
case ENTITY_VIEW_TYPE: case ENTITY_VIEW_SEARCH_QUERY: return EntityType.ENTITY_VIEW; case EDGE_TYPE: case EDGE_SEARCH_QUERY: return EntityType.EDGE; case RELATIONS_QUERY: RelationsQueryFilter rgf = (RelationsQueryFilter) ent...
repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\sql\query\DefaultEntityQueryRepository.java
1
请在Spring Boot框架中完成以下Java代码
public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } PatientBillingAddress patientBillingAddress = (PatientBillingAddress) o; return Objects.equals(this.gender, patientBillingAddress.gender) && ...
sb.append(" gender: ").append(toIndentedString(gender)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" address: ").append(toIndentedString(address)).append("\n"); sb.append(" p...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\alberta\alberta-patient-api\src\main\java\io\swagger\client\model\PatientBillingAddress.java
2
请在Spring Boot框架中完成以下Java代码
public class PmsRolePermissionDaoImpl extends PermissionBaseDaoImpl<PmsRolePermission> implements PmsRolePermissionDao { /** * 根据角色ID找到角色关联的权限点. * * @param roleId * . * @return rolePermissionList . */ public List<PmsRolePermission> listByRoleId(final long roleId) { return super.getSessionTe...
* @return */ public List<PmsRolePermission> listByRoleIds(String roleIdsStr) { List<String> roldIds = Arrays.asList(roleIdsStr.split(",")); return super.getSessionTemplate().selectList(getStatement("listByRoleIds"), roldIds); } public void deleteByRoleIdAndPermissionId(Long roleId, Long permissionId){ Map<...
repos\roncoo-pay-master\roncoo-pay-service\src\main\java\com\roncoo\pay\permission\dao\impl\PmsRolePermissionDaoImpl.java
2
请在Spring Boot框架中完成以下Java代码
public void deleteLogicDeleted(List<String> ids) { this.baseMapper.deleteLogicDeleted(ids); resreshRouter(ids.get(0)); } /** * 路由复制 * @param id * @return */ @Override @Transactional(rollbackFor = Exception.class) public SysGatewayRoute copyRoute(String id) { ...
} catch (Exception e) { log.error("路由配置解析失败", e); resreshRouter(null); e.printStackTrace(); } return targetRoute; } /** * 查询删除列表 * @return */ @Override public List<SysGatewayRoute> getDeletelist() { return baseMapper.queryDelete...
repos\JeecgBoot-main\jeecg-boot\jeecg-module-system\jeecg-system-biz\src\main\java\org\jeecg\modules\system\service\impl\SysGatewayRouteServiceImpl.java
2
请完成以下Java代码
public CaseDefinitionCacheEntry getCaseDefinitionCacheEntry(String caseDefinitionId) { return caseDefinitionCache.get(caseDefinitionId); } // getters and setters //////////////////////////////////////////////////////// @Override public String getName() { return name; } @Overri...
this.deploymentTime = deploymentTime; } @Override public boolean isNew() { return isNew; } @Override public void setNew(boolean isNew) { this.isNew = isNew; } @Override public String getDerivedFrom() { return null; } @Override public String...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\persistence\entity\CmmnDeploymentEntityImpl.java
1
请完成以下Java代码
private final Optional<BPartnerLocationId> getShipReceiptBPLocationId() { Optional<BPartnerLocationId> shipReceiptBPLocationId = this._shipReceiptBPLocationId; if (shipReceiptBPLocationId == null) { shipReceiptBPLocationId = this._shipReceiptBPLocationId = computeShipReceiptBPLocationId(); } return shipRe...
} public ArrayKey getInvoiceLineAttributesKey() { ArrayKey invoiceLineAttributesKey = _invoiceLineAttributesKey; if (invoiceLineAttributesKey == null) { invoiceLineAttributesKey = _invoiceLineAttributesKey = computeInvoiceLineAttributesKey(); } return invoiceLineAttributesKey; } private ArrayKey comp...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\invoicecandidate\api\impl\AggregationKeyEvaluationContext.java
1
请完成以下Java代码
public boolean containsRawMaterialsIssueStep(final PPOrderIssueScheduleId issueScheduleId) { return rawMaterialsIssue != null && rawMaterialsIssue.containsRawMaterialsIssueStep(issueScheduleId); } public ManufacturingJobActivity withChangedRawMaterialsIssueStep( @NonNull final PPOrderIssueScheduleId issueSched...
} else { return this; } } public ManufacturingJobActivity withFinishedGoodsReceive(@Nullable FinishedGoodsReceive finishedGoodsReceive) { return Objects.equals(this.finishedGoodsReceive, finishedGoodsReceive) ? this : toBuilder().finishedGoodsReceive(finishedGoodsReceive).build(); } @NonNull public M...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing.rest-api\src\main\java\de\metas\manufacturing\job\model\ManufacturingJobActivity.java
1
请在Spring Boot框架中完成以下Java代码
public UmsMenu getItem(Long id) { return menuMapper.selectByPrimaryKey(id); } @Override public int delete(Long id) { return menuMapper.deleteByPrimaryKey(id); } @Override public List<UmsMenu> list(Long parentId, Integer pageSize, Integer pageNum) { PageHelper.startPage(...
@Override public int updateHidden(Long id, Integer hidden) { UmsMenu umsMenu = new UmsMenu(); umsMenu.setId(id); umsMenu.setHidden(hidden); return menuMapper.updateByPrimaryKeySelective(umsMenu); } /** * 将UmsMenu转化为UmsMenuNode并设置children属性 */ private UmsMenuNod...
repos\mall-master\mall-admin\src\main\java\com\macro\mall\service\impl\UmsMenuServiceImpl.java
2
请在Spring Boot框架中完成以下Java代码
public class CasUser { @Id private Long id; @Column(nullable = false, unique = true) private String email; private String password; public Long getId() { return id; } public void setId(Long id) { this.id = id; }
public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } }
repos\tutorials-master\security-modules\cas\cas-secured-app\src\main\java\com\baeldung\cassecuredapp\user\CasUser.java
2
请完成以下Java代码
protected Mono<Void> release(ServerWebExchange exchange, CachedBodyOutputMessage outputMessage, Throwable throwable) { if (outputMessage.isCached()) { return outputMessage.getBody().map(DataBufferUtils::release).then(Mono.error(throwable)); } return Mono.error(throwable); } ServerHttpRequestDecorator dec...
public @Nullable ParameterizedTypeReference getOutClass() { return outClass; } public Config setOutClass(Class outClass) { return setOutClass(ParameterizedTypeReference.forType(outClass)); } public Config setOutClass(ParameterizedTypeReference outClass) { this.outClass = outClass; return this; }...
repos\spring-cloud-gateway-main\spring-cloud-gateway-server-webflux\src\main\java\org\springframework\cloud\gateway\filter\factory\rewrite\ModifyRequestBodyGatewayFilterFactory.java
1
请在Spring Boot框架中完成以下Java代码
private ManagementCenterConfig initializeDefaultManagementCenterConfig(JHipsterProperties jHipsterProperties) { ManagementCenterConfig managementCenterConfig = new ManagementCenterConfig(); managementCenterConfig.setEnabled(jHipsterProperties.getCache().getHazelcast().getManagementCenter().isEnabled());...
Maximum size of the map. When max size is reached, map is evicted based on the policy defined. Any integer between 0 and Integer.MAX_VALUE. 0 means Integer.MAX_VALUE. Default is 0. */ mapConfig.setMaxSizeConfig(new MaxSizeConfig(0, MaxSizeConfig.MaxSizePolicy.USED_HEAP_SIZE)); ...
repos\tutorials-master\jhipster-modules\jhipster-uaa\gateway\src\main\java\com\baeldung\jhipster\gateway\config\CacheConfiguration.java
2
请完成以下Java代码
public <ID extends RepoIdAware> ImmutableSet<ID> getRecordIdsToRefresh( @NonNull final DocumentIdsSelection rowIds, @NonNull final Function<DocumentId, ID> idMapper) { return getRowsIndex().getRecordIdsToRefresh(rowIds, idMapper); } public Stream<T> stream() {return getRowsIndex().stream();} public Stream...
public void setRows(@NonNull final List<T> rows) { holder.setValue(ImmutableRowsIndex.of(rows)); } @NonNull private ImmutableRowsIndex<T> getRowsIndex() { final ImmutableRowsIndex<T> rowsIndex = holder.getValue(); // shall not happen if (rowsIndex == null) { throw new AdempiereException("rowsIndex s...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\view\template\SynchronizedRowsIndexHolder.java
1
请完成以下Java代码
public class StageResponse { protected String id; protected String name; protected boolean ended; protected Date endTime; protected boolean current; public StageResponse(String id, String name) { this.id = id; this.name = name; } public String getId() { return i...
} public boolean isEnded() { return ended; } public void setEnded(boolean ended) { this.ended = ended; } public Date getEndTime() { return endTime; } public void setEndTime(Date endTime) { this.endTime = endTime; } public boolean isCurrent() { ...
repos\flowable-engine-main\modules\flowable-cmmn-api\src\main\java\org\flowable\cmmn\api\StageResponse.java
1
请完成以下Java代码
public abstract class ExecutableArchiveLauncher extends Launcher { private static final String START_CLASS_ATTRIBUTE = "Start-Class"; private final Archive archive; public ExecutableArchiveLauncher() throws Exception { this(Archive.create(Launcher.class)); } protected ExecutableArchiveLauncher(Archive archiv...
@Override protected String getMainClass() throws Exception { Manifest manifest = this.archive.getManifest(); String mainClass = (manifest != null) ? manifest.getMainAttributes().getValue(START_CLASS_ATTRIBUTE) : null; if (mainClass == null) { throw new IllegalStateException("No 'Start-Class' manifest entry sp...
repos\spring-boot-4.0.1\loader\spring-boot-loader\src\main\java\org\springframework\boot\loader\launch\ExecutableArchiveLauncher.java
1
请完成以下Java代码
public void setM_HU_ID (final int M_HU_ID) { if (M_HU_ID < 1) set_ValueNoCheck (COLUMNNAME_M_HU_ID, null); else set_ValueNoCheck (COLUMNNAME_M_HU_ID, M_HU_ID); } @Override public int getM_HU_ID() { return get_ValueAsInt(COLUMNNAME_M_HU_ID); } @Override public void setM_Package_HU_ID (final int ...
@Override public void setM_Package_ID (final int M_Package_ID) { if (M_Package_ID < 1) set_ValueNoCheck (COLUMNNAME_M_Package_ID, null); else set_ValueNoCheck (COLUMNNAME_M_Package_ID, M_Package_ID); } @Override public int getM_Package_ID() { return get_ValueAsInt(COLUMNNAME_M_Package_ID); } @O...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java-gen\de\metas\handlingunits\model\X_M_Package_HU.java
1
请完成以下Java代码
protected void init() { throw new IllegalArgumentException( "Normal 'init' on process engine only used for extended MyBatis mappings is not allowed, please use 'initFromProcessEngineConfiguration'. You cannot construct a process engine with this configuration."); } /** * initialize the {@link Pr...
StringBuilder builder = new StringBuilder(); for (String mappingFile: mappings) { builder.append(String.format("<mapper resource=\"%s\" />\n", mappingFile)); } String mappingsFileTemplate = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + "\n" + "<!DOCTYPE configuration PUBLIC \"-//my...
repos\camunda-bpm-platform-master\webapps\assembly\src\main\java\org\camunda\bpm\webapp\impl\db\QuerySessionFactory.java
1
请在Spring Boot框架中完成以下Java代码
public String readJsonAsObject() { try { String json = "{\"userName\":\"mrbird\"}"; User user = mapper.readValue(json, User.class); String name = user.getUserName(); return name; } catch (Exception e) { e.printStackTrace(); } return null; } @RequestMapping("formatobjecttojsonstring") @Respons...
} return null; } @RequestMapping("updateuser") @ResponseBody public int updateUser(@RequestBody List<User> list) { return list.size(); } @RequestMapping("customize") @ResponseBody public String customize() throws JsonParseException, JsonMappingException, IOException { String jsonStr = "[{\"userName\":\"...
repos\SpringAll-master\18.Spring-Boot-Jackson\src\main\java\com\example\controller\TestJsonController.java
2
请完成以下Java代码
public void addRuleResult(int ruleNumber, String outputName, Object outputValue) { Map<String, Object> ruleResult; if (ruleResults.containsKey(ruleNumber)) { ruleResult = ruleResults.get(ruleNumber); } else { ruleResult = new HashMap<>(); ruleResults.put(ruleN...
public String getInstanceId() { return instanceId; } public void setInstanceId(String instanceId) { this.instanceId = instanceId; } public String getScopeType() { return scopeType; } public void setScopeType(String scopeType) { this.scopeType = scopeType; }...
repos\flowable-engine-main\modules\flowable-dmn-engine\src\main\java\org\flowable\dmn\engine\impl\el\ELExecutionContext.java
1
请完成以下Java代码
public Integer getSearchType() { return searchType; } public void setSearchType(Integer searchType) { this.searchType = searchType; } public Integer getRelatedStatus() { return relatedStatus; } public void setRelatedStatus(Integer relatedStatus) { this.relatedS...
@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", productAttributeCategoryId=").append(productAttrib...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\PmsProductAttribute.java
1
请完成以下Java代码
public class X_AD_Print_Clients extends org.compiere.model.PO implements I_AD_Print_Clients, org.compiere.model.I_Persistent { private static final long serialVersionUID = -978034459L; /** Standard Constructor */ public X_AD_Print_Clients (Properties ctx, int AD_Print_Clients_ID, String trxName) { ...
@Override public void setAD_Session(org.compiere.model.I_AD_Session AD_Session) { set_ValueFromPO(COLUMNNAME_AD_Session_ID, org.compiere.model.I_AD_Session.class, AD_Session); } @Override public void setAD_Session_ID (int AD_Session_ID) { if (AD_Session_ID < 1) set_Value (COLUMNNAME_AD_Session_ID, null);...
repos\metasfresh-new_dawn_uat\backend\de.metas.printing\de.metas.printing.base\src\main\java-gen\de\metas\printing\model\X_AD_Print_Clients.java
1
请完成以下Java代码
public boolean isAutoComplete() { return autoComplete; } public void setAutoComplete(boolean autoComplete) { this.autoComplete = autoComplete; } public String getAutoCompleteCondition() { return autoCompleteCondition; } public void setAutoCompleteCondition(String a...
} public void setDisplayOrder(Integer displayOrder) { this.displayOrder = displayOrder; } public String getIncludeInStageOverview() { return includeInStageOverview; } public void setIncludeInStageOverview(String includeInStageOverview) { this.includeInStageOverview = inclu...
repos\flowable-engine-main\modules\flowable-cmmn-model\src\main\java\org\flowable\cmmn\model\Stage.java
1
请在Spring Boot框架中完成以下Java代码
public class InvoiceLineQuickInputCallout { private final PackingItemProductFieldHelper packingItemProductFieldHelper; public InvoiceLineQuickInputCallout(final PackingItemProductFieldHelper packingItemProductFieldHelper) { this.packingItemProductFieldHelper = packingItemProductFieldHelper; } public void onPro...
} final IInvoiceLineQuickInput invoiceLineQuickInput = quickInput.getQuickInputDocumentAs(IInvoiceLineQuickInput.class); final ProductId productId = ProductId.ofRepoIdOrNull( invoiceLineQuickInput.getM_Product_ID() ); if ( productId == null) { return; } final I_C_Invoice invoice = quickInput.getRootDo...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\quickinput\invoiceline\InvoiceLineQuickInputCallout.java
2
请完成以下Java代码
public static File unzipEntry( final File destinationDir, final ZipEntry zipEntry, final ZipInputStream zipInputStream) throws IOException { final File destFile = new File(destinationDir, zipEntry.getName()); if (zipEntry.isDirectory()) { destFile.mkdirs(); } else { final String destDirPath ...
} try (final FileOutputStream fos = new FileOutputStream(destFile)) { final byte[] buffer = new byte[4096]; int len; while ((len = zipInputStream.read(buffer)) > 0) { fos.write(buffer, 0, len); } } } return destFile; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.migration\de.metas.migration.base\src\main\java\de\metas\migration\util\FileUtils.java
1
请完成以下Java代码
public void setDescription (final @Nullable java.lang.String Description) { set_Value (COLUMNNAME_Description, Description); } @Override public java.lang.String getDescription() { return get_ValueAsString(COLUMNNAME_Description); } @Override public void setM_Warehouse_Group_ID (final int M_Warehouse_Grou...
@Override public int getM_Warehouse_Group_ID() { return get_ValueAsInt(COLUMNNAME_M_Warehouse_Group_ID); } @Override public void setName (final java.lang.String Name) { set_Value (COLUMNNAME_Name, Name); } @Override public java.lang.String getName() { return get_ValueAsString(COLUMNNAME_Name); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_Warehouse_Group.java
1
请完成以下Java代码
public IntermediateCatchEventActivityBehavior createIntermediateCatchEventActivityBehavior(IntermediateCatchEvent intermediateCatchEvent) { return new IntermediateCatchEventActivityBehavior(); } @Override public IntermediateThrowNoneEventActivityBehavior createIntermediateThrowNoneEventActivityBeha...
@Override public TerminateEndEventActivityBehavior createTerminateEndEventActivityBehavior(EndEvent endEvent) { return new TerminateEndEventActivityBehavior(endEvent); } // Boundary Events @Override public BoundaryEventActivityBehavior createBoundaryEventActivityBehavior(BoundaryEvent boun...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\bpmn\parser\factory\DefaultActivityBehaviorFactory.java
1
请在Spring Boot框架中完成以下Java代码
public GroupResponse updateGroup(@ApiParam(name = "groupId") @PathVariable String groupId, @RequestBody GroupRequest groupRequest) { Group group = getGroupFromRequest(groupId); if (groupRequest.getId() == null || groupRequest.getId().equals(group.getId())) { if (groupRequest.isNameChanged()...
@ApiResponse(code = 204, message = "Indicates the group was found and has been deleted. Response-body is intentionally empty."), @ApiResponse(code = 404, message = "Indicates the requested group does not exist.") }) @DeleteMapping("/groups/{groupId}") @ResponseStatus(HttpStatus.NO_CONTENT) ...
repos\flowable-engine-main\modules\flowable-idm-rest\src\main\java\org\flowable\idm\rest\service\api\group\GroupResource.java
2
请完成以下Java代码
public class TemplateParam extends BaseModel { /** * 值 */ private String value; /** * 颜色 */ private String color; public TemplateParam() { super(); } public TemplateParam(String value) { super(); this.value = value; }
public TemplateParam(String value, String color) { super(); this.value = value; this.color = color; } public String getValue() { return value; } public void setValue(String value) { this.value = value; } public String getColor() { return color; } public void s...
repos\spring-boot-quick-master\quick-wx-public\src\main\java\com\wx\pn\api\model\TemplateParam.java
1
请完成以下Java代码
public class MqttTransportContext extends TransportContext { @Getter @Autowired(required = false) private MqttSslHandlerProvider sslHandlerProvider; @Getter @Autowired private JsonMqttAdaptor jsonMqttAdaptor; @Getter @Autowired private ProtoMqttAdaptor protoMqttAdaptor; @Gett...
@Getter @Value("${transport.mqtt.disconnect_timeout:1000}") private long disconnectTimeout; @Getter @Value("${transport.mqtt.proxy_enabled:false}") private boolean proxyEnabled; private final AtomicInteger connectionsCounter = new AtomicInteger(); @PostConstruct public void init() { ...
repos\thingsboard-master\common\transport\mqtt\src\main\java\org\thingsboard\server\transport\mqtt\MqttTransportContext.java
1
请完成以下Java代码
public boolean hasWeightGross() { final AttributeCode attr_WeightGross = getWeightGrossAttribute(); return hasWeightAttribute(attr_WeightGross); } /** * @return true if has WeightNet attribute */ @Override public boolean hasWeightNet() { final AttributeCode attr_WeightNet = getWeightNetAttribute(); r...
* @return true if has WeightTare(adjust) attribute */ @Override public boolean hasWeightTareAdjust() { final AttributeCode attr_WeightTareAdjust = getWeightTareAdjustAttribute(); return hasWeightAttribute(attr_WeightTareAdjust); } /** * @return true if given attribute exists */ private boolean hasWeigh...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\attribute\weightable\AttributeStorageWeightableWrapper.java
1
请在Spring Boot框架中完成以下Java代码
public List<MediaType> getStreamingMediaTypes() { return List.of(); } @Override public boolean canEncode(ResolvableType elementType, MimeType mimeType) { return getEncodableMimeTypes().contains(mimeType); } @NonNull @Override public Flux<DataBuffer> encode(Publisher<? extends OAuth2Error> error, DataBuffer...
private static class ByteArrayHttpOutputMessage implements HttpOutputMessage { private final ByteArrayOutputStream body = new ByteArrayOutputStream(); @NonNull @Override public ByteArrayOutputStream getBody() { return this.body; } @NonNull @Override public HttpHeaders getHeaders() { return new ...
repos\spring-security-main\config\src\main\java\org\springframework\security\config\web\server\OAuth2ErrorEncoder.java
2
请完成以下Java代码
public List<FeelCustomFunctionProvider> getDmnFeelCustomFunctionProviders() { return dmnFeelCustomFunctionProviders; } public ProcessEngineConfigurationImpl setDmnFeelCustomFunctionProviders(List<FeelCustomFunctionProvider> dmnFeelCustomFunctionProviders) { this.dmnFeelCustomFunctionProviders = dmnFeelCust...
public ProcessEngineConfigurationImpl setReevaluateTimeCycleWhenDue(boolean reevaluateTimeCycleWhenDue) { this.reevaluateTimeCycleWhenDue = reevaluateTimeCycleWhenDue; return this; } public int getRemovalTimeUpdateChunkSize() { return removalTimeUpdateChunkSize; } public ProcessEngineConfiguration...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\cfg\ProcessEngineConfigurationImpl.java
1
请完成以下Java代码
public Object getProperty(String name) { ConfigurationProperty configurationProperty = findConfigurationProperty(name); return (configurationProperty != null) ? configurationProperty.getValue() : null; } /** {@inheritDoc} */ @Override public Origin getOrigin(String name) { retur...
private ConfigurationProperty findConfigurationProperty(ConfigurationPropertyName name) { if (name == null) { return null; } for (ConfigurationPropertySource configurationPropertySource : getSource()) { if (!configurationPropertySource.getUnderlyingSource().getClass().equ...
repos\jasypt-spring-boot-master\jasypt-spring-boot\src\main\java\com\ulisesbocchio\jasyptspringboot\wrapper\EncryptableConfigurationPropertySourcesPropertySource.java
1
请完成以下Java代码
private static Dataset<String> convertToDataSetFromStrings(List<String> names) { return SPARK_SESSION.createDataset(names, Encoders.STRING()); } private static Dataset<Customer> convertToDataSetFromPOJO() { return SPARK_SESSION.createDataset(CUSTOMERS, Encoders.bean(Customer.class)); } ...
private static List<String> getNames() { return CUSTOMERS.stream() .map(Customer::getName) .collect(Collectors.toList()); } private static void print(Dataset<Row> df) { df.show(); df.printSchema(); } private static Customer aCustomerWith(String id, Strin...
repos\tutorials-master\apache-spark\src\main\java\com\baeldung\dataframes\DataSetToDataFrameConverterApp.java
1
请在Spring Boot框架中完成以下Java代码
protected ConnectionProvider buildConnectionProvider(HttpClientProperties properties) { HttpClientProperties.Pool pool = properties.getPool(); ConnectionProvider connectionProvider; if (pool.getType() == DISABLED) { connectionProvider = ConnectionProvider.newConnection(); } else { // create either Fixe...
if (pool.getMaxLifeTime() != null) { builder.maxLifeTime(pool.getMaxLifeTime()); } builder.evictInBackground(pool.getEvictionInterval()); builder.metrics(pool.isMetrics()); // Define the pool leasing strategy if (pool.getLeasingStrategy() == FIFO) { builder.fifo(); } else { // LIFO ...
repos\spring-cloud-gateway-main\spring-cloud-gateway-server-webflux\src\main\java\org\springframework\cloud\gateway\config\HttpClientFactory.java
2
请在Spring Boot框架中完成以下Java代码
default Iterator<SpanExporter> iterator() { return list().iterator(); } @Override default Spliterator<SpanExporter> spliterator() { return list().spliterator(); } /** * Constructs a {@link SpanExporters} instance with the given {@link SpanExporter span * exporters}. * @param spanExporters the span expo...
return of(Arrays.asList(spanExporters)); } /** * Constructs a {@link SpanExporters} instance with the given list of * {@link SpanExporter span exporters}. * @param spanExporters the list of span exporters * @return the constructed {@link SpanExporters} instance */ static SpanExporters of(Collection<? exte...
repos\spring-boot-4.0.1\module\spring-boot-micrometer-tracing-opentelemetry\src\main\java\org\springframework\boot\micrometer\tracing\opentelemetry\autoconfigure\SpanExporters.java
2
请完成以下Java代码
public class MainApplication { public static void main(String[] args) { List<Integer> list = new ArrayList<>(); for (int i = 1; i <= 1_000_000; i++) { list.add(i); } long startTimeV1 = System.nanoTime(); Lists.toChunkV1(list, 5);//.forEach(System.out::println); ...
long startTimeV4 = System.nanoTime(); Lists.toChunkV4(list, 5);//.forEach(System.out::println); displayExecutionTime(System.nanoTime() - startTimeV4); long startTimeV5 = System.nanoTime(); Lists.toChunkV5(list, 5);//.forEach(System.out::println); displayExecutionTime(System.nano...
repos\Hibernate-SpringBoot-master\ChunkList\src\main\java\com\app\chunklist\MainApplication.java
1
请完成以下Java代码
public void setAD_Table_ID (int AD_Table_ID) { if (AD_Table_ID < 1) set_ValueNoCheck (COLUMNNAME_AD_Table_ID, null); else set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get DB-Tabelle. @return Database Table information */ @Override public int getAD_Table_ID () {...
Text Message */ @Override public void setTextMsg (java.lang.String TextMsg) { set_Value (COLUMNNAME_TextMsg, TextMsg); } /** Get Mitteilung. @return Text Message */ @Override public java.lang.String getTextMsg () { return (java.lang.String)get_Value(COLUMNNAME_TextMsg); } /** Set Titel. @para...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_Attachment.java
1
请完成以下Java代码
final class SecureRandomBytesKeyGenerator implements BytesKeyGenerator { private static final int DEFAULT_KEY_LENGTH = 8; private final SecureRandom random; private final int keyLength; /** * Creates a secure random key generator using the defaults. */ SecureRandomBytesKeyGenerator() { this(DEFAULT_KEY_L...
this.random = new SecureRandom(); this.keyLength = keyLength; } @Override public int getKeyLength() { return this.keyLength; } @Override public byte[] generateKey() { byte[] bytes = new byte[this.keyLength]; this.random.nextBytes(bytes); return bytes; } }
repos\spring-security-main\crypto\src\main\java\org\springframework\security\crypto\keygen\SecureRandomBytesKeyGenerator.java
1
请在Spring Boot框架中完成以下Java代码
public boolean isEventRegistryStartProcessInstanceAsync() { return eventRegistryStartProcessInstanceAsync; } public void setEventRegistryStartProcessInstanceAsync(boolean eventRegistryStartProcessInstanceAsync) { this.eventRegistryStartProcessInstanceAsync = eventRegistryStartProcessInstanceAsy...
public static class AsyncHistory { private boolean enabled; public boolean isEnabled() { return enabled; } public void setEnabled(boolean enabled) { this.enabled = enabled; } } }
repos\flowable-engine-main\modules\flowable-spring-boot\flowable-spring-boot-starters\flowable-spring-boot-autoconfigure\src\main\java\org\flowable\spring\boot\process\FlowableProcessProperties.java
2
请在Spring Boot框架中完成以下Java代码
public PeerCacheConfigurer peerCacheGemFirePropertiesConfigurer(ConfigurableEnvironment environment) { return (beanName, bean) -> configureGemFireProperties(environment, bean); } protected void configureGemFireProperties(@NonNull ConfigurableEnvironment environment, @NonNull CacheFactoryBean cache) { Assert....
private boolean isNotSet(Properties gemfireProperties, String propertyName) { return !gemfireProperties.containsKey(normalizeGemFirePropertyName(propertyName)); } private boolean isValidGemFireProperty(String propertyName) { try { GemFireProperties.from(normalizeGemFirePropertyName(propertyName)); return t...
repos\spring-boot-data-geode-main\spring-geode-project\spring-geode-autoconfigure\src\main\java\org\springframework\geode\boot\autoconfigure\EnvironmentSourcedGemFirePropertiesAutoConfiguration.java
2
请完成以下Java代码
protected final void fireTableColumnChanged(final String columnName) { final int rowCount = getRowCount(); if (rowCount <= 0) { // no rows => no point to fire the event return; } final int columnIndex = getColumnIndexByColumnName(columnName); final int firstRow = 0; final int lastRow = rowCount - ...
if (selectionModel.isSelectedIndex(rowView)) { final int rowModel = convertRowIndexToModel.apply(rowView); selection.add(getRow(rowModel)); } } return selection.build(); } public ModelType getSelectedRow(final ListSelectionModel selectionModel, final Function<Integer, Integer> convertRowIndexTo...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\compiere\swing\table\AnnotatedTableModel.java
1
请完成以下Java代码
public void setCamundaDatePattern(String camundaDatePattern) { camundaDatePatternAttribute.setValue(this, camundaDatePattern); } public String getCamundaDefaultValue() { return camundaDefaultValueAttribute.getValue(this); } public void setCamundaDefaultValue(String camundaDefaultValue) { camundaDe...
public void setCamundaProperties(CamundaProperties camundaProperties) { camundaPropertiesChild.setChild(this, camundaProperties); } public CamundaValidation getCamundaValidation() { return camundaValidationChild.getChild(this); } public void setCamundaValidation(CamundaValidation camundaValidation) { ...
repos\camunda-bpm-platform-master\model-api\bpmn-model\src\main\java\org\camunda\bpm\model\bpmn\impl\instance\camunda\CamundaFormFieldImpl.java
1
请完成以下Java代码
public static void main(String[] args) { final int threadCount = 4; final ExecutorService service = Executors.newFixedThreadPool(threadCount); StampedLockDemo object = new StampedLockDemo(); Runnable writeTask = () -> { try { object.put("key1", "value1"); ...
try { object.readWithOptimisticLock("key1"); } catch (InterruptedException e) { e.printStackTrace(); } }; service.submit(writeTask); service.submit(writeTask); service.submit(readTask); service.submit(readOptimisticTask); ...
repos\tutorials-master\core-java-modules\core-java-concurrency-advanced\src\main\java\com\baeldung\concurrent\locks\StampedLockDemo.java
1
请完成以下Java代码
public long getHistoricStatisticsCountGroupedByActivity(HistoricActivityStatisticsQueryImpl query) { if (ensureHistoryReadOnProcessDefinition(query)) { return (Long) getDbEntityManager().selectOne("selectHistoricActivityStatisticsCount", query); } else { return 0; } } @SuppressWarnings(...
if(isAuthorizationEnabled() && getCurrentAuthentication() != null && commandContext.isAuthorizationCheckEnabled()) { String processDefinitionId = query.getProcessDefinitionId(); ProcessDefinitionEntity definition = getProcessDefinitionManager().findLatestProcessDefinitionById(processDefinitionId); if...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\HistoricStatisticsManager.java
1
请完成以下Java代码
public static class Artikel extends ArtikelMenge { @XmlAttribute(name = "Bedarf", required = true) protected String bedarf; /** * Gets the value of the bedarf property. * * @return * possible object is * {@link String } ...
/** * Sets the value of the bedarf property. * * @param value * allowed object is * {@link String } * */ public void setBedarf(String value) { this.bedarf = value; } } }
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma.msv3.schema.v2\src\main\java-xjc\de\metas\vertical\pharma\vendor\gateway\msv3\schema\v2\VerfuegbarkeitsanfrageEinzelne.java
1
请完成以下Java代码
public String getApp() { return app; } public void setApp(String app) { this.app = app; } public Date getTimestamp() { return timestamp; } public void setTimestamp(Date timestamp) { this.timestamp = timestamp; } public String getResource() { re...
return rt; } public void setRt(double rt) { this.rt = rt; } public int getCount() { return count; } public void setCount(int count) { this.count = count; } public int getResourceCode() { return resourceCode; } public Long getSuccessQps() { ...
repos\spring-boot-student-master\spring-boot-student-sentinel-dashboard\src\main\java\com\alibaba\csp\sentinel\dashboard\datasource\entity\MetricEntity.java
1
请完成以下Java代码
public String getTaskOwner() { return taskOwner; } public Integer getTaskPriority() { return taskPriority; } public String getTaskParentTaskId() { return taskParentTaskId; } public String[] getTenantIds() { return tenantIds; } public String getCaseDefinitionId() { return caseDefi...
} public boolean isTenantIdSet() { return isTenantIdSet; } public List<HistoricTaskInstanceQueryImpl> getQueries() { return queries; } public boolean isOrQueryActive() { return isOrQueryActive; } public void addOrQuery(HistoricTaskInstanceQueryImpl orQuery) { orQuery.isOrQueryActive = ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\HistoricTaskInstanceQueryImpl.java
1
请完成以下Java代码
public class Dict implements Serializable { @Serial private static final long serialVersionUID = 1L; /** * 主键 */ @Schema(description = "主键") @TableId(value = "id", type = IdType.ASSIGN_ID) @JsonSerialize(using = ToStringSerializer.class) private Long id; /** * 父主键 */ @Schema(description = "父主键") @J...
@Schema(description = "字典值") private Integer dictKey; /** * 字典名称 */ @Schema(description = "字典名称") private String dictValue; /** * 排序 */ @Schema(description = "排序") private Integer sort; /** * 字典备注 */ @Schema(description = "字典备注") private String remark; /** * 是否已删除 */ @TableLogic @Schema...
repos\SpringBlade-master\blade-service-api\blade-dict-api\src\main\java\org\springblade\system\entity\Dict.java
1
请完成以下Java代码
protected PackageableRowsData getRowsData() { return PackageableRowsData.cast(super.getRowsData()); } /** * @return {@link I_M_Packageable_V#Table_Name}. */ @Override public String getTableNameOrNull(@Nullable final DocumentId ignored) { return I_M_Packageable_V.Table_Name; } @Override public void cl...
public void removePickingSlotView(@NonNull final DocumentId rowId, @NonNull final ViewCloseAction viewCloseAction) { final PickingSlotView view = pickingSlotsViewByRowId.remove(rowId); if (view != null) { view.close(viewCloseAction); } } public PickingSlotView getPickingSlotViewOrNull(@NonNull final Docu...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\picking\packageable\PackageableView.java
1
请完成以下Java代码
static Builder builder() { return new Builder(); } static class Builder { private Promise<Void> future; private String topic; private MqttUnsubscribeMessage unsubscribeMessage; private String ownerId; private PendingOperation pendingOperation; private Mq...
this.retransmissionConfig = retransmissionConfig; return this; } Builder pendingOperation(PendingOperation pendingOperation) { this.pendingOperation = pendingOperation; return this; } MqttPendingUnsubscription build() { return new MqttPen...
repos\thingsboard-master\netty-mqtt\src\main\java\org\thingsboard\mqtt\MqttPendingUnsubscription.java
1
请在Spring Boot框架中完成以下Java代码
public String getTaskId() { return taskId; } public void setTaskId(String taskId) { this.taskId = taskId; } @ApiModelProperty(example = "http://localhost:8182/history/historic-task-instances/6") public String getTaskUrl() { return taskUrl; } public void setTaskUrl(...
public void setVariable(RestVariable variable) { this.variable = variable; } @ApiModelProperty(example = "null") public String getPropertyId() { return propertyId; } public void setPropertyId(String propertyId) { this.propertyId = propertyId; } @ApiModelProperty(ex...
repos\flowable-engine-main\modules\flowable-rest\src\main\java\org\flowable\rest\service\api\history\HistoricDetailResponse.java
2
请完成以下Java代码
public class SEPADocumentBL implements ISEPADocumentBL { private final BankAccountService bankAccountService = SpringContextHolder.instance.getBean(BankAccountService.class); @Override public I_SEPA_Export createSEPAExportFromPaySelection(final I_C_PaySelection from, final boolean isGroupTransactions) { return n...
{ marshaler.marshal(sepaExport, out); } catch (final RuntimeException e) { throw AdempiereException.wrapIfNeeded(e); } return SEPACreditTransferXML.builder() .filename(FileUtil.stripIllegalCharacters(sepaExport.getDocumentNo()) + ".xml") .contentType(MimeType.TYPE_XML) .content(out.toByteArr...
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.sepa\base\src\main\java\de\metas\payment\sepa\api\impl\SEPADocumentBL.java
1
请在Spring Boot框架中完成以下Java代码
public DataResponse<DecisionResponse> getDecisionTables(@ApiParam(hidden = true) @RequestParam Map<String, String> allRequestParams) { DmnDecisionQuery definitionQuery = dmnRepositoryService.createDecisionQuery(); // Populate filter-parameters if (allRequestParams.containsKey("category")) { ...
if (allRequestParams.containsKey("resourceNameLike")) { definitionQuery.decisionResourceNameLike(allRequestParams.get("resourceNameLike")); } if (allRequestParams.containsKey("version")) { definitionQuery.decisionVersion(Integer.valueOf(allRequestParams.get("version"))); ...
repos\flowable-engine-main\modules\flowable-dmn-rest\src\main\java\org\flowable\dmn\rest\service\api\repository\DecisionTableCollectionResource.java
2
请完成以下Java代码
public class OnlineAuthDTO implements Serializable { private static final long serialVersionUID = 1771827545416418203L; /** * 用户名 */ private String username; /** * 可能的请求地址 */ private List<String> possibleUrl; /** * online开发的菜单地址 */ private String onlineFormU...
/** * online工单的地址 */ private String onlineWorkOrderUrl; public OnlineAuthDTO(){ } public OnlineAuthDTO(String username, List<String> possibleUrl, String onlineFormUrl){ this.username = username; this.possibleUrl = possibleUrl; this.onlineFormUrl = onlineFormUrl; ...
repos\JeecgBoot-main\jeecg-boot\jeecg-boot-base-core\src\main\java\org\jeecg\common\api\dto\OnlineAuthDTO.java
1
请完成以下Java代码
private void applySslBundle(AbstractHttp11Protocol<?> protocol, SSLHostConfig sslHostConfig, SslBundle sslBundle) { SslBundleKey key = sslBundle.getKey(); SslStoreBundle stores = sslBundle.getStores(); SslOptions options = sslBundle.getOptions(); sslHostConfig.setSslProtocol(sslBundle.getProtocol()); SSLHostC...
private void configureSslClientAuth(SSLHostConfig config) { config.setCertificateVerification(ClientAuth.map(this.clientAuth, "none", "optional", "required")); } private void configureSslStores(SSLHostConfig sslHostConfig, SSLHostConfigCertificate certificate, SslStoreBundle stores) { try { if (stores.getK...
repos\spring-boot-4.0.1\module\spring-boot-tomcat\src\main\java\org\springframework\boot\tomcat\SslConnectorCustomizer.java
1
请在Spring Boot框架中完成以下Java代码
private void assertLineTableNamesUnique() { final List<LineBuilder> nonUniqueLines = lineBuilders.stream() .collect(Collectors.groupingBy(r -> r.getTableName())) // group them by tableName; this returns a map .entrySet().stream() // now stream the map's entries .filter(e -> e.getValue().size() > 1) ...
// first build the lines for (final PartitionerConfigLine.LineBuilder lineBuilder : lineBuilders) { final PartitionerConfigLine line = lineBuilder.buildLine(partitionerConfig); partitionerConfig.lines.add(line); } for (final PartitionerConfigLine.LineBuilder lineBuilder : lineBuilders) { lin...
repos\metasfresh-new_dawn_uat\backend\de.metas.dlm\base\src\main\java\de\metas\dlm\partitioner\config\PartitionConfig.java
2
请完成以下Java代码
void createEmptyKeyStore() throws KeyStoreException, CertificateException, NoSuchAlgorithmException, IOException { if(keyStoreType ==null || keyStoreType.isEmpty()){ keyStoreType = KeyStore.getDefaultType(); } keyStore = KeyStore.getInstance(keyStoreType); //load char...
} Certificate getCertificate(String alias) throws KeyStoreException { return keyStore.getCertificate(alias); } void deleteEntry(String alias) throws KeyStoreException { keyStore.deleteEntry(alias); } void deleteKeyStore() throws KeyStoreException, IOException { Enumeration...
repos\tutorials-master\core-java-modules\core-java-security\src\main\java\com\baeldung\keystore\JavaKeyStore.java
1
请完成以下Java代码
public Facet<ModelType> build() { return new Facet<>(this); } public Builder<ModelType> setId(final String id) { this.id = id; return this; } public Builder<ModelType> setDisplayName(final String displayName) { this.displayName = displayName; return this;
} public Builder<ModelType> setFilter(final IQueryFilter<ModelType> filter) { this.filter = filter; return this; } public Builder<ModelType> setFacetCategory(final IFacetCategory facetCategory) { this.facetCategory = facetCategory; return this; } } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\facet\impl\Facet.java
1
请完成以下Java代码
public static LocalTime fromJsonToLocalTime(final String valueStr) { final JSONDateConfig config = JSONDateConfig.DEFAULT; return LocalTime.parse(valueStr, config.getLocalTimeFormatter()); } @NonNull public static ZonedDateTime fromJsonToZonedDateTime(final String valueStr) { final JSONDateConfig config = J...
(object) -> TimeUtil.asZonedDateTime(object, zoneId)); } @Nullable private static Instant fromObjectToInstant(final Object valueObj, final ZoneId zoneId) { return fromObjectTo(valueObj, Instant.class, DateTimeConverters::fromJsonToInstant, (object) -> TimeUtil.asInstant(object, zoneId)); } ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\util\converter\DateTimeConverters.java
1
请完成以下Java代码
public void setM_TU_HU_PI_ID (final int M_TU_HU_PI_ID) { if (M_TU_HU_PI_ID < 1) set_Value (COLUMNNAME_M_TU_HU_PI_ID, null); else set_Value (COLUMNNAME_M_TU_HU_PI_ID, M_TU_HU_PI_ID); } @Override public int getM_TU_HU_PI_ID() { return get_ValueAsInt(COLUMNNAME_M_TU_HU_PI_ID); } @Override public v...
} @Override public BigDecimal getQtyLU() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_QtyLU); return bd != null ? bd : BigDecimal.ZERO; } @Override public void setQtyTU (final BigDecimal QtyTU) { set_Value (COLUMNNAME_QtyTU, QtyTU); } @Override public BigDecimal getQtyTU() { final Bi...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java-gen\de\metas\handlingunits\model\X_M_HU_LUTU_Configuration.java
1
请完成以下Java代码
private void runGarbageCollector() { // Clear cache first, because there we can also have some instances. CacheMgt.get().reset(); // Create a weak reference to a newly created object gcTestObject = new Object(); final WeakReference<Object> ref = new WeakReference<Object>(gcTestObject); gcTestObject = null...
} } private final String toString(final List<Object> records) { final StringBuilder sb = new StringBuilder(); for (final Object record : records) { if (sb.length() > 0) { sb.append("\n\n"); } sb.append("Record: ").append(record); final Throwable trackingStackTrace = InterfaceWrapperHelpe...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\wrapper\POJOLookupMapInstancesTracker.java
1
请在Spring Boot框架中完成以下Java代码
public static BPartnerLocationCandidate fromDeliveryAddress(@NonNull final OrderDeliveryAddress orderDeliveryAddress) { final String addressName = Joiner.on(", ").skipNulls() .join(orderDeliveryAddress.getAddress(), orderDeliveryAddress.getAdditionalAddress(), orderDeliveryAddress.getAdditionalAddress2()); re...
@NonNull public JsonRequestLocation toJsonRequestLocation() { final JsonRequestLocation requestLocation = new JsonRequestLocation(); requestLocation.setBpartnerName(getBpartnerName()); requestLocation.setName(getName()); requestLocation.setAddress1(getAddress1()); requestLocation.setAddress2(getAddress2())...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\alberta\de-metas-camel-alberta-camelroutes\src\main\java\de\metas\camel\externalsystems\alberta\common\util\BPartnerLocationCandidate.java
2
请完成以下Java代码
public void run() { if (PlanItemInstanceState.ACTIVE.equals(planItemInstanceEntity.getState()) || (planItemInstanceEntity.getPlanItem() != null && planItemInstanceEntity.getPlanItem().getPlanItemDefinition() instanceof EventListener && PlanItemInstanceState.AVAIL...
} CmmnTriggerableActivityBehavior behavior = (CmmnTriggerableActivityBehavior) planItemInstanceEntity.getPlanItem().getBehavior(); if (behavior instanceof CoreCmmnTriggerableActivityBehavior) { ((CoreCmmnTriggerableActivityBehavior) behavior).trigger(commandContext, planItemInstanceEntity); ...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\agenda\operation\TriggerPlanItemInstanceOperation.java
1
请完成以下Java代码
public Builder setRowId(final String rowIdStr) { final DocumentId rowId = DocumentId.ofStringOrEmpty(rowIdStr); setRowId(rowId); return this; } public Builder setRowId(@Nullable final DocumentId rowId) { rowIds.clear(); if (rowId != null) { rowIds.add(rowId); } return this; } ...
public Builder setRowIds(final DocumentIdsSelection rowIds) { this.rowIds.clear(); this.rowIds.addAll(rowIds.toSet()); return this; } public Builder allowNullRowId() { rowId_allowNull = true; return this; } public Builder allowNewRowId() { rowId_allowNew = true; return this; } ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\datatypes\DocumentPath.java
1
请完成以下Java代码
public DatePeriodDetails getDt() { return dt; } /** * Sets the value of the dt property. * * @param value * allowed object is * {@link DatePeriodDetails } * */ public void setDt(DatePeriodDetails value) { this.dt = value; } /** ...
return dtTm; } /** * Sets the value of the dtTm property. * * @param value * allowed object is * {@link DateTimePeriodDetails } * */ public void setDtTm(DateTimePeriodDetails value) { this.dtTm = value; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.camt53\src\main\java-xjc\de\metas\banking\camt53\jaxb\camt053_001_04\DateOrDateTimePeriodChoice.java
1
请完成以下Java代码
public class GetTaskVariableCmd implements Command<Object>, Serializable { private static final long serialVersionUID = 1L; protected String taskId; protected String variableName; protected boolean isLocal; public GetTaskVariableCmd(String taskId, String variableName, boolean isLocal) { th...
if (task == null) { throw new ActivitiObjectNotFoundException("task " + taskId + " doesn't exist", Task.class); } Object value; if (isLocal) { value = task.getVariableLocal(variableName, false); } else { value = task.getVariable(variableName, false);...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\cmd\GetTaskVariableCmd.java
1
请完成以下Java代码
public void setLinkedProcessInstanceId(String linkedProcessInstanceId) { this.linkedProcessInstanceId = linkedProcessInstanceId; } @Override public String getLinkedProcessInstanceId() { return linkedProcessInstanceId; } public void setLinkedProcessInstanceType(String linkedProcessI...
public String toString() { return ( "ProcessStartedEventImpl{" + super.toString() + "nestedProcessDefinitionId='" + nestedProcessDefinitionId + '\'' + ", nestedProcessInstanceId='" + nestedProcessInstanceId + '\'' + ...
repos\Activiti-develop\activiti-core\activiti-api-impl\activiti-api-process-runtime-impl\src\main\java\org\activiti\runtime\api\event\impl\ProcessStartedEventImpl.java
1
请完成以下Java代码
public class BoundaryEventParseHandler extends AbstractFlowNodeBpmnParseHandler<BoundaryEvent> { private static final Logger logger = LoggerFactory.getLogger(BoundaryEventParseHandler.class); public Class<? extends BaseElement> getHandledType() { return BoundaryEvent.class; } protected void e...
if (boundaryEvent.getEventDefinitions().size() > 0) { eventDefinition = boundaryEvent.getEventDefinitions().get(0); } if ( eventDefinition instanceof TimerEventDefinition || eventDefinition instanceof ErrorEventDefinition || eventDefinition instanceof Sig...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\parser\handler\BoundaryEventParseHandler.java
1
请完成以下Java代码
private void dbUpdateActivities(@NonNull final ImportRecordsSelection selection) { final String sql = "UPDATE " + targetTableName + " i " + " SET C_Activity_ID =(SELECT C_Activity_ID FROM C_Activity p" + " WHERE i.ActivityValue = p.Value AND i.AD_Org_ID=p.AD_Org_ID) " + "WHERE C_Activity_ID IS NULL AND A...
final String sql = "UPDATE " + targetTableName + " i " + " SET C_Campaign_ID =(SELECT C_Campaign_ID FROM C_Campaign p" + " WHERE i.CampaignValue = p.Value AND i.AD_Org_ID=p.AD_Org_ID) " + "WHERE C_Campaign_ID IS NULL AND CampaignValue IS NOT NULL" + " AND " + COLUMNNAME_I_IsImported + " <> 'Y'" + se...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\mforecast\impexp\MForecastImportTableSqlUpdater.java
1
请在Spring Boot框架中完成以下Java代码
public class DocOutboundAttachmentStoredListener implements AttachmentStoredListener { private final AttachmentEntryService attachmentEntryService; public DocOutboundAttachmentStoredListener(@NonNull final AttachmentEntryService attachmentEntryService) { this.attachmentEntryService = attachmentEntryService; } ...
docOutboundLogRecord.setDateLastStore(SystemTime.asTimestamp()); saveRecord(docOutboundLogRecord); } attachmentEntryService.createAttachmentLinks( ImmutableList.of(attachmentEntry), createdLogLineRecords.build()); } private boolean isDocOutBoundLogReference(ITableRecordReference ref) { return I_C_...
repos\metasfresh-new_dawn_uat\backend\de.metas.document.archive\de.metas.document.archive.base\src\main\java\de\metas\document\archive\storage\attachments\DocOutboundAttachmentStoredListener.java
2