instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
public boolean matches(@NonNull final IAttributeSet attributes) { // If there is no attribute restrictions we can accept this "attributes" right away if (onlyAttributes == null || onlyAttributes.isEmpty()) { return true; } for (final HUAttributeQueryFilterVO attributeFilter : onlyAttributes.values()) {...
} return filterVOs.values(); } private List<I_M_Attribute> getBarcodeAttributes() { final IDimensionspecDAO dimensionSpecsRepo = Services.get(IDimensionspecDAO.class); final DimensionSpec barcodeDimSpec = dimensionSpecsRepo.retrieveForInternalNameOrNull(HUConstants.DIM_Barcode_Attributes); if (barcodeDimSp...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\impl\HUQueryBuilder_Attributes.java
1
请完成以下Java代码
public class SysUserTenantVo { /** * 用户id */ private String id; /** * 用户账号 */ private String username; /** * 用户昵称 */ private String realname; /** * 工号 */ private String workNo; /** * 邮箱 */ private String email; ...
/** * 用户租户状态 */ private String userTenantStatus; /** * 用户租户id */ private String tenantUserId; /** * 租户名称 */ private String name; /** * 所属行业 */ @Dict(dicCode = "trade") private String trade; /** * 门牌号 */ private String hous...
repos\JeecgBoot-main\jeecg-boot\jeecg-module-system\jeecg-system-biz\src\main\java\org\jeecg\modules\system\vo\SysUserTenantVo.java
1
请完成以下Java代码
public UomId getUomId() { return getPrice().getUomId(); } public CostElementId getCostElementId() { return getCostSegmentAndElement().getCostElementId(); } public boolean isInboundCost() { return !getTrxType().isOutboundCost(); } public boolean isMainProduct() { return getTrxType() == PPOrderCostTr...
} public PPOrderCost withPrice(@NonNull final CostPrice newPrice) { if (this.getPrice().equals(newPrice)) { return this; } return toBuilder().price(newPrice).build(); } /* package */void setPostCalculationAmount(@NonNull final CostAmount postCalculationAmount) { this.postCalculationAmount = postCal...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing\src\main\java\org\eevolution\api\PPOrderCost.java
1
请在Spring Boot框架中完成以下Java代码
public List<SysPermissionDataRule> getPermRuleListByPermId(String permissionId) { LambdaQueryWrapper<SysPermissionDataRule> query = new LambdaQueryWrapper<SysPermissionDataRule>(); query.eq(SysPermissionDataRule::getPermissionId, permissionId); query.orderByDesc(SysPermissionDataRule::getCreateTime); List<SysPe...
SysPermission permission = sysPermissionMapper.selectById(sysPermissionDataRule.getPermissionId()); boolean flag = permission != null && (permission.getRuleFlag() == null || permission.getRuleFlag().equals(CommonConstant.RULE_FLAG_0)); if(flag) { permission.setRuleFlag(CommonConstant.RULE_FLAG_1); ...
repos\JeecgBoot-main\jeecg-boot\jeecg-module-system\jeecg-system-biz\src\main\java\org\jeecg\modules\system\service\impl\SysPermissionDataRuleImpl.java
2
请完成以下Java代码
private static String stripInlineComment(String line) { int index = line.indexOf("//"); return index >= 0 ? line.substring(0, index) : line; } private static String stripStringLiterals(String line) { StringBuilder sb = new StringBuilder(); boolean inSingleQuote = false; ...
continue; } else if (c == '\'' && !inDoubleQuote) { inSingleQuote = !inSingleQuote; continue; } if (!inSingleQuote && !inDoubleQuote) { sb.append(c); } } return sb.toString(); } }
repos\thingsboard-master\common\script\script-api\src\main\java\org\thingsboard\script\api\js\JsValidator.java
1
请完成以下Java代码
protected static String segLongest(char[] charArray, AhoCorasickDoubleArrayTrie<String> trie) { final String[] wordNet = new String[charArray.length]; final int[] lengthNet = new int[charArray.length]; trie.parseText(charArray, new AhoCorasickDoubleArrayTrie.IHit<String>() { ...
this.trie = trie; } protected Searcher(String text, DoubleArrayTrie<String> trie) { super(text); this.trie = trie; } @Override public Map.Entry<String, String> next() { // 保证首次调用找到一个词语 Map.Entry<String, String> res...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\dictionary\ts\BaseChineseDictionary.java
1
请完成以下Java代码
public boolean doCatch(final Throwable ex) { Loggables.addLog("@Error@ @C_BPartner_ID@:" + partner.getValue() + "_" + partner.getName() + ": " + ex.getLocalizedMessage()); logger.debug("Failed creating contract for {}", partner, ex); return true; // rollback } }); } } return flat...
.endDate(endDate) .userInCharge(userInCharge) .productAndCategoryId(createProductAndCategoryId(product)) .isSimulation(isSimulation) .completeIt(isCompleteDocument) .build(); flatrateTermCollector.add(flatrateBL.createTerm(createFlatrateTermRequest)); } } @Nullable public ProductAndCa...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\process\FlatrateTermCreator.java
1
请完成以下Java代码
public static String joinDbEntityIds(Collection<? extends DbEntity> dbEntities) { return join(new StringIterator<DbEntity>(dbEntities.iterator()) { public String next() { return iterator.next().getId(); } }); } public static String joinProcessElementInstanceIds(Collection<? extends Proc...
return builder.toString(); } public abstract static class StringIterator<T> implements Iterator<String> { protected Iterator<? extends T> iterator; public StringIterator(Iterator<? extends T> iterator) { this.iterator = iterator; } public boolean hasNext() { return iterator.hasNext()...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\util\StringUtil.java
1
请完成以下Java代码
public class DefaultServiceTaskBehavior implements DelegateExecutionFunction { private final ApplicationContext applicationContext; private final IntegrationContextBuilder integrationContextBuilder; private final VariablesPropagator variablesPropagator; public DefaultServiceTaskBehavior( Appli...
return DelegateExecutionOutcome.LEAVE_EXECUTION; } private String getImplementation(DelegateExecution execution) { return ((ServiceTask) execution.getCurrentFlowElement()).getImplementation(); } private Connector getConnector(String implementation) { return applicationContext.getBean(i...
repos\Activiti-develop\activiti-core\activiti-api-impl\activiti-api-process-runtime-impl\src\main\java\org\activiti\runtime\api\connector\DefaultServiceTaskBehavior.java
1
请完成以下Java代码
public static String[] split(String text, String regex) { if (text == null) { return null; } else if (regex == null) { return new String[] { text }; } else { String[] result = text.split(regex); for (int i = 0; i < result.length; i++) { result[i] = result[i].trim(); ...
stringBuilder.append(parts[i]); } return stringBuilder.toString(); } /** * Returns either the passed in String, or if the String is <code>null</code>, an empty String (""). * * <pre> * StringUtils.defaultString(null) = "" * StringUtils.defaultString("") = "" * StringUtils.defaultStrin...
repos\camunda-bpm-platform-master\commons\utils\src\main\java\org\camunda\commons\utils\StringUtil.java
1
请在Spring Boot框架中完成以下Java代码
public String getWfResult(@PathVariable("wfid") String workflowId, @PathVariable("wfrunid") String workflowRunId) { try { WorkflowStub workflowStub = workflowClient.newUntypedWorkflowStub(workflowId, Optional.of(workflowRunId...
.serialize(ce)); JsonNode resJson = objectMapper.readTree(res); return resJson.toPrettyString(); } catch (Exception e) { log.error("Failed to get workflow result: {}", workflowId, e); return "Error: " + e.getMessage(); } } @GetMapping("/") pu...
repos\spring-boot-demo-main\src\main\java\com\temporal\demos\temporalspringbootdemo\webui\controller\TemporalWebDialectController.java
2
请完成以下Java代码
public int getM_BOMAlternative_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_M_BOMAlternative_ID); if (ii == null) return 0; return ii.intValue(); } public I_M_Product getM_Product() throws RuntimeException { return (I_M_Product)MTable.get(getCtx(), I_M_Product.Table_Name) .getPO(getM_Produ...
} /** 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_M_BOMAlternative.java
1
请完成以下Java代码
public K getKey() { return key; } @Override public V getValue() { return value; } @Override public V setValue(V value) { return this.value = value; } @Override public boolean equals(Object o) { if (this == o) { return true;
} if (o == null || getClass() != o.getClass()) { return false; } SimpleCustomKeyValue<?, ?> that = (SimpleCustomKeyValue<?, ?>) o; return Objects.equals(key, that.key) && Objects.equals(value, that.value); } @Override public int hashCode() { return Object...
repos\tutorials-master\core-java-modules\core-java-collections-maps-4\src\main\java\com\baeldung\entries\SimpleCustomKeyValue.java
1
请在Spring Boot框架中完成以下Java代码
public class PessimisticLockingStudent { @Id private Long id; private String name; @OneToMany(mappedBy = "student") private List<PessimisticLockingCourse> courses; public PessimisticLockingStudent(Long id, String name) { this.id = id; this.name = name; } public Pessimi...
public String getName() { return name; } public void setName(String name) { this.name = name; } public List<PessimisticLockingCourse> getCourses() { return courses; } public void setCourses(List<PessimisticLockingCourse> courses) { this.courses = courses; }...
repos\tutorials-master\persistence-modules\hibernate-jpa\src\main\java\com\baeldung\hibernate\pessimisticlocking\PessimisticLockingStudent.java
2
请完成以下Java代码
private static String extractNameAndModifiers( @NonNull final String contextWithoutMarkers, @NonNull final List<String> modifiers) { String name = null; boolean firstToken = true; for (final String token : SEPARATOR_SPLITTER.splitToList(contextWithoutMarkers)) { if (firstToken) { name = token.t...
String contextWithoutMarkers = contextWithMarkers.trim(); if (contextWithoutMarkers.startsWith(NAME_Marker)) { contextWithoutMarkers = contextWithoutMarkers.substring(1); } if (contextWithoutMarkers.endsWith(NAME_Marker)) { contextWithoutMarkers = contextWithoutMarkers.substring(0, contextWithoutMarkers...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\compiere\util\CtxNames.java
1
请在Spring Boot框架中完成以下Java代码
public Person save(@RequestBody Person person) { Person p = personRepository.save(person); return p; } /** * 测试findByAddress */ @RequestMapping("/q1") public List<Person> q1(String address) { List<Person> people = personRepository.findByAddress(address); r...
return p; } /** * 测试withNameAndAddressNamedQuery */ @RequestMapping("/q4") public Person q4(String name, String address) { Person p = personRepository.withNameAndAddressNamedQuery(name, address); return p; } /** * 测试排序 */ @RequestMapping("/sort") ...
repos\spring-boot-student-master\spring-boot-student-data-jpa\src\main\java\com\xiaolyuh\controller\DataController.java
2
请在Spring Boot框架中完成以下Java代码
public class User { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "id") private int id; @Column(name = "first_name") private String firstName; @Column(name = "last_name") private String lastName; @OneToMany @JoinColumn(name = "user_id") private Se...
this.firstName = firstName; this.lastName = lastName; } public int getId() { return id; } public Set<Role> getRoles() { return roles; } public void addRole(Role role) { roles.add(role); } }
repos\tutorials-master\persistence-modules\hibernate-exceptions\src\main\java\com\baeldung\hibernate\exception\lazyinitialization\entity\User.java
2
请在Spring Boot框架中完成以下Java代码
static BeanMetadataElement getLogoutRequestValidator(Element element) { String logoutRequestValidator = element.getAttribute(ATT_LOGOUT_REQUEST_VALIDATOR_REF); if (StringUtils.hasText(logoutRequestValidator)) { return new RuntimeBeanReference(logoutRequestValidator); } if (USE_OPENSAML_5) { return BeanDef...
static BeanMetadataElement getLogoutRequestResolver(Element element, BeanMetadataElement registrations) { String logoutRequestResolver = element.getAttribute(ATT_LOGOUT_REQUEST_RESOLVER_REF); if (StringUtils.hasText(logoutRequestResolver)) { return new RuntimeBeanReference(logoutRequestResolver); } if (USE_O...
repos\spring-security-main\config\src\main\java\org\springframework\security\config\http\Saml2LogoutBeanDefinitionParserUtils.java
2
请完成以下Java代码
public class DeleteIdentityLinkCmd extends NeedsAppDefinitionCmd<Void> { private static final long serialVersionUID = 1L; public static final int IDENTITY_USER = 1; public static final int IDENTITY_GROUP = 2; protected String userId; protected String groupId; protected String type; pub...
if (type == null) { throw new FlowableIllegalArgumentException("type is required when adding a new app identity link"); } if (userId == null && groupId == null) { throw new FlowableIllegalArgumentException("userId and groupId cannot both be null"); } } @Override...
repos\flowable-engine-main\modules\flowable-app-engine\src\main\java\org\flowable\app\engine\impl\cmd\DeleteIdentityLinkCmd.java
1
请在Spring Boot框架中完成以下Java代码
private static String extractEndpointURI(@Nullable final Endpoint endpoint) { return endpoint != null && Check.isNotBlank(endpoint.getEndpointUri()) ? endpoint.getEndpointUri() : "[Could not obtain endpoint information]"; } @NonNull private static String getAuditEndpoint(@NonNull final Exchange exchange)...
final String value = FileUtil.stripIllegalCharacters(externalSystemValue); final String traceId = CoalesceUtil.coalesceNotNull(exchange.getIn().getHeader(HEADER_TRACE_ID, String.class), UUID.randomUUID().toString()); final String auditFolderName = DateTimeFormatter.ofPattern("yyyy-MM-dd") .withZone(ZoneId.sys...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\core\src\main\java\de\metas\camel\externalsystems\core\AuditEventNotifier.java
2
请在Spring Boot框架中完成以下Java代码
public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName().replace("Impl", "")).append("[") .append("id=").append(id) .append(", jobHandlerType=").append(jobHandlerType) .append(", jobType=").append(jobType); ...
sb.append(", processDefinitionId=").append(processDefinitionId); } else if (scopeDefinitionId != null) { if (scopeId == null) { sb.append(", scopeType=").append(scopeType); } sb.append(", scopeDefinitionId=").append(scopeDefinitionId); } if (S...
repos\flowable-engine-main\modules\flowable-job-service\src\main\java\org\flowable\job\service\impl\persistence\entity\AbstractJobEntityImpl.java
2
请在Spring Boot框架中完成以下Java代码
public class SecurityConfig { @Bean @Order(1) public SecurityFilterChain authorizationServerSecurityFilterChain(HttpSecurity http) throws Exception { OAuth2AuthorizationServerConfiguration.applyDefaultSecurity(http); http.getConfigurer(OAuth2AuthorizationServerConfigurer.class) .o...
.requireAuthorizationConsent(false) .build()) .scope("client.create") .scope("client.read") .build(); RegisteredClientRepository delegate = new InMemoryRegisteredClientRepository(registrarClient); return new CustomRegisteredClientRepository(delegate); } ...
repos\tutorials-master\spring-security-modules\spring-security-dynamic-registration\oauth2-authorization-server\src\main\java\com\baeldung\spring\security\authserver\config\SecurityConfig.java
2
请完成以下Java代码
public class R_Request { @Init public void init() { CopyRecordFactory.enableForTableName(I_R_Request.Table_Name); Services.get(IProgramaticCalloutProvider.class).registerAnnotatedCallout(this); } @ModelChange(timings = { ModelValidator.TYPE_BEFORE_NEW, ModelValidator.TYPE_BEFORE_CHANGE }, ifColumnsChanged = I...
{ // nothing to do return; } final I_M_QualityNote qualityNote = Services.get(IQualityNoteDAO.class).getById(qualityNoteId); if (qualityNote == null) { // nothing to do return; } // set the request's performance type with the value form the quality note entry final String performanceType = qu...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\request\model\validator\R_Request.java
1
请完成以下Java代码
public class DmnVariableImpl { protected String id; protected String name; protected DmnTypeDefinition typeDefinition; public String getId() { return id; } public void setId(String id) { this.id = id; } public String getName() { return name; } public void setName(String name) { ...
public void setTypeDefinition(DmnTypeDefinition typeDefinition) { this.typeDefinition = typeDefinition; } @Override public String toString() { return "DmnVariableImpl{" + "id='" + id + '\'' + ", name='" + name + '\'' + ", typeDefinition=" + typeDefinition + '}'; } }
repos\camunda-bpm-platform-master\engine-dmn\engine\src\main\java\org\camunda\bpm\dmn\engine\impl\DmnVariableImpl.java
1
请完成以下Java代码
public List<MoveToAvailablePlanItemDefinitionMapping> getMoveToAvailablePlanItemDefinitionMappings() { return moveToAvailablePlanItemDefinitionMappings; } @Override public List<WaitingForRepetitionPlanItemDefinitionMapping> getWaitingForRepetitionPlanItemDefinitionMappings() { return wa...
} @Override public String getPreUpgradeExpression() { return preUpgradeExpression; } @Override public String getPostUpgradeExpression() { return postUpgradeExpression; } @Override public Map<String, Map<String, Object>> getPlanItemLocalVariables() { return this...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\migration\CaseInstanceMigrationDocumentImpl.java
1
请在Spring Boot框架中完成以下Java代码
public class InsuranceContractMaximumAmountForProductGroups { @SerializedName("productGroupId") private String productGroupId = null; @SerializedName("quantity") private InsuranceContractQuantity quantity = null; public InsuranceContractMaximumAmountForProductGroups productGroupId(String productGroupId) { ...
} if (o == null || getClass() != o.getClass()) { return false; } InsuranceContractMaximumAmountForProductGroups insuranceContractMaximumAmountForProductGroups = (InsuranceContractMaximumAmountForProductGroups) o; return Objects.equals(this.productGroupId, insuranceContractMaximumAmountForProductGr...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\alberta\alberta-article-api\src\main\java\io\swagger\client\model\InsuranceContractMaximumAmountForProductGroups.java
2
请完成以下Java代码
void changeEmail(Email email) { this.email = email; } void changePassword(Password password) { this.password = password; } void changeName(UserName userName) { profile.changeUserName(userName); } void changeBio(String bio) { profile.changeBio(bio); } v...
Image getImage() { return profile.getImage(); } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; final var user = (User) o; return email.equals(user.email); } @Override pub...
repos\realworld-springboot-java-master\src\main\java\io\github\raeperd\realworld\domain\user\User.java
1
请在Spring Boot框架中完成以下Java代码
public KeyGenerator keyGenerator() { return (target, method, params) -> { Map<String,Object> container = new HashMap<>(8); Class<?> targetClassClass = target.getClass(); // 类地址 container.put("class",targetClassClass.toGenericString()); // 方法名称 ...
static class FastJsonRedisSerializer<T> implements RedisSerializer<T> { private final Class<T> clazz; FastJsonRedisSerializer(Class<T> clazz) { super(); this.clazz = clazz; } @Override public byte[] serialize(T t) throws SerializationException {...
repos\eladmin-master\eladmin-common\src\main\java\me\zhengjie\config\RedisConfiguration.java
2
请完成以下Java代码
public class MyCell { private String content; private String textColor; private String bgColor; private String textSize; private String textWeight; public MyCell() { } public MyCell(String content) { this.content = content; } public String getContent() { return...
return bgColor; } public void setBgColor(String bgColor) { this.bgColor = bgColor; } public String getTextSize() { return textSize; } public void setTextSize(String textSize) { this.textSize = textSize; } public String getTextWeight() { return textWeig...
repos\tutorials-master\spring-web-modules\spring-mvc-java-2\src\main\java\com\baeldung\excel\MyCell.java
1
请完成以下Java代码
private static class NextDispatch { public static NextDispatch schedule(final Runnable task, final ZonedDateTime date, final TaskScheduler taskScheduler) { final ScheduledFuture<?> scheduledFuture = taskScheduler.schedule(task, TimeUtil.asDate(date)); return builder() .task(task) .scheduledFuture(s...
{ logger.trace("Skip rescheduling {} because it's not after {}", date); return this; } cancel(); final ScheduledFuture<?> nextScheduledFuture = taskScheduler.schedule(task, TimeUtil.asTimestamp(date)); NextDispatch nextDispatch = NextDispatch.builder() .task(task) .scheduledFuture(nextSc...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\purchasecandidate\reminder\PurchaseCandidateReminderScheduler.java
1
请完成以下Java代码
public PrintData getPrintData() { return m_pd; } // getPrintData /*************************************************************************/ /** * Receive notification of the start of an element. * * @param uri namespace * @param localName simple name * @param qName qualified name * @param attr...
* @param qName qualified name * @throws SAXException */ public void endElement (String uri, String localName, String qName) throws SAXException { if (qName.equals(PrintData.XML_TAG)) { pop(); } else if (qName.equals(PrintDataElement.XML_TAG)) { m_curPD.addNode(new PrintDataElement(m_curPDEname...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\print\PrintDataHandler.java
1
请在Spring Boot框架中完成以下Java代码
public class ProductDbConfig { @Bean public DataSource productDataSource() { return DataSourceBuilder.create() .url("jdbc:h2:mem:productdb") .username("sa") .password("") .driverClassName("org.h2.Driver") .build(); } ...
} @Bean public PlatformTransactionManager productTransactionManager( EntityManagerFactory productEntityManagerFactory) { return new JpaTransactionManager(productEntityManagerFactory); } @PostConstruct public void migrateProductDb() { Flyway.configure() ...
repos\tutorials-master\spring-boot-modules\flyway-multidb-springboot\src\main\java\com\baeldung\config\ProductDbConfig.java
2
请完成以下Java代码
public class WebApplicationUtil { public static void setApplicationServer(String serverInfo) { if (serverInfo != null && !serverInfo.isEmpty() ) { // set the application server info globally for all engines in the container if (PlatformDiagnosticsRegistry.getApplicationServer() == null) { Pla...
/** * Adds the web application name to the telemetry data of the engine. * * @param engineName * the engine for which the web application usage should be indicated * @param webapp * the web application that is used with the engine * @return whether the web application was successf...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\util\WebApplicationUtil.java
1
请完成以下Java代码
private void insertLogs(@NonNull final PInstanceId pInstanceId, @NonNull final List<ProcessInfoLog> logsToSave, @Nullable final String trxName) { final String sql = "INSERT INTO " + I_AD_PInstance_Log.Table_Name + " (" + I_AD_PInstance_Log.COLUMNNAME_AD_PInstance_ID + ", " + I_AD_PInstance_Log.COLUM...
final Object[] sqlParams = new Object[] { pInstanceId.getRepoId(), log.getLog_ID(), log.getP_Date(), log.getP_Number(), log.getP_Msg(), tableId, recordId, adIssueId, log.getWarningMessages() }; DB.setParameters(pstmt, sqlParams); pstmt.addBatch(); } ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\process\impl\ADPInstanceDAO.java
1
请完成以下Java代码
public void setUpdateObjectIdentity(String updateObjectIdentity) { this.updateObjectIdentity = updateObjectIdentity; } /** * @param foreignKeysInDatabase if false this class will perform additional FK * constrain checking, which may cause deadlocks (the default is true, so deadlocks * are avoided but the dat...
} } } /** * Sets the {@link SecurityContextHolderStrategy} to use. The default action is to use * the {@link SecurityContextHolderStrategy} stored in {@link SecurityContextHolder}. * * @since 5.8 */ public void setSecurityContextHolderStrategy(SecurityContextHolderStrategy securityContextHolderStrategy)...
repos\spring-security-main\acl\src\main\java\org\springframework\security\acls\jdbc\JdbcMutableAclService.java
1
请在Spring Boot框架中完成以下Java代码
public class SalesOrderLine { OrderAndLineId id; @Getter(AccessLevel.NONE) SalesOrder order; @Getter(AccessLevel.NONE) OrderLine orderLine; Quantity deliveredQty; @Builder private SalesOrderLine( @NonNull final SalesOrder order, @NonNull final OrderLine orderLine, @NonNull final Quantity deliveredQ...
} public int getLine() { return orderLine.getLine(); } public ZonedDateTime getDatePromised() { return orderLine.getDatePromised(); } public ProductId getProductId() { return orderLine.getProductId(); } public AttributeSetInstanceId getAsiId() { return orderLine.getAsiId(); } public Quantity g...
repos\metasfresh-new_dawn_uat\backend\de.metas.purchasecandidate.base\src\main\java\de\metas\purchasecandidate\SalesOrderLine.java
2
请完成以下Java代码
public float getScaleFactor() { if (!p_sizeCalculated) p_sizeCalculated = calculateSize(); return m_scaleFactor; } /** * @author teo_sarca - [ 1673590 ] report table - barcode overflows over next fields * @return can this element overflow over the next fields */ public boolean isAllowOverflow() { // ...
BufferedImage image = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB); Graphics2D temp = (Graphics2D) image.getGraphics(); m_barcode.draw(temp, 0, 0); // scale barcode and paint AffineTransform transform = new AffineTransform(); transform.translate(x,y); transform.scale(m_scaleFactor, m_scale...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\print\layout\BarcodeElement.java
1
请完成以下Java代码
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; } public Double getRating() { return rating; } public void setRating(Double rating) { this.rating...
public void setLongitude(double longitude) { this.longitude = longitude; } public boolean isDeleted() { return deleted; } public void setDeleted(boolean deleted) { this.deleted = deleted; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getC...
repos\tutorials-master\spring-boot-modules\spring-boot-caching\src\main\java\com\baeldung\caching\ttl\model\Hotel.java
1
请在Spring Boot框架中完成以下Java代码
private static ScannableCodeFormatPart fromRecord(@NotNull final I_C_ScannableCode_Format_Part record) { final ScannableCodeFormatPartType type = ScannableCodeFormatPartType.ofCode(record.getDataType()); final ScannableCodeFormatPart.ScannableCodeFormatPartBuilder builder = ScannableCodeFormatPart.builder() .s...
return getById(formatId); } private void createPart(@NotNull final ScannableCodeFormatCreateRequest.Part part, @NotNull final ScannableCodeFormatId formatId) { final I_C_ScannableCode_Format_Part record = InterfaceWrapperHelper.newInstance(I_C_ScannableCode_Format_Part.class); record.setC_ScannableCode_Format_I...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\scannable_code\format\repository\ScannableCodeFormatLoaderAndSaver.java
2
请完成以下Java代码
public Company post(@RequestBody Company company) { return companyRepo.insert(company); } @PutMapping("/company") public Company put(@RequestBody Company company) { return companyRepo.save(company); } @GetMapping("/company/{id}") public Optional<Company> getCompany(@PathVariabl...
@GetMapping("/customer/{id}") public Optional<Customer> getCustomer(@PathVariable String id) { return customerRepo.findById(id); } @PostMapping("/asset") public Asset post(@RequestBody Asset asset) { return assetRepo.insert(asset); } @GetMapping("/asset/{id}") public Option...
repos\tutorials-master\persistence-modules\spring-boot-persistence-mongodb-2\src\main\java\com\baeldung\boot\unique\field\web\UniqueFieldController.java
1
请完成以下Java代码
public static String escape(final String str) { if (Check.isEmpty(str, true)) { return str; } return str.replace(PARAMETER_TAG, PARAMETER_DOUBLE_TAG); } private StringExpressionCompiler() { super(); } @Override protected IStringExpression getNullExpression() { return IStringExpression.NULL;...
@Override protected IStringExpression createConstantExpression(final ExpressionContext context, final String expressionStr) { return ConstantStringExpression.of(expressionStr); } @Override protected IStringExpression createSingleParamaterExpression(final ExpressionContext context, final String expressionStr, fi...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\expression\api\impl\StringExpressionCompiler.java
1
请完成以下Java代码
public static final class Builder { private static final Logger logger = LogManager.getLogger(DocumentLayoutElementGroupDescriptor.Builder.class); private String internalName; private LayoutType layoutType; public Integer columnCount = null; private final List<DocumentLayoutElementLineDescriptor.Builder> e...
this.columnCount = CoalesceUtil.firstGreaterThanZero(columnCount, 1); return this; } public Builder addElementLine(@NonNull final DocumentLayoutElementLineDescriptor.Builder elementLineBuilder) { elementLinesBuilders.add(elementLineBuilder); return this; } public Builder addElementLines(@NonNull fi...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\descriptor\DocumentLayoutElementGroupDescriptor.java
1
请完成以下Java代码
public Integer getId() { return id; } public ESProductDO setId(Integer id) { this.id = id; return this; } public String getName() { return name; } public ESProductDO setName(String name) { this.name = name; return this; } public String ...
public String getCategoryName() { return categoryName; } public ESProductDO setCategoryName(String categoryName) { this.categoryName = categoryName; return this; } @Override public String toString() { return "ProductDO{" + "id=" + id + ...
repos\SpringBoot-Labs-master\lab-15-spring-data-es\lab-15-spring-data-jest\src\main\java\cn\iocoder\springboot\lab15\springdatajest\dataobject\ESProductDO.java
1
请完成以下Java代码
public Object getParameterComponent(final int index) { return null; } @Override public Object getParameterToComponent(final int index) { return null; } @Override public Object getParameterValue(final int index, final boolean returnValueTo) { return null; } @Override public String[] getWhereClauses(...
final OrderLineProductASIGridRowBuilder productQtyBuilder = new OrderLineProductASIGridRowBuilder(); productQtyBuilder.setSource(recordId, asiId); builders.addGridTabRowBuilder(recordId, productQtyBuilder); } } @Override public void prepareEditor(final CEditor editor, final Object value, final int rowIndexM...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\adempiere\gui\search\InfoProductASIController.java
1
请完成以下Java代码
public void parseChildElement(XMLStreamReader xtr, BaseElement parentElement, BpmnModel model) throws Exception { if (!accepts(parentElement)) { return; } FormProperty property = new FormProperty(); BpmnXMLUtil.addXMLLocation(property, xtr); property.setId(xtr.getAttr...
while (!readyWithFormProperty && xtr.hasNext()) { xtr.next(); if (xtr.isStartElement() && ELEMENT_VALUE.equalsIgnoreCase(xtr.getLocalName())) { FormValue value = new FormValue(); BpmnXMLUtil.addXMLLocation(value, xtr); value.set...
repos\Activiti-develop\activiti-core\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\child\FormPropertyParser.java
1
请完成以下Java代码
private static void unboxAndAppendToList(@Nullable final IValidationRule rule, @NonNull final ArrayList<IValidationRule> list) { if (rule instanceof CompositeValidationRule) { final CompositeValidationRule compositeRule = (CompositeValidationRule)rule; for (final IValidationRule childRule : compositeRule.rul...
// Don't add null rules if (NullValidationRule.isNull(rule)) { return this; } // Don't add if already exists if (rules.contains(rule)) { return this; } if (explodeComposite && rule instanceof CompositeValidationRule) { final CompositeValidationRule compositeRule = (CompositeVali...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\validationRule\impl\CompositeValidationRule.java
1
请完成以下Java代码
private static ImmutableList<InstantInterval> removeGaps(@NonNull final List<AnnotatedPoint> annotatedPointList) { final List<InstantInterval> result = new ArrayList<>(); // iterate over the annotatedPointList boolean isInterval = false; boolean isGap = false; Instant intervalStart = null; for (final Ann...
private static class AnnotatedPoint implements Comparable<AnnotatedPoint> { @NonNull Instant value; @NonNull PointType type; public static AnnotatedPoint of(@NonNull final Instant instant, @NonNull final PointType type) { return AnnotatedPoint.builder() .value(instant) .type(type) .buil...
repos\metasfresh-new_dawn_uat\backend\de.metas.util\src\main\java\de\metas\util\time\IntervalUtils.java
1
请完成以下Java代码
public InterestType1Choice getTp() { return tp; } /** * Sets the value of the tp property. * * @param value * allowed object is * {@link InterestType1Choice } * */ public void setTp(InterestType1Choice value) { this.tp = value; } /**...
* * @return * possible object is * {@link String } * */ public String getRsn() { return rsn; } /** * Sets the value of the rsn property. * * @param value * allowed object is * {@link String } * */ public voi...
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\InterestRecord1.java
1
请完成以下Java代码
Mono<Map<String, String>> getIndexes(String sessionId) { String sessionIndexesKey = getSessionIndexesKey(sessionId); return this.sessionRedisOperations.opsForSet() .members(sessionIndexesKey) .cast(String.class) .collectMap((indexKey) -> indexKey.substring(this.indexKeyPrefix.length()).split(":")[0], ...
private String getIndexKey(String indexName, String indexValue) { return this.indexKeyPrefix + indexName + ":" + indexValue; } void setNamespace(String namespace) { Assert.hasText(namespace, "namespace cannot be empty"); this.namespace = namespace; updateIndexKeyPrefix(); } void setIndexResolver(IndexReso...
repos\spring-session-main\spring-session-data-redis\src\main\java\org\springframework\session\data\redis\ReactiveRedisSessionIndexer.java
1
请完成以下Java代码
public void setPostingType (String PostingType) { set_Value (COLUMNNAME_PostingType, PostingType); } /** Get PostingType. @return The type of posted amount for the transaction */ public String getPostingType () { return (String)get_Value(COLUMNNAME_PostingType); } /** RatioElementType AD_Reference_I...
public static final String RATIOOPERAND_Divide = "D"; /** Set Operand. @param RatioOperand Ratio Operand */ public void setRatioOperand (String RatioOperand) { set_Value (COLUMNNAME_RatioOperand, RatioOperand); } /** Get Operand. @return Ratio Operand */ public String getRatioOperand () { ret...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_PA_RatioElement.java
1
请完成以下Java代码
public BigDecimal getRecognizedAmt () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_RecognizedAmt); if (bd == null) return Env.ZERO; return bd; } /** Set Total Amount. @param TotalAmt Total Amount */ public void setTotalAmt (BigDecimal TotalAmt) { set_ValueNoCheck (COLUMNNAME_TotalAmt, T...
public void setUnEarnedRevenue_Acct (int UnEarnedRevenue_Acct) { set_ValueNoCheck (COLUMNNAME_UnEarnedRevenue_Acct, Integer.valueOf(UnEarnedRevenue_Acct)); } /** Get Unearned Revenue. @return Account for unearned revenue */ public int getUnEarnedRevenue_Acct () { Integer ii = (Integer)get_Value(COLUMNNA...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_RevenueRecognition_Plan.java
1
请完成以下Java代码
public String getEmployeesByIdWithRequired(@PathVariable String id) { return "ID: " + id; } @GetMapping(value = { "/api/employeeswithrequiredfalse", "/api/employeeswithrequiredfalse/{id}" }) @ResponseBody public String getEmployeesByIdWithRequiredFalse(@PathVariable(required = false) String id)...
} else { return "ID: Default Employee"; } } @GetMapping(value = { "/api/employeeswithmap/{id}", "/api/employeeswithmap" }) @ResponseBody public String getEmployeesByIdWithMap(@PathVariable Map<String, String> pathVarsMap) { String id = pathVarsMap.get("id"); if (id !...
repos\tutorials-master\spring-web-modules\spring-mvc-java\src\main\java\com\baeldung\pathvariable\PathVariableAnnotationController.java
1
请完成以下Java代码
public class VerbindungTesten { @XmlElement(namespace = "", required = true) protected String clientSoftwareKennung; /** * Gets the value of the clientSoftwareKennung property. * * @return * possible object is * {@link String } * */ public String getCli...
} /** * Sets the value of the clientSoftwareKennung property. * * @param value * allowed object is * {@link String } * */ public void setClientSoftwareKennung(String value) { this.clientSoftwareKennung = value; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma.msv3.schema.v1\src\main\java-xjc\de\metas\vertical\pharma\vendor\gateway\msv3\schema\v1\VerbindungTesten.java
1
请完成以下Java代码
private void executeNow( @NonNull final Object po, @NonNull final Pointcut pointcut, final int timing) { if (AnnotatedModelInterceptorDisabler.get().isDisabled(pointcut)) { logger.info("Not executing pointCut because it is disabled via sysconfig (name-prefix={}); pointcut={}", AnnotatedModelInterc...
// Make sure the method is accessible if (!method.isAccessible()) { method.setAccessible(true); } final Stopwatch stopwatch = Stopwatch.createStarted(); if (pointcut.isMethodRequiresTiming()) { final Object timingParam = pointcut.convertToMethodTimingParameterType(timing); method.invoke(annotatedO...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\modelvalidator\AnnotatedModelInterceptor.java
1
请在Spring Boot框架中完成以下Java代码
public @Nullable String getRetentionShardDuration() { return this.retentionShardDuration; } public void setRetentionShardDuration(@Nullable String retentionShardDuration) { this.retentionShardDuration = retentionShardDuration; } public String getUri() { return this.uri; } public void setUri(String uri) {...
} public void setOrg(@Nullable String org) { this.org = org; } public @Nullable String getBucket() { return this.bucket; } public void setBucket(@Nullable String bucket) { this.bucket = bucket; } public @Nullable String getToken() { return this.token; } public void setToken(@Nullable String token)...
repos\spring-boot-4.0.1\module\spring-boot-micrometer-metrics\src\main\java\org\springframework\boot\micrometer\metrics\autoconfigure\export\influx\InfluxProperties.java
2
请完成以下Java代码
public class CaseInstanceDto extends LinkableDto { protected String id; protected String caseDefinitionId; protected String businessKey; protected String tenantId; protected boolean active; protected boolean completed; protected boolean terminated; public String getId() { return id; } public ...
public static CaseInstanceDto fromCaseInstance(CaseInstance instance) { CaseInstanceDto result = new CaseInstanceDto(); result.id = instance.getId(); result.caseDefinitionId = instance.getCaseDefinitionId(); result.businessKey = instance.getBusinessKey(); result.tenantId = instance.getTenantId(); ...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\runtime\CaseInstanceDto.java
1
请在Spring Boot框架中完成以下Java代码
public class Todo { public Todo() { } public Todo(int id, String username, String description, LocalDate targetDate, boolean done) { super(); this.id = id; this.username = username; this.description = description; this.targetDate = targetDate; this.done = done; } @Id @GeneratedValue private in...
public LocalDate getTargetDate() { return targetDate; } public void setTargetDate(LocalDate targetDate) { this.targetDate = targetDate; } public boolean isDone() { return done; } public void setDone(boolean done) { this.done = done; } @Override public String toString() { return "Todo [id=" + id +...
repos\master-spring-and-spring-boot-main\11-web-application\src\main\java\com\in28minutes\springboot\myfirstwebapp\todo\Todo.java
2
请完成以下Java代码
public class StartSubProcessInstanceBeforeContext extends AbstractStartProcessInstanceBeforeContext { protected ExecutionEntity callActivityExecution; protected List<IOParameter> inParameters; protected boolean inheritVariables; public StartSubProcessInstanceBeforeContext() { } ...
return callActivityExecution; } public void setCallActivityExecution(ExecutionEntity callActivityExecution) { this.callActivityExecution = callActivityExecution; } public List<IOParameter> getInParameters() { return inParameters; } public void setInParameters(List<IOParameter>...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\interceptor\StartSubProcessInstanceBeforeContext.java
1
请完成以下Java代码
public void setCountryCode(final String countryCode) { this.countryCode = countryCode; this.countryCodeSet = true; } public void setGln(final String gln) { this.gln = gln; this.glnSet = true; } public void setShipTo(final Boolean shipTo) { this.shipTo = shipTo; this.shipToSet = true; } public vo...
} public void setBillToDefault(final Boolean billToDefault) { this.billToDefault = billToDefault; this.billToDefaultSet = true; } public void setSyncAdvise(final SyncAdvise syncAdvise) { this.syncAdvise = syncAdvise; this.syncAdviseSet = true; } }
repos\metasfresh-new_dawn_uat\misc\de-metas-common\de-metas-common-bpartner\src\main\java\de\metas\common\bpartner\v1\request\JsonRequestLocation.java
1
请完成以下Java代码
public class Person { private Long id; private String name; public Person() { super(); } public Person(String name) { super(); 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; } }
repos\springBoot-master\springboot-springCloud\ui\src\main\java\com\abel\bean\Person.java
1
请完成以下Java代码
public class Doc_Movement extends Doc<DocLine_Movement> { public Doc_Movement(final AcctDocContext ctx) { super(ctx, DocBaseType.MaterialMovement); } @Override protected void loadDocumentDetails() { setNoCurrency(); final I_M_Movement move = getModel(I_M_Movement.class); setDateDoc(move.getMovementDate()...
return ImmutableList.of(fact); } private void createFactsForMovementLine(final Fact fact, final DocLine_Movement line) { final AcctSchema as = fact.getAcctSchema(); final MoveCostsResult costs = line.getCreateCosts(as); // // Inventory CR/DR (from locator) final CostAmount outboundCosts = costs.getOutbo...
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java-legacy\org\compiere\acct\Doc_Movement.java
1
请在Spring Boot框架中完成以下Java代码
private static final class DefaultPrimitiveTypeVisitor extends TypeKindVisitor8<Object, Void> { static final DefaultPrimitiveTypeVisitor INSTANCE = new DefaultPrimitiveTypeVisitor(); @Override public Object visitPrimitiveAsBoolean(PrimitiveType type, Void parameter) { return false; } @Override public ...
} @Override public Object visitPrimitiveAsByte(PrimitiveType type, String value) { return parseNumber(value, Byte::parseByte, type); } @Override public Object visitPrimitiveAsShort(PrimitiveType type, String value) { return parseNumber(value, Short::parseShort, type); } @Override public Object ...
repos\spring-boot-4.0.1\configuration-metadata\spring-boot-configuration-processor\src\main\java\org\springframework\boot\configurationprocessor\ParameterPropertyDescriptor.java
2
请在Spring Boot框架中完成以下Java代码
public void addAuthorsWithBooks() { Publisher publisher = publisherRepository.findByUrc(92284434); Author author1 = new Author(); author1.setId(new AuthorId(publisher, "Alicia Tom")); author1.setGenre("Anthology"); Author author2 = new Author(); author2.setId(n...
System.out.println(author); } @Transactional public void removeBookOfAuthor() { Publisher publisher = publisherRepository.findByUrc(92284434); Author author = authorRepository.fetchWithBooks(new AuthorId(publisher, "Alicia Tom")); author.removeBook(author.getBooks().get(0)); }...
repos\Hibernate-SpringBoot-master\HibernateSpringBootCompositeKeyEmbeddableMapRel\src\main\java\com\bookstore\service\BookstoreService.java
2
请在Spring Boot框架中完成以下Java代码
public static DeploymentWithDefinitionsDto fromDeployment(DeploymentWithDefinitions deployment) { DeploymentWithDefinitionsDto dto = new DeploymentWithDefinitionsDto(); dto.id = deployment.getId(); dto.name = deployment.getName(); dto.source = deployment.getSource(); dto.deploymentTime = deployment....
dto.deployedCaseDefinitions .put(caseDefinition.getId(), CaseDefinitionDto.fromCaseDefinition(caseDefinition)); } } List<DecisionDefinition> deployedDecisionDefinitions = deployment.getDeployedDecisionDefinitions(); if (deployedDecisionDefinitions != null) { dto.deployedDecisionDefini...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\repository\DeploymentWithDefinitionsDto.java
2
请在Spring Boot框架中完成以下Java代码
private void grantTaskAccess(@NonNull final I_AD_Role_PermRequest request) { final int AD_Task_ID = request.getAD_Task_ID(); final RoleId roleId = RoleId.ofRepoId(request.getAD_Role_ID()); final Role role = Services.get(IRoleDAO.class).getById(roleId); Services.get(IUserRolePermissionsDAO.class) .createT...
.docActionRefListId(docActionRefListId) .readWrite(request.isReadWrite()) .build()); final I_C_DocType docType = Services.get(IDocTypeDAO.class).getById(docTypeId); logGranted(I_C_DocType.COLUMNNAME_C_DocType_ID, docType.getName() + "/" + docAction); } private void logGranted(final String type, fina...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\service\RolePermGrandAccess.java
2
请完成以下Java代码
public class MMediaDeploy extends X_CM_MediaDeploy { /** * */ private static final long serialVersionUID = -339938737506660238L; /** * Standard Constructor * @param ctx context * @param CM_MediaDeploy_ID id * @param trxName transaction */ public MMediaDeploy (Properties ctx, int CM_MediaDeploy_ID, ...
super (ctx, rs, trxName); } // MMediaDeploy /** * Deployment Parent Constructor * @param server server * @param media media */ public MMediaDeploy (MMediaServer server, MMedia media) { this (server.getCtx(), 0, server.get_TrxName()); setCM_Media_Server_ID(server.getCM_Media_Server_ID()); setCM_Medi...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\MMediaDeploy.java
1
请完成以下Java代码
public static String getDockerCoapPublishCommand(String protocol, String baseUrl, String host, String port, DeviceCredentials deviceCredentials) { String coapCommand = getCoapPublishCommand(protocol, host, port, deviceCredentials); if (coapCommand == null) { return null; } ...
return host; } if (inetAddress instanceof Inet6Address) { host = host.replaceAll("[\\[\\]]", ""); if (!MQTT.equals(protocol) && !MQTTS.equals(protocol)) { host = "[" + host + "]"; } } return host; } public static String getPort...
repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\util\DeviceConnectivityUtil.java
1
请完成以下Java代码
public static MTree_Node get (MTree_Base tree, int Node_ID) { MTree_Node retValue = null; String sql = "SELECT * FROM AD_TreeNode WHERE AD_Tree_ID=? AND Node_ID=?"; PreparedStatement pstmt = null; try { pstmt = DB.prepareStatement (sql, tree.get_TrxName()); pstmt.setInt (1, tree.getAD_Tree_ID()); ps...
} // get /** Static Logger */ private static Logger s_log = LogManager.getLogger(MTree_Node.class); /** * Load Constructor * @param ctx context * @param rs result set * @param trxName transaction */ public MTree_Node (Properties ctx, ResultSet rs, String trxName) { super(ctx, rs, trxName); } // MTr...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\MTree_Node.java
1
请在Spring Boot框架中完成以下Java代码
public @Nullable String get(String k) { return null; } @Override public boolean enabled() { return obtain(GangliaProperties::isEnabled, GangliaConfig.super::enabled); } @Override public Duration step() { return obtain(GangliaProperties::getStep, GangliaConfig.super::step); } @Override public TimeUnit ...
@Override public int ttl() { return obtain(GangliaProperties::getTimeToLive, GangliaConfig.super::ttl); } @Override public String host() { return obtain(GangliaProperties::getHost, GangliaConfig.super::host); } @Override public int port() { return obtain(GangliaProperties::getPort, GangliaConfig.super::p...
repos\spring-boot-4.0.1\module\spring-boot-micrometer-metrics\src\main\java\org\springframework\boot\micrometer\metrics\autoconfigure\export\ganglia\GangliaPropertiesConfigAdapter.java
2
请完成以下Java代码
public boolean offer(E element) { if (isNotFull()) { int nextWriteSeq = writeSequence + 1; data[nextWriteSeq % capacity] = element; writeSequence++; return true; } return false; } public E poll() { if (isNotEmpty()) { ...
public boolean isEmpty() { return writeSequence < readSequence; } public boolean isFull() { return size() >= capacity; } private boolean isNotEmpty() { return !isEmpty(); } private boolean isNotFull() { return !isFull(); } }
repos\tutorials-master\data-structures-2\src\main\java\com\baeldung\circularbuffer\CircularBuffer.java
1
请完成以下Spring Boot application配置
server.port=80 # Mysql 数据源配置 spring.datasource.url=jdbc:mysql://xxx.xxx.xxx.xxx:3306/demo?useUnicode=true&characterEncoding=utf-8&useSSL=false spring.datasource.username=root spring.datasource.password=xxxxxx spring.datasource.driver-class-name=com.mysql.jdbc.Driver # mybatis配置 mybatis.type-aliases-package=cn.codeshe...
atis.mapper-locations=classpath:mapper/*.xml mybatis.configuration.map-underscore-to-camel-case=true spring.cache.ehcache.config=classpath:ehcache.xml
repos\Spring-Boot-In-Action-master\springbt_ehcache\src\main\resources\application.properties
2
请完成以下Java代码
protected Session doReadSession(Serializable sessionId) { Session session = null; HttpServletRequest request = ServletKit.getRequest(); if (request != null) { String uri = request.getServletPath(); if (ServletKit.isStaticFile(uri)) { return null; ...
String uri = request.getServletPath(); if (ServletKit.isStaticFile(uri)) { return; } } super.doUpdate(session); cache().put(session.getId().toString(), session); logger.debug("{}", session.getAttribute("shiroUserId")); } /** * 删除ses...
repos\springBoot-master\springboot-shiro2\src\main\java\cn\abel\rest\shiro\RedisSessionDao.java
1
请完成以下Java代码
public ProcessInstanceQuery getProcessInstanceQuery() { return processInstanceQuery; } public HistoricProcessInstanceQuery getHistoricProcessInstanceQuery() { return historicProcessInstanceQuery; } public List<String> getProcessInstanceIds() { return processInstanceIds; } public String getPro...
public void setInstructions(List<AbstractProcessInstanceModificationCommand> instructions) { this.instructions = instructions; } public boolean isSkipCustomListeners() { return skipCustomListeners; } public boolean isSkipIoMappings() { return skipIoMappings; } public String getAnnotation() { ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\ModificationBuilderImpl.java
1
请完成以下Java代码
public boolean hasNext() { if (nextSet) { return true; } else { return setNextValid(); } } @Override public E next() { if (!nextSet) { if (!setNextValid()) { throw new NoSuchElementException(); } } nextSet = false; return next; } /** * Set next valid element * * ...
{ final E element = iterator.next(); if (predicate.test(element)) { next = element; nextSet = true; return true; } } return false; } /** * @throws UnsupportedOperationException always */ @Override public void remove() { throw new UnsupportedOperationException(); } @Override p...
repos\metasfresh-new_dawn_uat\backend\de.metas.util\src\main\java\de\metas\util\collections\FilterIterator.java
1
请完成以下Java代码
public String toString() { return "DunningContext [" + "dunningLevel=" + dunningLevel + ", dunningDate=" + dunningDate + ", trxName=" + trxName + ", config=" + dunningConfig + ", ctx=" + ctx + "]"; } @Override public Properties getCtx() { return ctx; } @Override public String getTr...
} @Override public IDunningConfig getDunningConfig() { return dunningConfig; } @Override public Date getDunningDate() { if (dunningDate == null) { return dunningDate; } return (Date)dunningDate.clone(); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.dunning\src\main\java\de\metas\dunning\api\impl\DunningContext.java
1
请完成以下Java代码
public JobQuery orderByProcessDefinitionKey() { return orderBy(JobQueryProperty.PROCESS_DEFINITION_KEY); } public JobQuery orderByJobRetries() { return orderBy(JobQueryProperty.RETRIES); } public JobQuery orderByJobPriority() { return orderBy(JobQueryProperty.PRIORITY); } public JobQuery orde...
} public String getExecutionId() { return executionId; } public boolean getRetriesLeft() { return retriesLeft; } public boolean getExecutable() { return executable; } public Date getNow() { return ClockUtil.getCurrentTime(); } public boolean isWithException() { return withException...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\JobQueryImpl.java
1
请在Spring Boot框架中完成以下Java代码
public Result<?> receiveHeartBeat(String app, @RequestParam(value = "app_type", required = false, defaultValue = "0") Integer appType, Long version, String v, String hostname, String ip, Integer port) { if (app == null) { app = MachineDiscovery.UNKNOWN_APP_NAME; } if (ip == null) { ...
machineInfo.setApp(app); machineInfo.setAppType(appType); machineInfo.setHostname(hostname); machineInfo.setIp(ip); machineInfo.setPort(port); machineInfo.setHeartbeatVersion(version); machineInfo.setLastHeartbeat(System.currentTimeMillis()); ...
repos\spring-boot-student-master\spring-boot-student-sentinel-dashboard\src\main\java\com\alibaba\csp\sentinel\dashboard\controller\MachineRegistryController.java
2
请完成以下Java代码
public void setSwitchUserAuthorityChanger(SwitchUserAuthorityChanger switchUserAuthorityChanger) { this.switchUserAuthorityChanger = switchUserAuthorityChanger; } /** * Sets the {@link UserDetailsChecker} that is called on the target user whenever the * user is switched. * @param userDetailsChecker the {@lin...
/** * Sets the {@link SecurityContextHolderStrategy} to use. The default action is to use * the {@link SecurityContextHolderStrategy} stored in {@link SecurityContextHolder}. * * @since 5.8 */ public void setSecurityContextHolderStrategy(SecurityContextHolderStrategy securityContextHolderStrategy) { Assert...
repos\spring-security-main\web\src\main\java\org\springframework\security\web\authentication\switchuser\SwitchUserFilter.java
1
请完成以下Java代码
private void enqueueGenerateSchedulesAfterCommit(@NonNull final I_C_Order orderRecord) { final OrderId orderId = OrderId.ofRepoId(orderRecord.getC_Order_ID()); if (isEligibleForAutoProcessing(orderRecord)) { Loggables.withLogger(logger, Level.DEBUG).addLog("OrderId: {} qualified for auto ship and invoice! En...
if (!canDoAutoShipAndInvoice) { return false; } //dev-note: check to see if the order is not already involved in another async job final AsyncBatchId asyncBatchId = AsyncBatchId.ofRepoIdOrNull(orderRecord.getC_Async_Batch_ID()); if (asyncBatchId == null) { return true; } return !asyncBatchObser...
repos\metasfresh-new_dawn_uat\backend\de-metas-salesorder\src\main\java\de\metas\salesorder\interceptor\C_Order_AutoProcess_Async.java
1
请完成以下Java代码
public int getCode() { return code; } /** * Sets the 编号. * * @param code * the new 编号 */ public void setCode(int code) { this.code = code; } /** * Gets the 信息. * * @return the 信息 */ public String getMessage() { r...
* @param message * the new 信息 * * @return the wrapper */ public Wrapper<T> message(String message) { this.setMessage(message); return this; } /** * Sets the 结果数据 ,返回自身的引用. * * @param result * the new 结果数据 * * @return...
repos\spring-boot-student-master\spring-boot-student-validated\src\main\java\com\xiaolyuh\wrapper\Wrapper.java
1
请完成以下Java代码
public static void registerType(ModelBuilder bpmnModelBuilder) { ModelElementTypeBuilder typeBuilder = bpmnModelBuilder.defineType(CallableElement.class, BPMN_ELEMENT_CALLABLE_ELEMENT) .namespaceUri(BPMN20_NS) .extendsType(RootElement.class) .instanceProvider(new ModelTypeInstanceProvider<ModelEle...
public String getName() { return nameAttribute.getValue(this); } public void setName(String name) { nameAttribute.setValue(this, name); } public Collection<Interface> getSupportedInterfaces() { return supportedInterfaceRefCollection.getReferenceTargetElements(this); } public IoSpecification g...
repos\camunda-bpm-platform-master\model-api\bpmn-model\src\main\java\org\camunda\bpm\model\bpmn\impl\instance\CallableElementImpl.java
1
请完成以下Java代码
public static Timestamp asDayTimestamp() { final GregorianCalendar cal = asGregorianCalendar(); cal.set(Calendar.HOUR_OF_DAY, 0); cal.set(Calendar.MINUTE, 0); cal.set(Calendar.SECOND, 0); cal.set(Calendar.MILLISECOND, 0); return new Timestamp(cal.getTimeInMillis()); } public static Instant asInstant() ...
public static ZonedDateTime asZonedDateTime() { return asZonedDateTime(zoneId()); } public static ZonedDateTime asZonedDateTimeAtStartOfDay() { return asZonedDateTime(zoneId()).truncatedTo(ChronoUnit.DAYS); } public static ZonedDateTime asZonedDateTimeAtEndOfDay(@NonNull final ZoneId zoneId) { return asZ...
repos\metasfresh-new_dawn_uat\misc\de-metas-common\de-metas-common-util\src\main\java\de\metas\common\util\time\SystemTime.java
1
请完成以下Java代码
public List<TimescaleTsKvEntity> findAvg(UUID entityId, int entityKey, long timeBucket, long startTs, long endTs) { return getResultList(entityId, entityKey, timeBucket, startTs, endTs, FIND_AVG); } @SuppressWarnings("unchecked") public List<TimescaleTsKvEntity> findMax(UUID entityId, int entityKey...
} @SuppressWarnings("unchecked") public List<TimescaleTsKvEntity> findCount(UUID entityId, int entityKey, long timeBucket, long startTs, long endTs) { return getResultList(entityId, entityKey, timeBucket, startTs, endTs, FIND_COUNT); } private List getResultList(UUID entityId, int entityKey, l...
repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\sqlts\timescale\AggregationRepository.java
1
请完成以下Java代码
public String getResolvedBy() { return resolvedBy; } public void setResolvedBy(String resolvedBy) { this.resolvedBy = resolvedBy; } public Date getClosedTime() { return closedTime; } public void setClosedTime(Date closedTime) { this.closedTime = closedTime; } public String getClosedBy() { return close...
", host=" + host + ", ip=" + ip + ", source=" + source + ", type=" + type + ", startTime=" + startTime + ", endTime=" + endTime + ", content=" + content + ", dataType=" + dataType + ", suggest=" + suggest + ", businessSystemId=" + businessSystemId + ", departmentId=" + departmentId + ",...
repos\springBoot-master\springboot-shiro\src\main\java\com\us\bean\Event.java
1
请完成以下Java代码
public void setSalesLineId (final @Nullable String SalesLineId) { set_Value (COLUMNNAME_SalesLineId, SalesLineId); } @Override public String getSalesLineId() { return get_ValueAsString(COLUMNNAME_SalesLineId); } @Override public void setTimePeriod (final @Nullable BigDecimal TimePeriod) { set_Value (CO...
final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_TimePeriod); return bd != null ? bd : BigDecimal.ZERO; } @Override public void setUnit (final @Nullable String Unit) { set_Value (COLUMNNAME_Unit, Unit); } @Override public String getUnit() { return get_ValueAsString(COLUMNNAME_Unit); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.healthcare.alberta\src\main\java-gen\de\metas\vertical\healthcare\alberta\model\X_Alberta_OrderedArticleLine.java
1
请在Spring Boot框架中完成以下Java代码
public static class CloudFoundryClusterAvailableCondition extends AbstractCloudPlatformAvailableCondition { protected static final String CLOUD_FOUNDRY_NAME = "CloudFoundry"; protected static final String RUNTIME_ENVIRONMENT_NAME = "VMware Tanzu GemFire for VMs"; @Override protected String getCloudPlatformNam...
} public static class StandaloneClusterAvailableCondition extends ClusterAwareConfiguration.ClusterAwareCondition { @Override public synchronized boolean matches(@NonNull ConditionContext conditionContext, @NonNull AnnotatedTypeMetadata typeMetadata) { return isNotSupportedCloudPlatform(conditionConte...
repos\spring-boot-data-geode-main\spring-geode-project\spring-geode\src\main\java\org\springframework\geode\config\annotation\ClusterAvailableConfiguration.java
2
请完成以下Java代码
public BigDecimal getApprovalAmt(final DocumentTableFields docFields) { return BigDecimal.ZERO; } @Override public File createPDF(final DocumentTableFields docFields) { throw new UnsupportedOperationException(); } @Override public String completeIt(final DocumentTableFields docFields) { final I_M_Forec...
} @Override public void reverseAccrualIt(final DocumentTableFields docFields) { throw new UnsupportedOperationException(); } @Override public void reactivateIt(final DocumentTableFields docFields) { final I_M_Forecast forecast = extractForecast(docFields); forecast.setProcessed(false); forecast.setDocA...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\mforecast\ForecastDocumentHandler.java
1
请在Spring Boot框架中完成以下Java代码
public String getValue() { return value; } public void setValue(String value) { this.value = value; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } EbayTaxReference ebayTaxReference = (EbayTaxR...
sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String to...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\de-metas-camel-ebay\ebay-api-client\src\main\java\de\metas\camel\externalsystems\ebay\api\model\EbayTaxReference.java
2
请在Spring Boot框架中完成以下Java代码
SecurityContextRepository getSecurityContextRepository() { SecurityContextRepository securityContextRepository = getBuilder() .getSharedObject(SecurityContextRepository.class); if (securityContextRepository == null) { securityContextRepository = new DelegatingSecurityContextRepository( new RequestAttribu...
http.addFilter(securityContextHolderFilter); } else { SecurityContextPersistenceFilter securityContextFilter = new SecurityContextPersistenceFilter( securityContextRepository); securityContextFilter.setSecurityContextHolderStrategy(getSecurityContextHolderStrategy()); SessionManagementConfigurer<?> se...
repos\spring-security-main\config\src\main\java\org\springframework\security\config\annotation\web\configurers\SecurityContextConfigurer.java
2
请完成以下Java代码
class ConfigurationPropertySourcesCaching implements ConfigurationPropertyCaching { private final @Nullable Iterable<ConfigurationPropertySource> sources; ConfigurationPropertySourcesCaching(@Nullable Iterable<ConfigurationPropertySource> sources) { this.sources = sources; } @Override public void enable() { ...
return override; } private void forEach(Consumer<ConfigurationPropertyCaching> action) { if (this.sources != null) { for (ConfigurationPropertySource source : this.sources) { ConfigurationPropertyCaching caching = CachingConfigurationPropertySource.find(source); if (caching != null) { action.accept...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\context\properties\source\ConfigurationPropertySourcesCaching.java
1
请完成以下Java代码
public Set<ActivatePlanItemDefinitionMapping> getActivatePlanItemDefinitions() { return activatePlanItemDefinitions; } public Set<MoveToAvailablePlanItemDefinitionMapping> getChangeToAvailableStatePlanItemDefinitions() { return changeToAvailableStatePlanItemDefinitions; } public Set<Te...
public Set<ChangePlanItemIdWithDefinitionIdMapping> getChangePlanItemIdsWithDefinitionId() { return changePlanItemIdsWithDefinitionId; } public Set<ChangePlanItemDefinitionWithNewTargetIdsMapping> getChangePlanItemDefinitionWithNewTargetIds() { return changePlanItemDefinitionWithNewTargetId...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\runtime\ChangePlanItemStateBuilderImpl.java
1
请完成以下Java代码
public void zoom() { log.info(""); // adWindowId = null; String ColumnName = null; String SQL = null; // int lineID = Env.getContextAsInt(Env.getCtx(), m_WindowNo, "M_InOutLine_ID"); if (lineID > 0) { log.debug("M_InOutLine_ID=" + lineID); if (Env.getContext(Env.getCtx(), m_WindowNo, "MovementT...
ColumnName = "M_Movement_ID"; SQL = "SELECT M_Movement_ID FROM M_MovementLine WHERE M_MovementLine_ID=?"; } } } if (adWindowId == null) { return; } // Get Parent ID final int parentID = DB.getSQLValueEx(ITrx.TRXNAME_None, SQL, lineID); query = MQuery.getEqualQuery(ColumnName, parentID); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\apps\form\TrxMaterial.java
1
请完成以下Java代码
private void validateScopes() { if (CollectionUtils.isEmpty(this.scopes)) { return; } for (String scope : this.scopes) { Assert.isTrue(validateScope(scope), "scope \"" + scope + "\" contains invalid characters"); } } private static boolean validateScope(String scope) { return scope == null ...
for (String postLogoutRedirectUri : this.postLogoutRedirectUris) { Assert.isTrue(validateRedirectUri(postLogoutRedirectUri), "post_logout_redirect_uri \"" + postLogoutRedirectUri + "\" is not a valid post logout redirect URI or contains fragment"); } } private static boolean validateRedirectUri(String...
repos\spring-security-main\oauth2\oauth2-authorization-server\src\main\java\org\springframework\security\oauth2\server\authorization\client\RegisteredClient.java
1
请完成以下Java代码
public class IMPProcessorAdempiereProcessorAdapter implements AdempiereProcessor { private final I_IMP_Processor impProcessor; public IMPProcessorAdempiereProcessorAdapter(@NonNull final I_IMP_Processor impProcessor) { this.impProcessor = impProcessor; } public I_IMP_Processor getIMP_Procesor() { return imp...
} return impProcessor.getDateNextRun(); } @Override public void setDateNextRun(Timestamp dateNextWork) { impProcessor.setDateNextRun(dateNextWork); } @Override public Timestamp getDateLastRun() { return impProcessor.getDateLastRun(); } @Override public void setDateLastRun(Timestamp dateLastRun) { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\server\rpl\api\impl\IMPProcessorAdempiereProcessorAdapter.java
1
请完成以下Java代码
public String getType() { return type; } public void setType(String type) { this.type = type; } public String getActivityId() { return activityId; } public void setActivityId(String activityId) { this.activityId = activityId; } public String getTransitionId() { return transitionId; ...
public abstract void applyTo(InstantiationBuilder<?> builder, ProcessEngine engine, ObjectMapper mapper); protected String buildErrorMessage(String message) { return "For instruction type '" + type + "': " + message; } protected void applyVariables(ActivityInstantiationBuilder<?> builder, ProcessEngi...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\runtime\modification\ProcessInstanceModificationInstructionDto.java
1
请完成以下Java代码
protected Optional<String> getAccountIBAN() { return Optional.ofNullable(accountStatement2.getAcct().getId().getIBAN()); } @Override @NonNull protected Optional<String> getSwiftCode() { return Optional.ofNullable(accountStatement2.getAcct().getSvcr()) .map(branchAndFinancialInstitutionIdentification4 -> ...
.filter(AccountStatement2Wrapper::isPRCDCashBalance) .findFirst(); } private static boolean isPRCDCashBalance(@NonNull final CashBalance3 cashBalance) { final BalanceType12Code balanceTypeCode = cashBalance.getTp().getCdOrPrtry().getCd(); return BalanceType12Code.PRCD.equals(balanceTypeCode); } private ...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.camt53\src\main\java\de\metas\banking\camt53\wrapper\v02\AccountStatement2Wrapper.java
1
请完成以下Java代码
public String getPrintName (String AD_Language) { if (AD_Language == null || AD_Language.length() == 0) { return super.getPrintName(); } return get_Translation (COLUMNNAME_PrintName, AD_Language); } // getPrintName /** * After Save * @param newRecord new * @param success success * @return succes...
int docact = DB.executeUpdateAndSaveErrorOnFail(sqlDocAction, get_TrxName()); log.debug("AD_Document_Action_Access=" + docact); } return success; } // afterSave /** * Executed after Delete operation. * @param success true if record deleted * @return true if delete is a success */ @Override protect...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\MDocType.java
1
请完成以下Spring Boot application配置
spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://localhost:3306/flyway username: flyway password: 12345678 flyw
ay: locations: - classpath:flyway table: t_flyway_history
repos\spring-boot-best-practice-master\spring-boot-flyway\src\main\resources\application.yml
2
请完成以下Java代码
public class WorkpackageSkipRequestException extends AdempiereException implements IWorkpackageSkipRequest { private static final long serialVersionUID = 5950712616746434839L; private final int skipTimeoutMillis; private final static Random RANDOM = new Random(); public static WorkpackageSkipRequestException cre...
public String getSkipReason() { return getLocalizedMessage(); } @Override public boolean isSkip() { return true; } @Override public int getSkipTimeoutMillis() { return skipTimeoutMillis; } @Override public Exception getException() { return this; } /** * No need to fill the log if this excep...
repos\metasfresh-new_dawn_uat\backend\de.metas.async\src\main\java\de\metas\async\exceptions\WorkpackageSkipRequestException.java
1
请完成以下Java代码
public class FlowableObjectNotFoundException extends FlowableException { private static final long serialVersionUID = 1L; private Class<?> objectClass; public FlowableObjectNotFoundException(String message) { super(message); } public FlowableObjectNotFoundException(String message, Class<...
this(null, objectClass, null); } public FlowableObjectNotFoundException(String message, Class<?> objectClass, Throwable cause) { super(message, cause); this.objectClass = objectClass; } /** * The class of the object that was not found. Contains the interface-class of the object th...
repos\flowable-engine-main\modules\flowable-engine-common-api\src\main\java\org\flowable\common\engine\api\FlowableObjectNotFoundException.java
1