instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
public VariableMap execute(CommandContext commandContext) { final TaskManager taskManager = commandContext.getTaskManager(); TaskEntity task = taskManager.findTaskById(resourceId); ensureNotNull(BadUserRequestException.class, "Cannot find task with id '" + resourceId + "'.", "task", task); checkGetTas...
result.put(formField.getId(), createVariable(formField, task)); } } } // collect remaining variables from task scope and parent scopes task.collectVariables(result, formVariableNames, false, deserializeObjectValues); return result; } protected void checkGetTaskFormVariables(TaskEnti...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\cmd\GetTaskFormVariablesCmd.java
1
请完成以下Java代码
public class AstLambdaInvocation extends AstRightValue { private final AstNode lambdaNode; private final AstParameters params; public AstLambdaInvocation(AstNode lambdaNode, AstParameters params) { this.lambdaNode = lambdaNode; this.params = params; } @Override public void appe...
@Override public int getCardinality() { return 2; } @Override public AstNode getChild(int i) { return i == 0 ? lambdaNode : i == 1 ? params : null; } @Override public String toString() { return lambdaNode.toString() + params.toString(); } }
repos\flowable-engine-main\modules\flowable-engine-common\src\main\java\org\flowable\common\engine\impl\de\odysseus\el\tree\impl\ast\AstLambdaInvocation.java
1
请完成以下Java代码
public String getCallbackId() { return callbackId; } public Set<String> getCallbackIds() { return callbackIds; } public String getCallbackType() { return callbackType; } public String getParentCaseInstanceId() { return parentCaseInstanceId; } public St...
public Date getStartedAfter() { return startedAfter; } public void setStartedAfter(Date startedAfter) { this.startedAfter = startedAfter; } public String getStartedBy() { return startedBy; } public void setStartedBy(String startedBy) { this.startedBy = startedB...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\ProcessInstanceQueryImpl.java
1
请完成以下Java代码
public class UserServlet extends HttpServlet { @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); forwardRequest(request, response, "/WEB-INF/jsp/result.jsp"); } ...
protected String getRequestParameter(HttpServletRequest request, String name) { String param = request.getParameter(name); return !param.isEmpty() ? param : getInitParameter(name); } protected String getContextParameter(String name) { return getServletContext().getInitParameter(name...
repos\tutorials-master\web-modules\jakarta-servlets-2\src\main\java\com\baeldung\UserServlet.java
1
请完成以下Java代码
public double getWidth() { return width; } // getWidth /** * Get Height * @return height */ public double getHeight() { return height; } // getHeight /*************************************************************************/ /** * Hash Code * @return hash code */ public int hashCode() ...
Dimension2D d = (Dimension2D)obj; if (d.getWidth() == width && d.getHeight() == height) return true; } return false; } // equals /** * String Representation * @return info */ public String toString() { StringBuffer sb = new StringBuffer(); sb.append("Dimension2D[w=").append(width).append(",h...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\print\layout\Dimension2DImpl.java
1
请完成以下Java代码
public void setMaxAmt (BigDecimal MaxAmt) { set_Value (COLUMNNAME_MaxAmt, MaxAmt); } /** Get Max Amount. @return Maximum Amount in invoice currency */ public BigDecimal getMaxAmt () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MaxAmt); if (bd == null) return Env.ZERO; return bd; } /** S...
if (bd == null) return Env.ZERO; return bd; } /** Set Threshold max. @param ThresholdMax Maximum gross amount for withholding calculation (0=no limit) */ public void setThresholdMax (BigDecimal ThresholdMax) { set_Value (COLUMNNAME_ThresholdMax, ThresholdMax); } /** Get Threshold max. @return...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_Withholding.java
1
请完成以下Java代码
public class TimeseriesDeleteRequest implements CalculatedFieldSystemAwareRequest { private final TenantId tenantId; private final EntityId entityId; private final List<String> keys; private final List<DeleteTsKvQuery> deleteHistoryQueries; private final List<CalculatedFieldId> previousCalculatedFi...
this.previousCalculatedFieldIds = previousCalculatedFieldIds; return this; } public Builder tbMsgId(UUID tbMsgId) { this.tbMsgId = tbMsgId; return this; } public Builder tbMsgType(TbMsgType tbMsgType) { this.tbMsgType = tbMsgType; ...
repos\thingsboard-master\rule-engine\rule-engine-api\src\main\java\org\thingsboard\rule\engine\api\TimeseriesDeleteRequest.java
1
请完成以下Java代码
private final IQuery<I_M_Material_Tracking_Ref> createMaterialTrackingRefQueryForModels(final List<?> models) { final IQueryBuilder<I_M_Material_Tracking_Ref> queryBuilder = createMaterialTrackingRefQueryBuilderForModels(models); if (queryBuilder == null) { return null; } return queryBuilder.create(); }...
// No models provided if (modelFilters.isEmpty()) { return null; } // // Create M_Material_Tracking_Ref query final IQueryBuilder<I_M_Material_Tracking_Ref> materialTrackingRefQueryBuilder = queryBL .createQueryBuilder(I_M_Material_Tracking_Ref.class, getCtx(), getTrxName()) .filter(modelFilters...
repos\metasfresh-new_dawn_uat\backend\de.metas.materialtracking\src\main\java\de\metas\materialtracking\impl\MaterialTrackingQueryCompiler.java
1
请在Spring Boot框架中完成以下Java代码
public String getEmail() { return email; } /** * Sets the value of the email property. * * @param value * allowed object is * {@link String } * */ public void setEmail(String value) { this.email = value; } /** * Gets the value o...
this.comment = value; } /** * Gets the value of the iaccount property. * * @return * possible object is * {@link String } * */ public String getIaccount() { return iaccount; } /** * Sets the value of the iaccount property. * ...
repos\metasfresh-new_dawn_uat\backend\de.metas.shipper.gateway.dpd\src\main\java-xjc\com\dpd\common\service\types\shipmentservice\_3\Address.java
2
请在Spring Boot框架中完成以下Java代码
public class Workplace { @NonNull WorkplaceId id; @NonNull String name; @NonNull WarehouseId warehouseId; @Nullable LocatorId pickFromLocatorId; @Nullable PickingSlotId pickingSlotId; @NonNull SeqNo seqNo; @Nullable PriorityRule priorityRule; @Nullable OrderPickingType orderPickingType; int maxPickingJobs; @...
@Nullable final ImmutableSet<ProductId> productIds, @Nullable final ImmutableSet<ProductCategoryId> productCategoryIds, @Nullable final ImmutableSet<CarrierProductId> carrierProductIds, @Nullable final ImmutableSet<ExternalSystemId> externalSystemIds) { if (pickFromLocatorId != null) { pickFromLocatorI...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\workplace\Workplace.java
2
请在Spring Boot框架中完成以下Java代码
private HttpSession getCurrentHttpSessionOrNull() { final ServletRequestAttributes servletRequestAttributes = (ServletRequestAttributes)RequestContextHolder.getRequestAttributes(); if (servletRequestAttributes == null) { return null; } return servletRequestAttributes.getRequest().getSession(); } priva...
private static ImmutableMap<String, String> computeMessagesMap(@NonNull final ResourceBundle bundle) { final Set<String> keys = bundle.keySet(); final HashMap<String, String> map = new HashMap<>(keys.size()); for (final String key : keys) { // shall not happen if (key == null || key.isBlank()) ...
repos\metasfresh-new_dawn_uat\misc\services\procurement-webui\procurement-webui-backend\src\main\java\de\metas\procurement\webui\service\I18N.java
2
请完成以下Java代码
public void setModel(final ISideActionsGroupsListModel model) { if (this.model == model) { return; } if (this.model != null) { model.getGroups().removeListDataListener(groupsListModelListener); } this.model = model; renderAll(); if (this.model != null) { model.getGroups().addListDataLis...
} private void destroyGroupComponent(final SideActionsGroupPanel groupComp) { groupComp.removePropertyChangeListener(SideActionsGroupPanel.PROPERTY_Visible, groupPanelChangedListener); } protected void refreshUI() { autoHideIfNeeded(); contentPanel.revalidate(); } /** * Auto-hide if no groups or group...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java\org\adempiere\ui\sideactions\swing\SideActionsGroupsListPanel.java
1
请在Spring Boot框架中完成以下Java代码
public class UserService { private final UserRepository userRepository; public UserService(UserRepository userRepository) { this.userRepository = userRepository; } // Optional-based API public Optional<User> findUserByUsername(String username) { return userRepository.findByUsernam...
public User findUserByUsernameOrThrow(String username) { return userRepository.findByUsername(username) .orElseThrow(() -> new UserNotFoundException("User not found: " + username)); } public User findUserByEmailOrThrow(String email) { return userRepository.findByEmail(emai...
repos\tutorials-master\persistence-modules\spring-boot-persistence-5\src\main\java\com\baeldung\exception\service\UserService.java
2
请在Spring Boot框架中完成以下Java代码
public static Optional<DocOutboundConfigId> optionalOfRepoId(final int repoId) { return Optional.ofNullable(ofRepoIdOrNull(repoId)); } @JsonCreator public static DocOutboundConfigId ofObject(@NonNull final Object object) { return RepoIdAwares.ofObject(object, DocOutboundConfigId.class, DocOutboundConfigId::of...
{ this.repoId = Check.assumeGreaterThanZero(repoId, "C_Doc_Outbound_Config_ID"); } @JsonValue public int toJson() { return getRepoId(); } public static boolean equals(@Nullable final DocOutboundConfigId o1, @Nullable final DocOutboundConfigId o2) { return Objects.equals(o1, o2); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.document.archive\de.metas.document.archive.base\src\main\java\de\metas\document\archive\config\DocOutboundConfigId.java
2
请完成以下Java代码
public class AD_User_ChangeMyPassword extends JavaProcess implements IProcessPrecondition { private final IUserBL usersService = Services.get(IUserBL.class); @Param(parameterName = "OldPassword", mandatory = false) private String oldPassword; @Param(parameterName = "NewPassword", mandatory = true) private String ...
{ throw new AdempiereException("Call it from User window"); } // // Get the AD_User_ID and make sure it's the currently logged on. final Properties ctx = getCtx(); // logged in context final UserId adUserId = UserId.ofRepoId(getRecord_ID()); final UserId loggedUserId = Env.getLoggedUserId(ctx); if (!U...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\user\process\AD_User_ChangeMyPassword.java
1
请完成以下Java代码
public String getName() { return name; } public void setName(String name) { this.name = name; } public Integer getAge() { return age; } public void setAge(Integer age) { this.age = age; } public Date getBirthDate() {
return birthDate; } public void setBirthDate(Date birthDate) { this.birthDate = birthDate; } public Gender getGender() { return gender; } public void setGender(Gender gender) { this.gender = gender; } }
repos\tutorials-master\persistence-modules\java-jpa\src\main\java\com\baeldung\jpa\entity\Student.java
1
请完成以下Java代码
public HttpServletRequest getHttpServletRequest() { final RequestAttributes requestAttributes = RequestContextHolder.getRequestAttributes(); if (requestAttributes == null) { return null; } if (!(requestAttributes instanceof ServletRequestAttributes)) { return null; } return ((ServletRequestAttri...
} else if (X_M_Attribute.ATTRIBUTEVALUETYPE_StringMax40.equals(attributeValueType)) { instanceBuilder.valueStr(attributeSet.getValueAsString(attributeCode)); } else if (X_M_Attribute.ATTRIBUTEVALUETYPE_List.equals(attributeValueType)) { instanceBuilder.valueStr(attributeSet.getValueAsString(attri...
repos\metasfresh-new_dawn_uat\backend\de.metas.business.rest-api-impl\src\main\java\de\metas\rest_api\utils\RestApiUtilsV2.java
1
请完成以下Java代码
class POJOModelInternalAccessor implements IModelInternalAccessor { private final POJOWrapper pojoWrapper; POJOModelInternalAccessor(final POJOWrapper pojoWrapper) { super(); this.pojoWrapper = pojoWrapper; } @Override public Set<String> getColumnNames() { return pojoWrapper.getColumnNames(); } @Overr...
final String propertyName; if (idPropertyName.endsWith("_ID")) { propertyName = idPropertyName.substring(0, idPropertyName.length() - 3); } else { throw new AdempiereException("Invalid idPropertyName: " + idPropertyName); } pojoWrapper.setReferencedObject(propertyName, value); } @Override public...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\wrapper\POJOModelInternalAccessor.java
1
请完成以下Java代码
protected final Stream<HuId> streamSelectedHUIds(@NonNull final Select select) { return streamSelectedHUIds(HUEditorRowFilter.select(select)); } protected final Stream<HuId> streamSelectedHUIds(@NonNull final HUEditorRowFilter filter) { return streamSelectedRows(filter) .map(HUEditorRow::getHuId) .filt...
{ final Stream<HuId> huIds = streamSelectedHUIds(filter); return StreamUtils .dice(huIds, 100) .flatMap(huIdsChunk -> handlingUnitsRepo.getByIds(huIdsChunk).stream()); } protected final void addHUIdsAndInvalidateView(Collection<HuId> huIds) { if (huIds.isEmpty()) { return; } getView().addHUI...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\handlingunits\HUEditorProcessTemplate.java
1
请完成以下Java代码
public class JsonUtils { private static final Pattern BASE64_PATTERN = Pattern.compile("^[A-Za-z0-9+/]+={0,2}$"); public static JsonObject getJsonObject(List<KeyValueProto> tsKv) { JsonObject json = new JsonObject(); for (KeyValueProto kv : tsKv) { switch (kv.getType())...
return JsonParser.parseString((String) value); } } else if (value instanceof Boolean) { return new JsonPrimitive((Boolean) value); } else if (value instanceof Double) { return new JsonPrimitive((Double) value); } else if (value instanceof Float) { ...
repos\thingsboard-master\common\transport\transport-api\src\main\java\org\thingsboard\server\common\transport\util\JsonUtils.java
1
请完成以下Java代码
protected void run(final EncryptionService newService, final Path path, String encryptPrefix, String encryptSuffix, String decryptPrefix, String decryptSuffix) throws MojoExecutionException { String decryptedContents = decrypt(path, encryptPrefix, encryptSuffix, decryptPrefix, decryptSuffix); log.info(...
/** * <p>configure.</p> * * @param properties a {@link com.ulisesbocchio.jasyptspringboot.properties.JasyptEncryptorConfigurationProperties} object */ protected abstract void configure(JasyptEncryptorConfigurationProperties properties); /** * <p>setIfNotNull.</p> * * @param s...
repos\jasypt-spring-boot-master\jasypt-maven-plugin\src\main\java\com\ulisesbocchio\jasyptmavenplugin\mojo\AbstractReencryptMojo.java
1
请完成以下Java代码
public final void removeAssignedHUs(final Collection<I_M_HU> husToUnassign) { final Object documentLineModel = getDocumentLineModel(); final String trxName = getTrxName(); final Set<HuId> huIdsToUnassign = husToUnassign.stream() .map(I_M_HU::getM_HU_ID) .map(HuId::ofRepoId) .collect(Collectors.toSet(...
InterfaceWrapperHelper.setThreadInheritedTrxName(huToDestroy); removeAssignedHUs(Collections.singleton(huToDestroy)); final IContextAware contextProvider = InterfaceWrapperHelper.getContextAware(huToDestroy); final IHUContext huContext = Services.get(IHandlingUnitsBL.class).createMutableHUContext(contextProvide...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\document\impl\AbstractHUAllocations.java
1
请完成以下Java代码
public class M_PriceList_Version_RecalculateSeqNo extends JavaProcess { // Services final ITrxManager trxManager = Services.get(ITrxManager.class); final IPriceListDAO priceListDAO = Services.get(IPriceListDAO.class); @Override protected void prepare() { // nothing to do } /** * Recalculates SeqNo in M_Pr...
int seqNumber = 10; final Iterator<I_M_ProductPrice> productPrices = priceListDAO.retrieveProductPricesOrderedBySeqNoAndProductIdAndMatchSeqNo(priceListVersionId); while (productPrices.hasNext()) { final I_M_ProductPrice pp = productPrices.next(); pp.setSeqNo(seqNumber); InterfaceWrapperHelper.save(pp);...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\org\compiere\process\M_PriceList_Version_RecalculateSeqNo.java
1
请完成以下Java代码
public BigDecimal getQty() { return qty; } @Override public I_C_UOM getC_UOM() { return uom; } @Override public IAttributeSet getAttributesFrom() { return attributeStorageFrom; } @Override public IAttributeStorage getAttributesTo() { return attributeStorageTo; } @Override public IHUStorage g...
{ return huStorageTo; } @Override public BigDecimal getQtyUnloaded() { return qtyUnloaded; } @Override public boolean isVHUTransfer() { return vhuTransfer; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\attribute\strategy\impl\HUAttributeTransferRequest.java
1
请完成以下Java代码
public <K, V> Cache<K, V> getCache(String name) throws CacheException { org.springframework.cache.Cache springCache = cacheManager.getCache(name); return new SpringCacheWrapper(springCache); } @SuppressWarnings("rawtypes") static class SpringCacheWrapper implements Cache { private org.springframework.cache.Ca...
@SuppressWarnings("unchecked") @Override public Set keys() { if (springCache.getNativeCache() instanceof Ehcache) { Ehcache ehcache = (Ehcache) springCache.getNativeCache(); return new HashSet(ehcache.getKeys()); } throw new UnsupportedOperationException("invoke spring cache abstract keys method no...
repos\roncoo-pay-master\roncoo-pay-web-boss\src\main\java\com\roncoo\pay\permission\shiro\spring\SpringCacheManagerWrapper.java
1
请完成以下Java代码
public void setC_DocType_ID (int C_DocType_ID) { if (C_DocType_ID < 0) set_Value (COLUMNNAME_C_DocType_ID, null); else set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); } /** Get Belegart. @return Belegart oder Verarbeitungsvorgaben */ @Override public int getC_DocType_ID () {...
@Override public int getM_Shipment_Declaration_Config_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_M_Shipment_Declaration_Config_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Name. @param Name Name */ @Override public void setName (java.lang.String Name) { set_Value (COLU...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_Shipment_Declaration_Config.java
1
请完成以下Java代码
public String getProcessInstanceId() { return processInstanceId; } @Override public String getExecutionId() { return executionId; } @Override public BusinessProcessEventType getType() { return type; } @Override public Date getTimeStamp() { return timeStamp; } @Override public...
@Override public String getTaskId() { if (delegateTask != null) { return delegateTask.getId(); } return null; } @Override public String getTaskDefinitionKey() { if (delegateTask != null) { return delegateTask.getTaskDefinitionKey(); } return null; } @Override public S...
repos\camunda-bpm-platform-master\engine-cdi\core\src\main\java\org\camunda\bpm\engine\cdi\impl\event\CdiBusinessProcessEvent.java
1
请完成以下Spring Boot application配置
server.port=8081 spring.main.allow-bean-definition-overriding=true spring.datasource.url=jdbc:mysql://127.0.0.1:3306/flowable-sample?characterEncoding=UTF-8 spring.datasource.username=root spring.datasource.password=123456 spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spri
ng.servlet.multipart.enabled=true spring.servlet.multipart.max-file-size=100MB spring.servlet.multipart.max-request-size=500MB
repos\spring-boot-quick-master\quick-flowable\src\main\resources\application.properties
2
请在Spring Boot框架中完成以下Java代码
public ObjectMapper jsonObjectMapper() { return JsonObjectMapperHolder.sharedJsonObjectMapper(); } @Bean(Adempiere.BEAN_NAME) public Adempiere adempiere() { // when this is done, Adempiere.getBean(...) is ready to use return Env.getSingleAdempiereInstance(applicationContext); } @Override public void aft...
QuerySelectionToDeleteHelper::deleteScheduledSelectionsNoFail, // command, don't fail because on failure the task won't be re-scheduled so it's game over clearQuerySelectionsRateInSeconds, // initialDelay clearQuerySelectionsRateInSeconds, // period TimeUnit.SECONDS // timeUnit ); logger.info("Clea...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\serverRoot\de.metas.adempiere.adempiere.serverRoot.base\src\main\java\de\metas\ServerBoot.java
2
请完成以下Java代码
public double getValue () { return m_value; } // getValue /** * @param value The data value to set. */ public void setValue (double value) { m_value = value; if (m_label != null) m_labelValue = s_format.format(m_value) + " - " + m_label; else m_labelValue = s_format.format(m_value); } // setVal...
query = MQuery.getEqualQuery("PA_Measure_ID", goal.getPA_Measure_ID()); } else if (getMeasureCalc() != null) // Document { MMeasureCalc mc = getMeasureCalc(); query = mc.getQuery(mGoal.getRestrictions(false), getMeasureDisplay(), getDate(), Env.getUserRolePermissions()); // logged in role } el...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java-legacy\org\adempiere\apps\graph\GraphColumn.java
1
请完成以下Java代码
public abstract class SimpleLookupDescriptorTemplate implements LookupDescriptor, LookupDataSourceFetcher { @Override public final LookupDataSourceFetcher getLookupDataSourceFetcher() { return this; } @Override public final boolean isHighVolume() { // NOTE: method will never be called because isCached() == ...
} @Override @Nullable public abstract LookupValue retrieveLookupValueById(@NonNull LookupDataSourceContext evalCtx); @Override public LookupDataSourceContext.Builder newContextForFetchingList() { return LookupDataSourceContext.builderWithoutTableName(); } @Override public abstract LookupValuesPage retriev...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\descriptor\SimpleLookupDescriptorTemplate.java
1
请完成以下Java代码
public String getHelp () { return (String)get_Value(COLUMNNAME_Help); } /** Set Image Link. @param ImageLink Image Link */ public void setImageLink (String ImageLink) { set_Value (COLUMNNAME_ImageLink, ImageLink); } /** Get Image Link. @return Image Link */ public String getImageLink () { ret...
{ if (ParentMenu_ID < 1) set_Value (COLUMNNAME_ParentMenu_ID, null); else set_Value (COLUMNNAME_ParentMenu_ID, Integer.valueOf(ParentMenu_ID)); } /** Get Parent Menu. @return Parent Menu */ public int getParentMenu_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_ParentMenu_ID); if (ii == nu...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_U_WebMenu.java
1
请完成以下Java代码
public String getName() { return name; } public void setName(String name) { this.name = name; } public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } public String getPhone() { return ...
} public void setLastUpdate(Date lastUpdate) { this.lastUpdate = lastUpdate; } public ContactWithJavaUtilDate() { } public ContactWithJavaUtilDate(String name, String address, String phone, Date birthday, Date lastUpdate) { this.name = name; this.address = address; ...
repos\tutorials-master\spring-boot-modules\spring-boot-data\src\main\java\com\baeldung\jsondateformat\ContactWithJavaUtilDate.java
1
请完成以下Spring Boot application配置
#服务器端口 server: port: 8100 #数据源配置 spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver url: ${blade.datasource.dev.url} username: ${blade.datasource.dev.username} password: ${blad
e.datasource.dev.password} #第三方登陆 social: enabled: true domain: http://127.0.0.1:1888
repos\SpringBlade-master\blade-auth\src\main\resources\application-dev.yml
2
请完成以下Java代码
public Builder setRowId(final DocumentId rowId) { this.rowId = rowId; _rowIdEffective = null; return this; } /** @return view row ID; never null */ public DocumentId getRowId() { if (_rowIdEffective == null) { if (rowId == null) { throw new IllegalStateException("No rowId was prov...
if (jsonValue == null || JSONNullValue.isNull(jsonValue)) { values.remove(fieldName); } else { values.put(fieldName, jsonValue); } return this; } private Map<String, Object> getValues() { return values; } public LookupValue getFieldValueAsLookupValue(final String fieldName) {...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\view\ViewRow.java
1
请完成以下Spring Boot application配置
server: port: 8888 spring: application: name: gateway-application cloud: # Spring Cloud Gateway 配置项,对应 GatewayProperties 类 gateway: # 路由配置项,对应 RouteDefinition 数组 routes: - id: yudaoyuanma # 路由的编号 uri: http://www.iocoder.cn # 路由到的目标地址 predicates: # 断言,作为路由的匹配条件...
.oschina.net # 路由的目标地址 predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组 - Path=/oschina filters: # 过滤器,对请求进行拦截,实现自定义的功能,对应 FilterDefinition 数组 - StripPrefix=1
repos\SpringBoot-Labs-master\labx-08-spring-cloud-gateway\labx-08-sc-gateway-demo01\src\main\resources\application.yaml
2
请在Spring Boot框架中完成以下Java代码
public class ClusterServiceImpl implements ClusterService { private static final Logger logger = LoggerFactory.getLogger(ClusterServiceImpl.class); private Cluster cluster; private Map<String, Bucket> buckets = new ConcurrentHashMap<>(); @PostConstruct private void init() { CouchbaseEnviro...
} }); final List<JsonDocument> docs = new ArrayList<>(); try { asyncBulkGet.toBlocking().forEach(new Action1<JsonDocument>() { public void call(JsonDocument doc) { docs.add(doc); } }); } catch (Exception e) { ...
repos\tutorials-master\persistence-modules\couchbase\src\main\java\com\baeldung\couchbase\spring\service\ClusterServiceImpl.java
2
请完成以下Java代码
public void setExternalSystem_Config_LeichMehl_ProductMapping_ID (final int ExternalSystem_Config_LeichMehl_ProductMapping_ID) { if (ExternalSystem_Config_LeichMehl_ProductMapping_ID < 1) set_ValueNoCheck (COLUMNNAME_ExternalSystem_Config_LeichMehl_ProductMapping_ID, null); else set_ValueNoCheck (COLUMNNAM...
@Override public int getLeichMehl_PluFile_ConfigGroup_ID() { return get_ValueAsInt(COLUMNNAME_LeichMehl_PluFile_ConfigGroup_ID); } @Override public void setM_Product_ID (final int M_Product_ID) { if (M_Product_ID < 1) set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); else set_ValueNoCheck (COLUMNN...
repos\metasfresh-new_dawn_uat\backend\de.metas.externalsystem\src\main\java-gen\de\metas\externalsystem\model\X_ExternalSystem_Config_LeichMehl_ProductMapping.java
1
请完成以下Java代码
public @Nullable String getName() { return this.name; } public @Nullable String getVersion() { return this.version; } public @Nullable Instant getTime() { return this.time; } public @Nullable Map<String, String> getAdditionalProperties() { return this.additionalProperties; }
} /** * Exception thrown when an additional property with a null value is encountered. */ public static class NullAdditionalPropertyValueException extends IllegalArgumentException { public NullAdditionalPropertyValueException(String name) { super("Additional property '" + name + "' is illegal as its value ...
repos\spring-boot-4.0.1\loader\spring-boot-loader-tools\src\main\java\org\springframework\boot\loader\tools\BuildPropertiesWriter.java
1
请完成以下Java代码
public String toString() { StringBuffer sb = new StringBuffer ("X_K_Type[") .append(get_ID()).append("]"); return sb.toString(); } /** Set Description. @param Description Optional short description of the record */ public void setDescription (String Description) { set_Value (CO...
Object oo = get_Value(COLUMNNAME_IsPublicWrite); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Knowldge Type. @param K_Type_ID Knowledge Type */ public void setK_Type_ID (int K_Type_ID) { if (K_Typ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_K_Type.java
1
请在Spring Boot框架中完成以下Java代码
public class SignalEventSubscriptionEntityImpl extends EventSubscriptionEntityImpl implements SignalEventSubscriptionEntity { private static final long serialVersionUID = 1L; // Using json here, but not worth of adding json dependency lib for this private static final String CONFIGURATION_TEMPLATE = "'{'\...
@Override public boolean isProcessInstanceScoped() { String scope = extractScopeFormConfiguration(); return Signal.SCOPE_PROCESS_INSTANCE.equals(scope); } @Override public boolean isGlobalScoped() { String scope = extractScopeFormConfiguration(); return (scope == null) |...
repos\flowable-engine-main\modules\flowable-eventsubscription-service\src\main\java\org\flowable\eventsubscription\service\impl\persistence\entity\SignalEventSubscriptionEntityImpl.java
2
请完成以下Java代码
public static INDArray getGrayImageFeatures(String base, String fileName) throws Exception { log.info("start getImageFeatures [{}]", base + fileName); // 和训练模型时一样的设置 ImageRecordReader imageRecordReader = new ImageRecordReader(RESIZE_HEIGHT, RESIZE_WIDTH, 1); FileSplit fileSplit = new F...
public static void clear(String base, String...fileNames) { for (String fileName : fileNames) { if (null==fileName) { continue; } File file = new File(base + fileName); if (file.exists()) { file.delete(); } } ...
repos\springboot-demo-master\Deeplearning4j\src\main\java\com\et\dl4j\util\ImageFileUtil.java
1
请完成以下Java代码
public int getAD_User_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Description. @param Description Optional short description of the record */ public void setDescription (String Description) { set_Value (COLUMNNAME_D...
*/ public void setName (String Name) { set_Value (COLUMNNAME_Name, Name); } /** Get Name. @return Alphanumeric identifier of the entity */ public String getName () { return (String)get_Value(COLUMNNAME_Name); } /** Get Record ID/ColumnName @return ID/ColumnName pair */ public Ke...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_B_Seller.java
1
请完成以下Java代码
protected void prepare() { ProcessInfoParameter[] para = getParametersAsArray(); for (int i = 0; i < para.length; i++) { String name = para[i].getParameterName(); if (para[i].getParameter() == null) ; else log.error("prepare - Unknown Parameter: " + name); } m_AD_Tree_ID = getRecord_ID(); /...
{ log.info("AD_Tree_ID=" + m_AD_Tree_ID); if (m_AD_Tree_ID == 0) throw new IllegalArgumentException("Tree_ID = 0"); MTree tree = new MTree (getCtx(), m_AD_Tree_ID, get_TrxName()); if (tree == null || tree.getAD_Tree_ID() == 0) throw new IllegalArgumentException("No Tree -" + tree); // if (MTree.TREET...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\process\TreeMaintenance.java
1
请完成以下Java代码
public void postProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application) { ResourceLoader resourceLoader = application.getResourceLoader(); if (resourceLoader == null) { resourceLoader = new DefaultResourceLoader(); } MutablePropertySources prope...
} catch (IllegalArgumentException | FileNotFoundException | UnknownHostException ex) { // We are always ignoring the deprecated resources. This is done in the same way as in the Spring ConfigurationClassParsers // Placeholders not resolvable or resource not found when trying to open it ...
repos\flowable-engine-main\modules\flowable-app-rest\src\main\java\org\flowable\rest\app\properties\BackwardsCompatiblePropertiesLoader.java
1
请完成以下Java代码
public Map<String, Object> getVariables() { return variables; } public void setVariables(Map<String, Object> variables) { this.variables = variables; } public boolean isScope() { return isScope; } public void setScope(boolean isScope) { this.isScope = isScope; ...
@Override public void setWidth(int width) { this.width = width; } @Override public int getHeight() { return height; } @Override public void setHeight(int height) { this.height = height; } @Override public boolean isAsync() { return isAsync; ...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\pvm\process\ActivityImpl.java
1
请在Spring Boot框架中完成以下Java代码
public class InsuranceContractRequiredTemplates { @SerializedName("templateId") private String templateId = null; @SerializedName("careType") private BigDecimal careType = null; public InsuranceContractRequiredTemplates templateId(String templateId) { this.templateId = templateId; return this; } ...
} InsuranceContractRequiredTemplates insuranceContractRequiredTemplates = (InsuranceContractRequiredTemplates) o; return Objects.equals(this.templateId, insuranceContractRequiredTemplates.templateId) && Objects.equals(this.careType, insuranceContractRequiredTemplates.careType); } @Override public...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\alberta\alberta-article-api\src\main\java\io\swagger\client\model\InsuranceContractRequiredTemplates.java
2
请完成以下Java代码
public String getDescription () { return (String)get_Value(COLUMNNAME_Description); } /** Set Invoiced. @param IsInvoiced Is this invoiced? */ public void setIsInvoiced (boolean IsInvoiced) { set_Value (COLUMNNAME_IsInvoiced, Boolean.valueOf(IsInvoiced)); } /** Get Invoiced. @return Is this invo...
set_Value (COLUMNNAME_Name, Name); } /** Get Name. @return Alphanumeric identifier of the entity */ public String getName () { return (String)get_Value(COLUMNNAME_Name); } /** Get Record ID/ColumnName @return ID/ColumnName pair */ public KeyNamePair getKeyNamePair() { r...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_S_ExpenseType.java
1
请完成以下Java代码
public Integer getId() { return id; } public UserProfileDO setId(Integer id) { this.id = id; return this; } public Integer getGender() { return gender; } public UserProfileDO setGender(Integer gender) { this.gender = gender; return this; } ...
public UserProfileDO setTenantId(Integer tenantId) { this.tenantId = tenantId; return this; } public Integer getUserId() { return userId; } public UserProfileDO setUserId(Integer userId) { this.userId = userId; return this; } }
repos\SpringBoot-Labs-master\lab-12-mybatis\lab-12-mybatis-plus-tenant\src\main\java\cn\iocoder\springboot\lab12\mybatis\dataobject\UserProfileDO.java
1
请在Spring Boot框架中完成以下Java代码
public void insertAuthorWithBooks() { Author jn = new Author(); jn.setName("Joana Nimar"); jn.setAge(34); jn.setGenre("History"); Book jn01 = new Book(); jn01.setIsbn("001-JN"); jn01.setTitle("A History of Ancient Prague"); Book jn02 = new Book(); ...
authorRepository.save(author); } @Transactional public void deleteLastBook() { Author author = authorRepository.fetchByName("Joana Nimar"); List<Book> books = author.getBooks(); author.removeBook(books.get(books.size() - 1)); } @Transactional public void deleteFirstBo...
repos\Hibernate-SpringBoot-master\HibernateSpringBootOneToManyUnidirectional\src\main\java\com\bookstore\service\BookstoreService.java
2
请完成以下Java代码
public String getMessage() { return this.message; } public void setMessage(String message) { this.message = message; } @Override public String toString() { return new StringJoiner(", ", "{", "}").add("invalid=" + this.invalid) .add("javaVersion=" + this.javaVersion) .add("language=" + this....
private boolean invalid = true; private final List<String> values; public InvalidDependencyInformation(List<String> values) { this.values = values; } public boolean isInvalid() { return this.invalid; } public List<String> getValues() { return this.values; } @Override public String toStri...
repos\initializr-main\initializr-actuator\src\main\java\io\spring\initializr\actuate\stat\ProjectRequestDocument.java
1
请完成以下Java代码
public static CurrencyConversionTypeId ofRepoIdOrNull(final int repoId) { return repoId > 0 ? ofRepoId(repoId) : null; } public static Optional<CurrencyConversionTypeId> optionalOfRepoId(final int repoId) { return Optional.ofNullable(ofRepoIdOrNull(repoId)); } public static int toRepoId(@Nullable final Curr...
this.repoId = Check.assumeGreaterThanZero(repoId, "C_ConversionType_ID"); } @Override @JsonValue public int getRepoId() { return repoId; } public static boolean equals(@Nullable final CurrencyConversionTypeId currencyConversionTypeId1, @Nullable final CurrencyConversionTypeId currencyConversionTypeId2) { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\money\CurrencyConversionTypeId.java
1
请完成以下Java代码
public String getDescriptionBottomById(@NonNull final OrderId orderId) { return getById(orderId).getDescriptionBottom(); } @Override public String getDescriptionById(@NonNull final OrderId orderId) { return getById(orderId).getDescription(); } @Override public void setShipperId(@NonNull final I_C_Order or...
@Override public PaymentTermId getPaymentTermId(@NonNull final I_C_Order orderRecord) { return PaymentTermId.ofRepoId(orderRecord.getC_PaymentTerm_ID()); } @Override public Money getGrandTotal(@NonNull final I_C_Order order) { final BigDecimal grandTotal = order.getGrandTotal(); return Money.of(grandTotal,...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\order\impl\OrderBL.java
1
请在Spring Boot框架中完成以下Java代码
public List<FilterProperties> getFilters() { return filters; } public void setFilters(List<FilterProperties> filters) { this.filters = filters; } public @Nullable URI getUri() { return uri; } public void setUri(URI uri) { this.uri = uri; } public int getOrder() { return order; } public void set...
} @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } RouteProperties that = (RouteProperties) o; return this.order == that.order && Objects.equals(this.id, that.id) && Objects.equals(this.predicates, that.pr...
repos\spring-cloud-gateway-main\spring-cloud-gateway-server-webmvc\src\main\java\org\springframework\cloud\gateway\server\mvc\config\RouteProperties.java
2
请完成以下Java代码
public ProcessEngineConfigurationImpl setDmnFeelCustomFunctionProviders(List<FeelCustomFunctionProvider> dmnFeelCustomFunctionProviders) { this.dmnFeelCustomFunctionProviders = dmnFeelCustomFunctionProviders; return this; } public boolean isDmnFeelEnableLegacyBehavior() { return dmnFeelEnableLegacyBeha...
public ProcessEngineConfigurationImpl setRemovalTimeUpdateChunkSize(int removalTimeUpdateChunkSize) { this.removalTimeUpdateChunkSize = removalTimeUpdateChunkSize; return this; } /** * @return a exception code interceptor. The interceptor is not registered in case * {@code disableExceptionCode} is co...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\cfg\ProcessEngineConfigurationImpl.java
1
请完成以下Java代码
public ProcessPreconditionsResolution checkPreconditionsApplicable() { final DocumentIdsSelection selectedRowIds = getSelectedRowIds(); if (selectedRowIds.isEmpty()) { return ProcessPreconditionsResolution.rejectBecauseNoSelection(); } return ProcessPreconditionsResolution.accept(); } @Override prote...
.map(recordId -> TableRecordReference.of(I_C_PurchaseCandidate.Table_Name, recordId)) .collect(ImmutableSet.toImmutableSet()); if (purchaseCandidateRefs.isEmpty()) { throw new AdempiereException("@NoSelection@"); } getResult().setRecordsToOpen( purchaseCandidateRefs, PurchaseCandidates2Purchase...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\order\sales\purchasePlanning\process\WEBUI_PurchaseCandidates_PurchaseView_Launcher.java
1
请完成以下Java代码
public final void setBusyMessagePlain(final String message) { m_glassPane.setMessagePlain(message); } /** * Set and start Busy Counter * @param time in seconds */ public void setBusyTimer (int time) { m_glassPane.setBusyTimer (time); } // setBusyTimer /** * Set Maximize Window * @param max...
{ Thread worker = new Thread() { @Override public void run() { setBusy(true); process.run(); setBusy(false); } }; worker.start(); return worker; } // startBatch /** * @return Returns the AD_Form_ID. */ public int getAD_Form_ID () { return p_AD_Form_ID; } // getAD_Window_ID ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\apps\form\FormFrame.java
1
请在Spring Boot框架中完成以下Java代码
protected void configureTopology(@NonNull Environment environment, @NonNull ConnectionEndpointList connectionEndpoints, int connectionCount) { // do nothing! } } public static class CloudFoundryClusterAvailableCondition extends AbstractCloudPlatformAvailableCondition { protected static final String CLOUD...
@NonNull AnnotatedTypeMetadata typeMetadata) { return isNotSupportedCloudPlatform(conditionContext) && super.matches(conditionContext, typeMetadata); } private boolean isNotSupportedCloudPlatform(@NonNull ConditionContext conditionContext) { return conditionContext != null && isNotSupportedCloudPlatform...
repos\spring-boot-data-geode-main\spring-geode-project\spring-geode\src\main\java\org\springframework\geode\config\annotation\ClusterAvailableConfiguration.java
2
请完成以下Java代码
public IHUDisplayNameBuilder setIncludedHUCountSuffix(final String includedHUCountSuffix) { this.includedHUCountSuffix = includedHUCountSuffix; return this; } @Override public boolean isShowHUPINameNextLine() { return showHUPINameNextLine; } @Override public IHUDisplayNameBuilder setShowHUPINameNextLine...
if (parentPIItem == null) { // new HUException("Aggregate HU's parent item has no M_HU_PI_Item; parent-item=" + parentItem) // .setParameter("parent M_HU_PI_Item_ID", parentItem != null ? parentItem.getM_HU_PI_Item_ID() : null) // .throwIfDeveloperModeOrLogWarningElse(logger); return "?"; } HuPac...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\impl\HUDisplayNameBuilder.java
1
请在Spring Boot框架中完成以下Java代码
public class StudentDaoImp implements StudentDao { @Autowired private JdbcTemplate jdbcTemplate; @Override public int add(Student student) { // String sql = "insert into student(sno,sname,ssex) values(?,?,?)"; // Object[] args = { student.getSno(), student.getName(), student.getSex() }; // int[] argTypes = ...
String sql = "delete from student where sno = ?"; Object[] args = { sno }; int[] argTypes = { Types.VARCHAR }; return this.jdbcTemplate.update(sql, args, argTypes); } @Override public List<Map<String, Object>> queryStudentsListMap() { String sql = "select * from student"; return this.jdbcTemplate.queryFor...
repos\SpringAll-master\04.Spring-Boot-JdbcTemplate\src\main\java\com\springboot\dao\impl\StudentDaoImp.java
2
请完成以下Java代码
public Map<String, TaskDefinition> getTaskDefinitions() { return taskDefinitions; } public void setTaskDefinitions(Map<String, TaskDefinition> taskDefinitions) { this.taskDefinitions = taskDefinitions; } public Map<String, Object> getVariables() { return variables; } p...
return revision + 1; } public int getSuspensionState() { return suspensionState; } public void setSuspensionState(int suspensionState) { this.suspensionState = suspensionState; } @Override public boolean isSuspended() { return suspensionState == SuspensionState.SUS...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\persistence\entity\ProcessDefinitionEntity.java
1
请完成以下Java代码
public abstract class DebugMailRestControllerTemplate { @NonNull private final MailService mailService; protected abstract void assertAuth(); protected abstract UserId getLoggedUserId(); protected abstract boolean isLoggedInAsSysAdmin(); @GetMapping("/send") public ResponseEntity<String> sendMail( @Request...
.message(message) .isHtml(isHtml) .loggable(loggable) .build(); assertPermissions(request); mailService.test(request); return ResponseEntity.ok() .contentType(MediaType.TEXT_PLAIN) .body(loggable.getConcatenatedMessages()); } private void assertPermissions(@NonNull final TestMailRequest r...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\email\rest\DebugMailRestControllerTemplate.java
1
请完成以下Java代码
public class ExecutionRequestObservationContext extends Observation.Context { private final ExecutionInput executionInput; private @Nullable ExecutionContext executionContext; private @Nullable ExecutionResult executionResult; public ExecutionRequestObservationContext(ExecutionInput executionInput) { this.exe...
/** * Return the {@link ExecutionResult result} for the request execution. * @since 1.1.4 */ public @Nullable ExecutionResult getExecutionResult() { return this.executionResult; } /** * Set the {@link ExecutionResult result} for the request execution. * @param executionResult the execution result * @s...
repos\spring-graphql-main\spring-graphql\src\main\java\org\springframework\graphql\observation\ExecutionRequestObservationContext.java
1
请完成以下Java代码
public void setA_Ins_Premium (BigDecimal A_Ins_Premium) { set_Value (COLUMNNAME_A_Ins_Premium, A_Ins_Premium); } /** Get Insurance Premium. @return Insurance Premium */ public BigDecimal getA_Ins_Premium () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_A_Ins_Premium); if (bd == null) return En...
/** Set Policy Renewal Date. @param A_Renewal_Date Policy Renewal Date */ public void setA_Renewal_Date (Timestamp A_Renewal_Date) { set_Value (COLUMNNAME_A_Renewal_Date, A_Renewal_Date); } /** Get Policy Renewal Date. @return Policy Renewal Date */ public Timestamp getA_Renewal_Date () { return (Ti...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_A_Asset_Info_Ins.java
1
请在Spring Boot框架中完成以下Java代码
public void setPhone(String phone) { this.phone = phone; } public String getIdNo() { return idNo; } public void setIdNo(String idNo) { this.idNo = idNo; } public String getBankAccountNo() { return bankAccountNo; } public void setBankAccountNo(String ba...
public String getRemark() { return remark; } public void setRemark(String remark) { this.remark = remark; } public String getSign() { return sign; } public void setSign(String sign) { this.sign = sign; } }
repos\roncoo-pay-master\roncoo-pay-service\src\main\java\com\roncoo\pay\trade\vo\AuthProgramInitParamVo.java
2
请在Spring Boot框架中完成以下Java代码
private Retry createRetrySpec() { return Retry.backoff(Long.MAX_VALUE, Duration.ofSeconds(1)) .maxBackoff(maxBackoff) .doBeforeRetry((s) -> this.retryConsumer.accept(s.failure())); } public void markAsChecked(InstanceId instanceId) { this.lastChecked.put(instanceId, Instant.now()); } protected Publisher...
.flatMap(this.checkFn) .then(); } public void stop() { if (this.subscription != null) { this.subscription.dispose(); this.subscription = null; } if (this.scheduler != null) { this.scheduler.dispose(); this.scheduler = null; } } }
repos\spring-boot-admin-master\spring-boot-admin-server\src\main\java\de\codecentric\boot\admin\server\services\IntervalCheck.java
2
请在Spring Boot框架中完成以下Java代码
public @Nullable String getApiKey() { return this.apiKey; } public void setApiKey(@Nullable String apiKey) { this.apiKey = apiKey; } public Duration getConnectionTimeout() { return this.connectionTimeout; } public void setConnectionTimeout(Duration connectionTimeout) { this.connectionTimeout = connecti...
/** * Interval between consecutive ordinary sniff executions. */ private Duration interval = Duration.ofMinutes(5); /** * Delay of a sniff execution scheduled after a failure. */ private Duration delayAfterFailure = Duration.ofMinutes(1); public boolean isEnabled() { return this.enable...
repos\spring-boot-4.0.1\module\spring-boot-elasticsearch\src\main\java\org\springframework\boot\elasticsearch\autoconfigure\ElasticsearchProperties.java
2
请完成以下Java代码
public int getModifiers() { return this.modifiers; } /** * Return the name. * @return the name */ public String getName() { return this.name; } /** * Return the return type. * @return the return type */ public String getReturnType() { return this.returnType; } /** * Return the value. * ...
} /** * Sets the modifiers. * @param modifiers the modifiers * @return this for method chaining */ public Builder modifiers(int modifiers) { this.modifiers = modifiers; return this; } /** * Sets the value. * @param value the value * @return this for method chaining */ public Bu...
repos\initializr-main\initializr-generator\src\main\java\io\spring\initializr\generator\language\groovy\GroovyFieldDeclaration.java
1
请在Spring Boot框架中完成以下Java代码
public String getDocumentPositionNumber() { return documentPositionNumber; } /** * Sets the value of the documentPositionNumber property. * * @param value * allowed object is * {@link String } * */ public void setDocumentPositionNumber(String value) ...
* @return * possible object is * {@link DescriptionType } * */ public DescriptionType getDescription() { return description; } /** * Sets the value of the description property. * * @param value * allowed object is * {@link Descripti...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_ecosio_remadv\at\erpel\schemas\_1p0\documents\DocumentReferenceType.java
2
请完成以下Java代码
public TypedValue createValue(Object value, Map<String, Object> valueInfo) { if (valueInfo == null) { throw new IllegalArgumentException("Cannot create file without valueInfo."); } Object filename = valueInfo.get(VALUE_INFO_FILE_NAME); if (filename == null) { throw new IllegalArgumentExcepti...
builder.setTransient(isTransient(valueInfo)); return builder.create(); } @Override public Map<String, Object> getValueInfo(TypedValue typedValue) { if (!(typedValue instanceof FileValue)) { throw new IllegalArgumentException("Value not of type FileValue"); } FileValue fileValue = (FileValue...
repos\camunda-bpm-platform-master\commons\typed-values\src\main\java\org\camunda\bpm\engine\variable\impl\type\FileValueTypeImpl.java
1
请完成以下Java代码
int[] getBuffer() { return _buf; } int get(int id) { return _buf[id]; } void set(int id, int value) { _buf[id] = value; } boolean empty() { return (_size == 0); } int size() { return _size; } void clear() { ...
void resize(int size, int value) { if (size > _capacity) { resizeBuf(size); } while (_size < size) { _buf[_size++] = value; } } void reserve(int size) { if (size > _capacity) { resizeBuf(size); }...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\collection\dartsclone\details\AutoIntPool.java
1
请在Spring Boot框架中完成以下Java代码
protected void startTimerJobAcquisitionForTenant(String tenantId) { timerJobAcquisitionThreads.get(tenantId).start(); } protected void startAsyncJobAcquisitionForTenant(String tenantId) { asyncJobAcquisitionThreads.get(tenantId).start(); } protected void startResetExpiredJobsForTenant(...
LOGGER.warn("Interrupted while waiting for the timer job acquisition thread to terminate", e); } try { asyncJobAcquisitionThreads.get(tenantId).join(); } catch (InterruptedException e) { LOGGER.warn("Interrupted while waiting for the timer job acquisition thread to termi...
repos\flowable-engine-main\modules\flowable-job-service\src\main\java\org\flowable\job\service\impl\asyncexecutor\multitenant\SharedExecutorServiceAsyncExecutor.java
2
请完成以下Java代码
public boolean isOnlyApprovedForInvoicing() { return params.getParameterAsBool(PARA_OnlyApprovedForInvoicing); } @Override public boolean isConsolidateApprovedICs() { return params.getParameterAsBool(PARA_IsConsolidateApprovedICs); } @Override public boolean isIgnoreInvoiceSchedule() { return params.ge...
public String getPOReference() { return params.getParameterAsString(PARA_POReference); } @Override public BigDecimal getCheck_NetAmtToInvoice() { return params.getParameterAsBigDecimal(PARA_Check_NetAmtToInvoice); } /** * Always returns {@code false}. */ @Override public boolean isAssumeOneInvoice() ...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\invoicecandidate\api\impl\InvoicingParams.java
1
请完成以下Java代码
public Map<String, Object> convert(OAuth2DeviceAuthorizationResponse deviceAuthorizationResponse) { Map<String, Object> parameters = new HashMap<>(); parameters.put(OAuth2ParameterNames.DEVICE_CODE, deviceAuthorizationResponse.getDeviceCode().getTokenValue()); parameters.put(OAuth2ParameterNames.USER_CODE...
} return parameters; } private static long getExpiresIn(OAuth2DeviceAuthorizationResponse deviceAuthorizationResponse) { if (deviceAuthorizationResponse.getDeviceCode().getExpiresAt() != null) { Instant issuedAt = (deviceAuthorizationResponse.getDeviceCode().getIssuedAt() != null) ? deviceAuthoriza...
repos\spring-security-main\oauth2\oauth2-core\src\main\java\org\springframework\security\oauth2\core\http\converter\OAuth2DeviceAuthorizationResponseHttpMessageConverter.java
1
请完成以下Java代码
public DecisionRequirementsDefinition getDecisionRequirementsDefinition(String decisionRequirementsDefinitionId) { try { return commandExecutor.execute(new GetDeploymentDecisionRequirementsDefinitionCmd(decisionRequirementsDefinitionId)); } catch (NullValueException e) { throw new NotValidException(...
} catch (DeploymentResourceNotFoundException e) { throw new NotFoundException(e.getMessage(), e); } } public InputStream getDecisionDiagram(String decisionDefinitionId) { return commandExecutor.execute(new GetDeploymentDecisionDiagramCmd(decisionDefinitionId)); } public InputStream getDecisionRe...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\RepositoryServiceImpl.java
1
请在Spring Boot框架中完成以下Java代码
public class DictWrapper extends BaseEntityWrapper<Dict, DictVO> { private static IDictService dictService; static { dictService = SpringUtil.getBean(IDictService.class); } public static DictWrapper build() { return new DictWrapper(); } @Override public DictVO entityVO(Dict dict) { DictVO dictVO = Bean...
if (Func.equals(dict.getParentId(), CommonConstant.TOP_PARENT_ID)) { dictVO.setParentName(CommonConstant.TOP_PARENT_NAME); } else { Dict parent = dictService.getById(dict.getParentId()); dictVO.setParentName(parent.getDictValue()); } return dictVO; } public List<DictVO> listNodeVO(List<Dict> list) { ...
repos\SpringBlade-master\blade-service\blade-system\src\main\java\org\springblade\system\wrapper\DictWrapper.java
2
请完成以下Java代码
public static class ToInvoiceExclOverride { enum InvoicedQtys { SUBTRACTED, NOT_SUBTRACTED } InvoicedQtys invoicedQtys; /** * Excluding possible receipt quantities with quality issues */ StockQtyAndUOMQty qtysRaw; /** * Computed including possible receipt quality issues, not overridden by ...
*/ StockQtyAndUOMQty qtysCalc; private ToInvoiceExclOverride( @NonNull final InvoicedQtys invoicedQtys, @NonNull final StockQtyAndUOMQty qtysRaw, @NonNull final StockQtyAndUOMQty qtysCalc) { this.qtysRaw = qtysRaw; this.qtysCalc = qtysCalc; this.invoicedQtys = invoicedQtys; StockQtyAndUO...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\invoicecandidate\internalbusinesslogic\InvoiceCandidate.java
1
请完成以下Java代码
public void setDefaultTimerJobAcquireWaitTimeInMillis(int waitTimeInMillis) { for (AsyncExecutor asyncExecutor : tenantExecutors.values()) { asyncExecutor.setDefaultTimerJobAcquireWaitTimeInMillis(waitTimeInMillis); } } public int getDefaultAsyncJobAcquireWaitTimeInMillis() { ...
} } @Override public int getResetExpiredJobsInterval() { return determineAsyncExecutor().getResetExpiredJobsInterval(); } @Override public void setResetExpiredJobsInterval(int resetExpiredJobsInterval) { for (AsyncExecutor asyncExecutor : tenantExecutors.values()) { ...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\asyncexecutor\multitenant\ExecutorPerTenantAsyncExecutor.java
1
请完成以下Java代码
private static ObjectMapper createObjectMapper() { ObjectMapper mapper = new ObjectMapper(); mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); return mapper; } // For testing purposes only protected RestTemplate getRestTemplate() { return this.restTemplate; } protected void updateRequestUrl...
else if (StringUtils.hasText(elastic.getUsername())) { return restTemplateBuilder.basicAuthentication(elastic.getUsername(), elastic.getPassword()); } return restTemplateBuilder; } private static URI determineEntityUrl(Elastic elastic) { String entityUrl = elastic.getUri() + "/" + elastic.getIndexName() + "...
repos\initializr-main\initializr-actuator\src\main\java\io\spring\initializr\actuate\stat\ProjectGenerationStatPublisher.java
1
请完成以下Java代码
private static class OrderLineBasePricingSystemPriceCalculator implements BasePricingSystemPriceCalculator { private final IOrderLineBL orderLineBL = Services.get(IOrderLineBL.class); private final I_C_OrderLine orderLine; private final ConcurrentHashMap<PricingConditionsBreak, Money> basePricesCache = new Conc...
final PricingConditionsBreak pricingConditionsBreak = request.getPricingConditionsBreak(); return basePricesCache.computeIfAbsent(pricingConditionsBreak, this::calculate); } private Money calculate(final PricingConditionsBreak pricingConditionsBreak) { final IPricingResult pricingResult = orderLineBL.compu...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\order\pricingconditions\view\OrderLinePricingConditionsViewFactory.java
1
请完成以下Java代码
public void onMessage(ConsumerRecord receivedRecord, @Nullable Acknowledgment acknowledgment, @Nullable Consumer consumer) { ConsumerRecord convertedConsumerRecord = convertConsumerRecord(receivedRecord); if (this.delegate instanceof AcknowledgingConsumerAwareMessageListener) { this.delegate.onMessage(convertedC...
@SuppressWarnings("unchecked") private static ConsumerRecord rebuildConsumerRecord(ConsumerRecord receivedRecord, Object convertedPayload) { return new ConsumerRecord( receivedRecord.topic(), receivedRecord.partition(), receivedRecord.offset(), receivedRecord.timestamp(), receivedRecord.timestampType(...
repos\spring-kafka-main\spring-kafka\src\main\java\org\springframework\kafka\listener\adapter\ConvertingMessageListener.java
1
请完成以下Java代码
public final class HttpMessageConverterAuthenticationSuccessHandler implements AuthenticationSuccessHandler { private HttpMessageConverter<Object> converter = new MappingJackson2HttpMessageConverter(); private RequestCache requestCache = new HttpSessionRequestCache(); /** * Sets the {@link GenericHttpMessageCon...
/** * A response object used to write the JSON response for successful authentication. * * NOTE: We should be careful about writing {@link Authentication} or * {@link Authentication#getPrincipal()} to the response since it contains * credentials. */ public static final class AuthenticationSuccess { priv...
repos\spring-security-main\web\src\main\java\org\springframework\security\web\authentication\HttpMessageConverterAuthenticationSuccessHandler.java
1
请完成以下Java代码
public class ProfileDatafetcher { private ProfileQueryService profileQueryService; @DgsData(parentType = USER.TYPE_NAME, field = USER.Profile) public Profile getUserProfile(DataFetchingEnvironment dataFetchingEnvironment) { User user = dataFetchingEnvironment.getLocalContext(); String username = user.ge...
@InputArgument("username") String username, DataFetchingEnvironment dataFetchingEnvironment) { Profile profile = queryProfile(dataFetchingEnvironment.getArgument("username")); return ProfilePayload.newBuilder().profile(profile).build(); } private Profile queryProfile(String username) { User current = S...
repos\spring-boot-realworld-example-app-master\src\main\java\io\spring\graphql\ProfileDatafetcher.java
1
请在Spring Boot框架中完成以下Java代码
private static class ProductIdAndAcctSchemaId { @NonNull ProductId productId; @NonNull AcctSchemaId acctSchemaId; } @Value(staticConstructor = "of") private static class ProductCategoryIdAndAcctSchemaId { @NonNull ProductCategoryId productCategoryId; @NonNull AcctSchemaId acctSchemaId; } @Equal...
public ProductCategoryAccountsCollection(final List<ProductCategoryAccounts> productCategoryAccts) { this.productCategoryAccts = Maps.uniqueIndex( productCategoryAccts, productCategoryAcct -> ProductCategoryIdAndAcctSchemaId.of(productCategoryAcct.getProductCategoryId(), productCategoryAcct.getAcctSchema...
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java\de\metas\acct\api\impl\ProductAcctDAO.java
2
请完成以下Java代码
public static ExternalSystemType ofValueOrNull(@Nullable final String value) { final String valueNorm = StringUtils.trimBlankToNull(value); return valueNorm != null ? ofValue(valueNorm) : null; } @NonNull public static ExternalSystemType ofValue(@NonNull final String value) { final String valueNorm = String...
public boolean isLeichUndMehl() {return LeichUndMehl.equals(this);} public boolean isPrintClient() {return PrintClient.equals(this);} public boolean isProCareManagement() {return ProCareManagement.equals(this);} public boolean isShopware6() {return Shopware6.equals(this);} public boolean isOther() {return Other...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\externalsystem\ExternalSystemType.java
1
请在Spring Boot框架中完成以下Java代码
protected EventDefinition getEventDefinitionFromRequest(String eventDefinitionId) { EventDefinition eventDefinition = repositoryService.getEventDefinition(eventDefinitionId); if (eventDefinition == null) { throw new FlowableObjectNotFoundException("Could not find an event definition with id...
* Returns the {@link ChannelDefinition} that is requested. Throws the right exceptions when bad request was made or definition was not found. */ protected ChannelDefinition getChannelDefinitionFromRequest(String channelDefinitionId) { ChannelDefinition channelDefinition = repositoryService.getChannelDe...
repos\flowable-engine-main\modules\flowable-event-registry-rest\src\main\java\org\flowable\eventregistry\rest\service\api\repository\BaseEventDefinitionResource.java
2
请完成以下Java代码
public void setOnMouseUp (String script) { addAttribute ("onmouseup", script); } /** * The onmouseover event occurs when the pointing device is moved onto an * element. This attribute may be used with most elements. * * @param script script */ public void setOnMouseOver (String script) { ...
/** * The onkeypress event occurs when a key is pressed and released over an * element. This attribute may be used with most elements. * * @param script script */ public void setOnKeyPress (String script) { addAttribute ("onkeypress", script); } /** * The onkeydown event occurs when a...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\tools\src\main\java-legacy\org\apache\ecs\xhtml\abbr.java
1
请完成以下Java代码
public class DataScope extends BaseEntity { @Serial private static final long serialVersionUID = 1L; /** * 主键 */ @Schema(description = "主键") @TableId(value = "id", type = IdType.ASSIGN_ID) @JsonSerialize(using = ToStringSerializer.class) private Long id; /** * 菜单主键 */ @Schema(description = "菜单主键") ...
*/ @Schema(description = "数据权限类名") private String scopeClass; /** * 数据权限字段 */ @Schema(description = "数据权限字段") private String scopeColumn; /** * 数据权限类型 */ @Schema(description = "数据权限类型") private Integer scopeType; /** * 数据权限值域 */ @Schema(description = "数据权限值域") private String scopeValue; /** * ...
repos\SpringBlade-master\blade-service-api\blade-system-api\src\main\java\org\springblade\system\entity\DataScope.java
1
请完成以下Java代码
public int getM_Warehouse_Dest_ID() { return get_ValueAsInt(COLUMNNAME_M_Warehouse_Dest_ID); } @Override public void setPackageNetTotal (final @Nullable BigDecimal PackageNetTotal) { set_Value (COLUMNNAME_PackageNetTotal, PackageNetTotal); } @Override public BigDecimal getPackageNetTotal() { final Bi...
@Override public void setShipDate (final @Nullable java.sql.Timestamp ShipDate) { set_Value (COLUMNNAME_ShipDate, ShipDate); } @Override public java.sql.Timestamp getShipDate() { return get_ValueAsTimestamp(COLUMNNAME_ShipDate); } @Override public void setTrackingInfo (final @Nullable java.lang.String T...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_Package.java
1
请完成以下Java代码
protected String determineTargetUrl(final Authentication authentication) { boolean isUser = false; boolean isAdmin = false; final Collection<? extends GrantedAuthority> authorities = authentication.getAuthorities(); for (final GrantedAuthority grantedAuthority : authorities) { ...
if (session == null) { return; } session.removeAttribute(WebAttributes.AUTHENTICATION_EXCEPTION); } public void setRedirectStrategy(final RedirectStrategy redirectStrategy) { this.redirectStrategy = redirectStrategy; } protected RedirectStrategy getRedirectStrategy...
repos\tutorials-master\spring-security-modules\spring-security-web-mvc\src\main\java\com\baeldung\security\MySimpleUrlAuthenticationSuccessHandler.java
1
请在Spring Boot框架中完成以下Java代码
private static final class ExactUrlRequestMatcher implements RequestMatcher { private String processUrl; private ExactUrlRequestMatcher(String processUrl) { this.processUrl = processUrl; } @Override public boolean matches(HttpServletRequest request) { String uri = request.getRequestURI(); String q...
return uri.equals(this.processUrl); } return uri.equals(request.getContextPath() + this.processUrl); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("ExactUrl [processUrl='").append(this.processUrl).append("']"); return sb.toString(); } } }
repos\spring-security-main\config\src\main\java\org\springframework\security\config\annotation\web\configurers\PermitAllSupport.java
2
请完成以下Java代码
public boolean learn(String segmentedTaggedSentence) { Sentence sentence = Sentence.create(segmentedTaggedSentence); return learn(sentence); } /** * 在线学习 * * @param sentence 已分词、标好词性和命名实体的人民日报2014格式的句子 * @return 是否学习成果(失败的原因是句子格式不合法) */ public boolean learn(Sent...
public PerceptronSegmenter getPerceptronSegmenter() { return (PerceptronSegmenter) segmenter; } /** * 获取词性标注器 * * @return */ public PerceptronPOSTagger getPerceptronPOSTagger() { return (PerceptronPOSTagger) posTagger; } /** * 获取命名实体识别器 * ...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\model\perceptron\PerceptronLexicalAnalyzer.java
1
请完成以下Java代码
public void setTrustResolver(AuthenticationTrustResolver trustResolver) { getDefaultAuthorizationManagerFactory().setTrustResolver(trustResolver); } /** * <p> * Sets the default prefix to be added to * {@link org.springframework.security.access.expression.SecurityExpressionRoot#hasAnyRole(String...)} * or ...
* If null or empty, then no default role prefix is used. * </p> * @param defaultRolePrefix the default prefix to add to roles. Default "ROLE_". * @deprecated Use * {@link #setAuthorizationManagerFactory(AuthorizationManagerFactory)} instead */ @Deprecated(since = "7.0") public void setDefaultRolePrefix(@Nul...
repos\spring-security-main\access\src\main\java\org\springframework\security\web\access\expression\DefaultWebSecurityExpressionHandler.java
1
请在Spring Boot框架中完成以下Java代码
public class NotificationRestController { public static final String ENDPOINT = WebConfig.ENDPOINT_ROOT + "/notifications"; @Autowired private UserSession userSession; @Autowired private UserNotificationsService userNotificationsService; @GetMapping("/websocketEndpoint") public final String getWebsocketEndpoi...
userNotificationsService.deleteNotification(adUserId, notificationId); } @DeleteMapping public void deleteByIds(@RequestParam(name = "ids") final String notificationIdsListStr) { userSession.assertLoggedIn(); final UserId adUserId = userSession.getLoggedUserId(); final List<String> notificationIds = Splitt...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\notification\NotificationRestController.java
2
请完成以下Java代码
public class FetchAndLockContextListener implements ServletContextListener { protected static FetchAndLockHandler fetchAndLockHandler; @Override public void contextInitialized(ServletContextEvent sce) { if (fetchAndLockHandler == null) { fetchAndLockHandler = lookupFetchAndLockHandler(); fetchAn...
public static FetchAndLockHandler getFetchAndLockHandler() { return fetchAndLockHandler; } protected FetchAndLockHandler lookupFetchAndLockHandler() { ServiceLoader<FetchAndLockHandler> serviceLoader = ServiceLoader.load(FetchAndLockHandler.class); Iterator<FetchAndLockHandler> iterator = serviceLoader...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\impl\FetchAndLockContextListener.java
1
请在Spring Boot框架中完成以下Java代码
public String getClassDiscriminator() { return this.classDiscriminator; } public void setClassDiscriminator(String classDiscriminator) { this.classDiscriminator = classDiscriminator; } public ClassDiscriminatorMode getClassDiscriminatorMode() { return this.classDiscriminatorMode; } public void setClassDi...
} public void setAllowComments(boolean allowComments) { this.allowComments = allowComments; } /** * Enum representing strategies for JSON property naming. The values correspond to * {@link kotlinx.serialization.json.JsonNamingStrategy} implementations that cannot * be directly referenced. */ public enum...
repos\spring-boot-4.0.1\module\spring-boot-kotlinx-serialization-json\src\main\java\org\springframework\boot\kotlinx\serialization\json\autoconfigure\KotlinxSerializationJsonProperties.java
2
请完成以下Java代码
public static LocatorQRCode ofLocator(@NonNull final I_M_Locator locator) { return builder() .locatorId(LocatorId.ofRepoId(locator.getM_Warehouse_ID(), locator.getM_Locator_ID())) .caption(locator.getValue()) .build(); } public PrintableQRCode toPrintableQRCode() { return PrintableQRCode.builder() ...
public GlobalQRCode toGlobalQRCode() { return LocatorQRCodeJsonConverter.toGlobalQRCode(this); } public ScannedCode toScannedCode() { return ScannedCode.ofString(toGlobalQRCodeJsonString()); } public static boolean isTypeMatching(@NonNull final GlobalQRCode globalQRCode) { return LocatorQRCodeJsonConvert...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\warehouse\qrcode\LocatorQRCode.java
1
请完成以下Java代码
protected org.compiere.model.POInfo initPO (Properties ctx) { org.compiere.model.POInfo poi = org.compiere.model.POInfo.getPOInfo (ctx, Table_Name, get_TrxName()); return poi; } /** Set Beschreibung. @param Description Beschreibung */ @Override public void setDescription (java.lang.String De...
/** Set Produkt. @param M_Product_ID Produkt, Leistung, Artikel */ @Override public void setM_Product_ID (int M_Product_ID) { if (M_Product_ID < 1) set_Value (COLUMNNAME_M_Product_ID, null); else set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Produkt. @return P...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java-gen\de\metas\product\model\X_M_Product_LotNumber_Quarantine.java
1
请完成以下Java代码
public String getErrorCode() { return errorCode; } public void setErrorCode(String errorCode) { this.errorCode = errorCode; } public String getHandlerActivityId() { return handlerActivityId; } public Integer getPrecedence() { // handlers with error code take precedence over catchall-handl...
do { if(this.errorCode.equals(exceptionClass.getName())) { return true; } exceptionClass = exceptionClass.getSuperclass(); } while(exceptionClass != null); return false; } } public void setErrorCodeVariable(String errorCodeVariable) { this.errorCodeVariable = ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\bpmn\parser\ErrorEventDefinition.java
1
请完成以下Java代码
public DocumentFilterList mergeWithNullable(@Nullable final DocumentFilter filter) { return filter != null ? mergeWith(filter) : this; } public Optional<DocumentFilter> getFilterById(@NonNull final String filterId) { final DocumentFilter filter = getFilterByIdOrNull(filterId); return Optional.ofNullable(filt...
if (filter == null) { return defaultValue; } return filter.getParameterValueAsInt(parameterName, defaultValue); } public boolean getParamValueAsBoolean(final String filterId, final String parameterName, final boolean defaultValue) { final DocumentFilter filter = getFilterByIdOrNull(filterId); if (filt...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\document\filter\DocumentFilterList.java
1