instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
public String getAssignee() { return assignee; } public Date getStartTime() { return startTime; } public Date getEndTime() { return endTime; } public Long getDuration() { return duration; } public String getTaskDefinitionKey() { return taskDefinitionKey; } public int getPrio...
dto.id = taskInstance.getId(); dto.processDefinitionKey = taskInstance.getProcessDefinitionKey(); dto.processDefinitionId = taskInstance.getProcessDefinitionId(); dto.processInstanceId = taskInstance.getProcessInstanceId(); dto.executionId = taskInstance.getExecutionId(); dto.caseDefinitionKey = tas...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\history\HistoricTaskInstanceDto.java
1
请完成以下Java代码
public static ProcessApplicationReference getCurrentProcessApplication() { Deque<ProcessApplicationReference> stack = getStack(processApplicationContext); if(stack.isEmpty()) { return null; } else { return stack.peek(); } } public static void setCurrentProcessApplication(ProcessApplicat...
ProcessApplicationClassloaderInterceptor<T> wrappedCallback = new ProcessApplicationClassloaderInterceptor<T>(callback); // execute wrapped callback return processApplication.execute(wrappedCallback, invocationContext); } catch (Exception e) { // unwrap exception if(e.getCause() ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\context\Context.java
1
请完成以下Java代码
static Object wrap(Object object) { try { if (object == null) { return NULL; } if ( object instanceof JSONObject || object instanceof JSONArray || object instanceof Byte || object instanceof Chara...
public Writer write(Writer writer) throws JSONException { try { boolean b = false; Iterator keys = keys(); writer.write('{'); while (keys.hasNext()) { if (b) { writer.write(','); } Object k = key...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\util\json\JSONObject.java
1
请完成以下Java代码
public class StartEventXMLConverter extends BaseBpmnXMLConverter { @Override public Class<? extends BaseElement> getBpmnElementType() { return StartEvent.class; } @Override protected String getXMLElementName() { return ELEMENT_EVENT_START; } @Override protected BaseEle...
throws Exception { StartEvent startEvent = (StartEvent) element; writeQualifiedAttribute(ATTRIBUTE_EVENT_START_INITIATOR, startEvent.getInitiator(), xtw); writeQualifiedAttribute(ATTRIBUTE_FORM_FORMKEY, startEvent.getFormKey(), xtw); if (startEvent.getEventDefinitions() != null && start...
repos\Activiti-develop\activiti-core\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\StartEventXMLConverter.java
1
请在Spring Boot框架中完成以下Java代码
public R<IPage<Datasource>> list(Datasource datasource, Query query) { IPage<Datasource> pages = datasourceService.page(Condition.getPage(query), Condition.getQueryWrapper(datasource)); return R.data(pages); } /** * 新增 数据源配置表 */ @PostMapping("/save") @ApiOperationSupport(order = 4) @Operation(summary = "新...
datasource.setUrl(datasource.getUrl().replace("&amp;", "&")); return R.status(datasourceService.saveOrUpdate(datasource)); } /** * 删除 数据源配置表 */ @PostMapping("/remove") @ApiOperationSupport(order = 7) @Operation(summary = "逻辑删除", description = "传入ids") public R remove(@Parameter(description = "主键集合", requi...
repos\SpringBlade-master\blade-ops\blade-develop\src\main\java\org\springblade\develop\controller\DatasourceController.java
2
请在Spring Boot框架中完成以下Java代码
public class DmnRestUrlBuilder { protected String baseUrl = ""; protected DmnRestUrlBuilder() { } protected DmnRestUrlBuilder(String baseUrl) { this.baseUrl = baseUrl; } public String getBaseUrl() { return baseUrl; } public String buildUrl(String[] fragments, Object....
} if (baseUrl.endsWith("/")) { baseUrl = baseUrl.substring(0, baseUrl.length() - 1); } return new DmnRestUrlBuilder(baseUrl); } /** Extracts the base URL from the request */ public static DmnRestUrlBuilder fromRequest(HttpServletRequest request) { return usingBas...
repos\flowable-engine-main\modules\flowable-dmn-rest\src\main\java\org\flowable\dmn\rest\service\api\DmnRestUrlBuilder.java
2
请完成以下Java代码
public String getCalledCaseInstanceId() { return calledCaseInstanceId; } public String getTenantId() { return tenantId; } public Date getCreateTime() { return createTime; } public Date getEndTime() { return endTime; } public Long getDurationInMillis() { return durationInMillis; ...
} public static HistoricCaseActivityInstanceDto fromHistoricCaseActivityInstance(HistoricCaseActivityInstance historicCaseActivityInstance) { HistoricCaseActivityInstanceDto dto = new HistoricCaseActivityInstanceDto(); dto.id = historicCaseActivityInstance.getId(); dto.parentCaseActivityInstanceId = hi...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\history\HistoricCaseActivityInstanceDto.java
1
请完成以下Java代码
private boolean acceptTU(final I_M_HU tuHU) { // // Check same BPartner if (!BPartnerId.equals(IHandlingUnitsBL.extractBPartnerIdOrNull(tuHU), this.bpartnerId)) { return false; } // // Check same BPartner Location if (!BPartnerLocationId.equals(IHandlingUnitsBL.extractBPartnerLocationIdOrNull(tuHU)...
return false; } // // Default: accept return true; } void close() { final IAttributeStorage luAttributes = huContext.getHUAttributeStorageFactory().getAttributeStorage(luHU); luAttributes.setSaveOnChange(true); collectedAttributes.updateAggregatedValuesTo(luAttributes); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\allocation\impl\LULoaderInstance.java
1
请在Spring Boot框架中完成以下Java代码
public class User { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @Column private String name; public Long getId() { return id; } public void setId(Long id) { this.id = id;
} public String getName() { return name; } public void setName(String name) { this.name = name; } @Override public String toString() { return "User{" + "id=" + id + ", name='" + name + '\'' + '}'; } }
repos\tutorials-master\persistence-modules\spring-data-yugabytedb\src\main\java\com\baeldung\User.java
2
请完成以下Java代码
public String getClearValue () { return m_clearValue; } // getClearValue /** * Set Clear Value * @param clearValue The clearValue to set. */ public void setClearValue (String clearValue) { m_clearValue = clearValue; m_obscuredValue = null; } // setClearValue /** * Get Obscured Value * @param cl...
StringBuffer sb = new StringBuffer(length); for (int i = 0; i < length; i++) { char c = chars[i]; if (i < clearStart) sb.append(c); else if (i >= length-clearEnd) sb.append(c); else { if (!alpha && !Character.isDigit(c)) sb.append(c); else sb.append('*'); } } m_ob...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\Obscure.java
1
请完成以下Java代码
protected List<HalResource<?>> resolveCachedLinks(String[] linkedIds, Cache cache, List<String> notCachedLinkedIds) { ArrayList<HalResource<?>> resolvedResources = new ArrayList<HalResource<?>>(); for (String linkedId : linkedIds) { HalResource<?> resource = (HalResource<?>) cache.get(linkedId); if...
protected Comparator<HalResource<?>> getResourceComparator() { return null; } /** * @return the resolved resources which are currently not cached */ protected abstract List<HalResource<?>> resolveNotCachedLinks(String[] linkedIds, ProcessEngine processEngine); /** * @return the id which identifie...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\hal\cache\HalCachingLinkResolver.java
1
请完成以下Java代码
private static List<LU> mergeLists(final List<LU> list1, final List<LU> list2) { if (list2.isEmpty()) { return list1; } if (list1.isEmpty()) { return list2; } else { final HashMap<HuId, LU> lusNew = new HashMap<>(); list1.forEach(lu -> lusNew.put(lu.getId(), lu)); list2.for...
} } public boolean containsAnyOfHUIds(final Collection<HuId> huIds) { if (huIds.isEmpty()) {return false;} return huIds.contains(getId()) // LU matches || tus.containsAnyOfHUIds(huIds); // any of the TU matches } public void forEachAffectedHU(@NonNull final LUTUCUConsumer consumer) { tus.fo...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\allocation\transfer\LUTUResult.java
1
请完成以下Java代码
public String getPassword() { return password; } public UserDO setPassword(String password) { this.password = password; return this; } public Date getCreateTime() { return createTime; } public UserDO setCreateTime(Date createTime) { this.createTime = cr...
this.deleted = deleted; return this; } @Override public String toString() { return "UserDO{" + "id=" + id + ", username='" + username + '\'' + ", password='" + password + '\'' + ", createTime=" + createTime + ",...
repos\SpringBoot-Labs-master\lab-21\lab-21-cache-redis\src\main\java\cn\iocoder\springboot\lab21\cache\dataobject\UserDO.java
1
请完成以下Java代码
public void onSave(final ICalloutRecord calloutRecord) { final I_AD_User user = calloutRecord.getModel(I_AD_User.class); if (!isMarketingChannelsUseEnforced(user.getAD_Client_ID(), user.getAD_Org_ID())) { return; } if (userDAO.isSystemUser(UserId.ofRepoId(user.getAD_User_ID()))) { return; } bo...
if (mktgChannelDao.retrieveMarketingChannelsCountForUser(UserId.ofRepoId(user.getAD_User_ID())) <= 0) { canBeSaved = false; } if (!canBeSaved) { throw new AdempiereException(MSG_CAN_NOT_REMOVE_CHANNEL).markAsUserValidationError(); } } private boolean isMarketingChannelsUseEnforced(int clientID, int ...
repos\metasfresh-new_dawn_uat\backend\de.metas.marketing\base\src\main\java\de\metas\marketing\base\callout\AD_User_TabCallout.java
1
请完成以下Java代码
public String getExpressionString() { return expressionStr; } @Override public String getFormatedExpressionString() { return expressionStr; } @Override public Set<CtxName> getParameters() { return ImmutableSet.of(); } @Override public String evaluate(final Evaluatee ctx, final boolean ignoreUnparsa...
{ return expressionStr; } public String getConstantValue() { return expressionStr; } @Override public final IStringExpression resolvePartial(final Evaluatee ctx) { return this; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\expression\api\impl\ConstantStringExpression.java
1
请完成以下Java代码
public void onAfterTabSave_WhenElementIdChanged(final I_AD_Tab tab) { updateTranslationsForElement(tab); recreateElementLinkForTab(tab); } private void updateTabFromElement(final I_AD_Tab tab) { final IADElementDAO adElementDAO = Services.get(IADElementDAO.class); final I_AD_Element tabElement = adElement...
{ if (!IElementTranslationBL.DYNATTR_AD_Tab_UpdateTranslations.getValue(tab, true)) { // do not copy translations from element to tab return; } final AdElementId tabElementId = AdElementId.ofRepoIdOrNull(tab.getAD_Element_ID()); if (tabElementId == null) { // nothing to do. It was not yet set r...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\tab\model\interceptor\AD_Tab.java
1
请在Spring Boot框架中完成以下Java代码
public class IncidentStatisticsResultDto { protected String incidentType; protected Integer incidentCount; public IncidentStatisticsResultDto() {} public String getIncidentType() { return incidentType; } public void setIncidentType(String incidentType) { this.incidentType = incidentType; ...
return incidentCount; } public void setIncidentCount(Integer incidentCount) { this.incidentCount = incidentCount; } public static IncidentStatisticsResultDto fromIncidentStatistics(IncidentStatistics statistics) { IncidentStatisticsResultDto dto = new IncidentStatisticsResultDto(); dto.setIncide...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\repository\IncidentStatisticsResultDto.java
2
请完成以下Spring Boot application配置
server: port: 8088 fdfs: soTimeout: 1500 connectTimeout: 600 thumbImage: #thumbImage param width: 150 height: 150 tra
ckerList: #TrackerList参数,支持多个 - 10.11.68.77:22122
repos\springboot-demo-master\fastdfs\src\main\resources\application.yaml
2
请完成以下Java代码
public void setSecure(@Nullable Boolean secure) { this.secure = secure; } public @Nullable Duration getMaxAge() { return this.maxAge; } public void setMaxAge(@Nullable Duration maxAge) { this.maxAge = maxAge; } public @Nullable SameSite getSameSite() { return this.sameSite; } public void setSameSite...
*/ OMITTED(null), /** * SameSite attribute will be set to None. Cookies are sent in both first-party * and cross-origin requests. */ NONE("None"), /** * SameSite attribute will be set to Lax. Cookies are sent in a first-party * context, also when following a link to the origin site. */ LAX...
repos\spring-boot-4.0.1\module\spring-boot-web-server\src\main\java\org\springframework\boot\web\server\Cookie.java
1
请在Spring Boot框架中完成以下Java代码
public class Book { @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long id; private String title; @ManyToOne private Author author; public Book(String title) { this.title = title; } Book() { } public Long getId() { return id; } publ...
public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public Author getAuthor() { return author; } public void setAuthor(Author author) { this.author = author; } }
repos\tutorials-master\persistence-modules\hibernate-exceptions-2\src\main\java\com\baeldung\hibernate\hibernateexception\Book.java
2
请完成以下Java代码
private IArchiveStorage getArchiveStorage( final ClientId adClientId, final StorageType storageType, final AccessMode accessMode) { final ArchiveStorageKey key = ArchiveStorageKey.of(adClientId, storageType, accessMode); return archiveStorages.getOrLoad(key, this::createArchiveStorage); } private IArch...
@Override public IArchiveStorage getArchiveStorage(final Properties ctx, final StorageType storageType, final AccessMode accessMode) { final ClientId adClientId = Env.getClientId(ctx); return getArchiveStorage(adClientId, storageType, accessMode); } /** * Remove all registered {@link IArchiveStorage} classes...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\archive\api\impl\ArchiveStorageFactory.java
1
请在Spring Boot框架中完成以下Java代码
public class FlatrateConditionsExcludedProductsRepository { private final IQueryBL queryBL = Services.get(IQueryBL.class); private final CCache<Integer, FlatrateConditionsExcludedProducts> excludedProductsCache = CCache.<Integer, FlatrateConditionsExcludedProducts>builder() .tableName(I_M_Product_Exclude_Flatrate...
final ImmutableSet<FlatrateConditionsExcludedProducts.GroupTemplateIdAndProductId> exclusions = queryBL .createQueryBuilderOutOfTrx(I_M_Product_Exclude_FlatrateConditions.class) .addOnlyActiveRecordsFilter() .create() .stream() .map(FlatrateConditionsExcludedProductsRepository::fromRecord) .coll...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\order\compensationGroup\FlatrateConditionsExcludedProductsRepository.java
2
请在Spring Boot框架中完成以下Java代码
/* package */class LookupValue<KT extends Object> implements ILookupValue<KT> { private final ILookupTemplate<KT> lookupTemplate; private final KT value; private final boolean mandatoryLookup; public LookupValue(final ILookupTemplate<KT> lookupTemplate, final KT value, final boolean mandatoryLookup) { this.look...
return lookupTemplate; } @Override public KT getValue() { return value; } @Override public boolean isMandatoryLookup() { return mandatoryLookup; } }
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java\de\metas\edi\esb\commons\api\impl\LookupValue.java
2
请完成以下Java代码
private Optional<String> getLookupTableName() { if (lookupTableName != null) { return lookupTableName; } else if (documentFieldBuilder != null) { return documentFieldBuilder.getLookupTableName(); } else { return Optional.empty(); } } public Builder setFieldType(final FieldT...
return this; } public Builder setEmptyFieldText(final ITranslatableString emptyFieldText) { this.emptyFieldText = emptyFieldText; return this; } public Builder trackField(final DocumentFieldDescriptor.Builder field) { documentFieldBuilder = field; return this; } public boolean isSpecialFi...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\descriptor\DocumentLayoutElementFieldDescriptor.java
1
请在Spring Boot框架中完成以下Java代码
protected SecurityFilterChain filterChain(HttpSecurity http) throws Exception { http .headers(h -> h.frameOptions(HeadersConfigurer.FrameOptionsConfig::sameOrigin)) .authorizeHttpRequests(ah -> ah .requestMatchers(HttpMethod.OPTIONS, "/**").permitAll() .re...
} @Bean JwtDecoder jwtDecoder(@Value("${spring.security.oauth2.client.provider.oidc.issuer-uri}") String issuerUri) { return JwtDecoders.fromOidcIssuerLocation(issuerUri); } @Bean public GrantedAuthoritiesMapper userAuthoritiesMapper() { return authorities -> authorities.stream().f...
repos\spring-boot-web-application-sample-master\main-app\main-webapp\src\main\java\gt\app\config\security\SecurityConfig.java
2
请完成以下Java代码
public static boolean isPalindromeString(int number) { String original = String.valueOf(number); String reversed = new StringBuilder(original).reverse() .toString(); return original.equals(reversed); } public static boolean isPalindromeRecursive(int number) { return ...
} int divisor = 1; while (number / divisor >= 10) { divisor *= 10; } while (number != 0) { int leading = number / divisor; int trailing = number % 10; if (leading != trailing) { return false; } nu...
repos\tutorials-master\algorithms-modules\algorithms-numeric\src\main\java\com\baeldung\algorithms\palindrome\PalindromeNumber.java
1
请完成以下Java代码
protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model) throws OperationFailedException { String jobExecutorThreadPoolName = THREAD_POOL_NAME.resolveModelAttribute(context, model).asString(); ServiceName jobExecutorThreadPoolServiceName = ServiceNames.for...
ThreadFactoryService threadFactory = new ThreadFactoryService(); threadFactory.setThreadGroupName(THREAD_POOL_GRP_NAME + name); ServiceName threadFactoryServiceName = ServiceNames.forThreadFactoryService(name); serviceTarget.addService(threadFactoryServiceName, threadFactory).install(); Builder execu...
repos\camunda-bpm-platform-master\distro\wildfly\subsystem\src\main\java\org\camunda\bpm\container\impl\jboss\extension\handler\JobExecutorAdd.java
1
请完成以下Java代码
public List<ProcessInstanceModificationInstructionDto> getStartInstructions() { return startInstructions; } public void setStartInstructions(List<ProcessInstanceModificationInstructionDto> startInstructions) { this.startInstructions = startInstructions; } public boolean isSkipCustomListeners() { r...
return skipIoMappings; } public void setSkipIoMappings(boolean skipIoMappings) { this.skipIoMappings = skipIoMappings; } public boolean isWithVariablesInReturn() { return withVariablesInReturn; } public void setWithVariablesInReturn(boolean withVariablesInReturn) { this.withVariablesInReturn ...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\runtime\StartProcessInstanceDto.java
1
请在Spring Boot框架中完成以下Java代码
public I_C_BPartner_QuickInput getById(@NonNull final BPartnerQuickInputId bpartnerQuickInputId) { final I_C_BPartner_QuickInput bpartnerQuickInput = InterfaceWrapperHelper.load(bpartnerQuickInputId, I_C_BPartner_QuickInput.class); if (bpartnerQuickInput == null) { throw new AdempiereException("Not found " + ...
.create() .list(); } public List<String> getOtherLocationNames( final int bpartnerQuickInputRecordId, final int bpartnerLocationQuickInputIdToExclude) { return queryBL .createQueryBuilder(I_C_BPartner_Location_QuickInput.class) .addEqualsFilter(I_C_BPartner_Location_QuickInput.COLUMNNAME_C_BPar...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\bpartner\quick_input\service\BPartnerQuickInputRepository.java
2
请完成以下Java代码
public JsonHU withDisplayedAttributesOnly(@Nullable final List<String> displayedAttributeCodesOnly) { if (displayedAttributeCodesOnly == null || displayedAttributeCodesOnly.isEmpty()) { return this; } final JsonHUAttributes attributes2New = attributes2.retainOnlyAttributesInOrder(displayedAttributeCodesOnl...
: ImmutableList.copyOf(layoutSections); if (Objects.equals(layoutSectionsNorm, this.layoutSections)) { return this; } else { return toBuilder() .layoutSections(layoutSectionsNorm) .build(); } } }
repos\metasfresh-new_dawn_uat\misc\de-metas-common\de-metas-common-manufacturing\src\main\java\de\metas\common\handlingunits\JsonHU.java
1
请完成以下Java代码
public void setK_IndexLog_ID (int K_IndexLog_ID) { if (K_IndexLog_ID < 1) set_ValueNoCheck (COLUMNNAME_K_IndexLog_ID, null); else set_ValueNoCheck (COLUMNNAME_K_IndexLog_ID, Integer.valueOf(K_IndexLog_ID)); } /** Get Index Log. @return Text search log */ public int getK_IndexLog_ID () { Intege...
public static final String QUERYSOURCE_SelfService = "W"; /** Set Query Source. @param QuerySource Source of the Query */ public void setQuerySource (String QuerySource) { set_Value (COLUMNNAME_QuerySource, QuerySource); } /** Get Query Source. @return Source of the Query */ public String getQuer...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_K_IndexLog.java
1
请完成以下Java代码
public Set<DocumentId> getAddedRowIds() { throw new IllegalArgumentException("changes are not recorded"); } @Override public void collectRemovedRowIds(final Collection<DocumentId> rowIds) {} @Override public Set<DocumentId> getRemovedRowIds() { throw new IllegalArgumentException("changes are not r...
return addedRowIds != null && !addedRowIds.isEmpty(); } @Override public void collectRemovedRowIds(final Collection<DocumentId> rowIds) { if (removedRowIds == null) { removedRowIds = new HashSet<>(rowIds); } else { removedRowIds.addAll(rowIds); } } @Override public Set<Document...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\view\AddRemoveChangedRowIdsCollector.java
1
请完成以下Java代码
private static void applyPkce(OAuth2AuthorizationRequest.Builder builder) { if (isPkceAlreadyApplied(builder)) { return; } String codeVerifier = DEFAULT_SECURE_KEY_GENERATOR.generateKey(); builder.attributes((attrs) -> attrs.put(PkceParameterNames.CODE_VERIFIER, codeVerifier)); builder.additionalParamet...
private static boolean isPkceAlreadyApplied(OAuth2AuthorizationRequest.Builder builder) { AtomicBoolean pkceApplied = new AtomicBoolean(false); builder.additionalParameters((params) -> { if (params.containsKey(PkceParameterNames.CODE_CHALLENGE)) { pkceApplied.set(true); } }); return pkceApplied.get();...
repos\spring-security-main\oauth2\oauth2-client\src\main\java\org\springframework\security\oauth2\client\web\OAuth2AuthorizationRequestCustomizers.java
1
请完成以下Java代码
public IModelCopyHelper setFrom(final Object fromModel) { this._fromModel = fromModel; this._fromModelAccessor = null; return this; } private final IModelInternalAccessor getFromAccessor() { if (_fromModelAccessor == null) { return InterfaceWrapperHelper.getModelInternalAccessor(getFrom()); } retu...
return _toModelAccessor; } public final boolean isSkipCalculatedColumns() { return _skipCalculatedColumns; } @Override public IModelCopyHelper setSkipCalculatedColumns(boolean skipCalculatedColumns) { this._skipCalculatedColumns = skipCalculatedColumns; return this; } @Override public IModelCopyHelpe...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\model\util\ModelCopyHelper.java
1
请在Spring Boot框架中完成以下Java代码
class BPartnerLocationQuery { public enum Type { BILL_TO, SHIP_TO, REMIT_TO } @NonNull BPartnerId bpartnerId; @NonNull Type type; /** * If {@code false}, then bpartner locations with the given type are preferred, but also a location with another type can be returned. * {@code true} by defau...
BPGroupId getBPGroupIdByBPartnerId(BPartnerId bpartnerId); Stream<BPartnerId> streamBPartnerIdsBySalesRepBPartnerId(BPartnerId parentPartnerId); List<BPartnerId> getParentsUpToTheTopInTrx(BPartnerId bpartnerId); boolean isCampaignPriceAllowed(BPartnerId bpartnerId); boolean pricingSystemBelongsToCustomerForPric...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\bpartner\service\IBPartnerDAO.java
2
请完成以下Java代码
public abstract class ForwardingScriptScanner implements IScriptScanner { protected abstract IScriptScanner getDelegate(); @Override public void setScriptScannerFactory(final IScriptScannerFactory scriptScannerFactory) { getDelegate().setScriptScannerFactory(scriptScannerFactory); } @Override public IScriptS...
@Override public IScriptFactory getScriptFactoryToUse() { return getDelegate().getScriptFactoryToUse(); } @Override public boolean hasNext() { return getDelegate().hasNext(); } @Override public IScript next() { return getDelegate().next(); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.migration\de.metas.migration.base\src\main\java\de\metas\migration\scanner\impl\ForwardingScriptScanner.java
1
请完成以下Java代码
public int getMSV3_Server_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_MSV3_Server_ID); if (ii == null) return 0; return ii.intValue(); } @Override public org.compiere.model.I_M_Warehouse_PickingGroup getM_Warehouse_PickingGroup() throws RuntimeException { return get_ValueAsPO(COLUMNNAME_M_Ware...
set_Value (COLUMNNAME_M_Warehouse_PickingGroup_ID, null); else set_Value (COLUMNNAME_M_Warehouse_PickingGroup_ID, Integer.valueOf(M_Warehouse_PickingGroup_ID)); } /** Get Kommissionier-Lagergruppe . @return Kommissionier-Lagergruppe */ @Override public int getM_Warehouse_PickingGroup_ID () { Integer...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma.msv3.server-peer-metasfresh\src\main\java-gen\de\metas\vertical\pharma\msv3\server\model\X_MSV3_Server.java
1
请完成以下Java代码
public String toString() { StringBuffer sb = new StringBuffer ("X_AD_TreeNode[") .append(get_ID()).append("]"); return sb.toString(); } public I_AD_Tree getAD_Tree() throws RuntimeException { return (I_AD_Tree)MTable.get(getCtx(), I_AD_Tree.Table_Name) .getPO(getAD_Tree_ID(), get_...
set_Value (COLUMNNAME_Parent_ID, Integer.valueOf(Parent_ID)); } /** Get Parent. @return Parent of Entity */ public int getParent_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_Parent_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Sequence. @param SeqNo Method of ordering...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_TreeNode.java
1
请完成以下Java代码
public FrontendPrinterDataItem toFrontendPrinterData() { return FrontendPrinterDataItem.builder() .printer(printer) .filename(suggestFilename()) .data(toByteArray()) .build(); } private byte[] toByteArray() { final ByteArrayOutputStream baos = new ByteArrayOutputStream(); try (fina...
.map(PrintingDataAndSegment::getDocumentFileName) .collect(ImmutableSet.toImmutableSet()); return filenames.size() == 1 ? filenames.iterator().next() : "report.pdf"; } } @Value(staticConstructor = "of") private static class PrintingDataAndSegment { @NonNull PrintingData printingData; @NonNull Printi...
repos\metasfresh-new_dawn_uat\backend\de.metas.printing\de.metas.printing.base\src\main\java\de\metas\printing\frontend\FrontendPrinter.java
1
请在Spring Boot框架中完成以下Java代码
public class PermissionIssuer { public static PermissionIssuer MANUAL = new PermissionIssuer("MANUAL"); public static PermissionIssuer AUTO_BP_HIERARCHY = new PermissionIssuer("AUTO_BP_HIERARCHY"); @JsonCreator public static PermissionIssuer ofCode(final String code) { final PermissionIssuer permissionIssuer = ...
private final String code; private PermissionIssuer(@NonNull final String code) { Check.assumeNotEmpty(code, "code is not empty"); this.code = code; } /** * @deprecated use {@link #getCode()} */ @Deprecated public String toString() { return getCode(); } @JsonValue public String getCode() { ret...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\security\permissions\record_access\PermissionIssuer.java
2
请在Spring Boot框架中完成以下Java代码
public class Application { private static final Logger LOGGER = LoggerFactory.getLogger(Application.class); @Bean CommandLineRunner customMybatisMapper(final ManagementService managementService) { return new CommandLineRunner() { @Override public void run(String... args) th...
return (String) CommandContextUtil.getDbSqlSession() .selectOne("selectProcessDefinitionDeploymentIdByKey", "waiter"); } }); LOGGER.info("Process definition deployment id = {}", processDefinitionDeploymentId); } }; ...
repos\flowable-engine-main\modules\flowable-spring-boot\flowable-spring-boot-samples\flowable-spring-boot-sample-custom-mybatis-mapper\src\main\java\flowable\Application.java
2
请完成以下Java代码
public String toString() { final StringBuilder sb = new StringBuilder(getClass().getName()).append("["); if (isNoRestriction()) { sb.append("NO_RESTRICTION"); } else if (isDefault()) { sb.append("DEFAULT"); } else { sb.append(maxRows); } sb.append("]"); return sb.toString(); } /**...
/** * @return true if this is a "no restrictions". */ public boolean isNoRestriction() { return this == NO_RESTRICTION; } /** * @return true if this restriction asks that context defaults (i.e. defined on role level, tab level etc) to be applied. */ public boolean isDefault() { return this == DEFAULT...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\compiere\model\GridTabMaxRows.java
1
请完成以下Java代码
public class MTree_NodeCMS extends X_AD_TreeNodeCMS { /** * */ private static final long serialVersionUID = -8092902713429554718L; /** * Get Tree * @param ctx context * @param AD_Tree_ID tree * @param trxName transaction * @return array of nodes */ public static MTree_NodeCMS[] getTree (Propertie...
} catch (Exception e) { s_log.error("get", e); } try { if (pstmt != null) pstmt.close (); pstmt = null; } catch (Exception e) { pstmt = null; } return retValue; } // get /** Static Logger */ private static Logger s_log = LogManager.getLogger(MTree_NodeCMS.class); /** * Load ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\MTree_NodeCMS.java
1
请在Spring Boot框架中完成以下Java代码
private HUManagerProfilesMap retrieveMap() { final ImmutableListMultimap<HUManagerProfileId, AttributeId> displayedAttributeIdsInOrderByProfileId = retrieveDisplayedAttributeIdsInOrder(); final Map<HUManagerProfileId, HUManagerProfileLayoutSectionList> layoutSectionsByProfileId = retrieveLayoutSectionsInOrder(); ...
return HUManagerProfile.builder() .orgId(OrgId.ofRepoId(record.getAD_Org_ID())) .displayedAttributeIdsInOrder(displayedAttributeIdsInOrderByProfileId.get(profileId)) .layoutSections(layoutSectionsByProfileId.getOrDefault(profileId, HUManagerProfileLayoutSectionList.DEFAULT)) .build(); } @NonNull pri...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.mobileui\src\main\java\de\metas\handlingunits\mobileui\config\HUManagerProfileRepository.java
2
请完成以下Java代码
public ApiRequestAudit getById(@NonNull final ApiRequestAuditId apiRequestAuditId) { final I_API_Request_Audit record = InterfaceWrapperHelper.load(apiRequestAuditId, I_API_Request_Audit.class); return recordToRequestAudit(record); } @NonNull public ApiRequestIterator getByQuery(@NonNull final ApiRequestQuery...
InterfaceWrapperHelper.deleteRecord(record); } @NonNull public static ApiRequestAudit recordToRequestAudit(@NonNull final I_API_Request_Audit record) { return ApiRequestAudit.builder() .apiRequestAuditId(ApiRequestAuditId.ofRepoId(record.getAPI_Request_Audit_ID())) .orgId(OrgId.ofRepoId(record.getAD_Org_...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\audit\apirequest\request\ApiRequestAuditRepository.java
1
请完成以下Java代码
public void setQuery(AbstractQueryDto<?> query) { this.query = query; } public Map<String, Object> getProperties() { return properties; } public void setProperties(Map<String, Object> properties) { this.properties = properties; } @JsonInclude(Include.NON_NULL) public Long getItemCount() { ...
dto.query = TaskQueryDto.fromQuery(filter.getQuery()); } dto.properties = filter.getProperties(); return dto; } public void updateFilter(Filter filter, ProcessEngine engine) { if (getResourceType() != null && !getResourceType().equals(filter.getResourceType())) { throw new InvalidRequestExce...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\runtime\FilterDto.java
1
请完成以下Java代码
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 Issue Status. @param R_IssueStatus_ID Status...
{ if (R_IssueStatus_ID < 1) set_ValueNoCheck (COLUMNNAME_R_IssueStatus_ID, null); else set_ValueNoCheck (COLUMNNAME_R_IssueStatus_ID, Integer.valueOf(R_IssueStatus_ID)); } /** Get Issue Status. @return Status of an Issue */ public int getR_IssueStatus_ID () { Integer ii = (Integer)get_Value(COL...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_R_IssueStatus.java
1
请在Spring Boot框架中完成以下Java代码
public @Nullable Boolean getExcludeFieldsWithoutExposeAnnotation() { return this.excludeFieldsWithoutExposeAnnotation; } public void setExcludeFieldsWithoutExposeAnnotation(@Nullable Boolean excludeFieldsWithoutExposeAnnotation) { this.excludeFieldsWithoutExposeAnnotation = excludeFieldsWithoutExposeAnnotation; ...
public @Nullable String getDateFormat() { return this.dateFormat; } public void setDateFormat(@Nullable String dateFormat) { this.dateFormat = dateFormat; } /** * Enumeration of levels of strictness. Values are the same as those on * {@link com.google.gson.Strictness} that was introduced in Gson 2.11. To ...
repos\spring-boot-4.0.1\module\spring-boot-gson\src\main\java\org\springframework\boot\gson\autoconfigure\GsonProperties.java
2
请完成以下Java代码
public void trigger(DelegateExecution execution, String triggerName, Object triggerData) { ExecutionEntity executionEntity = deleteMessageEventSubScription(execution); leaveIntermediateCatchEvent(executionEntity); } @Override public void eventCancelledByEventGateway(DelegateExecution execut...
) { eventSubscriptionEntityManager.delete(eventSubscription); } } return executionEntity; } public MessageEventDefinition getMessageEventDefinition() { return messageEventDefinition; } public MessageExecutionContext getMessageExecutionContext() { ...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\IntermediateCatchMessageEventActivityBehavior.java
1
请完成以下Java代码
public void addReview(BookReview review) { this.reviews.add(review); review.setBook(this); } public void removeReview(BookReview review) { review.setBook(null); this.reviews.remove(review); } public Long getId() { return id; } public void setId(Long...
public void setIsbn(String isbn) { this.isbn = isbn; } public String getAuthor() { return author; } public void setAuthor(String author) { this.author = author; } public List<BookReview> getReviews() { return reviews; } public void setRev...
repos\Hibernate-SpringBoot-master\HibernateSpringBootDomainEvents\src\main\java\com\bookstore\entity\Book.java
1
请完成以下Java代码
public class MoneySourceAndAcct { @NonNull private final Money source; @NonNull private final Money acct; private MoneySourceAndAcct(@NonNull final Money source, @NonNull final Money acct) { this.source = source; this.acct = acct; } public static MoneySourceAndAcct ofSourceAndAcct(@NonNull final Money sourc...
} public MoneySourceAndAcct multiply(@NonNull final BigDecimal multiplicand) { return newOfSourceAndAcct(source.multiply(multiplicand), acct.multiply(multiplicand)); } public MoneySourceAndAcct negate() { return newOfSourceAndAcct(source.negate(), acct.negate()); } public MoneySourceAndAcct negateIf(final...
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java-legacy\org\compiere\acct\MoneySourceAndAcct.java
1
请完成以下Java代码
public static Date addDate(Object startDate, Object years, Object months, Object days) { LocalDate currentDate = new LocalDate(startDate); currentDate = currentDate.plusYears(intValue(years)); currentDate = currentDate.plusMonths(intValue(months)); currentDate = currentDate.plus...
} public static Date now() { return new LocalDate().toDate(); } protected static Integer intValue(Object value) { Integer intValue = null; if (value instanceof Integer) { intValue = (Integer) value; } else { intValue = Integer.valueOf(value.toStr...
repos\flowable-engine-main\modules\flowable-dmn-engine\src\main\java\org\flowable\dmn\engine\impl\el\util\DateUtil.java
1
请完成以下Java代码
public class ClientTlsVersionExamples { public static CloseableHttpClient setViaSocketFactory() { SSLConnectionSocketFactory sslsf = new SSLConnectionSocketFactory( SSLContexts.createDefault(), new String[] { "TLSv1.2", "TLSv1.3" }, null, SSLConnectionSocketFactory.g...
// Alternatively: // return HttpClients.custom().useSystemProperties().build(); } public static void main(String[] args) throws IOException { // Alternatively: // CloseableHttpClient httpClient = setTlsVersionPerConnection(); // CloseableHttpClient httpClient = setViaSystemPrope...
repos\tutorials-master\apache-httpclient4\src\main\java\com\baeldung\tlsversion\ClientTlsVersionExamples.java
1
请完成以下Java代码
public UpdateProcessInstanceSuspensionStateBuilderImpl byProcessInstanceId(String processInstanceId) { ensureNotNull("processInstanceId", processInstanceId); this.processInstanceId = processInstanceId; return this; } @Override public UpdateProcessInstanceSuspensionStateBuilderImpl byProcessDefinition...
if (isProcessDefinitionTenantIdSet && (processInstanceId != null || processDefinitionId != null)) { throw LOG.exceptionUpdateSuspensionStateForTenantOnlyByProcessDefinitionKey(); } ensureNotNull("commandExecutor", commandExecutor); } public String getProcessDefinitionKey() { return processDefini...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\runtime\UpdateProcessInstanceSuspensionStateBuilderImpl.java
1
请完成以下Java代码
public XhtmlFrameSetDocument appendBody(Element value) { body.addElement(value); return(this); } /** Append to the body element for this XhtmlFrameSetDocument container. @param value adds to the value between the body tags */ public XhtmlFrameSetDocument ap...
*/ public void output(PrintWriter out) { // XhtmlFrameSetDocument is just a convient wrapper for html call html.output html.output(out); } /** Override the toString() method so that it prints something meaningful. */ public final String toString() { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\tools\src\main\java-legacy\org\apache\ecs\XhtmlFrameSetDocument.java
1
请完成以下Java代码
public final String getName() { final Object nameObj = getValue(Action.NAME); return nameObj == null ? "" : nameObj.toString(); } public final KeyStroke getAccelerator() { return (KeyStroke)getValue(ACCELERATOR_KEY); } /** * Install the action and the key bindings to given component. * * @param comp...
} final String actionName = getName(); final ActionMap actionMap = comp.getActionMap(); actionMap.put(actionName, this); final KeyStroke accelerator = getAccelerator(); if (accelerator != null) { final InputMap inputMap = comp.getInputMap(inputMapCondition); inputMap.put(accelerator, actionName); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\grid\ed\VEditorAction.java
1
请在Spring Boot框架中完成以下Java代码
public AppDeploymentQueryImpl deploymentWithoutTenantId() { this.withoutTenantId = true; return this; } @Override public AppDeploymentQueryImpl latest() { if (key == null) { throw new FlowableIllegalArgumentException("latest can only be used together with a deployment ke...
} public String getName() { return name; } public String getNameLike() { return nameLike; } public String getCategory() { return category; } public String getCategoryNotEquals() { return categoryNotEquals; } public String getKey() { re...
repos\flowable-engine-main\modules\flowable-app-engine\src\main\java\org\flowable\app\engine\impl\repository\AppDeploymentQueryImpl.java
2
请完成以下Java代码
public OAuth2AuthorizationRequest deserialize(JsonParser parser, DeserializationContext context) { JsonNode root = context.readTree(parser); return deserialize(parser, context, root); } private OAuth2AuthorizationRequest deserialize(JsonParser parser, DeserializationContext context, JsonNode root) { Authorizat...
return OAuth2AuthorizationRequest.authorizationCode(); } throw new InvalidFormatException(parser, "Invalid authorizationGrantType", authorizationGrantType, AuthorizationGrantType.class); } private static AuthorizationGrantType convertAuthorizationGrantType(JsonNode jsonNode) { String value = JsonNodeUtils....
repos\spring-security-main\oauth2\oauth2-authorization-server\src\main\java\org\springframework\security\oauth2\server\authorization\jackson\OAuth2AuthorizationRequestDeserializer.java
1
请在Spring Boot框架中完成以下Java代码
class DefaultFetchCurrentChargesService implements FetchCurrentChargesService { @Override public CurrentChargesResponse fetch(CurrentChargesRequest request) { List<String> subscriptions = request.getSubscriptionIds(); if (subscriptions == null || subscriptions.isEmpty()) { System.o...
private List<LineItem> mockLineItems(List<String> subscriptions) { return subscriptions .stream() .map(subscription -> LineItem.builder() .subscriptionId(subscription) .quantity(current().nextInt(20)) .amount(new BigDecimal(current().nextDouble(1_000))) ...
repos\tutorials-master\libraries-cli\src\main\java\com\baeldung\jcommander\usagebilling\service\DefaultFetchCurrentChargesService.java
2
请完成以下Java代码
public Group createNewGroup(String groupId) { GroupEntity groupEntity = dataManager.create(); groupEntity.setId(groupId); groupEntity.setRevision(0); // Needed as groups can be transient and not save when they are returned return groupEntity; } @Override public void delete(S...
} @Override public List<Group> findGroupsByNativeQuery(Map<String, Object> parameterMap) { return dataManager.findGroupsByNativeQuery(parameterMap); } @Override public long findGroupCountByNativeQuery(Map<String, Object> parameterMap) { return dataManager.findGroupCountByNativeQuer...
repos\flowable-engine-main\modules\flowable-idm-engine\src\main\java\org\flowable\idm\engine\impl\persistence\entity\GroupEntityManagerImpl.java
1
请完成以下Java代码
private static @NonNull ImmutableSet<TriggerTiming> extractTimings(final I_AD_BusinessRule_Trigger record) { final ImmutableSet.Builder<TriggerTiming> timings = ImmutableSet.builder(); if (record.isOnNew()) { timings.add(TriggerTiming.NEW); } if (record.isOnUpdate()) { timings.add(TriggerTiming.UPDAT...
.map(Validation::sql) .orElse(null); } private static BusinessRuleWarningTarget fromRecord(@NonNull final I_AD_BusinessRule_WarningTarget record) { final String lookupSQL = StringUtils.trimBlankToNull(record.getLookupSQL()); if (lookupSQL == null) { throw new FillMandatoryException(I_AD_BusinessRule_Wa...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\business_rule\descriptor\BusinessRuleLoader.java
1
请完成以下Java代码
private static final class OAuth2DeviceCodeGenerator implements OAuth2TokenGenerator<OAuth2DeviceCode> { private final StringKeyGenerator deviceCodeGenerator = new Base64StringKeyGenerator( Base64.getUrlEncoder().withoutPadding(), 96); @Nullable @Override public OAuth2DeviceCode generate(OAuth2TokenContex...
sb.append(VALID_CHARS[offset]); } sb.insert(4, '-'); return sb.toString(); } } private static final class OAuth2UserCodeGenerator implements OAuth2TokenGenerator<OAuth2UserCode> { private final StringKeyGenerator userCodeGenerator = new UserCodeStringKeyGenerator(); @Nullable @Override public O...
repos\spring-security-main\oauth2\oauth2-authorization-server\src\main\java\org\springframework\security\oauth2\server\authorization\authentication\OAuth2DeviceAuthorizationRequestAuthenticationProvider.java
1
请完成以下Java代码
protected IAllocationResult loadRemaining(final IAllocationRequest request) { // nothing at this level return AllocationUtils.nullResult(); } public final AbstractProducerDestination setM_HU_LUTU_Configuration(final I_M_HU_LUTU_Configuration lutuConfiguration) { assertConfigurable(); _lutuConfiguration = l...
@Override public final IHUProducerAllocationDestination setHUClearanceStatusInfo(final ClearanceStatusInfo huClearanceStatusInfo) { assertConfigurable(); _huClearanceStatusInfo = huClearanceStatusInfo; return this; } public final ClearanceStatusInfo getHUClearanceStatusInfo() { return _huClearanceStatusIn...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\allocation\impl\AbstractProducerDestination.java
1
请完成以下Java代码
public class BigDecimalRestVariableConverter implements RestVariableConverter { @Override public String getRestTypeName() { return "bigDecimal"; } @Override public Class<?> getVariableType() { return BigDecimal.class; } @Override public Object getVariableValue(EngineRe...
} @Override public void convertVariableValue(Object variableValue, EngineRestVariable result) { if (variableValue != null) { if (!(variableValue instanceof BigDecimal)) { throw new FlowableIllegalArgumentException("Converter can only convert big decimal values"); ...
repos\flowable-engine-main\modules\flowable-common-rest\src\main\java\org\flowable\common\rest\variable\BigDecimalRestVariableConverter.java
1
请完成以下Java代码
public String getAccountStatus() { return accountStatus; } public void setAccountStatus(String accountStatus) { this.accountStatus = accountStatus; } public Long getBalanceBegin() { return balanceBegin; } public void setBalanceBegin(Long balanceBegin) { this.ba...
public String getCreateDateBegin() { return createDateBegin; } public void setCreateDateBegin(String createDateBegin) { this.createDateBegin = createDateBegin; } public String getCreateDateEnd() { return createDateEnd; } public void setCreateDateEnd(String createDateEn...
repos\spring-boot-leaning-master\2.x_data\2-4 MongoDB 支持动态 SQL、分页方案\spring-boot-mongodb-page\src\main\java\com\neo\param\AccountPageParam.java
1
请在Spring Boot框架中完成以下Java代码
public class PrometheusCustomMonitor { private Counter requestErrorCount; private Counter orderCount; private DistributionSummary amountSum; private AtomicInteger failCaseNum; private final MeterRegistry registry; @Autowired public PrometheusCustomMonitor(MeterRegistry registry) { ...
failCaseNum = registry.gauge("fail_case_num", new AtomicInteger(0)); } public Counter getRequestErrorCount() { return requestErrorCount; } public Counter getOrderCount() { return orderCount; } public DistributionSummary getAmountSum() { return amountSum; } pub...
repos\springboot-demo-master\prometheus\src\main\java\com\et\prometheus\monitor\PrometheusCustomMonitor.java
2
请完成以下Java代码
public Integer getSort() { return sort; } public void setSort(Integer sort) { this.sort = sort; } public Integer getFactoryStatus() { return factoryStatus; } public void setFactoryStatus(Integer factoryStatus) { this.factoryStatus = factoryStatus; } pu...
public String getLogo() { return logo; } public void setLogo(String logo) { this.logo = logo; } public String getBigPic() { return bigPic; } public void setBigPic(String bigPic) { this.bigPic = bigPic; } public String getBrandStory() { return b...
repos\mall-master\mall-demo\src\main\java\com\macro\mall\demo\dto\PmsBrandDto.java
1
请完成以下Java代码
private static class AuthorizationHandshakeInterceptor implements HandshakeInterceptor { private static final Logger logger = LogManager.getLogger(AuthorizationHandshakeInterceptor.class); @Override public boolean beforeHandshake(@NonNull final ServerHttpRequest request, final @NonNull ServerHttpResponse respon...
logger.warn("Websocket connection not allowed (not logged in) - userSession={}", userSession); response.setStatusCode(HttpStatus.UNAUTHORIZED); return false; } return true; } @Override public void afterHandshake(final @NonNull ServerHttpRequest request, final @NonNull ServerHttpResponse response, ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\websocket\WebsocketConfig.java
1
请完成以下Java代码
public UUID getUuidId() { if (id != null) { return id.getId(); } return null; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((id == null) ? 0 : id.hashCode()); return result; } @SuppressWarnings("rawtypes") @Override
public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; IdBased other = (IdBased) obj; if (id == null) { if (other.id != null) return false; } else if (!id.equals(other.id)) return false; return tru...
repos\thingsboard-master\common\data\src\main\java\org\thingsboard\server\common\data\id\IdBased.java
1
请完成以下Java代码
public void cancelCellEditing() { if (!canStopEditing()) { return ; } clearCurrentEditing(); super.cancelCellEditing(); } private void clearCurrentEditing() { // metas: reset editing coordinates
editingRowIndexModel = -1; editingColumnIndexModel = -1; editingKeyId = -100; if (m_editor instanceof VLookup) { ((VLookup)m_editor).setStopEditing(true); } } public void setActionListener(final ActionListener listener) { actionListener = listener; } } // VCellEditor
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\grid\ed\VCellEditor.java
1
请在Spring Boot框架中完成以下Java代码
public Duration getStep() { return this.step; } public void setStep(Duration step) { this.step = step; } public boolean isEnabled() { return this.enabled; } public void setEnabled(boolean enabled) { this.enabled = enabled; } public Duration getConnectTimeout() { return this.connectTimeout; } pu...
public Duration getReadTimeout() { return this.readTimeout; } public void setReadTimeout(Duration readTimeout) { this.readTimeout = readTimeout; } public Integer getBatchSize() { return this.batchSize; } public void setBatchSize(Integer batchSize) { this.batchSize = batchSize; } }
repos\spring-boot-4.0.1\module\spring-boot-micrometer-metrics\src\main\java\org\springframework\boot\micrometer\metrics\autoconfigure\export\properties\PushRegistryProperties.java
2
请完成以下Java代码
private static File getNewShapeFile() { String filePath = new File(".").getAbsolutePath() + FILE_NAME; JFileDataStoreChooser chooser = new JFileDataStoreChooser("shp"); chooser.setDialogTitle("Save shapefile"); chooser.setSelectedFile(new File(filePath)); int returnVal = choose...
featureStore.setTransaction(transaction); try { featureStore.addFeatures(collection); transaction.commit(); } catch (Exception problem) { problem.printStackTrace(); transaction.rollback(); } finally { tra...
repos\tutorials-master\geotools\src\main\java\com\baeldung\geotools\ShapeFile.java
1
请完成以下Java代码
public class MultipleTbCallback implements TbCallback { @Getter private final UUID id; private final AtomicInteger counter; private final TbCallback callback; public MultipleTbCallback(int count, TbCallback callback) { id = UUID.randomUUID(); this.counter = new AtomicInteger(count);...
} public void onSuccess(int number) { log.trace("[{}][{}] onSuccess({})", id, callback.getId(), number); if (counter.addAndGet(-number) <= 0) { log.trace("[{}][{}] Done.", id, callback.getId()); callback.onSuccess(); } } @Override public void onFailure(T...
repos\thingsboard-master\application\src\main\java\org\thingsboard\server\actors\calculatedField\MultipleTbCallback.java
1
请完成以下Java代码
public Integer getRegistryPort() { return registryPort; } public void setRegistryPort(Integer registryPort) { this.registryPort = registryPort; } public String getServiceUrlPath() { return serviceUrlPath; } public void setServiceUrlPath(String serviceUrlPath) { ...
// nothing to do } @Override public void configure(AbstractEngineConfiguration engineConfiguration) { try { this.processEngineConfig = (ProcessEngineConfiguration) engineConfiguration; if (!disabled) { managementAgent = new DefaultManagementAgent(this); ...
repos\flowable-engine-main\modules\flowable-jmx\src\main\java\org\flowable\management\jmx\JMXConfigurator.java
1
请完成以下Java代码
public class OAuthClientCredentialsFeignManager { private static final Logger logger = LoggerFactory.getLogger(OAuthClientCredentialsFeignManager.class); private final OAuth2AuthorizedClientManager manager; private final Authentication principal; private final ClientRegistration clientRegistration; ...
} @Override public void setAuthenticated(boolean isAuthenticated) throws IllegalArgumentException { } @Override public String getName() { return clientRegistration.getClientId(); } }; } public String getAccessToke...
repos\tutorials-master\spring-cloud-modules\spring-cloud-openfeign\src\main\java\com\baeldung\cloud\openfeign\oauthfeign\OAuthClientCredentialsFeignManager.java
1
请完成以下Java代码
public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getProductName() { return productName; } public void setProductName(String productName) { this.productName = productName; } public Double getPrice() { ...
public void setPrice(Double price) { this.price = price; } public CustomerOrder getCustomerOrder() { return customerOrder; } public void setCustomerOrder(CustomerOrder co) { this.customerOrder = co; } @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name="customerord...
repos\tutorials-master\persistence-modules\spring-data-jpa-repo-3\src\main\java\com\baeldung\spring\data\jpa\joinquery\entities\Product.java
1
请完成以下Java代码
public class Message implements Serializable { private static final long serialVersionUID = 6678420965611108427L; private String from; private String message; public Message() { } public Message(String from, String message) { this.from = from; this.message = message; } ...
", message='" + message + '\'' + '}'; } public String getFrom() { return from; } public void setFrom(String from) { this.from = from; } public String getMessage() { return message; } public void setMessage(String message) { this.message...
repos\SpringAll-master\54.Spring-Boot-Kafka\src\main\java\com\example\demo\domain\Message.java
1
请在Spring Boot框架中完成以下Java代码
ApplicationRunner geography(ReactiveRedisTemplate <String, String> template){ return args -> { var sicily = "Sicily"; var geoTemplate = template.opsForGeo(); var mapOfPoints = Map.of( "Arigento", new Point(13.3619389, 38.11555556), "C...
return args -> { var listTemplate = template.opsForList(); var listName = "spring-team"; var push = listTemplate.leftPushAll(listName, "Madhura", "Stephana", "Dr.Syer", "Yuxin", "Olga", "Violetta"); push .thenMany(listTemplate.leftPop(listName)) ...
repos\SpringBoot-Projects-FullStack-master\Part-9.1. SpringReactive-Redis-Projects\Project-1 SpringReactiveRedis\ReactiveRedisProject\src\main\java\uz\reactiveredis\pro\reactiveredisproject\ReactiveRedisProjectApplication.java
2
请完成以下Java代码
public TimerJobEntityManager getTimerJobEntityManager() { return getSession(TimerJobEntityManager.class); } public SuspendedJobEntityManager getSuspendedJobEntityManager() { return getSession(SuspendedJobEntityManager.class); } public DeadLetterJobEntityManager getDeadLetterJobEntityMa...
public HistoryManager getHistoryManager() { return getSession(HistoryManager.class); } // getters and setters ////////////////////////////////////////////////////// public TransactionContext getTransactionContext() { return transactionContext; } public Command<?> getCommand() { ...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\interceptor\CommandContext.java
1
请在Spring Boot框架中完成以下Java代码
public String getTenantId() { return tenantId; } @Override public void setTenantId(String tenantId) { this.tenantId = tenantId; } @Override public Date getCreateTime() { return createTime; } @Override public void setCreateTime(Date createTime) { thi...
return scopeType; } @Override public void setScopeType(String scopeType) { this.scopeType = scopeType; } protected String getJobByteArrayRefAsString(ByteArrayRef jobByteArrayRef) { if (jobByteArrayRef == null) { return null; } return jobByteArrayRef.asSt...
repos\flowable-engine-main\modules\flowable-job-service\src\main\java\org\flowable\job\service\impl\persistence\entity\HistoryJobEntityImpl.java
2
请完成以下Java代码
public String getColumnName() { return attributeName; } @Override public boolean isMandatory() { return mandatory; } public Object readValue(final I_M_AttributeInstance ai) { return readMethod.apply(ai); } private void writeValue(final I_M_AttributeInstance ai, final IDocumentFieldView f...
} public I_M_AttributeInstance createAndSaveM_AttributeInstance(final I_M_AttributeSetInstance asiRecord, final IDocumentFieldView asiField) { final I_M_AttributeInstance aiRecord = InterfaceWrapperHelper.newInstance(I_M_AttributeInstance.class, asiRecord); aiRecord.setM_AttributeSetInstance(asiRecord); a...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\pattribute\ASIDescriptorFactory.java
1
请在Spring Boot框架中完成以下Java代码
public class FileUploadController { private final StorageService storageService; @Autowired public FileUploadController(StorageService storageService) { this.storageService = storageService; } @GetMapping("/") public String listUploadedFiles(Model model) throws IOException { ...
} @PostMapping("/") public String handleFileUpload(@RequestParam("file") MultipartFile file, RedirectAttributes redirectAttributes) { storageService.store(file); redirectAttributes.addFlashAttribute("message", "You successfully uploaded " + fi...
repos\SpringBootLearning-master\springboot-upload-file\src\main\java\com\forezp\web\FileUploadController.java
2
请在Spring Boot框架中完成以下Java代码
public class JsonProperties { private String host; private int port; private boolean resend; private List<String> topics; private LinkedHashMap<String, ?> sender; public LinkedHashMap<String, ?> getSender() { return sender; } public void setSender(LinkedHashMap<String, ?> ...
return port; } public void setPort(int port) { this.port = port; } public boolean isResend() { return resend; } public void setResend(boolean resend) { this.resend = resend; } public String getHost() { return host; } public void setHost(String...
repos\tutorials-master\spring-boot-modules\spring-boot-properties-3\src\main\java\com\baeldung\properties\json\JsonProperties.java
2
请在Spring Boot框架中完成以下Java代码
class StockAvailabilityWebServiceImpl { private static final Logger logger = LoggerFactory.getLogger(StockAvailabilityWebServiceImpl.class); private final MSV3ServerAuthenticationService authService; private final StockAvailabilityService stockAvailabilityService; private final StockAvailabilityServerJAXBConverter...
final JAXBElement<?> jaxbResponse = jaxbConverters.encodeResponseToClient(stockAvailabilityResponse); logXML("getStockAvailability - response", jaxbResponse); return jaxbResponse; } private static void logXML(final String name, final JAXBElement<?> element) { if (!logger.isDebugEnabled()) { return; } ...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma.msv3.server\src\main\java\de\metas\vertical\pharma\msv3\server\stockAvailability\StockAvailabilityWebServiceImpl.java
2
请完成以下Java代码
public void sendHtmlMail( String to, String subject, String content ) { //使用MimeMessage,MIME协议 MimeMessage message = mailSender.createMimeMessage(); MimeMessageHelper helper; //MimeMessageHelper帮助我们设置更丰富的内容 try { helper = new MimeMessageHelper(message,...
helper.setText(content, true); FileSystemResource file = new FileSystemResource(new File(filePath)); String fileName = file.getFilename(); helper.addAttachment(fileName, file);//添加附件,可多次调用该方法添加多个附件 mailSender.send(message); logger.info("发送带附件邮件成功"); } ...
repos\springboot-demo-master\mail\src\main\java\com\et\mail\util\MailUtils.java
1
请完成以下Java代码
public void inValidateScheds(final I_C_BPartner bpartner) { // // Services final IShipmentSchedulePA shipmentSchedulesRepo = Services.get(IShipmentSchedulePA.class); final IBPartnerBL bpartnerBL = Services.get(IBPartnerBL.class); final boolean isBPAllowConsolidateInOut = bpartnerBL.isAllowConsolidateInOutEf...
{ if (sched.isAllowConsolidateInOut() == allowConsolidateInOut) { return; } sched.setAllowConsolidateInOut(allowConsolidateInOut); InterfaceWrapperHelper.saveRecord(sched); // note that we do not need to invalidate the current sched explicitly.. // it will be updated as part of the segment, unless it...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\inoutcandidate\modelvalidator\C_BPartner_ShipmentSchedule.java
1
请完成以下Java代码
public void setLengthInCm (int LengthInCm) { set_Value (COLUMNNAME_LengthInCm, Integer.valueOf(LengthInCm)); } /** Get Length In Cm. @return Length In Cm */ @Override public int getLengthInCm () { Integer ii = (Integer)get_Value(COLUMNNAME_LengthInCm); if (ii == null) return 0; return ii.intValu...
public void setPackageContent (java.lang.String PackageContent) { set_Value (COLUMNNAME_PackageContent, PackageContent); } /** Get Package Content. @return Package Content */ @Override public java.lang.String getPackageContent () { return (java.lang.String)get_Value(COLUMNNAME_PackageContent); } /** ...
repos\metasfresh-new_dawn_uat\backend\de.metas.shipper.gateway.dpd\src\main\java-gen\de\metas\shipper\gateway\dpd\model\X_DPD_StoreOrderLine.java
1
请在Spring Boot框架中完成以下Java代码
@Nullable DateTimeFormatter getDateFormatter() { return this.dateFormatter; } @Nullable String getDatePattern() { return this.datePattern; } @Nullable DateTimeFormatter getTimeFormatter() { return this.timeFormatter; } @Nullable DateTimeFormatter getDateTimeFormatter() { return this.dateTimeFormatter; ...
private static @Nullable DateTimeFormatter formatter(@Nullable String pattern) { return StringUtils.hasText(pattern) ? DateTimeFormatter.ofPattern(pattern).withResolverStyle(ResolverStyle.SMART) : null; } private static boolean isIso(@Nullable String pattern) { return "iso".equalsIgnoreCase(pattern); } pr...
repos\spring-boot-4.0.1\core\spring-boot-autoconfigure\src\main\java\org\springframework\boot\autoconfigure\web\format\DateTimeFormatters.java
2
请完成以下Java代码
public class JsonKPIFieldLayout { public static JsonKPIFieldLayout field(final KPIField kpiField, final KPIJsonOptions jsonOpts) { final boolean isOffsetField = false; return new JsonKPIFieldLayout(kpiField, isOffsetField, jsonOpts); } public static JsonKPIFieldLayout offsetField(final KPIField kpiField, final...
public JsonKPIFieldLayout(final KPIField kpiField, final boolean isOffsetField, final KPIJsonOptions jsonOpts) { final String adLanguage = jsonOpts.getAdLanguage(); // Caption if (isOffsetField) { caption = kpiField.getOffsetCaption(adLanguage); } else { caption = kpiField.getCaption(adLanguage); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\dashboard\json\JsonKPIFieldLayout.java
1
请在Spring Boot框架中完成以下Java代码
public static ApiAuditConfigsMap ofList(@NonNull final List<ApiAuditConfig> list) { return !list.isEmpty() ? new ApiAuditConfigsMap(list) : EMPTY; } private static final ApiAuditConfigsMap EMPTY = new ApiAuditConfigsMap(); private final ImmutableList<ApiAuditConfig> configs; private final ImmutableMap<ApiAudit...
public ImmutableList<ApiAuditConfig> getActiveConfigsByOrgId(@NonNull final OrgId orgId) { return configs.stream() .filter(ApiAuditConfig::isActive) .filter(config -> config.getOrgId().isAny() || OrgId.equals(config.getOrgId(), orgId)) .collect(ImmutableList.toImmutableList()); } @NonNull publi...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\audit\config\ApiAuditConfigsMap.java
2
请完成以下Java代码
public void setSystemStatus (final java.lang.String SystemStatus) { set_Value (COLUMNNAME_SystemStatus, SystemStatus); } @Override public java.lang.String getSystemStatus() { return get_ValueAsString(COLUMNNAME_SystemStatus); } @Override public void setUserAgent (final @Nullable java.lang.String UserAgen...
set_ValueNoCheck (COLUMNNAME_UserName, UserName); } @Override public java.lang.String getUserName() { return get_ValueAsString(COLUMNNAME_UserName); } @Override public void setVersion (final java.lang.String Version) { set_ValueNoCheck (COLUMNNAME_Version, Version); } @Override public java.lang.Strin...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_Issue.java
1
请完成以下Java代码
public class Travel { private ArrayList<City> travel = new ArrayList<>(); private ArrayList<City> previousTravel = new ArrayList<>(); public Travel(int numberOfCities) { for (int i = 0; i < numberOfCities; i++) { travel.add(new City()); } } public void generateInitialT...
private int generateRandomIndex() { return (int) (Math.random() * travel.size()); } public City getCity(int index) { return travel.get(index); } public int getDistance() { int distance = 0; for (int index = 0; index < travel.size(); index++) { City starting ...
repos\tutorials-master\algorithms-modules\algorithms-genetic\src\main\java\com\baeldung\algorithms\ga\annealing\Travel.java
1
请完成以下Java代码
public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(DataStore.class, BPMN_ELEMENT_DATA_STORE) .namespaceUri(BPMN20_NS) .extendsType(RootElement.class) .instanceProvider(new ModelTypeInstanceProvider<DataStore>() { publi...
@Override public Integer getCapacity() { return capacityAttribute.getValue(this); } @Override public void setCapacity(Integer capacity) { capacityAttribute.setValue(this, capacity); } @Override public Boolean isUnlimited() { return isUnlimitedAttribute.getValue(this); } @Override publ...
repos\camunda-bpm-platform-master\model-api\bpmn-model\src\main\java\org\camunda\bpm\model\bpmn\impl\instance\DataStoreImpl.java
1
请在Spring Boot框架中完成以下Java代码
public SampleOidEntity create(Request request, Response response) { SampleOidEntity entity = request.getBodyAs(SampleOidEntity.class, "Resource details not provided"); SampleOidEntity saved = service.create(entity); // Construct the response for create... response.setResponseCreated(); ...
public void update(Request request, Response response) { String id = request.getHeader(Constants.Url.SAMPLE_ID, "No resource ID supplied"); SampleOidEntity entity = request.getBodyAs(SampleOidEntity.class, "Resource details not provided"); entity.setId(Identifiers.MONGOID.parse(id)); ser...
repos\tutorials-master\microservices-modules\rest-express\src\main\java\com\baeldung\restexpress\objectid\SampleOidEntityController.java
2
请完成以下Java代码
public class SubrangeMethodArgumentResolver<P> implements HandlerMethodArgumentResolver { private final CursorStrategy<P> cursorStrategy; public SubrangeMethodArgumentResolver(CursorStrategy<P> cursorStrategy) { Assert.notNull(cursorStrategy, "CursorStrategy is required"); this.cursorStrategy = cursorStrategy;...
count = environment.getArgument("last"); if (cursor != null || count != null) { forward = false; } } P pos = (cursor != null) ? this.cursorStrategy.fromCursor(cursor) : null; return createSubrange(pos, count, forward); } /** * Allows subclasses to create an extension of {@link Subrange}. * @param...
repos\spring-graphql-main\spring-graphql\src\main\java\org\springframework\graphql\data\method\annotation\support\SubrangeMethodArgumentResolver.java
1
请完成以下Spring Boot application配置
spring: application: name: spring-boot-actuator server: port: 8080 logging: pattern: level: ${spring.application.name:},%X{traceId:-},%X{spanId:-} management: # server: # port: 8088 # address: 127.0.0.1 endpoints: jmx: exposure: include: health,info web: discovery: ...
ethods: "GET,POST" observations: key-values: application: ${spring.application.name} tracing: sampling: probability: 1.0 prometheus: metrics: export: pushgateway: enabled: true
repos\spring-boot-best-practice-master\spring-boot-actuator\src\main\resources\application.yml
2
请完成以下Java代码
private static Object combineValue(@Nullable final Object target, @Nullable final Object source) { if (source instanceof Map) { //noinspection unchecked final Map<String, Object> sourceMap = (Map<String, Object>)source; final LinkedHashMap<String, Object> result = new LinkedHashMap<>(); if (target in...
deepCopyInto(result, sourceMap); return result; } } else { return source; } } public JsonMessages toJson() { return JsonMessages.builder() .language(adLanguage) .messages(map) .build(); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\i18n\AdMessagesTree.java
1
请完成以下Java代码
private static OrderAndLineId extractOrderAndLineId(final I_C_OrderLine record) {return OrderAndLineId.ofRepoIds(record.getC_Order_ID(), record.getC_OrderLine_ID());} @ModelChange(timings = ModelValidator.TYPE_AFTER_CHANGE) public void onBeforeChange(final I_C_OrderLine record) { final OrderCostDetailOrderLinePar...
{ return null; // no changes } return lineInfo; } @ModelChange(timings = ModelValidator.TYPE_BEFORE_DELETE) public void onBeforeDelete(final I_C_OrderLine record) { if (InterfaceWrapperHelper.isUIAction(record)) { orderCostService.deleteByCreatedOrderLineId(extractOrderAndLineId(record)); } } }
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\order\costs\interceptor\C_OrderLine.java
1
请完成以下Java代码
public String getPassword() { return this.password; } public void setPassword(String password) { this.password = password; } public String getIndexName() { return this.indexName; } public void setIndexName(String indexName) { this.indexName = indexName; } public int getMaxAttempts() { ...
public String getUri() { return this.uri; } public void setUri(String uri) { this.uri = cleanUri(uri); } private static String cleanUri(String contextPath) { if (StringUtils.hasText(contextPath) && contextPath.endsWith("/")) { return contextPath.substring(0, contextPath.length() - 1); } ret...
repos\initializr-main\initializr-actuator\src\main\java\io\spring\initializr\actuate\stat\StatsProperties.java
1
请完成以下Java代码
public int getA_Depreciation_Table_Header_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_A_Depreciation_Table_Header_ID); if (ii == null) return 0; return ii.intValue(); } /** Get Record ID/ColumnName @return ID/ColumnName pair */ public KeyNamePair getKeyNamePair() { ...
*/ public String getDescription () { return (String)get_Value(COLUMNNAME_Description); } /** Set Processed. @param Processed The document has been processed */ public void setProcessed (boolean Processed) { set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); } /** Get Processed. @retu...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_A_Depreciation_Table_Header.java
1