instruction
string
input
string
output
string
source_file
string
priority
int64
请在Spring Boot框架中完成以下Java代码
public class AmqpServer { /* Please note that - CachingConnectionFactory - RabbitAdmin - AmqpTemplate are automatically declared by SpringBoot. */ @Bean CabBookingService bookingService() { return new CabBookingServiceImpl(); } @Bean Queue queue() { return new...
exporter.setServiceInterface(CabBookingService.class); exporter.setService(implementation); exporter.setAmqpTemplate(template); return exporter; } @Bean SimpleMessageListenerContainer listener(ConnectionFactory factory, AmqpInvokerServiceExporter exporter, Queue queue) { SimpleM...
repos\tutorials-master\spring-remoting-modules\remoting-amqp\remoting-amqp-server\src\main\java\com\baeldung\server\AmqpServer.java
2
请完成以下Java代码
public boolean isAnagramCounting(String string1, String string2) { if (string1.length() != string2.length()) { return false; } int count[] = new int[CHARACTER_RANGE]; for (int i = 0; i < string1.length(); i++) { count[string1.charAt(i)]++; count[string...
multiset1.add(string1.charAt(i)); multiset2.add(string2.charAt(i)); } return multiset1.equals(multiset2); } public boolean isLetterBasedAnagramMultiset(String string1, String string2) { return isAnagramMultiset(preprocess(string1), preprocess(string2)); } private St...
repos\tutorials-master\core-java-modules\core-java-string-algorithms-3\src\main\java\com\baeldung\anagram\Anagram.java
1
请完成以下Java代码
private static ImmutableList<Object> normalizeMultipleValues(@NonNull final Collection<?> ids) { if (ids instanceof ImmutableList) { // consider it already normalized //noinspection unchecked return (ImmutableList<Object>)ids; } else { return ids.stream() .filter(Objects::nonNull) .col...
{ final Object value = getSingleValueAsObject(); return value != null ? value.toString() : null; } public Stream<IdsToFilter> streamSingleValues() { if (noValue) { return Stream.empty(); } else if (singleValue != null) { return Stream.of(this); } else { Objects.requireNonNull(multipleVa...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\model\lookup\IdsToFilter.java
1
请在Spring Boot框架中完成以下Java代码
private UpsertPurchaseCandidateProcessor getUpsertPurchaseCahndidateProcessor() { return UpsertPurchaseCandidateProcessor.builder() .externalSystemRequest(enabledByExternalSystemRequest) .pInstanceLogger(pInstanceLogger) .build(); } private void updateContextAfterSuccess(@NonNull final Exchange exchan...
{ final ImportOrdersRouteContext importOrdersRouteContext = ImportUtil.getOrCreateImportOrdersRouteContext(exchange); if (importOrdersRouteContext.isDoNotProcessAtAll()) { final Object fileName = exchange.getIn().getHeader(Exchange.FILE_NAME_ONLY); throw new RuntimeCamelException("No purchase order candida...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\de-metas-camel-pcm-file-import\src\main\java\de\metas\camel\externalsystems\pcm\purchaseorder\GetPurchaseOrderFromFileRouteBuilder.java
2
请完成以下Java代码
protected boolean validateAtLeastOneExecutable(BpmnModel bpmnModel, List<ValidationError> errors) { int nrOfExecutableDefinitions = 0; for (Process process : bpmnModel.getProcesses()) { if (process.isExecutable()) { nrOfExecutableDefinitions++; } } ...
List<Process> filteredProcesses = processes .stream() .filter(process -> process.getName() != null) .collect(Collectors.toList()); return getDuplicatesMap(filteredProcesses) .values() .stream() .filter(duplicates -> duplicates.size() > 1) ...
repos\Activiti-develop\activiti-core\activiti-process-validation\src\main\java\org\activiti\validation\validator\impl\BpmnModelValidator.java
1
请在Spring Boot框架中完成以下Java代码
public void setLocation(String location) { this.location = location; } public int getSize() { return this.size; } public void setSize(int size) { this.size = size; } } public static class StoreProperties { private boolean allowForceCompaction = DiskStoreFactory.DEFAULT_ALLOW_FORCE_COMPACTION;...
} public void setDiskUsageWarningPercentage(float diskUsageWarningPercentage) { this.diskUsageWarningPercentage = diskUsageWarningPercentage; } public long getMaxOplogSize() { return this.maxOplogSize; } public void setMaxOplogSize(long maxOplogSize) { this.maxOplogSize = maxOplogSize; } publ...
repos\spring-boot-data-geode-main\spring-geode-project\spring-geode-autoconfigure\src\main\java\org\springframework\geode\boot\autoconfigure\configuration\support\DiskStoreProperties.java
2
请在Spring Boot框架中完成以下Java代码
public class BookstoreService { private final AuthorRepository authorRepository; private final BookRepository bookRepository; public BookstoreService(AuthorRepository authorRepository, BookRepository bookRepository) { this.authorRepository = authorRepository; this.bookReposito...
Book book = bookRepository.fetchByTitle("Carrie"); // id 4 bookRepository.delete(book); System.out.println("Authors: " + authorRepository.count()); System.out.println("Books: " + bookRepository.count()); System.out.println("Deleted Authors: " + authorRepository.countDeleted()); ...
repos\Hibernate-SpringBoot-master\HibernateSpringBootSoftDeletesSpringStyle\src\main\java\com\bookstore\service\BookstoreService.java
2
请在Spring Boot框架中完成以下Java代码
public List<FreeTextType> getFreeText() { if (freeText == null) { freeText = new ArrayList<FreeTextType>(); } return this.freeText; } /** * Reference to the consignment. * * @return * possible object is * {@link String } * */ ...
} /** * Sets the value of the consignmentReference property. * * @param value * allowed object is * {@link String } * */ public void setConsignmentReference(String value) { this.consignmentReference = value; } }
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_ecosio_remadv\at\erpel\schemas\_1p0\documents\extensions\edifact\ORDERSExtensionType.java
2
请完成以下Java代码
public class RemoveLeadingAndTrailingZeroes { public static String removeLeadingZeroesWithStringBuilder(String s) { StringBuilder sb = new StringBuilder(s); while (sb.length() > 1 && sb.charAt(0) == '0') { sb.deleteCharAt(0); } return sb.toString(); } public s...
if (stripped.isEmpty() && !s.isEmpty()) { return "0"; } return stripped; } public static String removeTrailingZeroesWithApacheCommonsStripEnd(String s) { String stripped = StringUtils.stripEnd(s, "0"); if (stripped.isEmpty() && !s.isEmpty()) { return "0...
repos\tutorials-master\core-java-modules\core-java-string-algorithms-2\src\main\java\com\baeldung\removeleadingtrailingchar\RemoveLeadingAndTrailingZeroes.java
1
请完成以下Java代码
public int getAD_Client_ID() { return m_AD_Client_ID; } @Override public String login(final int AD_Org_ID, final int AD_Role_ID, final int AD_User_ID) { return null; // nothing } @Override public String modelChange(final PO po, final int type) { if (type == TYPE_AFTER_NEW || type == TYPE_AFTER_CHANGE) ...
|| timing == ModelValidator.TIMING_AFTER_REVERSECORRECT) { voidDocOutbound(po); } return null; } /** * @return true if the given PO was just processed */ private boolean isJustProcessed(final PO po, final int changeType) { if (!po.isActive()) { return false; } final boolean isNew = change...
repos\metasfresh-new_dawn_uat\backend\de.metas.document.archive\de.metas.document.archive.base\src\main\java\de\metas\document\archive\interceptor\DocOutboundProducerValidator.java
1
请完成以下Java代码
public int getAD_Tree_ID() { return get_ValueAsInt(COLUMNNAME_AD_Tree_ID); } @Override public void setC_Element_ID (final int C_Element_ID) { if (C_Element_ID < 1) set_ValueNoCheck (COLUMNNAME_C_Element_ID, null); else set_ValueNoCheck (COLUMNNAME_C_Element_ID, C_Element_ID); } @Override public...
} @Override public void setIsNaturalAccount (final boolean IsNaturalAccount) { set_Value (COLUMNNAME_IsNaturalAccount, IsNaturalAccount); } @Override public boolean isNaturalAccount() { return get_ValueAsBoolean(COLUMNNAME_IsNaturalAccount); } @Override public void setName (final java.lang.String Name...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_Element.java
1
请完成以下Java代码
public Boolean doInRedis(RedisConnection connection) throws DataAccessException { return connection.exists(cacheKey.getKeyBytes()); } }); if (!exists.booleanValue()) { return null; } return redisCacheElement; } /** * 刷新缓存数据 */ ...
} finally { redisLock.unlock(); } } }); } } public long getExpirationSecondTime() { return expirationSecondTime; } /** * 获取RedisCacheKey * * @param key * @return */ public RedisCacheKe...
repos\spring-boot-student-master\spring-boot-student-cache-redis\src\main\java\com\xiaolyuh\redis\cache\CustomizedRedisCache.java
1
请在Spring Boot框架中完成以下Java代码
public void setLastName(String lastName) { this.lastName = lastName; } @ApiModelProperty(example = "Fred Smith") public String getDisplayName() { return displayName; } public void setDisplayName(String displayName) { this.displayName = displayName; } @JsonInclude(J...
@JsonInclude(JsonInclude.Include.NON_NULL) @ApiModelProperty(example = "companyTenantId") public String getTenantId() { return tenantId; } public void setTenantId(String tenantId) { this.tenantId = tenantId; } @ApiModelProperty(example = "http://localhost:8182/identity/users/te...
repos\flowable-engine-main\modules\flowable-rest\src\main\java\org\flowable\rest\service\api\identity\UserResponse.java
2
请完成以下Java代码
public static SessionFactory getSessionFactoryWithInterceptor(String propertyFileName, Interceptor interceptor) throws IOException { PROPERTY_FILE_NAME = propertyFileName; if (sessionFactory == null) { ServiceRegistry serviceRegistry = configureServiceRegistry(); sessionFactory =...
Properties properties = getProperties(); return new StandardServiceRegistryBuilder().applySettings(properties) .build(); } private static Properties getProperties() throws IOException { Properties properties = new Properties(); URL propertiesURL = Thread.currentThread() ...
repos\tutorials-master\persistence-modules\hibernate5\src\main\java\com\baeldung\hibernate\interceptors\HibernateUtil.java
1
请完成以下Java代码
public UserOperationLogQuery orderByTimestamp() { return orderBy(OperationLogQueryProperty.TIMESTAMP); } public long executeCount(CommandContext commandContext) { checkQueryOk(); return commandContext .getOperationLogManager() .findOperationLogEntryCountByQueryCriteria(this); } public ...
public UserOperationLogQuery tenantIdIn(String... tenantIds) { ensureNotNull("tenantIds", (Object[]) tenantIds); this.tenantIds = tenantIds; this.isTenantIdSet = true; return this; } public UserOperationLogQuery withoutTenantId() { this.tenantIds = null; this.isTenantIdSet = true; retur...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\UserOperationLogQueryImpl.java
1
请完成以下Java代码
public Collection<ELResolver> getPostDefaultELResolvers() { return postDefaultELResolvers; } public EventRegistryEngineConfiguration setPostDefaultELResolvers(Collection<ELResolver> postDefaultELResolvers) { this.postDefaultELResolvers = postDefaultELResolvers; return this; } p...
public EventRegistryEngineConfiguration setChannelJsonConverter(ChannelJsonConverter channelJsonConverter) { this.channelJsonConverter = channelJsonConverter; return this; } public boolean isEnableEventRegistryChangeDetectionAfterEngineCreate() { return enableEventRegistryChangeDetectio...
repos\flowable-engine-main\modules\flowable-event-registry\src\main\java\org\flowable\eventregistry\impl\EventRegistryEngineConfiguration.java
1
请完成以下Java代码
public final synchronized boolean isRunning() { return frame != null && !frame.isDisposed(); } /** * Start listening to subscribed topics and display the events. * * If this was already started, this method does nothing. */ public synchronized void start() { if (!EventBusConfig.isEnabled()) { lo...
* If this was already started, this method does nothing. */ public synchronized void stop() { if (frame == null) { return; } try { frame.dispose(); } catch (Exception e) { logger.warn("Failed disposing the notification frame: " + frame, e); } } public synchronized Set<String> getSubsc...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java\org\adempiere\ui\notifications\SwingEventNotifierService.java
1
请完成以下Java代码
public CountResultDto getFiltersCount(UriInfo uriInfo) { FilterQuery query = getQueryFromQueryParameters(uriInfo.getQueryParameters()); return new CountResultDto(query.count()); } @Override public FilterDto createFilter(FilterDto filterDto) { FilterService filterService = getProcessEngine().getFilter...
@Override public ResourceOptionsDto availableOperations(UriInfo context) { UriBuilder baseUriBuilder = context.getBaseUriBuilder() .path(relativeRootResourcePath) .path(FilterRestService.PATH); ResourceOptionsDto resourceOptionsDto = new ResourceOptionsDto(); // GET / URI baseUri = base...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\impl\FilterRestServiceImpl.java
1
请完成以下Java代码
public int getMKTG_Consent_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_MKTG_Consent_ID); if (ii == null) return 0; return ii.intValue(); } @Override public de.metas.marketing.base.model.I_MKTG_ContactPerson getMKTG_ContactPerson() throws RuntimeException { return get_ValueAsPO(COLUMNNAME_MKTG_...
public void setMKTG_ContactPerson_ID (int MKTG_ContactPerson_ID) { if (MKTG_ContactPerson_ID < 1) set_Value (COLUMNNAME_MKTG_ContactPerson_ID, null); else set_Value (COLUMNNAME_MKTG_ContactPerson_ID, Integer.valueOf(MKTG_ContactPerson_ID)); } /** Get MKTG_ContactPerson. @return MKTG_ContactPerson */...
repos\metasfresh-new_dawn_uat\backend\de.metas.marketing\base\src\main\java-gen\de\metas\marketing\base\model\X_MKTG_Consent.java
1
请在Spring Boot框架中完成以下Java代码
public void deleteHistoricTaskLogEntry(long logEntryNumber) { getDbSqlSession().delete("deleteHistoricTaskLogEntryByLogNumber", logEntryNumber, HistoricTaskLogEntryEntityImpl.class); } @Override public void deleteHistoricTaskLogEntriesByProcessDefinitionId(String processDefinitionId) { getD...
} @Override public void deleteHistoricTaskLogEntriesForNonExistingCaseInstances() { getDbSqlSession().delete("bulkDeleteHistoricTaskLogEntriesForNonExistingCaseInstances", null, HistoricTaskLogEntryEntityImpl.class); } @Override public long findHistoricTaskLogEntriesCountByNativeQu...
repos\flowable-engine-main\modules\flowable-task-service\src\main\java\org\flowable\task\service\impl\persistence\entity\data\impl\MyBatisHistoricTaskLogEntryDataManager.java
2
请在Spring Boot框架中完成以下Java代码
public R update(@Valid @RequestBody TopMenu topMenu) { return R.status(topMenuService.updateById(topMenu)); } /** * 新增或修改 顶部菜单表 */ @PostMapping("/submit") @ApiOperationSupport(order = 6) @Operation(summary = "新增或修改", description = "传入topMenu") public R submit(@Valid @RequestBody TopMenu topMenu) { return...
/** * 设置顶部菜单 */ @PostMapping("/grant") @ApiOperationSupport(order = 8) @Operation(summary = "顶部菜单配置", description = "传入topMenuId集合以及menuId集合") public R grant(@RequestBody GrantVO grantVO) { CacheUtil.clear(SYS_CACHE); CacheUtil.clear(MENU_CACHE); CacheUtil.clear(MENU_CACHE); boolean temp = topMenuServic...
repos\SpringBlade-master\blade-service\blade-system\src\main\java\org\springblade\system\controller\TopMenuController.java
2
请完成以下Java代码
public static void main(String[] args) throws IOException { MyJiraClient myJiraClient = new MyJiraClient("user.name", "pass", "http://jira.company.com"); final String issueKey = myJiraClient.createIssue("ABCD", 1L, "Issue created from JRJC"); myJiraClient.updateIssueDescription(issueKey, "This...
} private void addComment(Issue issue, String commentBody) { restClient.getIssueClient().addComment(issue.getCommentsUri(), Comment.valueOf(commentBody)); } private List<Comment> getAllComments(String issueKey) { return StreamSupport.stream(getIssue(issueKey).getComments().spliterator(), f...
repos\tutorials-master\saas-modules\jira-rest-integration\src\main\java\com\baeldung\saas\jira\MyJiraClient.java
1
请完成以下Java代码
private static void search() { int[] anArray = new int[] {5, 2, 1, 4, 8}; for (int i = 0; i < anArray.length; i++) { if (anArray[i] == 4) { System.out.println("Found at index " + i); break; } } Arrays.sort(anArray); int ind...
int[] resultArray = new int[anArray.length + anotherArray.length]; for (int i = 0; i < resultArray.length; i++) { resultArray[i] = (i < anArray.length ? anArray[i] : anotherArray[i - anArray.length]); } for (int element : resultArray) { System.out.println(element); ...
repos\tutorials-master\core-java-modules\core-java-arrays-guides\src\main\java\com\baeldung\array\ArrayReferenceGuide.java
1
请在Spring Boot框架中完成以下Java代码
public class PayPalCreateLogRequest { String requestPath; String requestMethod; ImmutableMap<String, String> requestHeaders; String requestBodyAsJson; int responseStatusCode; ImmutableMap<String, String> responseHeaders; String responseBodyAsJson; PaymentReservationId paymentReservationId; PaymentReservation...
} private static ImmutableMap<String, String> toMap(final Headers headers) { if (headers == null) { return ImmutableMap.of(); } final ImmutableMap.Builder<String, String> builder = ImmutableMap.builder(); for (final String header : headers) { final String value = headers.header(header); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.paypal\src\main\java\de\metas\payment\paypal\logs\PayPalCreateLogRequest.java
2
请完成以下Java代码
public void setPostal (final @Nullable java.lang.String Postal) { set_Value (COLUMNNAME_Postal, Postal); } @Override public java.lang.String getPostal() { return get_ValueAsString(COLUMNNAME_Postal); } @Override public void setReferenceNo (final @Nullable java.lang.String ReferenceNo) { set_Value (COL...
set_ValueNoCheck (COLUMNNAME_SiteName, SiteName); } @Override public java.lang.String getSiteName() { return get_ValueAsString(COLUMNNAME_SiteName); } @Override public void setValue (final @Nullable java.lang.String Value) { set_Value (COLUMNNAME_Value, Value); } @Override public java.lang.String get...
repos\metasfresh-new_dawn_uat\backend\de.metas.edi\src\main\java-gen\de\metas\esb\edi\model\X_EDI_cctop_119_v.java
1
请完成以下Java代码
public void setQtyProcessed_OnDate (final @Nullable BigDecimal QtyProcessed_OnDate) { set_Value (COLUMNNAME_QtyProcessed_OnDate, QtyProcessed_OnDate); } @Override public BigDecimal getQtyProcessed_OnDate() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_QtyProcessed_OnDate); return bd != null ? bd ...
set_ValueFromPO(COLUMNNAME_S_Resource_ID, org.compiere.model.I_S_Resource.class, S_Resource); } @Override public void setS_Resource_ID (final int S_Resource_ID) { if (S_Resource_ID < 1) set_ValueNoCheck (COLUMNNAME_S_Resource_ID, null); else set_ValueNoCheck (COLUMNNAME_S_Resource_ID, S_Resource_ID); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\eevolution\model\X_PP_Order_Candidate.java
1
请在Spring Boot框架中完成以下Java代码
public class JwtAuthApplication implements CommandLineRunner { @Autowired UserService userService; public static void main(String[] args) { SpringApplication.run(JwtAuthApplication.class, args); } @Bean public ModelMapper modelMapper() { return new ModelMapper(); } @Override
public void run(String... params) throws Exception { User admin = new User(); admin.setUsername("admin"); admin.setPassword("admin"); admin.setEmail("admin@email.com"); admin.setRoles(new ArrayList<Role>(Arrays.asList(Role.ROLE_ADMIN))); userService.signup(admin); User client = new User(); client.setUse...
repos\spring-boot-quick-master\quick-jwt\src\main\java\com\quick\jwt\JwtAuthApplication.java
2
请完成以下Java代码
public class AD_User_ExpireLocks extends JavaProcess { @Override protected String doIt() throws Exception { final int accountLockExpire = Services.get(ISysConfigBL.class).getIntValue("USERACCOUNT_LOCK_EXPIRE", 30); final String sql = "SELECT * FROM AD_User" + " WHERE IsAccountLocked = 'Y'"; PreparedStatement...
public void run(final String localTrxName) throws Exception { final org.compiere.model.I_AD_User user = InterfaceWrapperHelper.create(getCtx(), AD_User_IDToUnlock, I_AD_User.class, localTrxName); final Timestamp curentLogin = (new Timestamp(System.currentTimeMillis())); final long loginFailureTime =...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\user\process\AD_User_ExpireLocks.java
1
请完成以下Java代码
public static JsonArray getArray(JsonObject json, String memberName) { if (json != null && memberName != null && json.has(memberName)) { return getArray(json.get(memberName)); } else { return createArray(); } } public static JsonArray getArray(JsonElement json) { if (json != null && j...
public static Gson createGsonMapper() { return new GsonBuilder() .serializeNulls() .registerTypeAdapter(Map.class, new JsonDeserializer<Map<String,Object>>() { public Map<String, Object> deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) { Map<String, Obje...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\util\JsonUtil.java
1
请完成以下Java代码
public void setEnvironment(@Nullable Environment environment) { this.environment = environment; } protected Optional<Environment> getEnvironment() { return Optional.ofNullable(this.environment); } public @NonNull CrudRepository<T, ID> getRepository() { return this.repository; } protected <S, R> R doRepos...
public T load(LoaderHelper<ID, T> helper) throws CacheLoaderException { return null; } protected abstract CacheRuntimeException newCacheRuntimeException( Supplier<String> messageSupplier, Throwable cause); @SuppressWarnings("unchecked") public <U extends RepositoryCacheLoaderWriterSupport<T, ID>> U with(Envir...
repos\spring-boot-data-geode-main\spring-geode-project\spring-geode\src\main\java\org\springframework\geode\cache\support\RepositoryCacheLoaderWriterSupport.java
1
请在Spring Boot框架中完成以下Java代码
public Mono<User> getUserWithAuthorities() { return SecurityUtils.getCurrentUserLogin().flatMap(userRepository::findOneWithAuthoritiesByLogin); } /** * Not activated users should be automatically deleted after 3 days. * <p> * This is scheduled to get fired everyday, at 01:00 (am). *...
return userRepository .findAllByActivatedIsFalseAndActivationKeyIsNotNullAndCreatedDateBefore( LocalDateTime.ofInstant(Instant.now().minus(3, ChronoUnit.DAYS), ZoneOffset.UTC) ) .flatMap(user -> userRepository.delete(user).thenReturn(user)) .doOnNext(user ...
repos\tutorials-master\jhipster-8-modules\jhipster-8-microservice\gateway-app\src\main\java\com\gateway\service\UserService.java
2
请在Spring Boot框架中完成以下Java代码
public class DefaultSecuritySettingsService implements SecuritySettingsService { private final AdminSettingsService adminSettingsService; public static final int DEFAULT_MOBILE_SECRET_KEY_LENGTH = 64; @Cacheable(cacheNames = SECURITY_SETTINGS_CACHE, key = "'securitySettings'") @Override public Se...
@CacheEvict(cacheNames = SECURITY_SETTINGS_CACHE, key = "'securitySettings'") @Override public SecuritySettings saveSecuritySettings(SecuritySettings securitySettings) { ConstraintValidator.validateFields(securitySettings); AdminSettings adminSettings = adminSettingsService.findAdminSettingsByKe...
repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\settings\DefaultSecuritySettingsService.java
2
请在Spring Boot框架中完成以下Java代码
public class BookstoreService { private final AuthorRepository authorRepository; public BookstoreService(AuthorRepository authorRepository) { this.authorRepository = authorRepository; } public void persistAuthorWithBooks() { Author author = new Author() .name("Joana N...
.addBook(new Book() .title("A People's History") .isbn("002-JN")); authorRepository.save(author); } @Transactional(readOnly = true) public void displayAuthorWithBooks() { Author author = authorRepository.findByName("Joana Nimar"); S...
repos\Hibernate-SpringBoot-master\HibernateSpringBootFluentApiAdditionalMethods\src\main\java\com\bookstore\service\BookstoreService.java
2
请在Spring Boot框架中完成以下Java代码
public DmnDeploymentBuilder addDmnBytes(String resourceName, byte[] dmnBytes) { if (dmnBytes == null) { throw new FlowableException("dmn bytes is null"); } DmnResourceEntity resource = resourceEntityManager.create(); resource.setName(resourceName); resource.setBytes(...
} @Override public DmnDeploymentBuilder parentDeploymentId(String parentDeploymentId) { deployment.setParentDeploymentId(parentDeploymentId); return this; } @Override public DmnDeploymentBuilder enableDuplicateFiltering() { isDuplicateFilterEnabled = true; return th...
repos\flowable-engine-main\modules\flowable-dmn-engine\src\main\java\org\flowable\dmn\engine\impl\repository\DmnDeploymentBuilderImpl.java
2
请完成以下Java代码
public static Rabbit createRabbitUsingClassNewInstance() throws InstantiationException, IllegalAccessException { Rabbit rabbit = Rabbit.class.newInstance(); return rabbit; } public static Rabbit createRabbitUsingConstructorNewInstance() throws InstantiationException, IllegalAccessE...
Rabbit rabbit = rabbitSupplier.get(); return rabbit; } public static Rabbit[] createRabbitArray() { Rabbit[] rabbitArray = new Rabbit[10]; return rabbitArray; } public static RabbitType createRabbitTypeEnum() { return RabbitType.PET; //any Rabb...
repos\tutorials-master\core-java-modules\core-java-lang-oop-constructors-2\src\main\java\com\baeldung\objectcreation\utils\CreateRabbits.java
1
请在Spring Boot框架中完成以下Java代码
public RouterFunction<ServerResponse> and(RouterFunction<ServerResponse> other) { return this.provider.getRouterFunction().and(other); } @Override public RouterFunction<?> andOther(RouterFunction<?> other) { return this.provider.getRouterFunction().andOther(other); } @Override public RouterFunction<...
@Override public RouterFunction<ServerResponse> withAttribute(String name, Object value) { return this.provider.getRouterFunction().withAttribute(name, value); } @Override public RouterFunction<ServerResponse> withAttributes(Consumer<Map<String, Object>> attributesConsumer) { return this.provider.getRout...
repos\spring-cloud-gateway-main\spring-cloud-gateway-server-webmvc\src\main\java\org\springframework\cloud\gateway\server\mvc\config\GatewayMvcPropertiesBeanDefinitionRegistrar.java
2
请完成以下Java代码
public static MStatus[] getClosed (Properties ctx) { int AD_Client_ID = Env.getAD_Client_ID(ctx); String sql = "SELECT * FROM R_Status " + "WHERE AD_Client_ID=? AND IsActive='Y' AND IsClosed='Y' " + "ORDER BY Value"; ArrayList<MStatus> list = new ArrayList<MStatus>(); PreparedStatement pstmt = null; tr...
{ // setValue (null); // setName (null); setIsClosed (false); // N setIsDefault (false); setIsFinalClose (false); // N setIsOpen (false); setIsWebCanUpdate (true); } } // MStatus /** * Load Constructor * @param ctx context * @param rs result set * @param trxName trx */ public MStatus...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\MStatus.java
1
请在Spring Boot框架中完成以下Java代码
public RestIdentityLink createIdentityLink(@ApiParam(name = "processDefinitionId") @PathVariable String processDefinitionId, @RequestBody RestIdentityLink identityLink) { ProcessDefinition processDefinition = getProcessDefinitionFromRequestWithoutAccessCheck(processDefinitionId); if (identityLink.getG...
if (identityLink.getGroup() != null) { repositoryService.addCandidateStarterGroup(processDefinition.getId(), identityLink.getGroup()); } else { repositoryService.addCandidateStarterUser(processDefinition.getId(), identityLink.getUser()); } // Always candidate for process...
repos\flowable-engine-main\modules\flowable-rest\src\main\java\org\flowable\rest\service\api\repository\ProcessDefinitionIdentityLinkCollectionResource.java
2
请在Spring Boot框架中完成以下Java代码
public class User { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String name; @OneToOne Preference preference; public String getName() { return name; } public void setName(String name) { this.name = name; }
public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Preference getPreference() { return preference; } public void setPreference(Preference preference) { this.preference = preference; } }
repos\tutorials-master\spring-web-modules\spring-boot-rest\src\main\java\com\baeldung\springpagination\model\User.java
2
请完成以下Java代码
public class StreamIndices { public static List<String> getEvenIndexedStrings(String[] names) { List<String> evenIndexedNames = IntStream.range(0, names.length) .filter(i -> i % 2 == 0) .mapToObj(i -> names[i]) .collect(Collectors.toList()); return evenIndexedNam...
.map(tuple -> tuple._1) .toJavaList(); return oddIndexedNames; } public static List<String> getEvenIndexedStringsUsingAtomicInteger(String[] names) { AtomicInteger index = new AtomicInteger(0); return Arrays.stream(names) .filter(name -> index.getAndIncrement() %...
repos\tutorials-master\core-java-modules\core-java-streams\src\main\java\com\baeldung\stream\StreamIndices.java
1
请完成以下Java代码
protected final String doIt() { newPaymentsViewAllocateCommand() .run(); // NOTE: the payment and invoice rows will be automatically invalidated (via a cache reset), // when the payment allocation is processed return MSG_OK; } @Override protected void postProcess(final boolean success) { // FIXME:...
final PaymentsViewAllocateCommandBuilder builder = PaymentsViewAllocateCommand.builder() .moneyService(moneyService) .invoiceProcessingServiceCompanyService(invoiceProcessingServiceCompanyService) // .paymentRows(getPaymentRowsSelectedForAllocation()) .invoiceRows(getInvoiceRowsSelectedForAllocation...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\payment_allocation\process\PaymentsView_Allocate_Template.java
1
请在Spring Boot框架中完成以下Java代码
public void setFREETEXTCODE(String value) { this.freetextcode = value; } /** * Gets the value of the freetextlanguage property. * * @return * possible object is * {@link String } * */ public String getFREETEXTLANGUAGE() { return freetextlangu...
* */ public String getFREETEXTFUNCTION() { return freetextfunction; } /** * Sets the value of the freetextfunction property. * * @param value * allowed object is * {@link String } * */ public void setFREETEXTFUNCTION(String value) { ...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_stepcom_desadv\de\metas\edi\esb\jaxb\stepcom\desadv\DTEXT1.java
2
请完成以下Java代码
protected final void assertConfigurable() { if (!_configurable) { throw new HUException("This producer is not configurable anymore: " + this); } } @Override public final IHUProducerAllocationDestination setHUClearanceStatusInfo(final ClearanceStatusInfo huClearanceStatusInfo) { assertConfigurable(); ...
currentHUCursor.closeCurrent(); // close the current position of this cursor // since _createdNonAggregateHUs is just a subset of _createdHUs, we don't know if 'hu' was in there to start with. All we care is that it's not in _createdNonAggregateHUs after this method. _createdNonAggregateHUs.remove(hu); final bo...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\allocation\impl\AbstractProducerDestination.java
1
请完成以下Java代码
private static final class ManagedOperationInfo { private final String description; private final Method operation; private ManagedOperationInfo(String description, Method operation) { this.description = description; this.operation = operation; } publi...
return operation; } @Override public String toString() { return "ManagedOperationInfo: [" + operation + "]"; } } private static final class MBeanAttributesAndOperations { private Map<String, ManagedAttributeInfo> attributes; private Set<ManagedOpera...
repos\flowable-engine-main\modules\flowable-jmx\src\main\java\org\flowable\management\jmx\MBeanInfoAssembler.java
1
请在Spring Boot框架中完成以下Java代码
public class SwaggerConfig extends WebMvcConfigurationSupport { @Bean public Docket postsApi() { return new Docket(DocumentationType.SWAGGER_2) .select() .apis(RequestHandlerSelectors.basePackage("com.urunov.controller")) .paths(regex("/api.*")) ...
.version("1.0.0") .license("Apache License Version 2.0") .licenseUrl("https://www.apache.org/licenses/LICENSE-2.0\"") .contact(new Contact("Urunov Hamdamboy", "https://github.com/urunov/", "myindexu@gamil.com")) .build(); } @Override protected...
repos\SpringBoot-Projects-FullStack-master\Part-9.SpringBoot-React-Projects\Project-2.SpringBoot-React-ShoppingMall\fullstack\backend\src\main\java\com\urunov\configure\SwaggerConfig.java
2
请完成以下Java代码
public Interface newInstance(ModelTypeInstanceContext instanceContext) { return new InterfaceImpl(instanceContext); } }); nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME) .required() .build(); implementationRefAttribute = typeBuilder.stringAttribute(BPMN_ATT...
nameAttribute.setValue(this, name); } public String getImplementationRef() { return implementationRefAttribute.getValue(this); } public void setImplementationRef(String implementationRef) { implementationRefAttribute.setValue(this, implementationRef); } public Collection<Operation> getOperations(...
repos\camunda-bpm-platform-master\model-api\bpmn-model\src\main\java\org\camunda\bpm\model\bpmn\impl\instance\InterfaceImpl.java
1
请完成以下Java代码
public String getID() { if (m_key == -1) return null; return String.valueOf(m_key); } // getID /** * Equals * * @param obj object * @return true if equal */ @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof KeyNamePair) {
KeyNamePair pp = (KeyNamePair)obj; if (pp.getKey() == m_key && pp.getName() != null && pp.getName().equals(getName())) return true; return false; } return false; } // equals @Override public int hashCode() { return Objects.hash(m_key); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\util\KeyNamePair.java
1
请完成以下Java代码
public class ConversationLinkImpl extends BaseElementImpl implements ConversationLink { protected static Attribute<String> nameAttribute; protected static AttributeReference<InteractionNode> sourceRefAttribute; protected static AttributeReference<InteractionNode> targetRefAttribute; public static void registe...
public void setName(String name) { nameAttribute.setValue(this, name); } public InteractionNode getSource() { return sourceRefAttribute.getReferenceTargetElement(this); } public void setSource(InteractionNode source) { sourceRefAttribute.setReferenceTargetElement(this, source); } public Inter...
repos\camunda-bpm-platform-master\model-api\bpmn-model\src\main\java\org\camunda\bpm\model\bpmn\impl\instance\ConversationLinkImpl.java
1
请完成以下Java代码
public String getDeviceId() { return deviceId; } public void updateDeviceIdPlus(String deviceIdNew) { this.deviceId = this.deviceId.equals("+") ? deviceIdNew : this.deviceId; } /** * Returns the Host Application ID if this is a Host topic * * @return the Host Application...
return sb.toString(); } /** * @param type the type to check * @return true if this topic's type matches the passes in type, false otherwise */ public boolean isType(SparkplugMessageType type) { return this.type != null && this.type.equals(type); } public boolean isNode() { ...
repos\thingsboard-master\common\transport\mqtt\src\main\java\org\thingsboard\server\transport\mqtt\util\sparkplug\SparkplugTopic.java
1
请在Spring Boot框架中完成以下Java代码
public void setDocumentTitle(String value) { this.documentTitle = value; } /** * The language used throughout the document. Codes according to ISO 639-2 must be used. * * @return * possible object is * {@link String } * */ public String getLanguage(...
return isGrossPrice; } /** * Sets the value of the isGrossPrice property. * * @param value * allowed object is * {@link Boolean } * */ public void setIsGrossPrice(Boolean value) { this.isGrossPrice = value; } }
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_ecosio_remadv\at\erpel\schemas\_1p0\documents\DocumentType.java
2
请在Spring Boot框架中完成以下Java代码
public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } InsuranceContractVisitInterval insuranceContractVisitInterval = (InsuranceContractVisitInterval) o; return Objects.equals(this.frequency, insuran...
sb.append(" frequency: ").append(toIndentedString(frequency)).append("\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" timePeriod: ").append(toIndentedString(timePeriod)).append("\n"); sb.append(" annotation: ").append(toIndentedString(annotation)).append("...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\alberta\alberta-article-api\src\main\java\io\swagger\client\model\InsuranceContractVisitInterval.java
2
请完成以下Java代码
public class TomcatDataSourcePoolMetadata extends AbstractDataSourcePoolMetadata<DataSource> { public TomcatDataSourcePoolMetadata(DataSource dataSource) { super(dataSource); } @Override public @Nullable Integer getActive() { ConnectionPool pool = getDataSource().getPool(); return (pool != null) ? pool.getA...
return getDataSource().getMaxActive(); } @Override public @Nullable Integer getMin() { return getDataSource().getMinIdle(); } @Override public @Nullable String getValidationQuery() { return getDataSource().getValidationQuery(); } @Override public @Nullable Boolean getDefaultAutoCommit() { return getDa...
repos\spring-boot-4.0.1\module\spring-boot-jdbc\src\main\java\org\springframework\boot\jdbc\metadata\TomcatDataSourcePoolMetadata.java
1
请完成以下Java代码
void printOddNum(int num) { try { semOdd.acquire(); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } System.out.println(Thread.currentThread().getName() + ":"+ num); semEven.release(); } } class Even implements Runnable { p...
class Odd implements Runnable { private SharedPrinter sp; private int max; Odd(SharedPrinter sp, int max) { this.sp = sp; this.max = max; } @Override public void run() { for (int i = 1; i <= max; i = i + 2) { sp.printOddNum(i); } } }
repos\tutorials-master\core-java-modules\core-java-concurrency-advanced-2\src\main\java\com\baeldung\concurrent\evenandodd\PrintEvenOddSemaphore.java
1
请完成以下Java代码
private List<Connector> getConnectors() { List<Connector> connectors = new ArrayList<>(); for (Service service : this.tomcat.getServer().findServices()) { Collections.addAll(connectors, service.findConnectors()); } return connectors; } private void close(Connector connector) { connector.pause(); conne...
private boolean isActive(Container context) { try { if (((StandardContext) context).getInProgressAsyncCount() > 0) { return true; } for (Container wrapper : context.findChildren()) { if (((StandardWrapper) wrapper).getCountAllocated() > 0) { return true; } } return false; } catch (...
repos\spring-boot-4.0.1\module\spring-boot-tomcat\src\main\java\org\springframework\boot\tomcat\GracefulShutdown.java
1
请完成以下Java代码
private RelatedProcessDescriptor createIssueTopLevelHusDescriptor() { return RelatedProcessDescriptor.builder() .processId(adProcessDAO.retrieveProcessIdByClassIfUnique(WEBUI_PP_Order_HUEditor_IssueTopLevelHUs.class)) .displayPlace(DisplayPlace.ViewQuickActions) .build(); } private RelatedProcessDescr...
.processId(adProcessDAO.retrieveProcessIdByClassIfUnique(WEBUI_PP_Order_HUEditor_IssueTUs.class)) .displayPlace(DisplayPlace.ViewQuickActions) .build(); } @Override protected PPOrderLinesView getView() { return PPOrderLinesView.cast(super.getView()); } @Override protected PPOrderLineRow getSingleSele...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\pporder\process\WEBUI_PP_Order_HUEditor_Launcher.java
1
请完成以下Java代码
public void setId(Long id) { this.id = id; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getContent() { return content; } public void setContent(String content) { this.cont...
return author; } public void setAuthor(String author) { this.author = author; } public boolean isAlreadySaved() { return alreadySaved; } public void setAlreadySaved(boolean alreadySaved) { this.alreadySaved = alreadySaved; } }
repos\tutorials-master\persistence-modules\spring-boot-persistence-5\src\main\java\com\baeldung\returnedvalueofsave\entity\BaeldungArticle.java
1
请完成以下Java代码
public List<AppDeploymentResponse> createAppDeploymentResponseList(List<AppDeployment> deployments) { AppRestUrlBuilder urlBuilder = createUrlBuilder(); List<AppDeploymentResponse> responseList = new ArrayList<>(deployments.size()); for (AppDeployment deployment : deployments) { resp...
String resourceUrl = urlBuilder.buildUrl(AppRestUrls.URL_DEPLOYMENT_RESOURCE, deploymentId, resourceId); String resourceContentUrl = urlBuilder.buildUrl(AppRestUrls.URL_DEPLOYMENT_RESOURCE_CONTENT, deploymentId, resourceId); // Determine type String type = "resource"; if (resourceId.end...
repos\flowable-engine-main\modules\flowable-app-engine-rest\src\main\java\org\flowable\app\rest\AppRestResponseFactory.java
1
请完成以下Java代码
public Builder reuseRefreshTokens(boolean reuseRefreshTokens) { return setting(ConfigurationSettingNames.Token.REUSE_REFRESH_TOKENS, reuseRefreshTokens); } /** * Set the time-to-live for a refresh token. Must be greater than * {@code Duration.ZERO}. * @param refreshTokenTimeToLive the time-to-live for ...
/** * Set to {@code true} if access tokens must be bound to the client * {@code X509Certificate} received during client authentication when using the * {@code tls_client_auth} or {@code self_signed_tls_client_auth} method. * @param x509CertificateBoundAccessTokens {@code true} if access tokens must be * ...
repos\spring-security-main\oauth2\oauth2-authorization-server\src\main\java\org\springframework\security\oauth2\server\authorization\settings\TokenSettings.java
1
请在Spring Boot框架中完成以下Java代码
public boolean isCompletable() { return completable; } public void setCompletable(boolean completable) { this.completable = completable; } public String getEntryCriterionId() { return entryCriterionId; } public void setEntryCriterionId(String entryCriterionId) { ...
public void setCompletedBy(String completedBy) { this.completedBy = completedBy; } public String getExtraValue() { return extraValue; } public void setExtraValue(String extraValue) { this.extraValue = extraValue; } @ApiModelProperty(example = "null") public String ...
repos\flowable-engine-main\modules\flowable-cmmn-rest\src\main\java\org\flowable\cmmn\rest\service\api\runtime\planitem\PlanItemInstanceResponse.java
2
请完成以下Java代码
public void setEditable (boolean edit) { m_textArea.setEditable(edit); } /** * Is Text Editable * @return true if editable */ public boolean isEditable() { return m_textArea.isEditable(); } /** * Set Text Line Wrap * @param wrap */ public void setLineWrap (boolean wrap) { m_textArea.setLin...
* @param l */ @Override public void addKeyListener (KeyListener l) { m_textArea.addKeyListener(l); } /** * Add Text Input Method Listener * @param l */ @Override public void addInputMethodListener (InputMethodListener l) { m_textArea.addInputMethodListener(l); } /** * Get text Input Method Req...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\swing\CTextArea.java
1
请完成以下Java代码
public String getUsername() { return username; } /** * @param username */ public void setUsername(String username) { this.username = username == null ? null : username.trim(); } /** * @return PASSWD */ public String getPasswd() { return passwd; }...
/** * @param createTime */ public void setCreateTime(Date createTime) { this.createTime = createTime; } /** * @return STATUS */ public String getStatus() { return status; } /** * @param status */ public void setStatus(String status) { t...
repos\SpringAll-master\27.Spring-Boot-Mapper-PageHelper\src\main\java\com\springboot\bean\User.java
1
请完成以下Java代码
public boolean handlesThrowable() { for (PatternFormatter formatter : this.formatters) { if (formatter.handlesThrowable()) { return true; } } return super.handlesThrowable(); } @Override public void format(LogEvent event, StringBuilder toAppendTo) { StringBuilder buf = new StringBuilder(); for (...
} /** * Creates a new instance of the class. Required by Log4J2. * @param config the configuration * @param options the options * @return a new instance, or {@code null} if the options are invalid */ public static @Nullable ColorConverter newInstance(@Nullable Configuration config, @Nullable String[] optio...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\logging\log4j2\ColorConverter.java
1
请完成以下Java代码
protected static RequestMatcher transformPathMatcher(PathMatcherConfig pathMatcherConfig, String applicationPath) { RequestFilter requestMatcher = new RequestFilter( pathMatcherConfig.getPath(), applicationPath, pathMatcherConfig.getPars...
public static Authorization authorize(String requestMethod, String requestUri, List<SecurityFilterRule> filterRules) { Authorization authorization; for (SecurityFilterRule filterRule : filterRules) { authorization = filterRule.authorize(requestMethod, requestUri); if (authorization != null) { ...
repos\camunda-bpm-platform-master\webapps\assembly\src\main\java\org\camunda\bpm\webapp\impl\security\filter\util\FilterRules.java
1
请完成以下Java代码
private void refreshCachedProperties() { PropertySources propertySources = environment.getPropertySources(); propertySources.forEach(this::refreshPropertySource); } @SuppressWarnings("rawtypes") private void refreshPropertySource(PropertySource<?> propertySource) { if (propertySourc...
return ClassUtils.forName(className, null); } catch (ClassNotFoundException e) { return null; } } /** {@inheritDoc} */ @Override public void afterPropertiesSet() throws Exception { Stream .concat(EVENT_CLASS_NAMES.stream(), this.config.getRefreshedEve...
repos\jasypt-spring-boot-master\jasypt-spring-boot\src\main\java\com\ulisesbocchio\jasyptspringboot\caching\RefreshScopeRefreshedEventListener.java
1
请完成以下Java代码
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; } public String getIsbn() { return isbn; } public void ...
public void setName(String name) { this.name = name; } public int getPrice() { return price; } public void setPrice(int price) { this.price = price; } @Override public String toString() { return "Book{" + "id=" + id + ", name=" + name + ", title=" + title ...
repos\Hibernate-SpringBoot-master\HibernateSpringBootDeadlockExample\src\main\java\com\bookstore\entity\Book.java
1
请完成以下Java代码
public class MybatisEventLogEntryDataManager extends AbstractDataManager<EventLogEntryEntity> implements EventLogEntryDataManager { public MybatisEventLogEntryDataManager(ProcessEngineConfigurationImpl processEngineConfiguration) { super(processEngineConfiguration); } @Override public ...
public List<EventLogEntry> findEventLogEntries(long startLogNr, long pageSize) { Map<String, Object> params = new HashMap<String, Object>(2); params.put("startLogNr", startLogNr); if (pageSize > 0) { params.put("endLogNr", startLogNr + pageSize + 1); } return getDbSql...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\persistence\entity\data\impl\MybatisEventLogEntryDataManager.java
1
请完成以下Spring Boot application配置
server.port=80 # \u6570\u636E\u6E90\u914D\u7F6E #https://github.com/alibaba/druid/tree/master/druid-spring-boot-starter spring.datasource.druid.url=jdbc:mysql://localhost:3306/ssb_test spring.datasource.druid.driver-class-name=com.mysql.jdbc.Driver spring.datasource.druid.username=root spring.datasource.druid.password=...
id Wiki\uFF0C\u914D\u7F6E_StatViewServlet\u914D\u7F6E #\u662F\u5426\u542F\u7528StatViewServlet\u9ED8\u8BA4\u503Ctrue spring.datasource.druid.stat-view-servlet.enabled=true spring.datasource.druid.stat-view-servlet.urlPattern=/druid/* #\u7981\u7528HTML\u9875\u9762\u4E0A\u7684\u201CReset All\u201D\u529F\u80FD spring.data...
repos\spring-boot-student-master\spring-boot-student-drools\src\main\resources\application.properties
2
请在Spring Boot框架中完成以下Java代码
public static List toList() { TradeStatusEnum[] ary = TradeStatusEnum.values(); List list = new ArrayList(); for (int i = 0; i < ary.length; i++) { Map<String, String> map = new HashMap<String, String>(); map.put("desc", ary[i].getDesc()); map.put("name", ary[i].name()); list.add(map); } return li...
* 取枚举的json字符串 * * @return */ public static String getJsonStr() { TradeStatusEnum[] enums = TradeStatusEnum.values(); StringBuffer jsonStr = new StringBuffer("["); for (TradeStatusEnum senum : enums) { if (!"[".equals(jsonStr.toString())) { jsonStr.append(","); } jsonStr.append("{id:'").append(...
repos\roncoo-pay-master\roncoo-pay-service\src\main\java\com\roncoo\pay\trade\enums\TradeStatusEnum.java
2
请完成以下Java代码
public void save(@NonNull final BankStatementImportFile bankStatementImportFile) { final I_C_BankStatement_Import_File bankStatementImportFileRecord = getRecordById(bankStatementImportFile.getBankStatementImportFileId()); bankStatementImportFileRecord.setProcessed(bankStatementImportFile.isProcessed()); bankSta...
return record; } @NonNull private static BankStatementImportFile ofRecord(@NonNull final I_C_BankStatement_Import_File record) { return BankStatementImportFile.builder() .bankStatementImportFileId(BankStatementImportFileId.ofRepoId(record.getC_BankStatement_Import_File_ID())) .filename(record.getFileName...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.base\src\main\java\de\metas\banking\importfile\BankStatementImportFileRepository.java
1
请完成以下Java代码
public long getSecondaryCacheExpirationSecondTime(String name) { if (StringUtils.isEmpty(name)) { return 0; } SecondaryCacheSetting secondaryCacheSetting = null; if (!CollectionUtils.isEmpty(secondaryCacheSettings)) { secondaryCacheSetting = secondaryCacheSetting...
} return secondaryCacheSetting != null ? secondaryCacheSetting.getForceRefresh() : false; } public void setCaffeineSpec(CaffeineSpec caffeineSpec) { Caffeine<Object, Object> cacheBuilder = Caffeine.from(caffeineSpec); if (!ObjectUtils.nullSafeEquals(this.cacheBuilder, cacheBuilder)) { ...
repos\spring-boot-student-master\spring-boot-student-cache-redis-caffeine\src\main\java\com\xiaolyuh\cache\layering\LayeringCacheManager.java
1
请完成以下Java代码
public abstract class AbstractResourceWriter implements ResourceWriter { /** * @inheritDoc */ @Override public void write(@NonNull Resource resource, byte[] data) { ResourceUtils.asWritableResource(resource) .filter(this::isAbleToHandle) .map(this::preProcess) .map(it -> { try (OutputStream out ...
* However, other algorithm/strategy implementations are free to write to the {@link Resource} as is appropriate * for the given context (e.g. cloud environment). In those cases, implementors should override * the {@link #write(Resource, byte[])} method. * * @param resourceOutputStream {@link OutputStream} retu...
repos\spring-boot-data-geode-main\spring-geode-project\spring-geode\src\main\java\org\springframework\geode\core\io\AbstractResourceWriter.java
1
请完成以下Java代码
public boolean accept(final I_C_Queue_WorkPackage workpackage) { if (packageQuery.getProcessed() != null && packageQuery.getProcessed() != workpackage.isProcessed()) { return false; } if (packageQuery.getReadyForProcessing() != null && packageQuery.getReadyForProcessing() != workpackage.isReadyForProc...
if (packageProcessorIds.isEmpty()) { slogger.warn("There were no package processor Ids set in the package query. This could be a posible development error" +"\n Package query: "+packageQuery); } final QueuePackageProcessorId packageProcessorId = QueuePackageProcessorId.ofRepoId(workpackage.getC_...
repos\metasfresh-new_dawn_uat\backend\de.metas.async\src\main\java\de\metas\async\api\impl\PlainQueueDAO.java
1
请完成以下Java代码
public VariableProvider variableProvider() { return new CompositeVariableProvider(toScalaList(inputVariableContext, contextVariableWrapper)); } }; Either either = feelEngine.evalUnaryTests(expression, context); if (either instanceof Right) { Right right = (Right) either; Object v...
@SafeVarargs protected final <T> List<T> toScalaList(T... elements) { java.util.List<T> listAsJava = Arrays.asList(elements); return toList(listAsJava); } protected <T> List<T> toList(java.util.List list) { return ListHasAsScala(list).asScala().toList(); } protected org.camunda.feel.FeelEngine ...
repos\camunda-bpm-platform-master\engine-dmn\feel-scala\src\main\java\org\camunda\bpm\dmn\feel\impl\scala\ScalaFeelEngine.java
1
请在Spring Boot框架中完成以下Java代码
public void deleteHistoricTaskInstancesForNonExistingProcessInstances() { getHistoricTaskInstanceEntityManager().deleteHistoricTaskInstancesForNonExistingProcessInstances(); } @Override public void deleteHistoricTaskInstancesForNonExistingCaseInstances() { getHistoricTaskInstanceEntityM...
HistoricIdentityLinkService historicIdentityLinkService = getIdentityLinkServiceConfiguration(engineConfiguration).getHistoricIdentityLinkService(); HistoricIdentityLinkEntity historicIdentityLinkEntity = historicIdentityLinkService.createHistoricIdentityLink(); historicIdentityLinkEntity.setTaskId(task...
repos\flowable-engine-main\modules\flowable-task-service\src\main\java\org\flowable\task\service\impl\HistoricTaskServiceImpl.java
2
请完成以下Java代码
public VariableType getVariableType() { return variableType; } public void setVariableType(VariableType variableType) { this.variableType = variableType; } @Override public String getTaskId() { return taskId; } public void setTaskId(String taskId) { this.ta...
@Override public String getSubScopeId() { return ScopeTypes.BPMN.equals(scopeType) ? executionId : null; } @Override public String getScopeDefinitionId() { return ScopeTypes.BPMN.equals(scopeType) ? processDefinitionId : null; } @Override public String getVariableInstanceId...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\delegate\event\impl\ActivitiVariableEventImpl.java
1
请完成以下Java代码
public String getTrckNb() { return trckNb; } /** * Sets the value of the trckNb property. * * @param value * allowed object is * {@link String } * */ public void setTrckNb(String value) { this.trckNb = value; } /** * Gets the va...
} /** * Sets the value of the trckVal property. * * @param value * allowed object is * {@link String } * */ public void setTrckVal(String value) { this.trckVal = value; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.camt53\src\main\java-xjc\de\metas\banking\camt53\jaxb\camt053_001_04\TrackData1.java
1
请完成以下Java代码
public void setPricingSystem_Value (final @Nullable java.lang.String PricingSystem_Value) { set_Value (COLUMNNAME_PricingSystem_Value, PricingSystem_Value); } @Override public java.lang.String getPricingSystem_Value() { return get_ValueAsString(COLUMNNAME_PricingSystem_Value); } @Override public void set...
public void setUOM (final java.lang.String UOM) { set_Value (COLUMNNAME_UOM, UOM); } @Override public java.lang.String getUOM() { return get_ValueAsString(COLUMNNAME_UOM); } @Override public void setValidFrom (final java.sql.Timestamp ValidFrom) { set_Value (COLUMNNAME_ValidFrom, ValidFrom); } @Ove...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_I_Campaign_Price.java
1
请完成以下Java代码
public void createOperationLogEntry(CommandContext commandContext, MessageCorrelationResultImpl result, List<PropertyChange> propChanges, boolean isSummary) { String processInstanceId = null; String processDefinitionId = null; if(result.getProcessInstance() != null) { if(!isSummary) { processI...
@Override public List<PropertyChange> getSummarizingPropChangesForOperation(List<MessageCorrelationResultImpl> results) { List<PropertyChange> propChanges = getGenericPropChangesForOperation(); propChanges.add(new PropertyChange("nrOfInstances", null, results.size())); return propChanges; } protected...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\cmd\CorrelateAllMessageCmd.java
1
请完成以下Java代码
public JsonOLCandCreateBulkRequest withOrgSyncAdvise(@Nullable final SyncAdvise syncAdvise) { return syncAdvise != null ? map(request -> request.withOrgSyncAdvise(syncAdvise)) : this; } public JsonOLCandCreateBulkRequest withBPartnersSyncAdvise(@Nullable final SyncAdvise syncAdvise) { return syncAdvise...
? map(request -> request.withProductsSyncAdvise(syncAdvise)) : this; } private JsonOLCandCreateBulkRequest map(@NonNull final UnaryOperator<JsonOLCandCreateRequest> mapper) { if (requests.isEmpty()) { return this; } final ImmutableList<JsonOLCandCreateRequest> newRequests = this.requests.stream() ...
repos\metasfresh-new_dawn_uat\misc\de-metas-common\de-metas-common-ordercandidates\src\main\java\de\metas\common\ordercandidates\v1\request\JsonOLCandCreateBulkRequest.java
1
请完成以下Java代码
public boolean isProcessed () { Object oo = get_Value(COLUMNNAME_Processed); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Datensatz-ID. @param Record_ID Direct internal record ID */ @Override pu...
if (ii == null) return 0; return ii.intValue(); } /** Set Window Internal Name. @param WindowInternalName Window Internal Name */ @Override public void setWindowInternalName (java.lang.String WindowInternalName) { set_Value (COLUMNNAME_WindowInternalName, WindowInternalName); } /** Get Window Inter...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\de\metas\dataentry\model\X_I_DataEntry_Record.java
1
请完成以下Java代码
public class PartyIdentificationSEPA3 { @XmlElement(name = "Id", required = true) protected PartySEPA2 id; /** * Gets the value of the id property. * * @return * possible object is * {@link PartySEPA2 } * */ public PartySEPA2 getId() { return id...
} /** * Sets the value of the id property. * * @param value * allowed object is * {@link PartySEPA2 } * */ public void setId(PartySEPA2 value) { this.id = value; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.sepa\schema-pain_008_003_02\src\main\java-xjc\de\metas\payment\sepa\jaxb\sct\pain_008_003_02\PartyIdentificationSEPA3.java
1
请完成以下Java代码
public String getGender() { return gender; } /** * Sets the value of the gender property. * * @param value * allowed object is * {@link String } * */ public void setGender(String value) { this.gender = value; } /** * Gets the va...
* */ public Calendar getCreated() { return created; } /** * Sets the value of the created property. * * @param value * allowed object is * {@link String } * */ public void setCreated(Calendar value) { this.created = value; }...
repos\tutorials-master\xml-modules\jaxb\src\main\java\com\baeldung\jaxb\gen\UserResponse.java
1
请完成以下Java代码
public void setIsWriteOffApplied (boolean IsWriteOffApplied) { set_Value (COLUMNNAME_IsWriteOffApplied, Boolean.valueOf(IsWriteOffApplied)); } /** Get Massenaustritt Applied. @return Massenaustritt Applied */ @Override public boolean isWriteOffApplied () { Object oo = get_Value(COLUMNNAME_IsWriteOffAppl...
/** Get Verarbeitet. @return Checkbox sagt aus, ob der Beleg verarbeitet wurde. */ @Override public boolean isProcessed () { Object oo = get_Value(COLUMNNAME_Processed); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return f...
repos\metasfresh-new_dawn_uat\backend\de.metas.dunning\src\main\java-gen\de\metas\dunning\model\X_C_DunningDoc_Line_Source.java
1
请完成以下Java代码
public static ByteArrayOtherStream createByteArrayOtherStream(String path) { try { InputStream is = HanLP.Config.IOAdapter == null ? new FileInputStream(path) : HanLP.Config.IOAdapter.open(path); return createByteArrayOtherStream(is); } catch (Exception e) ...
{ throw new RuntimeException(e); } } } @Override public void close() { super.close(); if (is == null) { return; } try { is.close(); } catch (IOException e) { P...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\corpus\io\ByteArrayOtherStream.java
1
请完成以下Java代码
public class OpenIdConnectUserDetails implements UserDetails { private static final long serialVersionUID = 1L; private String userId; private String username; private OAuth2AccessToken token; public OpenIdConnectUserDetails(Map<String, String> userInfo, OAuth2AccessToken token) { this.us...
return null; } @Override public boolean isAccountNonExpired() { return true; } @Override public boolean isAccountNonLocked() { return true; } @Override public boolean isCredentialsNonExpired() { return true; } @Override public boolean isEnabled...
repos\tutorials-master\spring-security-modules\spring-security-legacy-oidc\src\main\java\com\baeldung\openid\oidc\OpenIdConnectUserDetails.java
1
请完成以下Java代码
public void setId(Integer id) { this.id = id; } public String getAuthor() { return author; } public void setAuthor(String author) { this.author = author; } public String getTitle() { return title; } public void setTitle(String title) { this.tit...
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Book book = (Book) o; return id.equals(book.id); } @Override public int hashCode() { return Objects.hash(id)...
repos\tutorials-master\graphql-modules\graphql-spqr\src\main\java\com\baeldung\spqr\Book.java
1
请完成以下Java代码
public int getRole() { return role; } public void setRole(int role) { this.role = role; } public String getPermission() { return permission; } public void setPermission(String permission) { this.permission = permission; } // plugin
public boolean validPermission(int jobGroup){ if (this.role == 1) { return true; } else { if (StringUtils.hasText(this.permission)) { for (String permissionItem : this.permission.split(",")) { if (String.valueOf(jobGroup).equals(permissionItem)) { return true; } } } return false;...
repos\JeecgBoot-main\jeecg-boot\jeecg-server-cloud\jeecg-visual\jeecg-cloud-xxljob\src\main\java\com\xxl\job\admin\core\model\XxlJobUser.java
1
请完成以下Java代码
public class CustomFunction { protected List<String> params; protected Function<List<Object>, Object> function; protected boolean hasVarargs; public CustomFunction() { params = Collections.emptyList(); } /** * Creates a fluent builder to configure a custom function * * @return builder to app...
public Function<List<Object>, Object> getFunction() { return function; } public void setFunction(Function<List<Object>, Object> function) { this.function = function; } public boolean hasVarargs() { return hasVarargs; } public void setHasVarargs(boolean hasVarargs) { this.hasVarargs = hasV...
repos\camunda-bpm-platform-master\engine-dmn\feel-scala\src\main\java\org\camunda\bpm\dmn\feel\impl\scala\function\CustomFunction.java
1
请在Spring Boot框架中完成以下Java代码
public class WebMvcConfig implements WebMvcConfigurer { @Autowired private WebFlowConfig webFlowConfig; @Override public void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler("/resources/**").addResourceLocations("/resources/"); } @Bean public In...
FlowHandlerMapping handlerMapping = new FlowHandlerMapping(); handlerMapping.setOrder(-1); handlerMapping.setFlowRegistry(this.webFlowConfig.flowRegistry()); return handlerMapping; } @Bean public FlowHandlerAdapter flowHandlerAdapter() { FlowHandlerAdapter handlerAdapter = n...
repos\tutorials-master\spring-web-modules\spring-mvc-webflow\src\main\java\com\baeldung\spring\WebMvcConfig.java
2
请完成以下Java代码
public class C_PurchaseCandiate_Create_PurchaseOrders extends JavaProcess implements IProcessPrecondition { @Override public ProcessPreconditionsResolution checkPreconditionsApplicable( @NonNull final IProcessPreconditionsContext context) { if (!I_C_PurchaseCandidate.Table_Name.equals(context.getTableName(...
.createQueryBuilder(I_C_PurchaseCandidate.class) .filter(getProcessInfo().getQueryFilterOrElse(ConstantQueryFilter.of(false))) .addEqualsFilter(I_C_PurchaseCandidate.COLUMNNAME_IsPrepared, true) .create() .iterateAndStreamIds(PurchaseCandidateId::ofRepoId) .collect(ImmutableSet.toImmutableSet()); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.purchasecandidate.base\src\main\java\de\metas\purchasecandidate\process\C_PurchaseCandiate_Create_PurchaseOrders.java
1
请完成以下Java代码
private boolean shouldIgnore(MediaType httpRequestMediaType) { for (MediaType ignoredMediaType : this.ignoredMediaTypes) { if (httpRequestMediaType.includes(ignoredMediaType)) { return true; } } return false; } /** * If set to true, matches on exact {@link MediaType}, else uses * {@link MediaType...
private List<MediaType> resolveMediaTypes(ServerWebExchange exchange) throws NotAcceptableStatusException { try { List<MediaType> mediaTypes = exchange.getRequest().getHeaders().getAccept(); MimeTypeUtils.sortBySpecificity(mediaTypes); return mediaTypes; } catch (InvalidMediaTypeException ex) { String...
repos\spring-security-main\web\src\main\java\org\springframework\security\web\server\util\matcher\MediaTypeServerWebExchangeMatcher.java
1
请完成以下Java代码
public Boolean isAttndntMsgCpbl() { return attndntMsgCpbl; } /** * Sets the value of the attndntMsgCpbl property. * * @param value * allowed object is * {@link Boolean } * */ public void setAttndntMsgCpbl(Boolean value) { this.attndntMsgCpbl ...
*/ public Boolean isFllbckInd() { return fllbckInd; } /** * Sets the value of the fllbckInd property. * * @param value * allowed object is * {@link Boolean } * */ public void setFllbckInd(Boolean value) { this.fllbckInd = value; } ...
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.esr\src\main\java-xjc_camt054_001_06\de\metas\payment\camt054_001_06\PaymentContext3.java
1
请完成以下Java代码
public String getPasswordInfo () { return (String)get_Value(COLUMNNAME_PasswordInfo); } /** Set Port. @param Port Port */ public void setPort (int Port) { set_Value (COLUMNNAME_Port, Integer.valueOf(Port)); } /** Get Port. @return Port */ public int getPort () { Integer ii = (Integer)get_Valu...
/** Set Search Key. @param Value Search key for the record in the format required - must be unique */ public void setValue (String Value) { set_Value (COLUMNNAME_Value, Value); } /** Get Search Key. @return Search key for the record in the format required - must be unique */ public String getValue ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_EXP_Processor.java
1
请完成以下Spring Boot application配置
# datasource config spring.datasource.url=jdbc:mysql://localhost:3306/springboot3_db?useUnicode=true&characterEncoding=utf8&autoReconnect=true&useSSL=false spring.datasource.driver-class-name=c
om.mysql.cj.jdbc.Driver spring.datasource.username=root spring.datasource.password=
repos\spring-boot-projects-main\SpringBoot入门案例源码\spring-boot-jdbc\src\main\resources\application.properties
2
请完成以下Java代码
public class MergingCosts { private static final List<Integer> arrayListOfNumbers = new ArrayList<>(); static { IntStream.rangeClosed(1, 1_000_000).forEach(i -> { arrayListOfNumbers.add(i); }); } @Benchmark @BenchmarkMode(Mode.AverageTime) @OutputTimeUnit(TimeUnit....
@Benchmark @BenchmarkMode(Mode.AverageTime) @OutputTimeUnit(TimeUnit.NANOSECONDS) public static void mergingCostsGroupingSequential() { arrayListOfNumbers.stream().collect(Collectors.toSet()); } @Benchmark @BenchmarkMode(Mode.AverageTime) @OutputTimeUnit(TimeUnit.NANOSECONDS) pu...
repos\tutorials-master\core-java-modules\core-java-streams-7\src\main\java\com\baeldung\streams\parallel\MergingCosts.java
1
请完成以下Java代码
private static String extractContextTableName(final IValidationContext evalCtx) { final String contextTableName = evalCtx.get_ValueAsString(IValidationContext.PARAMETER_ContextTableName); if (Check.isEmpty(contextTableName)) { throw new AdempiereException("Failed getting " + IValidationContext.PARAMETER_Conte...
return valueAsBoolean != null && valueAsBoolean; } private static String extractOrderType(final IValidationContext evalCtx) { return evalCtx.get_ValueAsString(WindowConstants.FIELDNAME_OrderType); } @Override public Set<String> getParameters(@Nullable final String contextTableName) { final HashSet<String> ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\model\sql\DocActionValidationRule.java
1
请完成以下Java代码
public AsyncBeforeUpdate getDelegateAsyncBeforeUpdate() { return delegateAsyncBeforeUpdate; } public void setDelegateAsyncBeforeUpdate(AsyncBeforeUpdate delegateAsyncBeforeUpdate) { this.delegateAsyncBeforeUpdate = delegateAsyncBeforeUpdate; } public AsyncAfterUpdate getDelegateAsyncAfterUpdate() { ...
* @param asyncBefore the new value for the asyncBefore flag * @param exclusive the exclusive flag */ public void updateAsyncBefore(boolean asyncBefore, boolean exclusive); } /** * Delegate interface for the asyncAfter property update */ public interface AsyncAfterUpdate { /** * Meth...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\pvm\process\ActivityImpl.java
1
请完成以下Java代码
public class X_MobileUI_HUManager extends org.compiere.model.PO implements I_MobileUI_HUManager, org.compiere.model.I_Persistent { private static final long serialVersionUID = 1751514139L; /** Standard Constructor */ public X_MobileUI_HUManager (final Properties ctx, final int MobileUI_HUManager_ID, @Nullab...
{ if (MobileUI_HUManager_ID < 1) set_ValueNoCheck (COLUMNNAME_MobileUI_HUManager_ID, null); else set_ValueNoCheck (COLUMNNAME_MobileUI_HUManager_ID, MobileUI_HUManager_ID); } @Override public int getMobileUI_HUManager_ID() { return get_ValueAsInt(COLUMNNAME_MobileUI_HUManager_ID); } @Override pu...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_MobileUI_HUManager.java
1
请在Spring Boot框架中完成以下Java代码
SimpleJmsListenerContainerFactoryConfigurer simpleJmsListenerContainerFactoryConfigurer() { SimpleJmsListenerContainerFactoryConfigurer configurer = new SimpleJmsListenerContainerFactoryConfigurer(); configurer.setDestinationResolver(this.destinationResolver.getIfUnique()); configurer.setMessageConverter(this.mes...
@ConditionalOnMissingBean(name = JmsListenerConfigUtils.JMS_LISTENER_ANNOTATION_PROCESSOR_BEAN_NAME) static class EnableJmsConfiguration { } @Configuration(proxyBeanMethods = false) @ConditionalOnJndi static class JndiConfiguration { @Bean @ConditionalOnMissingBean(DestinationResolver.class) JndiDestinati...
repos\spring-boot-main\module\spring-boot-jms\src\main\java\org\springframework\boot\jms\autoconfigure\JmsAnnotationDrivenConfiguration.java
2
请完成以下Java代码
public I_AD_User getSalesRep() throws RuntimeException { return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) .getPO(getSalesRep_ID(), get_TrxName()); } /** Set Sales Representative. @param SalesRep_ID Sales Representative or Company Agent */ public void setSalesRep_ID (int SalesRep_ID) { ...
} /** Get Summary. @return Textual summary of this request */ public String getSummary () { return (String)get_Value(COLUMNNAME_Summary); } /** TaskStatus AD_Reference_ID=366 */ public static final int TASKSTATUS_AD_Reference_ID=366; /** 0% Not Started = 0 */ public static final String TASKSTATUS_0No...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_R_RequestAction.java
1