instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
public String getActionName() { return ACTION_Name; } public List<SwingRelatedProcessDescriptor> fetchProcesses(final Properties ctx, final GridTab gridTab) { if (gridTab == null) { return ImmutableList.of(); } final IUserRolePermissions role = Env.getUserRolePermissions(ctx); Check.assumeNotNull(r...
if (relatedProcess.isEnabled()) { return true; } if (!relatedProcess.isSilentRejection()) { return true; } // // Log and filter it out if (logger.isDebugEnabled()) { final String disabledReason = relatedProcess.getDisabledReason(Env.getAD_Language(Env.getCtx())); logger.debug("Skip pro...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\process\ui\AProcessModel.java
1
请完成以下Java代码
public class GetDeploymentProcessModelCmd implements Command<InputStream>, Serializable { private static final long serialVersionUID = 1L; protected String processDefinitionId; public GetDeploymentProcessModelCmd(String processDefinitionId) { if (processDefinitionId == null || processDefinitionId.length() <...
.findDeployedProcessDefinitionById(processDefinitionId); for(CommandChecker checker : commandContext.getProcessEngineConfiguration().getCommandCheckers()) { checker.checkReadProcessDefinition(processDefinition); } final String deploymentId = processDefinition.getDeploymentId(); final String reso...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\cmd\GetDeploymentProcessModelCmd.java
1
请完成以下Java代码
public void setBytes(byte[] bytes) { this.bytes = bytes; } @Override public String getDeploymentId() { return deploymentId; } @Override public void setDeploymentId(String deploymentId) { this.deploymentId = deploymentId; } @Override public Object getPersist...
@Override public boolean isGenerated() { return false; } @Override public void setGenerated(boolean generated) { this.generated = generated; } @Override public String toString() { return "CmmnResourceEntity[id=" + id + ", name=" + name + "]"; } }
repos\flowable-engine-main\modules\flowable-app-engine\src\main\java\org\flowable\app\engine\impl\persistence\entity\AppResourceEntityImpl.java
1
请完成以下Java代码
public static boolean isInvalidUserPassError(final Exception e) { return isErrorCode(e, 1017); } /** * Check if "time out" exception (aka ORA-01013) */ public static boolean isTimeout(final Exception e) { if (DB.isPostgreSQL()) { return isSQLState(e, PG_SQLSTATE_query_canceled); } return isErrorC...
} /** * Task 08353 */ public static boolean isDeadLockDetected(final Throwable e) { if (DB.isPostgreSQL()) { return isSQLState(e, PG_SQLSTATE_deadlock_detected); } return isErrorCode(e, 40001); // not tested for oracle, just did a brief googling } } // DBException
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\adempiere\exceptions\DBException.java
1
请在Spring Boot框架中完成以下Java代码
public ModelAndView add() { ModelAndView result = new ModelAndView("view"); result.addObject("country", new Country()); return result; } @RequestMapping(value = "/view/{id}") public ModelAndView view(@PathVariable Integer id) { ModelAndView result = new ModelAndView("view");...
countryService.deleteById(id); ra.addFlashAttribute("msg", "删除成功!"); return result; } @RequestMapping(value = "/save", method = RequestMethod.POST) public ModelAndView save(Country country) { ModelAndView result = new ModelAndView("view"); String msg = country.getId() == nul...
repos\MyBatis-Spring-Boot-master\src\main\java\tk\mybatis\springboot\controller\CountryController.java
2
请在Spring Boot框架中完成以下Java代码
public FanoutExchange demo03Exchange() { return new FanoutExchange(Demo03Message.EXCHANGE, true, // durable: 是否持久化 false); // exclusive: 是否排它 } // 创建 Binding A // Exchange:Demo03Message.EXCHANGE // Queue:Demo03Message.QUEUE_A ...
@Bean public HeadersExchange demo04Exchange() { return new HeadersExchange(Demo04Message.EXCHANGE, true, // durable: 是否持久化 false); // exclusive: 是否排它 } // 创建 Binding // Exchange:Demo04Message.EXCHANGE // Queue:Demo04Message.Q...
repos\SpringBoot-Labs-master\lab-04-rabbitmq\lab-04-rabbitmq-demo\src\main\java\cn\iocoder\springboot\lab04\rabbitmqdemo\config\RabbitConfig.java
2
请完成以下Java代码
final class JarFileUrlKey { private final String protocol; private final String host; private final int port; private final String file; private final boolean runtimeRef; JarFileUrlKey(URL url) { this.protocol = url.getProtocol(); this.host = url.getHost(); this.port = (url.getPort() != -1) ? url.getP...
} if (obj == null || getClass() != obj.getClass()) { return false; } JarFileUrlKey other = (JarFileUrlKey) obj; // We check file first as case sensitive and the most likely item to be different return Objects.equals(this.file, other.file) && equalsIgnoringCase(this.protocol, other.protocol) && equalsIg...
repos\spring-boot-4.0.1\loader\spring-boot-loader\src\main\java\org\springframework\boot\loader\net\protocol\jar\JarFileUrlKey.java
1
请完成以下Java代码
public boolean isCreateLevelsSequentially () { Object oo = get_Value(COLUMNNAME_CreateLevelsSequentially); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Description. @param Description Optional short ...
*/ public String getName () { return (String)get_Value(COLUMNNAME_Name); } /** Get Record ID/ColumnName @return ID/ColumnName pair */ public KeyNamePair getKeyNamePair() { return new KeyNamePair(get_ID(), getName()); } /** Set Send dunning letters. @param SendDunningLet...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_Dunning.java
1
请完成以下Java代码
public static InvoiceAndLineId ofRepoId(@NonNull final InvoiceId invoiceId, final int invoiceLineId) { return new InvoiceAndLineId(invoiceId, invoiceLineId); } public static InvoiceAndLineId ofRepoId(final int invoiceId, final int invoiceLineId) { return new InvoiceAndLineId(InvoiceId.ofRepoId(invoiceId), invo...
return toRepoIdOr(invoiceAndLineId, -1); } public static int toRepoIdOr(@Nullable final InvoiceAndLineId invoiceAndLineId, final int defaultValue) { return invoiceAndLineId != null ? invoiceAndLineId.getRepoId() : defaultValue; } public static boolean equals(final InvoiceAndLineId id1, final InvoiceAndLineId i...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\invoice\InvoiceAndLineId.java
1
请完成以下Java代码
private boolean isReversal() { final int reversalId = getReversal_ID(); return reversalId > 0 && reversalId > getPP_Cost_Collector_ID(); } @Override public String getSummary() { return getDescription(); } @Override public LocalDate getDocumentDate() { return TimeUtil.asLocalDate(getMovementDate()); ...
throw new UnsupportedOperationException(); // N/A } @Override public String getDocumentInfo() { final I_C_DocType dt = MDocType.get(getCtx(), getC_DocType_ID()); return dt.getName() + " " + getDocumentNo(); } private PPOrderRouting getOrderRouting() { final IPPOrderRoutingRepository orderRoutingsRepo = S...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing\src\main\java\org\eevolution\model\MPPCostCollector.java
1
请完成以下Java代码
public int getAD_Window_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_AD_Window_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Description. @param Description Optional short description of the record */ public void setDescription (String Description) { set_Value (COLUMNNA...
{ set_Value (COLUMNNAME_IsReadOnly, Boolean.valueOf(IsReadOnly)); } /** Get Read Only. @return Field is read only */ public boolean isReadOnly () { Object oo = get_Value(COLUMNNAME_IsReadOnly); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y"...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_UserDef_Win.java
1
请完成以下Java代码
public Integer getUserType() { return userType; } public void setUserType(Integer userType) { this.userType = userType; } public String getCreateBy() { return createBy; } public void setCreateBy(String createBy) { this.createBy = createBy; } public Dat...
public void setDisabled(Integer disabled) { this.disabled = disabled; } public String getTheme() { return theme; } public void setTheme(String theme) { this.theme = theme; } public Integer getIsLdap() { return isLdap; } public void setIsLdap(Integer is...
repos\springBoot-master\springboot-jpa\src\main\java\com\us\example\bean\User.java
1
请完成以下Java代码
public EventDefinitionQuery orderByEventDefinitionCategory() { return orderBy(EventDefinitionQueryProperty.CATEGORY); } @Override public EventDefinitionQuery orderByEventDefinitionId() { return orderBy(EventDefinitionQueryProperty.ID); } @Override public EventDefinitionQuery or...
public String getKeyLike() { return keyLike; } public String getKeyLikeIgnoreCase() { return keyLikeIgnoreCase; } public String getCategory() { return category; } public String getCategoryLike() { return categoryLike; } public String getResourceName() ...
repos\flowable-engine-main\modules\flowable-event-registry\src\main\java\org\flowable\eventregistry\impl\EventDefinitionQueryImpl.java
1
请完成以下Java代码
public static void main(String[] args) throws IOException { if (args.length < 1) usage(); new WordAnalogy(args[0]).execute(); } protected Result getTargetVector() { final int words = vectorsReader.getNumWords(); final int size = vectorsReader.getSize(); String[]...
double len = 0; for (int j = 0; j < size; j++) { vec[j] = vectorsReader.getMatrixElement(bi[1], j) - vectorsReader.getMatrixElement(bi[0], j) + vectorsReader.getMatrixElement(bi[2], j); len += vec[j] * vec[j]; } len...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\mining\word2vec\WordAnalogy.java
1
请完成以下Java代码
public void setProductColumn (String ProductColumn) { set_Value (COLUMNNAME_ProductColumn, ProductColumn); } /** Get Product Column. @return Fully qualified Product column (M_Product_ID) */ public String getProductColumn () { return (String)get_Value(COLUMNNAME_ProductColumn); } /** Set Sql SELECT. ...
/** Set Sql WHERE. @param WhereClause Fully qualified SQL WHERE clause */ public void setWhereClause (String WhereClause) { set_Value (COLUMNNAME_WhereClause, WhereClause); } /** Get Sql WHERE. @return Fully qualified SQL WHERE clause */ public String getWhereClause () { return (String)get_Valu...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_PA_MeasureCalc.java
1
请完成以下Java代码
public class MessageCorrelationResultImpl implements MessageCorrelationResultWithVariables { protected final Execution execution; protected final MessageCorrelationResultType resultType; protected ProcessInstance processInstance; protected VariableMap variables; public MessageCorrelationResultImpl(Correlat...
public void setProcessInstance(ProcessInstance processInstance) { this.processInstance = processInstance; } @Override public MessageCorrelationResultType getResultType() { return resultType; } @Override public VariableMap getVariables() { return variables; } public void setVariables(Varia...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\runtime\MessageCorrelationResultImpl.java
1
请完成以下Java代码
public class Person { public Person(String firstName, String lastName, String emailAddress, String password, List<BankAccount> bankAccounts) { this.firstName = firstName; this.lastName = lastName; this.emailAddress = emailAddress; this.password = password; this.bankAccounts ...
public void setLastName(String lastName) { this.lastName = lastName; } public String getEmailAddress() { return emailAddress; } public void setEmailAddress(String emailAddress) { this.emailAddress = emailAddress; } public String getPassword() { return password;...
repos\tutorials-master\json-modules\gson-2\src\main\java\com\baeldung\gson\entities\Person.java
1
请完成以下Java代码
public void calculate(final IPricingContext pricingCtx, final IPricingResult result) { final PMMPricingAware_C_OrderLine pricingAware; if (pricingAwareFromApplies.get() != null) { pricingAware = pricingAwareFromApplies.get(); pricingAwareFromApplies.set(null); // set it to null now to avoid stale reference...
// update the price from procurement contract final boolean priceComputed = Services.get(IPMMPricingBL.class).updatePriceFromContract(pricingAware); if (!priceComputed) { return; } } // set details in result result.setPriceStd(pricingAware.getPrice()); result.setCurrencyId(pricingAware.getCurre...
repos\metasfresh-new_dawn_uat\backend\de.metas.procurement.base\src\main\java\de\metas\procurement\base\pricing\spi\impl\ProcurementFlatrateRule.java
1
请完成以下Java代码
public ResponseEntity<Flux<DataBuffer>> downloadFiles() { String boundary = "filesBoundary"; List<Path> files = List.of( UPLOAD_DIR.resolve("file1.txt"), UPLOAD_DIR.resolve("file2.txt") ); // Use concatMap to ensure files are streamed one after another, sequentially...
// Build the flux for this specific part: header + content + footer return Flux.concat( Flux.just(new DefaultDataBufferFactory().wrap(partHeader.getBytes())), fileContentFlux, Flux.just(footerBuffer) ); }) // After all parts...
repos\tutorials-master\spring-web-modules\spring-rest-http-3\src\main\java\com\baeldung\streaming\ReactiveStreamingController.java
1
请完成以下Java代码
public MigrationPlan getMigrationPlan() { return migrationPlan; } public MigrationPlanExecutionBuilder processInstanceIds(List<String> processInstanceIds) { this.processInstanceIds = processInstanceIds; return this; } @Override public MigrationPlanExecutionBuilder processInstanceIds(String... pr...
public MigrationPlanExecutionBuilder skipCustomListeners() { this.skipCustomListeners = true; return this; } public boolean isSkipCustomListeners() { return skipCustomListeners; } public MigrationPlanExecutionBuilder skipIoMappings() { this.skipIoMappings = true; return this; } public...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\migration\MigrationPlanExecutionBuilderImpl.java
1
请完成以下Java代码
public String getName() { return OBSERVATION_NAME; } @Override public String getContextualName(AuthenticationObservationContext context) { if (context.getAuthenticationRequest() != null) { String authenticationType = context.getAuthenticationRequest().getClass().getSimpleName(); if (authenticationType.end...
private String getAuthenticationMethod(AuthenticationObservationContext context) { if (context.getAuthenticationManagerClass() == null) { return "unknown"; } return context.getAuthenticationManagerClass().getSimpleName(); } private String getAuthenticationResult(AuthenticationObservationContext context) { ...
repos\spring-security-main\core\src\main\java\org\springframework\security\authentication\AuthenticationObservationConvention.java
1
请在Spring Boot框架中完成以下Java代码
public static BPartnerCreditLimitId ofRepoId(@NonNull final BPartnerId bpartnerId, final int bPartnerCreditLimitId) { return new BPartnerCreditLimitId(bpartnerId, bPartnerCreditLimitId); } public static BPartnerCreditLimitId ofRepoId(final int bpartnerId, final int bPartnerCreditLimitId) { return new BPartnerC...
{ this.bpartnerId = bpartnerId; this.repoId = Check.assumeGreaterThanZero(bPartnerCreditLimitId, "C_BPartner_CreditLimit_ID"); } public static int toRepoId(@Nullable final BPartnerCreditLimitId bPartnerCreditLimitId) { return bPartnerCreditLimitId != null ? bPartnerCreditLimitId.getRepoId() : -1; } public ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\bpartner\service\BPartnerCreditLimitId.java
2
请完成以下Java代码
public int getCM_ChatType_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_CM_ChatType_ID); if (ii == null) return 0; return ii.intValue(); } /** * ConfidentialType AD_Reference_ID=340 * Reference name: R_Request Confidential */ public static final int CONFIDENTIALTYPE_AD_Reference_ID=340; /**...
/** Not moderated = N */ public static final String MODERATIONTYPE_NotModerated = "N"; /** Before Publishing = B */ public static final String MODERATIONTYPE_BeforePublishing = "B"; /** After Publishing = A */ public static final String MODERATIONTYPE_AfterPublishing = "A"; /** Set Moderation Type. @param Moder...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_CM_Chat.java
1
请完成以下Java代码
public void putHeader(@NonNull final List<String> header) { if (m_columnHeaders != null) { logger.debug("columnHeaders were already set to {}; -> ignore given list {}", m_columnHeaders, header); return; } m_columnHeaders = header; } @Override public void putResult(@NonNull final ResultSet result) { ...
} private Object getValue(final int col) { try { return m_resultSet.getObject(col + 1); } catch (SQLException e) { throw DBException.wrapIfNeeded(e); } } @Override public int getRowCount() { return -1; // TODO remove } @Override public boolean isColumnPrinted(final int col) { return t...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\impexp\spreadsheet\excel\JdbcExcelExporter.java
1
请完成以下Java代码
public void settaxfree (final boolean taxfree) { set_Value (COLUMNNAME_taxfree, taxfree); } @Override public boolean istaxfree() { return get_ValueAsBoolean(COLUMNNAME_taxfree); } @Override public void setUPC_CU (final @Nullable java.lang.String UPC_CU) { set_ValueNoCheck (COLUMNNAME_UPC_CU, UPC_CU); ...
{ set_ValueNoCheck (COLUMNNAME_UPC_TU, UPC_TU); } @Override public java.lang.String getUPC_TU() { return get_ValueAsString(COLUMNNAME_UPC_TU); } @Override public void setValue (final @Nullable java.lang.String Value) { set_Value (COLUMNNAME_Value, Value); } @Override public java.lang.String getValu...
repos\metasfresh-new_dawn_uat\backend\de.metas.edi\src\main\java-gen\de\metas\esb\edi\model\X_EDI_cctop_invoic_500_v.java
1
请完成以下Java代码
public NonCaseString replace(char oldChar, char newChar) { return NonCaseString.of(this.value.replace(oldChar, newChar)); } public NonCaseString replaceAll(String regex, String replacement) { return NonCaseString.of(this.value.replaceAll(regex, replacement)); } public NonCaseString sub...
return this.value.charAt(index); } @Override public CharSequence subSequence(int start, int end) { return this.value.subSequence(start, end); } public String[] split(String regex) { return this.value.split(regex); } /** * @return 原始字符串 */ public String get(...
repos\SpringBootCodeGenerator-master\src\main\java\com\softdev\system\generator\entity\NonCaseString.java
1
请完成以下Spring Boot application配置
spring.ai.openai.api-key=${OPENAI_API_KEY} spring.ai.openai.audio.transcription.options.model=whisper-1 spring.ai.openai.audio.transcription.options.language=en spring.ai.openai.audio.speech.options.model=tts-1 spring.ai.openai.audio.speech.options.voice=alloy spring.ai.openai.audio.speech.options.response-format=mp3...
pring.ai.openai.audio.speech.options.speed=1.0 spring.servlet.multipart.max-file-size=25MB spring.servlet.multipart.max-request-size=25MB
repos\tutorials-master\spring-ai-modules\spring-ai-3\src\main\resources\application-transcribe.properties
2
请完成以下Java代码
public List<I_C_ElementValue> getAllRecordsByChartOfAccountsId(final ChartOfAccountsId chartOfAccountsId) { return queryBL.createQueryBuilder(I_C_ElementValue.class) //.addOnlyActiveRecordsFilter() // commented because we return ALL .addEqualsFilter(I_C_ElementValue.COLUMNNAME_C_Element_ID, chartOfAccountsId...
} public ElementValue getById(final ElementValueId id) { final ElementValue elementValue = byId.get(id); if (elementValue == null) { throw new AdempiereException("No Element Value found for " + id); } return elementValue; } public ImmutableSet<ElementValueId> getOpenItemIds() { Immutab...
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java\de\metas\elementvalue\ElementValueRepository.java
1
请完成以下Java代码
public java.sql.Timestamp getValidFrom () { return (java.sql.Timestamp)get_Value(COLUMNNAME_ValidFrom); } /** Set Gültig bis. @param ValidTo Gültig bis inklusiv (letzter Tag) */ @Override public void setValidTo (java.sql.Timestamp ValidTo) { set_Value (COLUMNNAME_ValidTo, ValidTo); } /** Get Gült...
} /** Set Umsatzsteuer-ID. @param VATaxID Umsatzsteuer-ID */ @Override public void setVATaxID (java.lang.String VATaxID) { set_Value (COLUMNNAME_VATaxID, VATaxID); } /** Get Umsatzsteuer-ID. @return Umsatzsteuer-ID */ @Override public java.lang.String getVATaxID () { return (java.lang.String)get...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\de\metas\tax\model\X_C_VAT_SmallBusiness.java
1
请完成以下Java代码
public void setR_Request_ID (int R_Request_ID) { if (R_Request_ID < 1) set_Value (COLUMNNAME_R_Request_ID, null); else set_Value (COLUMNNAME_R_Request_ID, Integer.valueOf(R_Request_ID)); } /** Get Request. @return Request from a Business Partner or Prospect */ public int getR_Request_ID () { I...
@param SourceMethodName Source Method Name */ public void setSourceMethodName (String SourceMethodName) { set_Value (COLUMNNAME_SourceMethodName, SourceMethodName); } /** Get Source Method. @return Source Method Name */ public String getSourceMethodName () { return (String)get_Value(COLUMNNAME_So...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_R_IssueKnown.java
1
请完成以下Java代码
public void format(LogEvent event, StringBuilder toAppendTo) { StringBuilder buf = new StringBuilder(); for (PatternFormatter formatter : this.formatters) { formatter.format(event, buf); } if (buf.isEmpty()) { return; } toAppendTo.append("["); toAppendTo.append(buf); toAppendTo.append("] "); } ...
* @param options the options * @return a new instance, or {@code null} if the options are invalid */ public static @Nullable EnclosedInSquareBracketsConverter newInstance(@Nullable Configuration config, String[] options) { if (options.length < 1) { LOGGER.error("Incorrect number of options on style. Expect...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\logging\log4j2\EnclosedInSquareBracketsConverter.java
1
请完成以下Java代码
public void assertLockType(@NonNull final ShipmentScheduleLockType expectedLockType) { if (isEmpty()) { return; } final List<ShipmentScheduleLock> locksWithDifferentLockType = locks.values() .stream() .filter(lock -> !lock.isLockType(expectedLockType)) .collect(ImmutableList.toImmutableList());...
public Set<ShipmentScheduleId> getShipmentScheduleIdsNotLocked(@NonNull final Set<ShipmentScheduleId> shipmentScheduleIdsToCheck) { if (isEmpty()) { return shipmentScheduleIdsToCheck; } return shipmentScheduleIdsToCheck.stream() .filter(this::isNotLocked) .collect(ImmutableSet.toImmutableSet()); }...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\inoutcandidate\lock\ShipmentScheduleLocksMap.java
1
请完成以下Java代码
public void onEvent(@NonNull final IEventBus eventBus, @NonNull final Event event) { final AsyncBatchNotifyRequest request = extractAsyncBatchNotifyRequest(event); try (final IAutoCloseable ignored = switchCtx(request); final MDC.MDCCloseable ignored1 = MDC.putCloseable("eventHandler.className", handler.g...
handler.handleRequest(request); } private IAutoCloseable switchCtx(@NonNull final AsyncBatchNotifyRequest request) { final Properties ctx = createCtx(request); return Env.switchContext(ctx); } private Properties createCtx(@NonNull final AsyncBatchNotifyRequest request) { final Properties ctx = En...
repos\metasfresh-new_dawn_uat\backend\de.metas.async\src\main\java\de\metas\async\eventbus\AsyncBatchEventBusService.java
1
请在Spring Boot框架中完成以下Java代码
private static class TableInfo { @NonNull AdTableId adTableId; @NonNull String tableName; @NonNull String entityType; @NonNull TooltipType tooltipType; } private static class TableInfoMap { private final ImmutableMap<TableNameKey, TableInfo> tableInfoByTableName; private final ImmutableMap<A...
tableInfoByTableName.put(tableNameKey, tableInfo); tableInfoByTableId.put(tableInfo.getAdTableId(), tableInfo); } return tableInfo.getAdTableId(); } public String getTableName(@NonNull final AdTableId adTableId) { final TableInfo tableInfo = tableInfoByTableId.get(adTableId); if (tableInfo != nu...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\table\api\impl\TableIdsCache.java
2
请在Spring Boot框架中完成以下Java代码
private Config loadConfig(Resource configLocation) throws IOException { URL configUrl = configLocation.getURL(); Config config = loadConfig(configUrl); if (ResourceUtils.isFileURL(configUrl)) { config.setConfigurationFile(configLocation.getFile()); } else { config.setConfigurationUrl(configUrl); ...
SpringManagedContext managementContext = new SpringManagedContext(); managementContext.setApplicationContext(applicationContext); config.setManagedContext(managementContext); }; } } @Configuration(proxyBeanMethods = false) @ConditionalOnClass(org.slf4j.Logger.class) static class HazelcastLoggingConfi...
repos\spring-boot-4.0.1\module\spring-boot-hazelcast\src\main\java\org\springframework\boot\hazelcast\autoconfigure\HazelcastServerConfiguration.java
2
请在Spring Boot框架中完成以下Java代码
public BeanDefinition parse(Element element, ParserContext parserContext) { BeanDefinitionBuilder builder = BeanDefinitionBuilder.rootBeanDefinition(getBeanClassName(element)); doParse(element, parserContext, builder); RootBeanDefinition userService = (RootBeanDefinition) builder.getBeanDefinition(); String bea...
String id = element.getAttribute("id"); if (pc.isNested()) { // We're inside an <authentication-provider> element if (!StringUtils.hasText(id)) { id = pc.getReaderContext().generateBeanName(definition); } ValueHolder userDetailsServiceValueHolder = new ValueHolder(new RuntimeBeanReference(id)); use...
repos\spring-security-main\config\src\main\java\org\springframework\security\config\authentication\AbstractUserDetailsServiceBeanDefinitionParser.java
2
请完成以下Java代码
public List<CaseInstance> findByCriteria(CaseInstanceQueryImpl query) { // Not going through cache as the case instance should always be loaded with all related plan item instances // when not doing a query call setSafeInValueLists(query); return getDbSqlSession().selectListNoCacheLoadAn...
@Override public void clearLockTime(String caseInstanceId) { HashMap<String, Object> params = new HashMap<>(); params.put("id", caseInstanceId); getDbSqlSession().directUpdate("clearCaseInstanceLockTime", params); } @Override public void clearAllLockTimes(String lockOwner) { ...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\persistence\entity\data\impl\MybatisCaseInstanceDataManagerImpl.java
1
请完成以下Java代码
public <T> T decodeString(final String text, final Class<T> clazz) { try { return mapper.readValue(text, clazz); } catch (final Exception e) { throw new RuntimeException("Cannot parse text: " + text, e); } } @Override public <T> T decodeStream(final InputStream in, final Class<T> clazz) { if (...
catch (final Exception e) { throw new RuntimeException("Cannot parse bytes: " + data, e); } } @Override public <T> byte[] encode(final T object) { try { return mapper.writeValueAsBytes(object); } catch (final Exception e) { throw new RuntimeException(e); } } @Override public String get...
repos\metasfresh-new_dawn_uat\backend\de.metas.document.archive\de.metas.document.archive.base\src\main\java\org\adempiere\util\beans\JsonBeanEncoder.java
1
请在Spring Boot框架中完成以下Java代码
public class EqualByBusinessKey { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String email; public EqualByBusinessKey() { } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String...
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (obj instanceof EqualByBusinessKey) { if (((EqualByBusinessKey) obj).getEmail().equals(getEmail())) { retu...
repos\tutorials-master\persistence-modules\java-jpa-3\src\main\java\com\baeldung\jpa\equality\EqualByBusinessKey.java
2
请完成以下Java代码
public static Collection<ModelElementType> calculateAllExtendingTypes(Model model, Collection<ModelElementType> baseTypes) { Set<ModelElementType> allExtendingTypes = new HashSet<ModelElementType>(); for (ModelElementType baseType : baseTypes) { ModelElementTypeImpl modelElementTypeImpl = (ModelElementTyp...
} } /** * Set unique identifier if the type has a String id attribute * * @param type the type of the model element * @param modelElementInstance the model element instance to set the id */ public static void setGeneratedUniqueIdentifier(ModelElementType type, ModelElementInstance modelElementInst...
repos\camunda-bpm-platform-master\model-api\xml-model\src\main\java\org\camunda\bpm\model\xml\impl\util\ModelUtil.java
1
请完成以下Java代码
public boolean isAll() { return this == ALL; } public boolean isAllRecords() { if (!Check.isEmpty(childTableName)) { return childRecordId == RECORD_ID_ALL; } else if (!Check.isEmpty(rootTableName)) { return rootRecordId == RECORD_ID_ALL; } else { return false; } } @Nullable public ...
return TableRecordReference.of(rootTableName, rootRecordId); } else { throw new AdempiereException("Cannot extract effective record from " + this); } } public String getTableNameEffective() { return childTableName != null ? childTableName : rootTableName; } public static final class Builder { pri...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\cache\model\CacheInvalidateRequest.java
1
请完成以下Java代码
public void setName(String name) { this.name = name; } public String getGender() { return gender; } public void setGender(String gender) { this.gender = gender; } public boolean isActive() { return isActive; } public void setActive(boolean isActive) { this.isActive = isActive;
} public List<String> getCourses() { return courses; } public void setCourses(List<String> courses) { this.courses = courses; } public String getAdditionalSkills() { return additionalSkills; } public void setAdditionalSkills(String additionalSkills) { this.additionalSkills = additionalSkills; } }
repos\tutorials-master\spring-web-modules\spring-thymeleaf\src\main\java\com\baeldung\thymeleaf\model\Teacher.java
1
请完成以下Java代码
private long getMaxDebugAllUntil(TenantId tenantId, long now) { return now + TimeUnit.MINUTES.toMillis(DebugModeUtil.getMaxDebugAllDuration(tbTenantProfileCache.get(tenantId).getDefaultProfileConfiguration().getMaxDebugModeDurationMinutes(), defaultDebugDurationMinutes)); } protected <E extends HasId<?...
private String generateUniqueName(String baseName, Set<String> existingNames, NameConflictStrategy strategy) { String newName; int index = 1; String separator = strategy.separator(); boolean isRandom = strategy.uniquifyStrategy() == RANDOM; do { String suffix = isRan...
repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\entity\AbstractEntityService.java
1
请完成以下Java代码
public ProxyClassMethodBindingsMap load(Class<?> interfaceClass) throws Exception { return new ProxyClassMethodBindingsMap(interfaceClass); } }); public static final ProxyMethodsCache getInstance() { return instance; } private ProxyMethodsCache() { super(); } /** * Gets the implementatio...
final ProxyClassMethodBindings bindings = implBindingsMap.getMethodImplementationBindings(implClass); final Method implMethod = bindings.getMethodImplementation(interfaceMethod); return implMethod; } /** * Create (if it doesn't yet exist) and look up the method binding. * * @param interfaceClass * @retu...
repos\metasfresh-new_dawn_uat\backend\de.metas.util\src\main\java\org\adempiere\util\proxy\ProxyMethodsCache.java
1
请完成以下Java代码
public String toString() { return this.string; } private String getDomainOrDefault(@Nullable String domain) { if (domain == null || LEGACY_DOMAIN.equals(domain)) { return DEFAULT_DOMAIN; } return domain; } private String getNameWithDefaultPath(String domain, String name) { if (DEFAULT_DOMAIN.equals(d...
if (candidate != null && Regex.DOMAIN.matcher(candidate).matches()) { return candidate; } return null; } static ImageName of(String value) { Assert.hasText(value, "'value' must not be empty"); String domain = parseDomain(value); String path = (domain != null) ? value.substring(domain.length() + 1) : val...
repos\spring-boot-4.0.1\core\spring-boot-docker-compose\src\main\java\org\springframework\boot\docker\compose\core\ImageName.java
1
请完成以下Java代码
public static ApplicationContext getApplicationContext() { return applicationContext; } public static Object getBean(String name) throws BeansException { return applicationContext.getBean(name); } public static Object getBean(String name, Class requiredType) throws BeansException { ...
public static boolean containsBean(String name) { return applicationContext.containsBean(name); } public static boolean isSingleton(String name) throws NoSuchBeanDefinitionException { return applicationContext.isSingleton(name); } public static Class getType(String name) throws NoSuchB...
repos\springBoot-master\springboot-shiro2\src\main\java\cn\abel\rest\utils\SpringContextKit.java
1
请完成以下Java代码
public void setC_CreditLimit_Type_ID (int C_CreditLimit_Type_ID) { if (C_CreditLimit_Type_ID < 1) set_Value (COLUMNNAME_C_CreditLimit_Type_ID, null); else set_Value (COLUMNNAME_C_CreditLimit_Type_ID, Integer.valueOf(C_CreditLimit_Type_ID)); } /** Get Credit Limit Type. @return Credit Limit Type */ ...
public java.sql.Timestamp getDateFrom () { return (java.sql.Timestamp)get_Value(COLUMNNAME_DateFrom); } /** Set Freigegeben. @param Processed Checkbox sagt aus, ob der Beleg verarbeitet wurde. */ @Override public void setProcessed (boolean Processed) { set_Value (COLUMNNAME_Processed, Boolean.value...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_BPartner_CreditLimit.java
1
请完成以下Java代码
public String getParentId() { return parentId; } public String getTenantId() { return tenantId; } public String getTenantIdLike() { return tenantIdLike; } public boolean isWithoutTenantId() { return withoutTenantId; } public String getName() { ...
return nameLike; } public void setName(String name) { this.name = name; } public void setNameLike(String nameLike) { this.nameLike = nameLike; } public String getNameLikeIgnoreCase() { return nameLikeIgnoreCase; } public void setNameLikeIgnoreCase(String nameL...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\ExecutionQueryImpl.java
1
请完成以下Java代码
public static int toRepoId(@Nullable final UomId uomId) { return uomId != null ? uomId.getRepoId() : -1; } public static Optional<UomId> optionalOfRepoId(final int repoId) { return Optional.ofNullable(ofRepoIdOrNull(repoId)); } int repoId; private UomId(final int repoId) { this.repoId = Check.assumeGre...
if (object == null) { continue; } final UomId uomId = getUomId.apply(object); if (commonUomId == null) { commonUomId = uomId; } else if (!UomId.equals(commonUomId, uomId)) { throw new AdempiereException("All given " + name + "(s) shall have the same UOM: " + Arrays.asList...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\uom\UomId.java
1
请完成以下Java代码
public void setR_Status_ID (int R_Status_ID) { if (R_Status_ID < 1) set_ValueNoCheck (COLUMNNAME_R_Status_ID, null); else set_ValueNoCheck (COLUMNNAME_R_Status_ID, Integer.valueOf(R_Status_ID)); } /** Get Status. @return Request Status */ public int getR_Status_ID () { Integer ii = (Integer)ge...
/** TaskStatus AD_Reference_ID=366 */ public static final int TASKSTATUS_AD_Reference_ID=366; /** 0% Not Started = 0 */ public static final String TASKSTATUS_0NotStarted = "0"; /** 100% Complete = D */ public static final String TASKSTATUS_100Complete = "D"; /** 20% Started = 2 */ public static final String TA...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_R_RequestAction.java
1
请完成以下Java代码
public class DelegateTaskCmd implements Command<Object>, Serializable { private static final long serialVersionUID = 1L; protected String taskId; protected String userId; public DelegateTaskCmd(String taskId, String userId) { this.taskId = taskId; this.userId = userId; } public Object execute(Co...
checkDelegateTask(task, commandContext); task.delegate(userId); task.triggerUpdateEvent(); task.logUserOperation(UserOperationLogEntry.OPERATION_TYPE_DELEGATE); return null; } protected void checkDelegateTask(TaskEntity task, CommandContext commandContext) { for (CommandChecker checker : com...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\cmd\DelegateTaskCmd.java
1
请完成以下Java代码
public int hashCode() { final int prime = 31; int result = 1; result = prime * result; result = prime * result + ((id == null) ? 0 : id.hashCode()); result = prime * result + ((title == null) ? 0 : title.hashCode()); return result; } @Override public bool...
if (id == null) { if (other.id != null) return false; } else if (!id.equals(other.id)) return false; if (title == null) { if (other.title != null) return false; } else if (!title.equals(other.title)) return false; ...
repos\tutorials-master\spring-boot-modules\spring-boot-springdoc-2\src\main\java\com\baeldung\restdocopenapi\Foo.java
1
请在Spring Boot框架中完成以下Java代码
public class TrieConfig { /** * 允许重叠 */ private boolean allowOverlaps = true; /** * 只保留最长匹配 */ public boolean remainLongest = false; /** * 是否允许重叠 * * @return */
public boolean isAllowOverlaps() { return allowOverlaps; } /** * 设置是否允许重叠 * * @param allowOverlaps */ public void setAllowOverlaps(boolean allowOverlaps) { this.allowOverlaps = allowOverlaps; } }
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\algorithm\ahocorasick\trie\TrieConfig.java
2
请完成以下Java代码
public class ByteArrayResourceReader extends AbstractResourceReader { protected static final int DEFAULT_BUFFER_SIZE = 32768; /** * Returns the required {@link Integer#TYPE buffer size} used to capture data from the target {@link Resource} * in chunks. * * Subclasses are encouraged to override this method a...
*/ @Override protected @NonNull byte[] doRead(@NonNull InputStream resourceInputStream) throws IOException { try (ByteArrayOutputStream out = new ByteArrayOutputStream(resourceInputStream.available())) { byte[] buffer = new byte[getBufferSize()]; for (int bytesRead = resourceInputStream.read(buffer); bytes...
repos\spring-boot-data-geode-main\spring-geode-project\spring-geode\src\main\java\org\springframework\geode\core\io\support\ByteArrayResourceReader.java
1
请完成以下Java代码
public boolean isAutoCommit() { return true; } public void setDecimalFormat(final DecimalFormat format) { this.m_format = format; m_text.setDocument(new MDocNumber(m_displayType, m_format, m_text, m_title)); } public DecimalFormat getDecimalFormat() { return m_format; } // metas: end // metas @O...
if (m_text != null && condition == WHEN_FOCUSED) { // Usually the text component does not have focus yet but it was requested, so, considering that: // * we are requesting the focus just to make sure // * we select all text (once) => as an effect, on first key pressed the editor content (which is selected) w...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\grid\ed\VNumber.java
1
请在Spring Boot框架中完成以下Java代码
public String getBPartnerName(@Nullable final BPartnerId bpartnerId) { return bpartnerBL.getBPartnerName(bpartnerId); } public Map<BPartnerId, String> getBPartnerNames(@NonNull final Set<BPartnerId> bpartnerIds) { return bpartnerBL.getBPartnerNames(bpartnerIds); } public ShipmentAllocationBestBeforePolicy g...
} public I_C_BPartner_Location getBPartnerLocationByIdEvenInactive(final @NonNull BPartnerLocationId id) { return bpartnerBL.getBPartnerLocationByIdEvenInactive(id); } public List<I_C_BPartner_Location> getBPartnerLocationsByIds(final Set<BPartnerLocationId> ids) { return bpartnerBL.getBPartnerLocationsByIds...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\picking\job\service\external\bpartner\PickingJobBPartnerService.java
2
请完成以下Java代码
public void setAccountNonLocked(boolean accountNonLocked) { this.instance.accountNonLocked = accountNonLocked; } public void setAuthorities(Collection<? extends GrantedAuthority> authorities) { this.mutableAuthorities = new ArrayList<>(); this.mutableAuthorities.addAll(authorities); } public void set...
public void setUsername(String username) { this.instance.username = username; } public void setTimeBeforeExpiration(int timeBeforeExpiration) { this.instance.timeBeforeExpiration = timeBeforeExpiration; } public void setGraceLoginsRemaining(int graceLoginsRemaining) { this.instance.graceLoginsRemaini...
repos\spring-security-main\ldap\src\main\java\org\springframework\security\ldap\userdetails\LdapUserDetailsImpl.java
1
请在Spring Boot框架中完成以下Java代码
public class CorsBeanDefinitionParser { private static final String ATT_SOURCE = "configuration-source-ref"; private static final String ATT_REF = "ref"; public BeanMetadataElement parse(Element element, ParserContext parserContext) { if (element == null) { return null; } String filterRef = element.getAt...
throw new BeanCreationException("Could not create CorsFilter"); } BeanDefinitionBuilder filterBldr = BeanDefinitionBuilder.rootBeanDefinition(CorsFilter.class); filterBldr.addConstructorArgValue(configurationSource); return filterBldr.getBeanDefinition(); } public BeanMetadataElement getSource(Element elemen...
repos\spring-security-main\config\src\main\java\org\springframework\security\config\http\CorsBeanDefinitionParser.java
2
请完成以下Java代码
private PurchaseCandidateRequestedEvent createForecastRequestedEvent(@NonNull final CandidatesGroup group, @NonNull final EventDescriptor eventDescriptor) { final Candidate singleCandidate = group.getSingleCandidate(); final PurchaseDetail purchaseDetail = PurchaseDetail.castOrNull(singleCandida...
{ final OrderLineId orderLineId = OrderLineId.ofRepoIdOrNull(IdConstants.toRepoId(demandOrderLineId)); return Optional.ofNullable(orderLineId) .map(orderLineRepository::getById) .map(OrderLine::getHuPIItemProductId) .orElse(null); } @Nullable private static PPOrderRef getPpOrderRef(final Candidate ...
repos\metasfresh-new_dawn_uat\backend\de.metas.material\dispo-commons\src\main\java\de\metas\material\dispo\commons\RequestMaterialOrderService.java
1
请完成以下Java代码
public String getJobType() { return jobType; } public void setJobType(String jobType) { this.jobType = jobType; } @Override public String getJobConfiguration() { return jobConfiguration; } public void setJobConfiguration(String jobConfiguration) { this.jobConfiguration = jobConfiguratio...
} public String getTenantId() { return tenantId; } public void setTenantId(String tenantId) { this.tenantId = tenantId; } public String getDeploymentId() { return deploymentId; } public void setDeploymentId(String deploymentId) { this.deploymentId = deploymentId; } @Override pub...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\JobDefinitionEntity.java
1
请在Spring Boot框架中完成以下Java代码
public class ExamRepository { private EntityManagerFactory emf = null; public ExamRepository() { emf = Persistence.createEntityManagerFactory("jpa-h2-text"); } public Exam find(Long id) { EntityManager entityManager = emf.createEntityManager(); Exam exam = entityManager.find(E...
EntityManager entityManager = emf.createEntityManager(); entityManager.getTransaction() .begin(); exam = entityManager.merge(exam); entityManager.getTransaction() .commit(); entityManager.close(); return exam; } public void clean() { emf....
repos\tutorials-master\persistence-modules\java-jpa-2\src\main\java\com\baeldung\jpa\text\ExamRepository.java
2
请完成以下Java代码
public final class JavaMethodDeclaration implements Annotatable { private final AnnotationContainer annotations = new AnnotationContainer(); private final String name; private final String returnType; private final int modifiers; private final List<Parameter> parameters; private final CodeBlock code; priv...
private int modifiers; private Builder(String name) { this.name = name; } /** * Sets the modifiers. * @param modifiers the modifiers * @return this for method chaining */ public Builder modifiers(int modifiers) { this.modifiers = modifiers; return this; } /** * Sets the return typ...
repos\initializr-main\initializr-generator\src\main\java\io\spring\initializr\generator\language\java\JavaMethodDeclaration.java
1
请完成以下Java代码
public class TcpClientSocket { private Socket socket; private PrintStream out; private BufferedReader in; public void connect(String host, int port) { try { socket = new Socket(host, port); socket.setSoTimeout(30000); System.out.println("connected to " + hos...
socket.close(); } catch (UnknownHostException e) { System.err.println(e); } catch (IOException e) { System.err.println(e); } } public static void main(String[] args) throws IOException { TcpClientSocket client = new TcpClientSocket(); client.conn...
repos\tutorials-master\core-java-modules\core-java-networking\src\main\java\com\baeldung\timeout\TcpClientSocket.java
1
请完成以下Java代码
public List<I_C_Queue_WorkPackage_Notified> retrieveWorkPackagesNotified(final I_C_Async_Batch asyncBatch, final boolean notified) { final Properties ctx = InterfaceWrapperHelper.getCtx(asyncBatch); final String trxName = InterfaceWrapperHelper.getTrxName(asyncBatch); final List<Object> params = new ArrayList<O...
{ final Properties ctx = InterfaceWrapperHelper.getCtx(workPackage); final String trxName = InterfaceWrapperHelper.getTrxName(workPackage); final List<Object> params = new ArrayList<Object>(); final StringBuffer whereClause = new StringBuffer(); whereClause.append(I_C_Queue_WorkPackage_Notified.COLUMNNAME_C...
repos\metasfresh-new_dawn_uat\backend\de.metas.async\src\main\java\de\metas\async\api\impl\AsyncBatchDAO.java
1
请完成以下Java代码
public int getC_ScannableCode_Format_Part_ID() { return get_ValueAsInt(COLUMNNAME_C_ScannableCode_Format_Part_ID); } @Override public void setDataFormat (final @Nullable java.lang.String DataFormat) { set_Value (COLUMNNAME_DataFormat, DataFormat); } @Override public java.lang.String getDataFormat() { ...
return get_ValueAsInt(COLUMNNAME_DecimalPointPosition); } @Override 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); } @O...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_ScannableCode_Format_Part.java
1
请完成以下Java代码
public Collection<? extends GrantedAuthority> getAuthorities() { return authorities; } @Override public String getPassword() { return password; } @Override public String getUsername() { return username; } @Override public boolean isAccountNonExpired() { ...
@Override public boolean isAccountNonLocked() { return true; } @Override public boolean isCredentialsNonExpired() { return true; } @Override public boolean isEnabled() { return Objects.equals(this.status, Consts.ENABLE); } }
repos\spring-boot-demo-master\demo-rbac-security\src\main\java\com\xkcoding\rbac\security\vo\UserPrincipal.java
1
请在Spring Boot框架中完成以下Java代码
protected List<EngineDeployer> getCustomDeployers() { return null; } @Override protected String getMybatisCfgPath() { return IdmEngineConfiguration.DEFAULT_MYBATIS_MAPPING_FILE; } @Override public void configure(AbstractEngineConfiguration engineConfiguration) { if (idm...
return idmEngineConfiguration.buildEngine(); } @Override protected List<Class<? extends Entity>> getEntityInsertionOrder() { return EntityDependencyOrder.INSERT_ORDER; } @Override protected List<Class<? extends Entity>> getEntityDeletionOrder() { return EntityDependencyOrder.DE...
repos\flowable-engine-main\modules\flowable-idm-engine-configurator\src\main\java\org\flowable\idm\engine\configurator\IdmEngineConfigurator.java
2
请完成以下Java代码
public void setQty (java.math.BigDecimal Qty) { set_Value (COLUMNNAME_Qty, Qty); } /** Get Menge. @return Menge */ @Override public java.math.BigDecimal getQty () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty); if (bd == null) return Env.ZERO; return bd; } /** Set Reihenfolge. @pa...
Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); if (ii == null) return 0; return ii.intValue(); } /** Set VariantGroup. @param VariantGroup VariantGroup */ @Override public void setVariantGroup (java.lang.String VariantGroup) { set_Value (COLUMNNAME_VariantGroup, VariantGroup); } /** Get Varia...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\eevolution\model\X_PP_Order_Report.java
1
请完成以下Java代码
public boolean isNew() { return ((DeploymentEntity) activiti5Deployment).isNew(); } @Override public Map<String, EngineResource> getResources() { return null; } @Override public String getDerivedFrom() { return null; } @Override public String getDerived...
} @Override public String getParentDeploymentId() { return null; } @Override public String getEngineVersion() { return Flowable5Util.V5_ENGINE_TAG; } public org.activiti.engine.repository.Deployment getRawObject() { return activiti5Deployment; } }
repos\flowable-engine-main\modules\flowable5-compatibility\src\main\java\org\flowable\compatibility\wrapper\Flowable5DeploymentWrapper.java
1
请在Spring Boot框架中完成以下Java代码
public class PermissionBaseEntity implements Serializable { private static final long serialVersionUID = -1164227376672815589L; private Long id;// 主键ID. private Integer version = 0;// 版本号默认为0 private String status;// 状态 PublicStatusEnum private String creater;// 创建人. private Date createTime = new Date();// 创建时间....
public void setCreateTime(Date createTime) { this.createTime = createTime; } public String getEditor() { return editor; } public void setEditor(String editor) { this.editor = editor; } public Date getEditTime() { return editTime; } public void setEditTime(Date editTime) { this.editTime = editTime;...
repos\roncoo-pay-master\roncoo-pay-service\src\main\java\com\roncoo\pay\permission\entity\PermissionBaseEntity.java
2
请完成以下Java代码
public static void bind(final IAttributeStorage storage, final DocumentPath documentPath) { final AttributeStorage2ExecutionEventsForwarder forwarder = new AttributeStorage2ExecutionEventsForwarder(documentPath); storage.addListener(forwarder); } private final DocumentPath documentPath; private Attribut...
} @Override public void onAttributeValueCreated(final IAttributeValueContext attributeValueContext, final IAttributeStorage storage, final IAttributeValue attributeValue) { forwardEvent(storage, attributeValue); } @Override public void onAttributeValueChanged(final IAttributeValueContext attributeValue...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\handlingunits\HUEditorRowAttributes.java
1
请完成以下Java代码
public static void sortAscending(final int[] arr) { for (int i = 0; i < arr.length - 1; i++) { int minElementIndex = i; for (int j = i + 1; j < arr.length; j++) { if (arr[minElementIndex] > arr[j]) { minElementIndex = j; } }...
public static void sortDescending(final int[] arr) { for (int i = 0; i < arr.length - 1; i++) { int maxElementIndex = i; for (int j = i + 1; j < arr.length; j++) { if (arr[maxElementIndex] < arr[j]) { maxElementIndex = j; } ...
repos\tutorials-master\algorithms-modules\algorithms-sorting-2\src\main\java\com\baeldung\algorithms\selectionsort\SelectionSort.java
1
请完成以下Java代码
public String getPostingType () { return (String)get_Value(COLUMNNAME_PostingType); } /** Set Processed. @param Processed The document has been processed */ public void setProcessed (boolean Processed) { set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); } /** Get Processed. @return T...
/** Set Process Now. @param Processing Process Now */ public void setProcessing (boolean Processing) { set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); } /** Get Process Now. @return Process Now */ public boolean isProcessing () { Object oo = get_Value(COLUMNNAME_Processing); if (oo...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_A_Depreciation_Forecast.java
1
请完成以下Java代码
public Class<?> getInterfaceClass() { return this.interfaceClass; } public String getGroup() { return this.group; } public String getVersion() { return this.version; } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof Clas...
: this.version.equals(classIdBean.version); } @Override public int hashCode() { int hashCode = 17; hashCode = 31 * hashCode + (this.interfaceClass == null ? 0 : this.interfaceClass.hashCode()); hashCode = 31 * hashCode + (this.group == null ? 0 : this.group.hashCode()); hashCode = 31 * hashCode +...
repos\dubbo-spring-boot-starter-master\src\main\java\com\alibaba\dubbo\spring\boot\bean\ClassIdBean.java
1
请完成以下Java代码
public boolean hasBoundaryErrorEvents() { if (this.boundaryEvents != null && !this.boundaryEvents.isEmpty()) { return this.boundaryEvents.stream().anyMatch(boundaryEvent -> boundaryEvent.hasErrorEventDefinition()); } return false; } public ServiceTask clone() { Servi...
fieldExtensions = new ArrayList<FieldExtension>(); if (otherElement.getFieldExtensions() != null && !otherElement.getFieldExtensions().isEmpty()) { for (FieldExtension extension : otherElement.getFieldExtensions()) { fieldExtensions.add(extension.clone()); } } ...
repos\Activiti-develop\activiti-core\activiti-bpmn-model\src\main\java\org\activiti\bpmn\model\ServiceTask.java
1
请完成以下Java代码
public String getCity() { return city; } public void setCity(String city) { this.city = city; } public String getState() { return state; } public void setState(String state) { this.state = state; } public String getCounty() {
return county; } public void setCounty(String county) { this.county = county; } public String getTimezone() { return timezone; } public void setTimezone(String timezone) { this.timezone = timezone; } }
repos\tutorials-master\quarkus-modules\quarkus-vs-springboot\quarkus-project\src\main\java\com\baeldung\quarkus_project\ZipCode.java
1
请完成以下Java代码
public int getPMM_Balance_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_PMM_Balance_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Gelieferte Menge. @param QtyDelivered Gelieferte Menge */ @Override public void setQtyDelivered (java.math.BigDecimal QtyDelivered) { set_Va...
{ BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyPromised); if (bd == null) return Env.ZERO; return bd; } /** Set Zusagbar (TU). @param QtyPromised_TU Zusagbar (TU) */ @Override public void setQtyPromised_TU (java.math.BigDecimal QtyPromised_TU) { set_ValueNoCheck (COLUMNNAME_QtyPromised_TU, ...
repos\metasfresh-new_dawn_uat\backend\de.metas.procurement.base\src\main\java-gen\de\metas\procurement\base\model\X_PMM_Balance.java
1
请完成以下Java代码
public Config setNumThreads(int numThreads) { this.numThreads = numThreads; return this; } public int getNumThreads() { return numThreads; } public Config setUseHierarchicalSoftmax(boolean hs) { this.hs = hs; return this; } public boolean us...
{ return alpha; } public Config setInputFile(String inputFile) { this.inputFile = inputFile; return this; } public String getInputFile() { return inputFile; } public TrainingCallback getCallback() { return callback; } public void se...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\mining\word2vec\Config.java
1
请完成以下Java代码
private static Optional<InventoryType> extractInventoryType( @NonNull final List<InventoryLine> lines) { return lines.stream() .map(InventoryLine::getInventoryType) .reduce(Reducers.singleValue(values -> new AdempiereException("Mixing Physical inventories with Internal Use inventories is not allowed: " + ...
{ throw new AdempiereException("No access"); } } public Stream<InventoryLine> streamLines(@Nullable final InventoryLineId onlyLineId) { return onlyLineId != null ? Stream.of(getLineById(onlyLineId)) : lines.stream(); } public Set<LocatorId> getLocatorIdsEligibleForCounting(@Nullable final Inventor...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\inventory\Inventory.java
1
请完成以下Java代码
protected void toString(final ToStringHelper stringHelper) { stringHelper .add("id", id) .add("asi", asi); } @Override protected List<IAttributeValue> loadAttributeValues() { final IAttributeSetInstanceBL asiBL = Services.get(IAttributeSetInstanceBL.class); final ImmutableList.Builder<IAttributeVal...
/** * Method not supported. * * @throws UnsupportedOperationException */ @Override protected IAttributeStorage removeChildAttributeStorage(final IAttributeStorage childAttributeStorage) { throw new UnsupportedOperationException("Child attribute storages are not supported for " + this); } @Override publ...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\attribute\storage\ASIAttributeStorage.java
1
请在Spring Boot框架中完成以下Java代码
public class ProductServiceImpl implements ProductService { @Autowired private ProductDao productDao; @Override @Transactional // <1> 开启新事物 public void reduceStock(Long productId, Integer amount) throws Exception { log.info("[reduceStock] 当前 XID: {}", RootContext.getXID()); //...
if (updateCount == 0) { log.warn("[reduceStock] 扣除 {} 库存失败", productId); throw new Exception("库存不足"); } // 扣除失败 log.info("[reduceStock] 扣除 {} 库存成功", productId); } private void checkStock(Long productId, Integer requiredAmount) throws Exception { log.info...
repos\springboot-demo-master\seata\seata-product\src\main\java\com\et\seata\product\service\ProductServiceImpl.java
2
请在Spring Boot框架中完成以下Java代码
public static class FinishedGoodToRepair { @NonNull Quantity qty; @NonNull QtyCalculationsBOM sparePartsBOM; @NonNull @Builder.Default AttributeSetInstanceId asiId = AttributeSetInstanceId.NONE; @NonNull WarrantyCase warrantyCase; @NonNull HuId repairVhuId; @NonNull InOutAndLineId customerReturnLineId; ...
return bomLine.computeQtyRequired(qtyInBomUOM); } public ProductId getProductId() { return sparePartsBOM.getBomProductId(); } } @Value @Builder public static class SparePart { @NonNull ProductId sparePartId; @NonNull Quantity qty; @NonNull InOutAndLineId customerReturnLineId; @NonNull HuId spa...
repos\metasfresh-new_dawn_uat\backend\de.metas.servicerepair.base\src\main\java\de\metas\servicerepair\customerreturns\SparePartsReturnCalculation.java
2
请在Spring Boot框架中完成以下Java代码
public class HelloWorldController { private static Logger log = LoggerFactory.getLogger(HelloWorldController.class); @Autowired private RestTemplate restTemplate; @RequestMapping("ping") public Object ping() { log.info("进入ping"); return "pong study"; } @RequestMapping("lo...
String studyUrl = "http://localhost:8088/ping"; URI studyUri = URI.create(studyUrl); String study = restTemplate.getForObject(studyUri, String.class); log.info("study:{}", study); String floorUrl = "http://localhost:8088/log"; URI floorUri = URI.create(floorUrl); String ...
repos\springboot-demo-master\zipkin\src\main\java\com\et\zipkin\controller\HelloWorldController.java
2
请完成以下Java代码
public MapFormat setLeftBrace(final String delimiter) { leftDelimiter = delimiter; return this; } /** Returns string used as right brace */ public String getRightBrace() { return rightDelimiter; } /** * Sets string used as right brace * * @param delimiter Right brace. * @return */ public MapFo...
if (leftDelimiterIdx >= 0) { rightDelimiterIdx = patternStr.indexOf(rightDelimiter, leftDelimiterIdx + leftDelimiter.length()); } else { break; } if (++offnum >= BUFSIZE) { throw new IllegalArgumentException("TooManyArguments"); } if (rightDelimiterIdx < 0) { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.printing.client\src\main\java\de\metas\printing\client\util\MapFormat.java
1
请完成以下Java代码
private int setAsyncBatchCountEnqueued(@NonNull final I_C_Queue_WorkPackage workPackage, final int offset) { final AsyncBatchId asyncBatchId = AsyncBatchId.ofRepoIdOrNull(workPackage.getC_Async_Batch_ID()); if (asyncBatchId == null) { return 0; } lock.lock(); try { final I_C_Async_Batch asyncBatch...
asyncBatch.setLastEnqueued(enqueued); final int countEnqueued = asyncBatch.getCountEnqueued() + offset; asyncBatch.setCountEnqueued(countEnqueued); // we just enqueued something, so we are clearly not done yet asyncBatch.setIsProcessing(true); asyncBatch.setProcessed(false); save(asyncBatch); retur...
repos\metasfresh-new_dawn_uat\backend\de.metas.async\src\main\java\de\metas\async\api\impl\AsyncBatchBL.java
1
请完成以下Java代码
public void setParameterName(String parameterName) { Assert.hasLength(parameterName, "parameterName cannot be null or empty"); this.parameterName = parameterName; } /** * Sets the header name that the {@link CsrfToken} is expected to appear on and the * header that the response will contain the {@link CsrfTo...
* @param sessionAttributeName the new attribute name to use */ public void setSessionAttributeName(String sessionAttributeName) { Assert.hasLength(sessionAttributeName, "sessionAttributeName cannot be null or empty"); this.sessionAttributeName = sessionAttributeName; } private CsrfToken createCsrfToken() { ...
repos\spring-security-main\web\src\main\java\org\springframework\security\web\server\csrf\WebSessionServerCsrfTokenRepository.java
1
请完成以下Java代码
public void updateQtyToIssue( @NonNull final PPOrderIssueScheduleId issueScheduleId, @NonNull final Quantity qtyToIssue) { final PPOrderIssueSchedule issueSchedule = issueScheduleRepository.getById(issueScheduleId); if (issueSchedule.getQtyToIssue().equals(qtyToIssue)) { return; } final PPOrderIssu...
{ if (issueSchedule.isIssued()) { throw new AdempiereException("Deleting issued schedules is not allowed"); } issueScheduleRepository.deleteNotProcessedById(issueSchedule.getId()); } public boolean matchesByOrderId(@NonNull final PPOrderId ppOrderId) { return issueScheduleRepository.matchesByOrderId(p...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\pporder\api\issue_schedule\PPOrderIssueScheduleService.java
1
请在Spring Boot框架中完成以下Java代码
public String getPaperFormat() { return paperFormat; } /** * Sets the value of the paperFormat property. * * @param value * allowed object is * {@link String } * */ public void setPaperFormat(String value) { this.paperFormat = value; } ...
* Gets the value of the startPosition property. * * @return * possible object is * {@link StartPosition } * */ public StartPosition getStartPosition() { return startPosition; } /** * Sets the value of the startPosition property. * * @param...
repos\metasfresh-new_dawn_uat\backend\de.metas.shipper.gateway.dpd\src\main\java-xjc\com\dpd\common\service\types\shipmentservice\_3\PrintOptions.java
2
请完成以下Java代码
private Flux<String> getLeakedPasswordsForPrefix(String prefix) { return this.webClient.get().uri(prefix).retrieve().bodyToMono(String.class).flatMapMany((body) -> { if (StringUtils.hasText(body)) { return Flux.fromStream(body.lines()); } return Flux.empty(); }) .doOnError((ex) -> this.logger.error(...
private Mono<byte[]> getHash(@Nullable String rawPassword) { return Mono.justOrEmpty(rawPassword) .map((password) -> this.sha1Digest.digest(password.getBytes(StandardCharsets.UTF_8))) .subscribeOn(Schedulers.boundedElastic()) .publishOn(Schedulers.parallel()); } private static MessageDigest getSha1Digest(...
repos\spring-security-main\web\src\main\java\org\springframework\security\web\authentication\password\HaveIBeenPwnedRestApiReactivePasswordChecker.java
1
请完成以下Java代码
public void setM_ChangeRequest_ID (int M_ChangeRequest_ID) { if (M_ChangeRequest_ID < 1) set_ValueNoCheck (COLUMNNAME_M_ChangeRequest_ID, null); else set_ValueNoCheck (COLUMNNAME_M_ChangeRequest_ID, Integer.valueOf(M_ChangeRequest_ID)); } /** Get Change Request. @return BOM (Engineering) Change Reques...
set_ValueNoCheck (COLUMNNAME_PP_Product_BOM_ID, null); else set_ValueNoCheck (COLUMNNAME_PP_Product_BOM_ID, Integer.valueOf(PP_Product_BOM_ID)); } /** Get BOM & Formula. @return BOM & Formula */ public int getPP_Product_BOM_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_PP_Product_BOM_ID); if (...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_ChangeRequest.java
1
请完成以下Java代码
private static final class ComposedNamePairPredicate implements INamePairPredicate { private final ImmutableSet<INamePairPredicate> predicates; private ComposedNamePairPredicate(final Set<INamePairPredicate> predicates) { // NOTE: we assume the predicates set is: not empty, has more than one element, does no...
{ return new ComposedNamePairPredicate(collectedPredicates); } } public Composer add(@Nullable final INamePairPredicate predicate) { if (predicate == null || predicate == ACCEPT_ALL) { return this; } if (collectedPredicates == null) { collectedPredicates = new LinkedHashSet<>(); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\validationRule\NamePairPredicates.java
1
请完成以下Java代码
protected String doIt() { // Generate material receipts final List<I_M_ReceiptSchedule> receiptSchedules = getM_ReceiptSchedules(); final Set<HuId> selectedHuIds = retrieveHUsToReceive(); final CreateReceiptsParametersBuilder parametersBuilder = CreateReceiptsParameters.builder() .commitEachReceiptIndivid...
.getModel(this, I_M_ReceiptSchedule.class); } protected Set<HuId> retrieveHUsToReceive() { // https://github.com/metasfresh/metasfresh/issues/1863 // if the queryFilter is empty, then *do not* return everything to avoid an OOME final IQueryFilter<I_M_HU> processInfoFilter = getProcessInfo().getQueryFilterOrEl...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\handlingunits\process\WEBUI_M_HU_CreateReceipt_Base.java
1
请完成以下Java代码
public List<PackageLabels> getPackageLabelsList(@NonNull final DeliveryOrder deliveryOrder) throws ShipperGatewayException { final String orderIdAsString = String.valueOf(deliveryOrder.getId()); return deliveryOrder.getDeliveryOrderParcels() .stream() .map(line -> createPackageLabel(line.getLabelPdfBase64(...
.defaultLabelType(NShiftPackageLabelType.DEFAULT) .label(PackageLabel.builder() .type(NShiftPackageLabelType.DEFAULT) .labelData(labelData) .contentType(PackageLabel.CONTENTTYPE_PDF) .fileName(awb) .build()) .build(); } public JsonShipperConfig getJsonShipperConfig() { return...
repos\metasfresh-new_dawn_uat\backend\de.metas.shipper.gateway.nshift\src\main\java\de\metas\shipper\gateway\nshift\client\NShiftShipperGatewayClient.java
1
请完成以下Java代码
public int getC_UOM_Weight_ID() { return get_ValueAsInt(COLUMNNAME_C_UOM_Weight_ID); } @Override public void setDescription(final @Nullable java.lang.String Description) { set_Value(COLUMNNAME_Description, Description); } @Override public java.lang.String getDescription() { return get_ValueAsString(COL...
public int getM_Product_ID() { return get_ValueAsInt(COLUMNNAME_M_Product_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); } @Override public void setValue...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_PackagingContainer.java
1
请在Spring Boot框架中完成以下Java代码
public class Topic { @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long id; private String title; public Topic() { } public Topic(String title) { this.title = title; } public Long getId() {
return id; } public void setId(Long id) { this.id = id; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } }
repos\tutorials-master\persistence-modules\spring-data-jdbc\src\main\java\com\baeldung\springmultipledatasources\topics\Topic.java
2
请完成以下Java代码
private CommissionPoints deductTaxAmount( @NonNull final CommissionPoints commissionPoints, @NonNull final I_C_Invoice_Candidate icRecord) { if (commissionPoints.isZero()) { return commissionPoints; // don't bother going to the DAO layer } final int effectiveTaxRepoId = firstGreaterThanZero(icRecord....
precision.toInt()); return CommissionPoints.of(taxAdjustedAmount); } @NonNull private Optional<BPartnerId> getSalesRepId(@NonNull final I_C_Invoice_Candidate icRecord) { final BPartnerId invoiceCandidateSalesRepId = BPartnerId.ofRepoIdOrNull(icRecord.getC_BPartner_SalesRep_ID()); if (invoiceCandidateSalesRe...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\commission\commissioninstance\businesslogic\sales\commissiontrigger\salesinvoicecandidate\SalesInvoiceCandidateFactory.java
1
请完成以下Java代码
public Builder setType(final MenuNodeType type, @Nullable final DocumentId elementId) { this.type = type; this.elementId = elementId; return this; } public Builder setTypeNewRecord(@NonNull final AdWindowId adWindowId) { return setType(MenuNodeType.NewRecord, DocumentId.of(adWindowId)); } publ...
public void addChildToFirstsList(@NonNull final MenuNode child) { childrenFirst.add(child); } public void addChild(@NonNull final MenuNode child) { childrenRest.add(child); } public Builder setMainTableName(final String mainTableName) { this.mainTableName = mainTableName; return this; } }...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\menu\MenuNode.java
1
请完成以下Java代码
protected ObjectValue createDeserializedValue(Object deserializedObject, String serializedStringValue, ValueFields valueFields, boolean asTransientValue) { String objectTypeName = readObjectNameFromFields(valueFields); ObjectValueImpl objectValue = new ObjectValueImpl(deserializedObject, serializedStringV...
protected Object deserializeFromByteArray(byte[] object, ValueFields valueFields) throws Exception { String objectTypeName = readObjectNameFromFields(valueFields); return deserializeFromByteArray(object, objectTypeName); } /** * Deserialize the object from a byte array. * * @param object the objec...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\variable\serializer\AbstractObjectValueSerializer.java
1
请完成以下Spring Boot application配置
server: port: 9080 servlet: context-path: /xxl-job-admin #数据源配置 spring: datasource: url: jdbc:mysql://jeecg-boot-mysql:3306/xxl_job?Unicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai username: ${MYSQL-USER:root} password: ${MYSQL-PWD:root} driver-class-name: com.mysql.jdbc.Dri...
charset: UTF-8 request-context-attribute: request settings: number_format: 0.########## #通用配置,开放端点 management: server: servlet: context-path: /actuator health: mail: enabled: false #mybatis配置 mybatis: mapper-locations: classpath:/mybatis-mapper/*Mapper.xml #XXL-job配置 xxl: job: ...
repos\JeecgBoot-main\jeecg-boot\jeecg-server-cloud\jeecg-visual\jeecg-cloud-xxljob\src\main\resources\application.yml
2
请在Spring Boot框架中完成以下Java代码
public class DmnEngineConfigurator extends AbstractEngineConfigurator<DmnEngine> { protected DmnEngineConfiguration dmnEngineConfiguration; @Override public int getPriority() { return EngineConfigurationConstants.PRIORITY_ENGINE_DMN; } @Override protected List<EngineDeployer> ...
} @Override protected List<Class<? extends Entity>> getEntityDeletionOrder() { return EntityDependencyOrder.DELETE_ORDER; } @Override protected DmnEngine buildEngine() { if (dmnEngineConfiguration == null) { throw new FlowableException("DmnEngineConfiguration is req...
repos\flowable-engine-main\modules\flowable-dmn-engine-configurator\src\main\java\org\flowable\dmn\engine\configurator\DmnEngineConfigurator.java
2