instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
public int getM_HU_PI_Item_Product_ID() { return M_HU_PI_Item_Product_ID; } public int getC_Flatrate_DataEntry_ID() { return C_Flatrate_DataEntry_ID; } public static final class Builder { private Integer C_BPartner_ID; private Integer M_Product_ID; private int M_AttributeSetInstance_ID = 0; private...
public Builder setM_AttributeSetInstance_ID(final int M_AttributeSetInstance_ID) { this.M_AttributeSetInstance_ID = M_AttributeSetInstance_ID; return this; } public Builder setM_HU_PI_Item_Product_ID(final int M_HU_PI_Item_Product_ID) { this.M_HU_PI_Item_Product_ID = M_HU_PI_Item_Product_ID; return...
repos\metasfresh-new_dawn_uat\backend\de.metas.procurement.base\src\main\java\de\metas\procurement\base\order\PMMPurchaseCandidateSegment.java
1
请完成以下Java代码
private String traversePreOrder(BinaryTreeModel root) { if (root == null) { return ""; } StringBuilder sb = new StringBuilder(); sb.append(root.getValue()); String pointerRight = "└──"; String pointerLeft = (root.getRight() != null) ? "├──" : "└──"; ...
String paddingForBoth = paddingBuilder.toString(); String pointerRight = "└──"; String pointerLeft = (node.getRight() != null) ? "├──" : "└──"; traverseNodes(sb, paddingForBoth, pointerLeft, node.getLeft(), node.getRight() != null); traverseNodes(sb, paddingForBoth, poin...
repos\tutorials-master\data-structures-2\src\main\java\com\baeldung\printbinarytree\BinaryTreePrinter.java
1
请完成以下Java代码
protected boolean beforeSave(final boolean newRecord) { if (newRecord || is_ValueChanged("C_BP_Group_ID")) { final I_C_BP_Group grp = getBPGroup(); if (grp == null) { throw new AdempiereException("@NotFound@: @C_BP_Group_ID@"); } final BPGroupId parentGroupId = BPGroupId.ofRepoIdOrNull(grp.getP...
+ getC_BPartner_ID(), get_TrxName()); } return success; } // afterSave /** * Before Delete * * @return true */ @Override protected boolean beforeDelete() { return delete_Accounting("C_BP_Customer_Acct") && delete_Accounting("C_BP_Vendor_Acct") && delete_Accounting("C_BP_Employee_Acct"); } ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\MBPartner.java
1
请完成以下Java代码
public void run() { /* * Algorithm: for each execution that is involved in this command context, * * 1) Get its process definition * 2) Verify if its process definitions has any InactiveActivityBehavior behaviours. * 3) If so, verify if there are any executions inact...
FlowNode flowNode = (FlowNode) process.getFlowElement(inactiveExecution.getActivityId(), true); InactiveActivityBehavior inactiveActivityBehavior = ((InactiveActivityBehavior) flowNode.getBehavior()); logger.debug( "...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\agenda\ExecuteInactiveBehaviorsOperation.java
1
请在Spring Boot框架中完成以下Java代码
private Optional<TUPickingTarget> getTUPickingTarget( @NonNull final PickingJob pickingJob, @Nullable final PickingJobLineId lineId) { return pickingJob.getTuPickingTarget(lineId); } public void reopenPickingJobs(@NonNull final ReopenPickingJobRequest request) { final Map<ShipmentScheduleId, List<Picking...
} public PickingJobQtyAvailable getQtyAvailable(@NonNull final PickingJobId pickingJobId, final @NonNull UserId callerId) { return PickingJobGetQtyAvailableCommand.builder() .pickingJobService(this) .warehouseService(warehouseService) .huService(huService) // .pickingJobId(pickingJobId) .ca...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\picking\job\service\PickingJobService.java
2
请完成以下Java代码
public class ExploreSpring5URLPatternUsingRouterFunctions { private RouterFunction<ServerResponse> routingFunction() { return route(GET("/t?st"), serverRequest -> ok().body(fromValue("Path /t?st is accessed"))).andRoute(GET("/test/{*id}"), serverRequest -> ok().body(fromValue(serverRequest.pathVariable("i...
TomcatWebServer server = new TomcatWebServer(tomcat); server.start(); return server; } public static void main(String[] args) { try { new FunctionalWebApplication().start(); } catch (Exception e) { e.printStackTrace(); } } }
repos\tutorials-master\spring-reactive-modules\spring-reactive-2\src\main\java\com\baeldung\reactive\urlmatch\ExploreSpring5URLPatternUsingRouterFunctions.java
1
请在Spring Boot框架中完成以下Java代码
public class ExecutorServiceBean implements ExecutorService { @Resource(mappedName="eis/JcaExecutorServiceConnectionFactory") protected JcaExecutorServiceConnectionFactory executorConnectionFactory; protected JcaExecutorServiceConnection executorConnection; @PostConstruct protected void openConnection(...
protected void closeConnection() { if(executorConnection != null) { executorConnection.closeConnection(); } } public boolean schedule(Runnable runnable, boolean isLongRunning) { return executorConnection.schedule(runnable, isLongRunning); } public Runnable getExecuteJobsRunnable(List<Strin...
repos\camunda-bpm-platform-master\javaee\ejb-service\src\main\java\org\camunda\bpm\container\impl\ejb\ExecutorServiceBean.java
2
请完成以下Java代码
private void dbUpdateErrorMessagesIFA(@NonNull final ImportRecordsSelection selection) { StringBuilder sql; sql = new StringBuilder("UPDATE ") .append(targetTableName + " i ") .append(" SET " + COLUMNNAME_I_IsImported + "='E', " + COLUMNNAME_I_ErrorMsg + "=" + COLUMNNAME_I_ErrorMsg + "||'ERR=Invalid ProdCa...
.append(selection.toSqlWhereClause("i")); DB.executeUpdateAndThrowExceptionOnFail(sql.toString(), ITrx.TRXNAME_ThreadInherited); } public static void dbUpdateIsPriceCopiedToYes(@NonNull final String targetTableName, @NonNull final String columnName) { StringBuilder sql; sql = new StringBuilder("UPDATE ") ...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\product\impexp\MProductImportTableSqlUpdater.java
1
请完成以下Java代码
public class ForEachLoop { public static void main(String[] args) { int[] numbers = { 1, 2, 3, 4, 5 }; List<String> wordsList = new ArrayList<>(); wordsList.add("Java"); wordsList.add("is"); wordsList.add("great!"); Set<String> wordsSet = new HashSet<>(); w...
} } private static void traverseSet(Set<String> wordsSet) { for (String word : wordsSet) { System.out.println(word + " "); } } private static void traverseList(List<String> wordsList) { for (String word : wordsList) { System.out.println(word + " "); ...
repos\tutorials-master\core-java-modules\core-java-lang-syntax\src\main\java\com\baeldung\core\controlstructures\loops\ForEachLoop.java
1
请完成以下Java代码
public BigDecimal retrieveMinimumSumPercentage() { final String minimumPercentageAccepted_Value = sysConfigBL.getValue( SYS_CONFIG_DefaultMinimumPercentage, SYS_CONFIG_DefaultMinimumPercentage_DEFAULT); try { return new BigDecimal(minimumPercentageAccepted_Value); } catch (final NumberFormatException ...
public List<I_M_InOut> retrieveShipmentsWithStatus(@NonNull final I_EDI_Desadv desadv, @NonNull final ImmutableSet<EDIExportStatus> statusSet) { return queryBL.createQueryBuilder(I_M_InOut.class, desadv) .addOnlyActiveRecordsFilter() .addEqualsFilter(I_M_InOut.COLUMNNAME_EDI_Desadv_ID, desadv.getEDI_Desadv_I...
repos\metasfresh-new_dawn_uat\backend\de.metas.edi\src\main\java\de\metas\edi\api\impl\DesadvDAO.java
1
请在Spring Boot框架中完成以下Java代码
public class Saml2AssertionAuthentication extends Saml2Authentication { @Serial private static final long serialVersionUID = -4194323643788693205L; private final Saml2ResponseAssertionAccessor assertion; private final String relyingPartyRegistrationId; public Saml2AssertionAuthentication(Saml2ResponseAssertion...
public static class Builder<B extends Builder<B>> extends Saml2Authentication.Builder<B> { private Saml2ResponseAssertionAccessor assertion; private String relyingPartyRegistrationId; protected Builder(Saml2AssertionAuthentication token) { super(token); this.assertion = token.assertion; this.relyingPa...
repos\spring-security-main\saml2\saml2-service-provider\src\main\java\org\springframework\security\saml2\provider\service\authentication\Saml2AssertionAuthentication.java
2
请完成以下Java代码
public void setUseLifeMonths (int UseLifeMonths) { set_Value (COLUMNNAME_UseLifeMonths, Integer.valueOf(UseLifeMonths)); } /** Get Usable Life - Months. @return Months of the usable life of the asset */ public int getUseLifeMonths () { Integer ii = (Integer)get_Value(COLUMNNAME_UseLifeMonths); if (ii ...
*/ public void setUseLifeYears (int UseLifeYears) { set_Value (COLUMNNAME_UseLifeYears, Integer.valueOf(UseLifeYears)); } /** Get Usable Life - Years. @return Years of the usable life of the asset */ public int getUseLifeYears () { Integer ii = (Integer)get_Value(COLUMNNAME_UseLifeYears); if (ii == n...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_A_Asset_Group_Acct.java
1
请完成以下Java代码
public void setDisplay() { m_text.setText(getDisplay()); final boolean isDatabaseOK = m_value != null && m_value.isDatabaseOK(); // Mark the text field as error if both AppsServer and DB connections are not established setBackground(!isDatabaseOK); // Mark the connection indicator button as error if any...
fireActionPerformed(); } finally { setCursor(Cursor.getDefaultCursor()); } } /** * MouseListener */ private class CConnectionEditor_MouseListener extends MouseAdapter { /** Mouse Clicked - Open connection editor */ @Override public void mouseClicked(final MouseEvent e) { if (m_active)...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\db\CConnectionEditor.java
1
请完成以下Java代码
public void attachState(MigratingScopeInstance newOwningInstance) { attachTo(newOwningInstance.resolveRepresentativeExecution()); } @Override public void attachState(MigratingTransitionInstance targetTransitionInstance) { attachTo(targetTransitionInstance.resolveRepresentativeExecution()); } public ...
public HistoryEvent createHistoryEvent(HistoryEventProducer producer) { return producer.createHistoricIncidentMigrateEvt(incident); } }); } } public void migrateDependentEntities() { // nothing to do } protected void attachTo(ExecutionEntity execution) { incident.setExecuti...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\migration\instance\MigratingIncident.java
1
请在Spring Boot框架中完成以下Java代码
public PatientNoteMapping updatedAt(String updatedAt) { this.updatedAt = updatedAt; return this; } /** * Der Zeitstempel der letzten Änderung * @return updatedAt **/ @Schema(example = "2019-11-28T08:37:39.637Z", description = "Der Zeitstempel der letzten Änderung") public String getUpdatedAt()...
public int hashCode() { return Objects.hash(_id, updatedAt); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PatientNoteMapping {\n"); sb.append(" _id: ").append(toIndentedString(_id)).append("\n"); sb.append(" updatedAt: ").append(t...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\alberta\alberta-patient-api\src\main\java\io\swagger\client\model\PatientNoteMapping.java
2
请完成以下Java代码
public boolean contains(int x, int y) { return ((x >= x0 && x <= x1) && (y >= y0 && y <= y1)); } } /** * Creates and returns an array of integers from the String * <code>stringCoords</code>. If one of the values represents a * % the returned value with be negative. If a parse...
if (numCoords > 0 && numCoords != retValue.length) { int[] temp = new int[numCoords]; System.arraycopy(retValue, 0, temp, 0, numCoords); retValue = temp; } return retValue; } /** * Defines the interface used for to check if a point is inside a ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\net\sf\memoranda\ui\htmleditor\AltHTMLWriter.java
1
请在Spring Boot框架中完成以下Java代码
public class StateHandlerAnnotationBeanFactoryPostProcessor implements BeanFactoryPostProcessor { private ProcessEngine processEngine ; private Logger log = Logger.getLogger(getClass().getName()); public void setProcessEngine(ProcessEngine processEngine) { this.processEngine = processEngine; } private void co...
+ ActivitiContextUtils.ACTIVITI_REGISTRY_BEAN_NAME + "' cannot be configured."); } } private boolean beanAlreadyConfigured(BeanDefinitionRegistry registry, String beanName, Class clz) { if (registry.isBeanNameInUse(beanName)) { BeanDefinition bDef = registry.getBeanDefinition(beanName); if (bDef.getBeanCla...
repos\camunda-bpm-platform-master\engine-spring\core\src\main\java\org\camunda\bpm\engine\spring\components\config\xml\StateHandlerAnnotationBeanFactoryPostProcessor.java
2
请完成以下Java代码
public class Product { /** * 商品ID */ private String id; /** * 商品名称 */ private String name; /** * 商品价格 */ private BigDecimal price;
/** * 商品分类 */ private String category; /** * 商品描述 */ private String description; /** * 库存数量 */ private Integer stock; }
repos\JeecgBoot-main\jeecg-boot\jeecg-boot-module\jeecg-module-demo\src\main\java\org\jeecg\modules\demo\shop\entity\Product.java
1
请完成以下Java代码
public class WalletKit { static Logger logger = LoggerFactory.getLogger(WalletKit.class); public static void main(String[] args) throws InsufficientMoneyException { NetworkParameters params = TestNet3Params.get(); WalletAppKit kit = new WalletAppKit(params, new File("."), "baeldungkit") { ...
kit.startAsync(); kit.awaitRunning(); kit.setAutoSave(true); kit.wallet() .addCoinsReceivedEventListener((wallet, tx, prevBalance, newBalance) -> { logger.info("-----> coins resceived: " + tx.getTxId()); logger.info("received: " + tx.getValue(wallet))...
repos\tutorials-master\java-blockchain\src\main\java\com\baeldung\bitcoinj\WalletKit.java
1
请完成以下Java代码
public String getProcessInstanceId() { return processInstanceId; } @Override public void setProcessInstanceId(String processInstanceId) { this.processInstanceId = processInstanceId; } @Override public String getActivityInstanceId() { return activityInstanceId; } ...
@Override public Date getTime() { return time; } @Override public void setTime(Date time) { this.time = time; } @Override public String getDetailType() { return detailType; } @Override public void setDetailType(String detailType) { this.detailTy...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\persistence\entity\HistoricDetailEntityImpl.java
1
请完成以下Java代码
public int getM_ProductPrice_Base_ID() { return get_ValueAsInt(COLUMNNAME_M_ProductPrice_Base_ID); } @Override public void setM_ProductPrice_ID (final int M_ProductPrice_ID) { if (M_ProductPrice_ID < 1) set_ValueNoCheck (COLUMNNAME_M_ProductPrice_ID, null); else set_ValueNoCheck (COLUMNNAME_M_Produ...
@Override public BigDecimal getPriceStd() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_PriceStd); return bd != null ? bd : BigDecimal.ZERO; } @Override public void setSeqNo (final int SeqNo) { set_Value (COLUMNNAME_SeqNo, SeqNo); } @Override public int getSeqNo() { return get_ValueAsIn...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_ProductPrice.java
1
请完成以下Java代码
public class CQueue { private QueueElement pHead = null; private QueueElement pLastAccess = null; /** * 将QueueElement根据eWeight由小到大的顺序插入队列 * @param newElement */ public void enQueue(QueueElement newElement) { QueueElement pCur = pHead, pPre = null; while (pCur != null...
* @return */ public QueueElement GetNext() { if (pLastAccess != null) pLastAccess = pLastAccess.next; return pLastAccess; } /** * 是否仍然有下一个元素可供读取 * @return */ public boolean CanGetNext() { return (pLastAccess.next != null); } /** ...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\seg\NShort\Path\CQueue.java
1
请完成以下Java代码
public UserTask clone() { UserTask clone = new UserTask(); clone.setValues(this); return clone; } public void setValues(UserTask otherElement) { super.setValues(otherElement); setAssignee(otherElement.getAssignee()); setOwner(otherElement.getOwner()); set...
setCustomUserIdentityLinks(otherElement.customUserIdentityLinks); formProperties = new ArrayList<FormProperty>(); if (otherElement.getFormProperties() != null && !otherElement.getFormProperties().isEmpty()) { for (FormProperty property : otherElement.getFormProperties()) { f...
repos\Activiti-develop\activiti-core\activiti-bpmn-model\src\main\java\org\activiti\bpmn\model\UserTask.java
1
请在Spring Boot框架中完成以下Java代码
private static int getAdTableId(final Document document) { final String tableName = document.getEntityDescriptor().getTableNameOrNull(); if (tableName == null) { // cannot apply security because this is not table based return -1; // OK } return Services.get(IADTableDAO.class).retrieveTableId(tableName...
{ return document.getDocumentId().toIntOr(-1); } } public static boolean isNewDocumentAllowed(@NonNull final DocumentEntityDescriptor entityDescriptor, @NonNull final UserSession userSession) { final AdWindowId adWindowId = entityDescriptor.getWindowId().toAdWindowIdOrNull(); if (adWindowId == null) {retur...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\controller\DocumentPermissionsHelper.java
2
请完成以下Java代码
public Object register(UserForm userForm, BindingResult binding, Model model) { userForm.validate(binding, userManagement); if (binding.hasErrors()) { return "users"; } userManagement.register(new Username(userForm.getUsername()), Password.raw(userForm.getPassword())); var redirectView = new RedirectVi...
* Validates the {@link UserForm}. * * @param errors * @param userManagement */ default void validate(BindingResult errors, UserManagement userManagement) { rejectIfEmptyOrWhitespace(errors, "username", "user.username.empty"); rejectIfEmptyOrWhitespace(errors, "password", "user.password.empty"); ...
repos\spring-data-examples-main\web\example\src\main\java\example\users\web\UserController.java
1
请完成以下Java代码
public Builder tbMsgId(UUID tbMsgId) { this.tbMsgId = tbMsgId; return this; } public Builder tbMsgType(TbMsgType tbMsgType) { this.tbMsgType = tbMsgType; return this; } public Builder callback(FutureCallback<Void> callback) { ...
} @Override public void onFailure(Throwable t) { future.setException(t); } }); } public AttributesDeleteRequest build() { return new AttributesDeleteRequest( tenantId, entityId, scope, keys,...
repos\thingsboard-master\rule-engine\rule-engine-api\src\main\java\org\thingsboard\rule\engine\api\AttributesDeleteRequest.java
1
请在Spring Boot框架中完成以下Java代码
public class AppController { private final AppService appService; @ApiOperation("导出应用数据") @GetMapping(value = "/download") @PreAuthorize("@el.check('app:list')") public void exportApp(HttpServletResponse response, AppQueryCriteria criteria) throws IOException { appService.download(appServi...
return new ResponseEntity<>(HttpStatus.CREATED); } @Log("修改应用") @ApiOperation(value = "修改应用") @PutMapping @PreAuthorize("@el.check('app:edit')") public ResponseEntity<Object> updateApp(@Validated @RequestBody App resources){ appService.update(resources); return new ResponseEntit...
repos\eladmin-master\eladmin-system\src\main\java\me\zhengjie\modules\maint\rest\AppController.java
2
请在Spring Boot框架中完成以下Java代码
public List<HistoricEntityLinkEntity> findHistoricEntityLinksByQuery(InternalEntityLinkQuery<HistoricEntityLinkEntity> query) { return getList("selectHistoricEntityLinksByQuery", query, (CachedEntityMatcher<HistoricEntityLinkEntity>) query, true); } @Override @SuppressWarnings("unchecked") publ...
public void deleteHistoricEntityLinksForNonExistingProcessInstances() { getDbSqlSession().delete("bulkDeleteHistoricProcessEntityLinks", null, HistoricEntityLinkEntityImpl.class); } @Override public void deleteHistoricEntityLinksForNonExistingCaseInstances() { getDbSqlSession().delete("...
repos\flowable-engine-main\modules\flowable-entitylink-service\src\main\java\org\flowable\entitylink\service\impl\persistence\entity\data\impl\MybatisHistoricEntityLinkDataManager.java
2
请完成以下Java代码
public class SubscriptionState { @Getter private final String wsSessionId; @Getter private final int subscriptionId; @Getter private final TenantId tenantId; @Getter private final EntityId entityId; @Getter private final TelemetryFeature type; @Getter private final boolean allKeys; @Getter ...
result = 31 * result + subscriptionId; result = 31 * result + (entityId != null ? entityId.hashCode() : 0); result = 31 * result + (type != null ? type.hashCode() : 0); return result; } @Override public String toString() { return "SubscriptionState{" + "type=...
repos\thingsboard-master\application\src\main\java\org\thingsboard\server\service\ws\telemetry\sub\SubscriptionState.java
1
请完成以下Java代码
public void setAuthenticationFailureHandler(AuthenticationFailureHandler authenticationFailureHandler) { Assert.notNull(authenticationFailureHandler, "authenticationFailureHandler cannot be null"); this.authenticationFailureHandler = authenticationFailureHandler; } private Authentication createAuthentication(Htt...
AuthenticationException authenticationException) throws IOException { OAuth2Error error = ((OAuth2AuthenticationException) authenticationException).getError(); HttpStatus httpStatus = HttpStatus.BAD_REQUEST; if (error.getErrorCode().equals(OAuth2ErrorCodes.INVALID_TOKEN)) { httpStatus = HttpStatus.UNAUTHORIZED...
repos\spring-security-main\oauth2\oauth2-authorization-server\src\main\java\org\springframework\security\oauth2\server\authorization\oidc\web\OidcUserInfoEndpointFilter.java
1
请完成以下Java代码
protected static JobEntity createJob(VariableContainer variableContainer, BaseElement baseElement, String jobHandlerType, CmmnEngineConfiguration cmmnEngineConfiguration) { JobService jobService = cmmnEngineConfiguration.getJobServiceConfiguration().getJobService(); JobEntity job = jobService.createJob(...
Expression categoryExpression = cmmnEngineConfiguration.getExpressionManager().createExpression(jobCategoryElement.getElementText()); Object categoryValue = categoryExpression.getValue(variableContainer); if (categoryValue != null) { job.setCategory(categoryValue.toSt...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\util\JobUtil.java
1
请完成以下Java代码
private List<I_M_PriceList_Version> retrieveLatestPriceListVersion() { final List<I_M_PriceList_Version> priceListVersions = new ArrayList<>(); final Set<PriceListId> priceListIds = retrievePriceLists(); priceListIds.forEach(priceListId -> { final I_M_PriceList_Version plv = Services.get(IPriceListDAO.class)...
.addInSubQueryFilter(I_M_PriceList.COLUMNNAME_M_PriceList_ID, I_I_Pharma_Product.COLUMNNAME_KAEP_Price_List_ID, pharmaPriceListQuery) .addInSubQueryFilter(I_M_PriceList.COLUMNNAME_M_PriceList_ID, I_I_Pharma_Product.COLUMNNAME_UVP_Price_List_ID, pharmaPriceListQuery) .addInSubQueryFilter(I_M_PriceList.COLUMNNAME...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma\src\main\java\de\metas\impexp\product\IFAProductImportProcess.java
1
请完成以下Java代码
public static String getProperties(String property) { return getProperties(property, null, String.class); } /** * 获取SpringBoot 配置信息 * * @param property 属性key * @param requiredType 返回类型 * @return / */ public static <T> T getProperties(String property, Class<T> requi...
callBack.executor(); } CALL_BACKS.clear(); } SpringBeanHolder.addCallback = false; } /** * 获取 @Service 的所有 bean 名称 * @return / */ public static List<String> getAllServiceBeanName() { return new ArrayList<>(Arrays.asList(applicationContext ...
repos\eladmin-master\eladmin-common\src\main\java\me\zhengjie\utils\SpringBeanHolder.java
1
请完成以下Java代码
public void setVehicles(List<Vehicle> vehicles) { this.vehicles = vehicles; } } public static abstract class Vehicle { private String make; private String model; protected Vehicle(String make, String model) { this.make = make; this.model = mo...
} public void setTopSpeed(double topSpeed) { this.topSpeed = topSpeed; } } public static class Truck extends Vehicle { private double payloadCapacity; @JsonCreator public Truck(@JsonProperty("make") String make, @JsonProperty("model") String model, @JsonPro...
repos\tutorials-master\jackson-modules\jackson-core\src\main\java\com\baeldung\jackson\inheritance\SubTypeConstructorStructure.java
1
请完成以下Java代码
public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getCategoryId() { return categoryId; } public void setCategoryId(Long categoryId) { this.categoryId = categoryId; } public String getIcon() { return ico...
public void setReadCount(Integer readCount) { this.readCount = readCount; } public String getContent() { return content; } public void setContent(String content) { this.content = content; } @Override public String toString() { StringBuilder sb = new StringB...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\CmsHelp.java
1
请完成以下Java代码
public Class<? extends DeadLetterJobEntity> getManagedEntityClass() { return DeadLetterJobEntityImpl.class; } @Override public DeadLetterJobEntity create() { return new DeadLetterJobEntityImpl(); } @Override public void delete(DeadLetterJobEntity entity) { getDbSqlSessi...
} @Override public long findJobCountByQueryCriteria(DeadLetterJobQueryImpl jobQuery) { return (Long) getDbSqlSession().selectOne("selectDeadLetterJobCountByQueryCriteria", jobQuery); } @Override public List<DeadLetterJobEntity> findJobsByExecutionId(String executionId) { return get...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\persistence\entity\data\impl\MybatisDeadLetterJobDataManager.java
1
请在Spring Boot框架中完成以下Java代码
public class EmailServiceImpl implements EmailService { private final EmailRepository emailRepository; @Override @CachePut(key = "'config'") @Transactional(rollbackFor = Exception.class) public EmailConfig config(EmailConfig emailConfig, EmailConfig old) throws Exception { emailConfig.setI...
account.setPort(Integer.parseInt(emailConfig.getPort())); account.setAuth(true); try { // 对称解密 account.setPass(EncryptUtils.desDecrypt(emailConfig.getPass())); } catch (Exception e) { throw new BadRequestException(e.getMessage()); } account.set...
repos\eladmin-master\eladmin-tools\src\main\java\me\zhengjie\service\impl\EmailServiceImpl.java
2
请完成以下Java代码
protected Set<String> getAllGroups() { if(availableAuthorizedGroupIds == null) { availableAuthorizedGroupIds = new HashSet<String>(); List<String> groupsFromDatabase = getDbEntityManager().selectList("selectAuthorizedGroupIds"); groupsFromDatabase.stream() .filter(Objects::nonNull) ...
return getDbEntityManager() .updatePreserveOrder(AuthorizationEntity.class, "updateAuthorizationsByProcessInstanceId", parameters); } public DbOperation deleteAuthorizationsByRemovalTime(Date removalTime, int minuteFrom, int minuteTo, int ba...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\AuthorizationManager.java
1
请在Spring Boot框架中完成以下Java代码
public int getM_InOutLine_ID() { return inOutLineId; } } private static final WorkpackagesOnCommitSchedulerTemplate<InOutLineWithQualityIssues> SCHEDULER = new WorkpackagesOnCommitSchedulerTemplate<InOutLineWithQualityIssues>(C_Request_CreateFromInout_Async.class) { @Override protected boolean isEligible...
protected Object extractModelToEnqueueFromItem(final Collector collector, final InOutLineWithQualityIssues item) { return TableRecordReference.of(I_M_InOutLine.Table_Name, item.getM_InOutLine_ID()); } }; @Override public Result processWorkPackage(final I_C_Queue_WorkPackage workPackage, final String localTrx...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\request\service\async\spi\impl\C_Request_CreateFromInout_Async.java
2
请完成以下Java代码
public Boolean get_ValueAsBoolean(final String variableName, final Boolean defaultValue_IGNORED) { return params.getParameterAsBool(variableName); } @Override public Date get_ValueAsDate(final String variableName, final Date defaultValue) { final Timestamp value = params.getParameterAsTimestamp(variabl...
return params.getParameterAsInt(variableName, defaultValueInt); } @Override public String get_ValueAsString(final String variableName) { return params.getParameterAsString(variableName); } @Override public String get_ValueOldAsString(final String variableName) { return get_ValueAsString(variable...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\compiere\util\Evaluatees.java
1
请在Spring Boot框架中完成以下Java代码
public class CancelJobsCmd implements Command<Void>, Serializable { private static final long serialVersionUID = 1L; protected JobServiceConfiguration jobServiceConfiguration; protected List<String> jobIds; public CancelJobsCmd(List<String> jobIds, JobServiceConfiguration jobServiceConfigura...
jobServiceConfiguration.getJobEntityManager().delete(jobToDelete); } else { TimerJobEntity timerJobToDelete = jobServiceConfiguration.getTimerJobEntityManager().findById(jobId); if (timerJobToDelete != null) { // When given job doesn't exist, ignore ...
repos\flowable-engine-main\modules\flowable-job-service\src\main\java\org\flowable\job\service\impl\cmd\CancelJobsCmd.java
2
请完成以下Java代码
public void handleAddIdentityLinkToTask(TaskEntity taskEntity, IdentityLinkEntity identityLinkEntity) { addUserIdentityLinkToParent(taskEntity, identityLinkEntity.getUserId()); } @Override public void handleAddAssigneeIdentityLinkToTask(TaskEntity taskEntity, String assignee) { addUserI...
@Override public void handleCreateSubProcessInstance(ExecutionEntity subProcessInstanceExecution, ExecutionEntity superExecution) { String authenticatedUserId = Authentication.getAuthenticatedUserId(); if (authenticatedUserId != null) { IdentityLinkUtil.createProcessInstanceIdentityLink(...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\interceptor\DefaultIdentityLinkInterceptor.java
1
请在Spring Boot框架中完成以下Java代码
public class InvoiceCandUpdateSchedulerRequest implements IInvoiceCandUpdateSchedulerRequest { public static InvoiceCandUpdateSchedulerRequest of( @NonNull final Properties ctx, @Nullable final String trxName, @Nullable final AsyncBatchId asyncBatchId) { return new InvoiceCandUpdateSchedulerRequest(ctx, tr...
Properties ctx; AsyncBatchId asyncBatchId; private InvoiceCandUpdateSchedulerRequest( @NonNull final Properties ctx, @Nullable final String trxName, @Nullable final AsyncBatchId asyncBatchId) { this.ctx = ctx; // transaction name it's OK to be null this.trxName = trxName; this.asyncBatchId = asyn...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\invoicecandidate\api\impl\InvoiceCandUpdateSchedulerRequest.java
2
请完成以下Java代码
public void setAttributes(Map<String, List<ExtensionAttribute>> attributes) { this.attributes = attributes; } public void setValues(BaseElement otherElement) { setId(otherElement.getId()); if (otherElement.getExtensionElements() != null && !otherElement.getExtensionElements().isEmpty()...
.getAttributes() .entrySet() .stream() .filter(e -> hasElements(e.getValue())) .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue)); attributes.putAll(validAttributes); } } private boolean hasElements(List<?> list...
repos\Activiti-develop\activiti-core\activiti-bpmn-model\src\main\java\org\activiti\bpmn\model\BaseElement.java
1
请完成以下Java代码
public ArrayList<Object> getData (boolean mandatory, boolean onlyValidated, boolean onlyActive, boolean temporary) { log.error("Not implemented"); return null; } // getArray @Override public String getTableName() { return I_M_AttributeSetInstance.Table_Name; } /** * Get underlying fully qualified ...
* @return column name */ @Override public String getColumnName() { return I_M_AttributeSetInstance.Table_Name + "." + I_M_AttributeSetInstance.COLUMNNAME_M_AttributeSetInstance_ID; } // getColumnName @Override public String getColumnNameNotFQ() { return I_M_AttributeSetInstance.COLUMNNAME_M_Attr...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\MPAttributeLookup.java
1
请完成以下Java代码
public String sayHello() { return "Hello! What are you learning today?"; } @RequestMapping("say-hello-html") @ResponseBody public String sayHelloHtml() { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title> My First HTML Page - Changed</title>"); sb.append...
sb.append("</html>"); return sb.toString(); } // // "say-hello-jsp" => sayHello.jsp // /src/main/resources/META-INF/resources/WEB-INF/jsp/sayHello.jsp // /src/main/resources/META-INF/resources/WEB-INF/jsp/welcome.jsp // /src/main/resources/META-INF/resources/WEB-INF/jsp/login.jsp // /src/main/resources/M...
repos\master-spring-and-spring-boot-main\11-web-application\src\main\java\com\in28minutes\springboot\myfirstwebapp\hello\SayHelloController.java
1
请在Spring Boot框架中完成以下Java代码
public void addListener(@NonNull final IBankStatementListener listener) { final boolean added = listeners.addListener(listener); if (added) { logger.info("Registered listener: `" + listener + "`"); } else { logger.warn("Failed registering listener `" + listener + "` because it was already registered:...
@Override public void firePaymentsLinked(@NonNull final List<PaymentLinkResult> payments) { if (payments.isEmpty()) { return; } listeners.onPaymentsLinked(payments); } @Override public void firePaymentsUnlinkedFromBankStatementLineReferences(@NonNull BankStatementLineReferenceList lineRefs) { liste...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.base\src\main\java\de\metas\banking\service\impl\BankStatementListenerService.java
2
请完成以下Java代码
public void setConfigurationLevel (final @Nullable java.lang.String ConfigurationLevel) { set_Value (COLUMNNAME_ConfigurationLevel, ConfigurationLevel); } @Override public java.lang.String getConfigurationLevel() { return get_ValueAsString(COLUMNNAME_ConfigurationLevel); } /** * EntityType AD_Reference...
@Override public void setQty (final @Nullable BigDecimal Qty) { set_Value (COLUMNNAME_Qty, Qty); } @Override public BigDecimal getQty() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_Qty); return bd != null ? bd : BigDecimal.ZERO; } @Override public void setSeqNo (final int SeqNo) { set_V...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\eevolution\model\X_PP_WF_Node_Product.java
1
请在Spring Boot框架中完成以下Java代码
public int getC_POS_Journal_ID() { return get_ValueAsInt(COLUMNNAME_C_POS_Journal_ID); } @Override public void setC_POS_JournalLine_ID (final int C_POS_JournalLine_ID) { if (C_POS_JournalLine_ID < 1) set_ValueNoCheck (COLUMNNAME_C_POS_JournalLine_ID, null); else set_ValueNoCheck (COLUMNNAME_C_POS_J...
@Override public void setDescription (final @Nullable java.lang.String Description) { set_Value (COLUMNNAME_Description, Description); } @Override public java.lang.String getDescription() { return get_ValueAsString(COLUMNNAME_Description); } /** * Type AD_Reference_ID=541892 * Reference name: C_POS_...
repos\metasfresh-new_dawn_uat\backend\de.metas.pos.base\src\main\java-gen\de\metas\pos\repository\model\X_C_POS_JournalLine.java
2
请在Spring Boot框架中完成以下Java代码
public @Nullable Duration getReadTimeout() { return this.readTimeout; } public void setReadTimeout(@Nullable Duration readTimeout) { this.readTimeout = readTimeout; } public Ssl getSsl() { return this.ssl; } /** * SSL configuration. */ @ConfigurationPropertiesSource public static class Ssl {
/** * SSL bundle to use. */ private @Nullable String bundle; public @Nullable String getBundle() { return this.bundle; } public void setBundle(@Nullable String bundle) { this.bundle = bundle; } } }
repos\spring-boot-4.0.1\module\spring-boot-http-client\src\main\java\org\springframework\boot\http\client\autoconfigure\HttpClientSettingsProperties.java
2
请完成以下Java代码
private boolean resolveBoolean(LogbackConfigurator config, String val) { return Boolean.parseBoolean(resolve(config, val)); } private int resolveInt(LogbackConfigurator config, String val) { return Integer.parseInt(resolve(config, val)); } private FileSize resolveFileSize(LogbackConfigurator config, String va...
private static String faint(String value) { return color(value, AnsiStyle.FAINT); } private static String cyan(String value) { return color(value, AnsiColor.CYAN); } private static String magenta(String value) { return color(value, AnsiColor.MAGENTA); } private static String colorByLevel(String value) { ...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\logging\logback\DefaultLogbackConfiguration.java
1
请完成以下Java代码
protected void executeParse(BpmnParse bpmnParse, IntermediateCatchEvent intermediateCatchEvent) { EventDefinition eventDefinition = null; if (!intermediateCatchEvent.getEventDefinitions().isEmpty()) { eventDefinition = intermediateCatchEvent.getEventDefinitions().get(0); } i...
intermediateCatchEvent.setBehavior(bpmnParse.getActivityBehaviorFactory().createIntermediateCatchEventActivityBehavior(intermediateCatchEvent)); } else { if (eventDefinition instanceof TimerEventDefinition || eventDefinition instanceof SignalEventDefinition || ...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\bpmn\parser\handler\IntermediateCatchEventParseHandler.java
1
请完成以下Java代码
public String getAppId() { return appId; } public String getUrl() { return url; } public String getQueryString() { return queryString; } public String getBody() { return body; } public String getEncoding() { return encoding; } public S...
} public Map<String, List<String>> getHeaders() { return headers; } public String getProtocol() { return protocol; } public String getRemoteInfo() { return remoteInfo; } }
repos\spring-examples-java-17\spring-demo\src\main\java\itx\examples\springboot\demo\dto\RequestInfo.java
1
请完成以下Java代码
public int getC_BP_BankAccount_ID() { return get_ValueAsInt(COLUMNNAME_C_BP_BankAccount_ID); } @Override public org.compiere.model.I_C_ValidCombination getPayBankFee_A() { return get_ValueAsPO(COLUMNNAME_PayBankFee_Acct, org.compiere.model.I_C_ValidCombination.class); } @Override public void setPayBankFe...
} @Override public org.compiere.model.I_C_ValidCombination getRealizedGain_A() { return get_ValueAsPO(COLUMNNAME_RealizedGain_Acct, org.compiere.model.I_C_ValidCombination.class); } @Override public void setRealizedGain_A(final org.compiere.model.I_C_ValidCombination RealizedGain_A) { set_ValueFromPO(COLUM...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_BP_BankAccount_Acct.java
1
请在Spring Boot框架中完成以下Java代码
private IQuery<I_MD_Candidate_ATP_QueryResult> createDBQueryForMaterialQueryOrNull( @NonNull final AvailableToPromiseMultiQuery multiQuery) { return multiQuery.getQueries() .stream() .filter(Objects::nonNull) .map(AvailableToPromiseSqlHelper::createDBQueryForStockQuery) .reduce(IQuery.unionDistict...
.date(TimeUtil.asInstant(stockRecord.getDateProjected())) .seqNo(stockRecord.getSeqNo()) .build(); } public Set<AttributesKeyPattern> getPredefinedStorageAttributeKeys() { final ISysConfigBL sysConfigBL = Services.get(ISysConfigBL.class); final int clientId = Env.getAD_Client_ID(Env.getCtx()); final i...
repos\metasfresh-new_dawn_uat\backend\de.metas.material\dispo-commons\src\main\java\de\metas\material\dispo\commons\repository\atp\AvailableToPromiseRepository.java
2
请完成以下Java代码
public void doFilter(ServletRequest request, ServletResponse response) throws IOException, ServletException { if (this.currentPosition == this.size) { this.originalChain.doFilter(request, response); return; } this.currentPosition++; Filter nextFilter = this.additionalFilters.get(this.currentPosition...
/** * {@inheritDoc} */ @Override public FilterChain decorate(FilterChain original) { return original; } /** * {@inheritDoc} */ @Override public FilterChain decorate(FilterChain original, List<Filter> filters) { return new VirtualFilterChain(original, filters); } } private static fin...
repos\spring-security-main\web\src\main\java\org\springframework\security\web\FilterChainProxy.java
1
请完成以下Java代码
public Mono<ResponseEntity<Flux<ByteBuffer>>> downloadFile(@PathVariable("filekey") String filekey) { GetObjectRequest request = GetObjectRequest.builder() .bucket(s3config.getBucket()) .key(filekey) .build(); return Mono.fromFuture(s3client.getObject(request, Async...
for (Entry<String, String> entry : sdkResponse.metadata() .entrySet()) { if (entry.getKey() .equalsIgnoreCase(key)) { return entry.getValue(); } } return defaultValue; } // Helper used to check return codes from an API call ...
repos\tutorials-master\aws-modules\aws-reactive\src\main\java\com\baeldung\aws\reactive\s3\DownloadResource.java
1
请完成以下Java代码
public boolean isEmpty() { return referenceDocs().isEmpty() && guides().isEmpty() && additionalLinks().isEmpty() && super.isEmpty(); } @Override protected List<Section> resolveSubSections(List<Section> sections) { List<Section> allSections = new ArrayList<>(); allSections.add(this.referenceDocs); allSection...
*/ public static class Link { private final String href; private final String description; Link(String href, String description) { this.href = href; this.description = description; } public String getHref() { return this.href; } public String getDescription() { return this.description; ...
repos\initializr-main\initializr-generator-spring\src\main\java\io\spring\initializr\generator\spring\documentation\GettingStartedSection.java
1
请完成以下Java代码
public boolean isCreateSingleOrder () { Object oo = get_Value(COLUMNNAME_IsCreateSingleOrder); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Distribution Run. @param M_DistributionRun_ID Distribution ...
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 Process Now. @param Processing Process Now */...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_DistributionRun.java
1
请完成以下Java代码
private void addMappingInCaseAnnotationIsEmpty( Class<?>[] methodParamTypes, Set<Class<? extends Throwable>> exceptionsToBeMapped) { @SuppressWarnings("unchecked") Function<Class<?>, Class<? extends Throwable>> convertSafely = clazz -> (Class<? extends Throwable>) clazz; ...
if (value == null) { return new SimpleImmutableEntry<>(null, null); } Class<?> methodClass = value.getDeclaringClass(); Object key = grpcAdviceDiscoverer.getAnnotatedBeans() .values() .stream() .filter(obj -> methodClass.isAssignableFr...
repos\grpc-spring-master\grpc-server-spring-boot-starter\src\main\java\net\devh\boot\grpc\server\advice\GrpcExceptionHandlerMethodResolver.java
1
请完成以下Java代码
public ExpressionManager getExpressionManager() { return expressionManager; } public void setExpressionManager(ExpressionManager expressionManager) { this.expressionManager = expressionManager; } public ThrowMessageDelegateFactory getThrowMessageDelegateFactory() { return throw...
} public void setMessagePayloadMappingProviderFactory( MessagePayloadMappingProviderFactory messagePayloadMappingProviderFactory ) { this.messagePayloadMappingProviderFactory = messagePayloadMappingProviderFactory; } public MessageExecutionContextFactory getMessageExecutionContextFacto...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\bpmn\parser\factory\AbstractBehaviorFactory.java
1
请完成以下Java代码
public String getId() { return id; } @Override public void setId(String id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getDeploymentId() { return deploymen...
private final byte[] bytes; public PersistentState(String name, byte[] bytes) { this.name = name; this.bytes = bytes; } @Override public boolean equals(Object obj) { if (obj instanceof PersistentState) { PersistentState other = (Persi...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\persistence\entity\ByteArrayEntity.java
1
请完成以下Java代码
public List<ExecutionEntity> findEventScopeExecutionsByActivityId(String activityRef, String parentExecutionId) { Map<String, String> parameters = new HashMap<>(); parameters.put("activityId", activityRef); parameters.put("parentExecutionId", parentExecutionId); return getDbSqlSession()...
params.put("lockTime", lockCal.getTime()); params.put("expirationTime", expirationTime); int result = getDbSqlSession().update("updateProcessInstanceLockTime", params); if (result == 0) { throw new ActivitiOptimisticLockingException("Could not lock process instance"); } ...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\persistence\entity\ExecutionEntityManager.java
1
请完成以下Java代码
private static boolean isSkipLogging(@NonNull final String sqlCommand) { // Always log DDL (flagged) commands if (sqlCommand.startsWith(DDL_PREFIX)) { return false; } final String sqlCommandUC = sqlCommand.toUpperCase().trim(); // // Don't log selects if (sqlCommandUC.startsWith("SELECT ")) { ...
if (sqlCommandUC.startsWith("INSERT INTO " + tableNameUC + " ")) return true; if (sqlCommandUC.startsWith("DELETE FROM " + tableNameUC + " ")) return true; if (sqlCommandUC.startsWith("DELETE " + tableNameUC + " ")) return true; if (sqlCommandUC.startsWith("UPDATE " + tableNameUC + " ")) return...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\migration\logger\MigrationScriptFileLoggerHolder.java
1
请完成以下Java代码
public class DLMPermanentSysConfigCustomizer extends AbstractDLMCustomizer { private static final String SYSCONFIG_DLM_COALESCE_LEVEL = "de.metas.dlm.DLM_Coalesce_Level"; private static final String SYSCONFIG_DLM_LEVEL = "de.metas.dlm.DLM_Level"; public static AbstractDLMCustomizer PERMANENT_SYSCONFIG_INSTANCE = ne...
*/ @Override public int getDlmLevel() { return Services.get(ISysConfigBL.class).getIntValue(SYSCONFIG_DLM_LEVEL, IMigratorService.DLM_Level_TEST); } /** * Returns the DLM_Coalesce_Level set in the SysConfig. If none is set, it returns {@link IMigratorService#DLM_Level_LIVE} to make sure that by default, * e...
repos\metasfresh-new_dawn_uat\backend\de.metas.dlm\base\src\main\java\de\metas\dlm\connection\DLMPermanentSysConfigCustomizer.java
1
请在Spring Boot框架中完成以下Java代码
public class AssignmentToRefundCandidate { @NonNull RefundConfigId refundConfigId; @NonNull InvoiceCandidateId assignableInvoiceCandidateId; @NonNull RefundInvoiceCandidate refundInvoiceCandidate; /** Relevant money amount of the assignable invoice candidate. */ @NonNull Money moneyBase; @NonNull Money m...
@NonNull Quantity quantityAssigendToRefundCandidate; boolean useAssignedQtyInSum; public AssignmentToRefundCandidate withRefundInvoiceCandidate(@NonNull final RefundInvoiceCandidate refundInvoiceCandidate) { return new AssignmentToRefundCandidate( refundConfigId, assignableInvoiceCandidateId, refund...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\refund\AssignmentToRefundCandidate.java
2
请完成以下Java代码
CostAmount getStandardCosts(final AcctSchema acctSchema) { final CostSegment costSegment = CostSegment.builder() .costingLevel(getProductCostingLevel(acctSchema)) .acctSchemaId(acctSchema.getId()) .costTypeId(acctSchema.getCosting().getCostTypeId()) .clientId(getClientId()) .orgId(getOrgId()) ...
} I_C_OrderLine getOrderLine() { return orderLine; } I_M_InOutLine getReceiptLine() { return this._receiptLine; } I_M_InOut getReceipt() { return this._receipt; } private CurrencyConversionContext getCurrencyConversionContext() { return this._currencyConversionContext; } Instant getReceiptDate...
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java-legacy\org\compiere\acct\DocLine_MatchPO.java
1
请完成以下Java代码
public ResponseEntity createArticle(@Valid @RequestBody NewArticleParam newArticleParam, BindingResult bindingResult, @AuthenticationPrincipal User user) { if (bindingResult.hasErrors()) { throw new InvalidRequestExcepti...
} } @Getter @JsonRootName("article") @NoArgsConstructor class NewArticleParam { @NotBlank(message = "can't be empty") private String title; @NotBlank(message = "can't be empty") private String description; @NotBlank(message = "can't be empty") private String body; private String[] tagList; ...
repos\spring-boot-realworld-example-app-master (1)\src\main\java\io\spring\api\ArticlesApi.java
1
请完成以下Java代码
private int getToRealValueMultiplier() { int toRealValueMultiplier = this.toRealValueMultiplier; if (toRealValueMultiplier == 0) { toRealValueMultiplier = this.toRealValueMultiplier = computeToRealValueMultiplier(); } return toRealValueMultiplier; } private int computeToRealValueMultiplier() { int m...
if (isCreditMemoAdjusted) { final int multiplierCM = isCreditMemo ? -1 : +1; multiplier *= multiplierCM; } return multiplier; } /** * @return {@code true} for purchase-invoice and sales-creditmemo. {@code false} otherwise. */ public boolean isOutgoingMoney() { return isCreditMemo ^ soTrx.isPurcha...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\invoice\InvoiceAmtMultiplier.java
1
请完成以下Java代码
private void asserNotDestroyed() { if (destroyed) { throw new AdempiereException("already destroyed: " + this); } } private void markAsDestroyed() { asserNotDestroyed(); destroyed = true; } @Override public ParentType end() { markAsDestroyed(); final InSubQueryFilter<ModelType> inSubQueryFil...
{ asserNotDestroyed(); inSubQueryBuilder.subQuery(subQuery); return this; } @Override public IInSubQueryFilterClause<ModelType, ParentType> matchingColumnNames(final String columnName, final String subQueryColumnName, final IQueryFilterModifier modifier) { asserNotDestroyed(); inSubQueryBuilder.matchin...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\dao\impl\InSubQueryFilterClause.java
1
请完成以下Java代码
public boolean doCatch(Throwable e) throws Throwable { final String errmsg = "Error processing: " + source; logger.error(errmsg, e); // notify monitor too about this issue Loggables.addLog(errmsg); return true; // rollback } @Override public void doFinally() { // not...
if (candidate.getAD_Table_ID() == adTableDAO.retrieveTableId(I_C_Invoice.Table_Name)) { final I_C_Invoice invoice = InterfaceWrapperHelper.create(ctx, candidate.getRecord_ID(), I_C_Invoice.class, trxName); Check.assumeNotNull(invoice, "No invoice found for candidate {}", candidate); invoiceBL.writeOffInvoic...
repos\metasfresh-new_dawn_uat\backend\de.metas.dunning\src\main\java\de\metas\dunning\invoice\api\impl\InvoiceSourceBL.java
1
请完成以下Java代码
public void setPA_Goal_ID (int PA_Goal_ID) { if (PA_Goal_ID < 1) set_Value (COLUMNNAME_PA_Goal_ID, null); else set_Value (COLUMNNAME_PA_Goal_ID, Integer.valueOf(PA_Goal_ID)); } /** Get Goal. @return Performance Goal */ public int getPA_Goal_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_PA...
/** Set ZUL File Path. @param ZulFilePath Absolute path to zul file */ public void setZulFilePath (String ZulFilePath) { set_Value (COLUMNNAME_ZulFilePath, ZulFilePath); } /** Get ZUL File Path. @return Absolute path to zul file */ public String getZulFilePath () { return (String)get_Value(COLU...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_PA_DashboardContent.java
1
请完成以下Java代码
public BigDecimal getQtyCUsPerTU() { return qtyCUsPerTU; } public void setQtyCUsPerTU(final BigDecimal qtyCU) { this.qtyCUsPerTU = qtyCU; } /** * Called from the process class to set the TU qty from the process parameter. */ public void setQtyTU(final BigDecimal qtyTU) { this.qtyTU = qtyTU; } pub...
if (isReceiveIndividualCUs == null) { isReceiveIndividualCUs = computeIsReceiveIndividualCUs(); } return isReceiveIndividualCUs; } private boolean computeIsReceiveIndividualCUs() { if (selectedRow.getType() != PPOrderLineType.MainProduct || selectedRow.getUomId() == null || !selectedRow.getUomId(...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\pporder\process\PackingInfoProcessParams.java
1
请完成以下Java代码
public BatchResource getBatch(String batchId) { return new BatchResourceImpl(getProcessEngine(), batchId); } @Override public List<BatchDto> getBatches(UriInfo uriInfo, Integer firstResult, Integer maxResults) { BatchQueryDto queryDto = new BatchQueryDto(getObjectMapper(), uriInfo.getQueryParameters()); ...
statisticsResults.add(BatchStatisticsDto.fromBatchStatistics(batchStatistics)); } return statisticsResults; } @Override public CountResultDto getStatisticsCount(UriInfo uriInfo) { BatchStatisticsQueryDto queryDto = new BatchStatisticsQueryDto(getObjectMapper(), uriInfo.getQueryParameters()); Bat...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\impl\BatchRestServiceImpl.java
1
请完成以下Java代码
public String getFilename() { final String contentType = getContentType(); final String fileExtension = MimeType.getExtensionByType(contentType); final String name = archive.getName(); return FileUtil.changeFileExtension(name, fileExtension); } @Override public byte[] getData() { return archiveBL.getBin...
{ return archiveBL.getContentType(archive); } @Override public URI getUrl() { return null; } @Override public Instant getCreated() { return archive.getCreated().toInstant(); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\attachments\DocumentArchiveEntry.java
1
请完成以下Java代码
public Date getStartTime() { return startTime; } public void setStartTime(Date startTime) { this.startTime = startTime; } public Date getEndTime() { return endTime; } public void setEndTime(Date endTime) { this.endTime = endTime; } public Integer getSt...
public void setSort(Integer sort) { this.sort = sort; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id)...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\SmsHomeAdvertise.java
1
请完成以下Java代码
public String getTaskState() { return taskState; } public void setTaskState(String taskState) { this.taskState = taskState; } public String getRootProcessInstanceId() { return rootProcessInstanceId; } public void setRootProcessInstanceId(String rootProcessInstanceId) { this.rootProcessIns...
+ ", parentTaskId=" + parentTaskId + ", deleteReason=" + deleteReason + ", taskDefinitionKey=" + taskDefinitionKey + ", durationInMillis=" + durationInMillis + ", startTime=" + startTime + ", endTime=" + endTime + ", id=" + id + ", eventType="...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\history\event\HistoricTaskInstanceEventEntity.java
1
请在Spring Boot框架中完成以下Java代码
public @Nullable Resource getPublicKeyLocation() { return this.publicKeyLocation; } public void setPublicKeyLocation(@Nullable Resource publicKeyLocation) { this.publicKeyLocation = publicKeyLocation; } public List<String> getAudiences() { return this.audiences; } public void setAudiences(List<S...
if (!this.publicKeyLocation.exists()) { throw new InvalidConfigurationPropertyValueException(key, this.publicKeyLocation, "Public key location does not exist"); } try (InputStream inputStream = this.publicKeyLocation.getInputStream()) { return StreamUtils.copyToString(inputStream, StandardCharsets.U...
repos\spring-boot-4.0.1\module\spring-boot-security-oauth2-resource-server\src\main\java\org\springframework\boot\security\oauth2\server\resource\autoconfigure\OAuth2ResourceServerProperties.java
2
请完成以下Java代码
I_PP_Order createProductionOrder(@NonNull final PPOrderRequestedEvent ppOrderRequestedEvent) { final PPOrder ppOrder = ppOrderRequestedEvent.getPpOrder(); final PPOrderData ppOrderData = ppOrder.getPpOrderData(); final Instant dateOrdered = ppOrderRequestedEvent.getDateOrdered(); final ProductId productId = P...
// .productId(productId) .attributeSetInstanceId(AttributeSetInstanceId.ofRepoIdOrNone(ppOrderData.getProductDescriptor().getAttributeSetInstanceId())) .qtyRequired(qtyRequired) // .dateOrdered(dateOrdered) .datePromised(ppOrderData.get...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing\src\main\java\org\eevolution\event\PPOrderRequestedEventHandler.java
1
请完成以下Java代码
public int getM_PackagingContainer_ID() { return get_ValueAsInt(COLUMNNAME_M_PackagingContainer_ID); } @Override public void setM_Product_ID(final int M_Product_ID) { if (M_Product_ID < 1) set_Value(COLUMNNAME_M_Product_ID, null); else set_Value(COLUMNNAME_M_Product_ID, M_Product_ID); } @Override ...
@Override public java.lang.String getValue() { return get_ValueAsString(COLUMNNAME_Value); } @Override public void setWidth(final @Nullable BigDecimal Width) { set_Value(COLUMNNAME_Width, Width); } @Override public BigDecimal getWidth() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_Width); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_PackagingContainer.java
1
请完成以下Java代码
public void mouseEntered(final MouseEvent e) { // nothing to do } @Override public void mouseExited(final MouseEvent e) { // nothing to do } @Override public void mousePressed(final MouseEvent e) { // nothing to do } @Override public void mouseReleased(final MouseEvent e) { // nothing to do } ...
listBox.setVisibleRowCount(m_maxItems + 1); } public int getMaxItems() { return m_maxItems; } public final String getText() { return textBox.getText(); } protected final int getTextCaretPosition() { return textBox.getCaretPosition(); } protected final void setTextCaretPosition(final int caretPosi...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java\org\compiere\apps\search\FieldAutoCompleter.java
1
请完成以下Java代码
public ReturnsInOutHeaderFiller setMovementType(final String movementType) { this.movementType = movementType; return this; } private String getMovementType() { return movementType; } public ReturnsInOutHeaderFiller setReturnsDocTypeIdProvider(final IReturnsDocTypeIdProvider returnsDocTypeIdProvider) { ...
private I_C_Order getOrder() { return order; } public ReturnsInOutHeaderFiller setExternalId(@Nullable final String externalId) { this.externalId = externalId; return this; } private String getExternalId() { return this.externalId; } private String getExternalResourceURL() { return this.externalR...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\inout\returns\ReturnsInOutHeaderFiller.java
1
请在Spring Boot框架中完成以下Java代码
public String getName() { return name; } public String getNameLike() { return nameLike; } public String getCategory() { return category; } public String getCategoryNotEquals() { return categoryNotEquals; } public String getKey() { return ke...
} public String getTenantId() { return tenantId; } public String getTenantIdLike() { return tenantIdLike; } public boolean isWithoutTenantId() { return withoutTenantId; } }
repos\flowable-engine-main\modules\flowable-app-engine\src\main\java\org\flowable\app\engine\impl\repository\AppDeploymentQueryImpl.java
2
请完成以下Java代码
public static MGLCategory getDefault (Properties ctx, String CategoryType) { MGLCategory retValue = null; String sql = "SELECT * FROM GL_Category " + "WHERE AD_Client_ID=? AND IsDefault='Y'"; PreparedStatement pstmt = null; try { pstmt = DB.prepareStatement (sql, null); pstmt.setInt (1, Env.getAD_Cl...
retValue.setIsDefault(true); if (!retValue.save()) throw new IllegalStateException("Could not save default system GL Category"); } return retValue; } // getDefaultSystem /** Logger */ private static Logger s_log = LogManager.getLogger(MGLCategory.class); /** Cache */ private static CCache<I...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\MGLCategory.java
1
请完成以下Java代码
public static Class getClassByScn(String className) { Class myclass = null; try { myclass = Class.forName(className); } catch (ClassNotFoundException e) { e.printStackTrace(); throw new RuntimeException(className+" not found!"); } return myclass; } /** * 获得类的全名,包括包名 * @param object ...
if (packName.indexOf(SymbolConstant.SPOT) < 0) { path = packName + "/"; } else { // 否则按照包名的组成部分,将包名转换为路径 int start = 0, end = 0; end = packName.indexOf("."); StringBuilder pathBuilder = new StringBuilder(); while (end != -1) { pathBuilder.append(packName, start...
repos\JeecgBoot-main\jeecg-boot\jeecg-boot-base-core\src\main\java\org\jeecg\common\util\MyClassLoader.java
1
请完成以下Java代码
public String getSummary(final I_C_Dunning_Candidate candidate) { if (candidate == null) { return null; } return "#" + candidate.getC_Dunning_Candidate_ID(); } @Override public boolean isExpired(final I_C_Dunning_Candidate candidate, final Timestamp dunningGraceDate) { Check.assumeNotNull(candidate,...
} @Override public I_C_Dunning_Candidate getLastLevelCandidate(final List<I_C_Dunning_Candidate> candidates) { Check.errorIf(candidates.isEmpty(), "Error: No candidates selected."); I_C_Dunning_Candidate result = candidates.get(0); BigDecimal maxDaysAfterDue = result.getC_DunningLevel().getDaysAfterDue(); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.dunning\src\main\java\de\metas\dunning\api\impl\DunningBL.java
1
请在Spring Boot框架中完成以下Java代码
static class OAuth2SecurityFilterChainConfiguration { @Bean @ConditionalOnBean(JwtDecoder.class) SecurityFilterChain jwtSecurityFilterChain(HttpSecurity http) { http.authorizeHttpRequests((requests) -> requests.anyRequest().authenticated()); http.oauth2ResourceServer((resourceServer) -> resourceServer.jwt(...
} @ConditionalOnProperty("spring.security.oauth2.resourceserver.jwt.authority-prefix") static class OnAuthorityPrefix { } @ConditionalOnProperty("spring.security.oauth2.resourceserver.jwt.principal-claim-name") static class OnPrincipalClaimName { } @ConditionalOnProperty("spring.security.oauth2.resou...
repos\spring-boot-4.0.1\module\spring-boot-security-oauth2-resource-server\src\main\java\org\springframework\boot\security\oauth2\server\resource\autoconfigure\servlet\OAuth2ResourceServerJwtConfiguration.java
2
请完成以下Java代码
void doNothingWithWrongContract() { } @Contract("_, null -> null; null, _ -> param2; _, !null -> !null") String concatenateOnlyIfSecondArgumentIsNotNull(String head, String tail) { if (tail == null) { return null; } if (head == null) { return tail; }...
// NB: the following examples demonstrate how to use the mutates attribute of the annotation // This attribute is currently experimental and could be changed or removed in the future @Contract(mutates = "param") void incrementArrayFirstElement(Integer[] integers) { if (integers.length > 0) { ...
repos\tutorials-master\jetbrains-annotations\src\main\java\com\baeldung\annotations\Demo.java
1
请完成以下Java代码
public boolean isLogTableName(final String tableName, final ClientId clientId) { final Set<String> tablesToIgnoreUC = getTablesToIgnoreUC(clientId); return !tablesToIgnoreUC.contains(tableName.toUpperCase()); } public void addTablesToIgnoreList(@NonNull final String... tableNames) { addTablesToIgnoreList(Imm...
private static ImmutableSet<String> addTableNamesUC( @NonNull final ImmutableSet<String> targetListUC, @NonNull final Collection<String> tableNamesToAdd) { if (tableNamesToAdd.isEmpty()) { return targetListUC; } final ImmutableSet.Builder<String> builder = ImmutableSet.builder(); builder.addAll(tar...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\migration\logger\TableNamesSkipList.java
1
请完成以下Java代码
public void execute() { final ImmutableMap<InOutAndLineId, InOutAndLineId> initialReversalLineId2lineId = inoutBL.getLines(inoutId) .stream() .collect(ImmutableMap.toImmutableMap( inoutLine -> InOutAndLineId.ofRepoId(initialReversalId, inoutLine.getReversalLine_ID()), inoutLine -> InOutAndLineId....
.qty(initialCost.getQty().negate()) .costAmount(initialCost.getCostAmount().negate()) .build()); initialCost.setReversalId(reversalCost.getId()); final OrderCost orderCost = orderCostsById.get(reversalCost.getOrderCostId()); orderCost.addInOutCost( OrderCostAddInOutRequest.builder() .or...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\order\costs\inout\InOutCostReverseCommand.java
1
请完成以下Java代码
public void add(@NonNull final HUToReport hu, @NonNull final HULabelConfig labelConfig) { // Don't add it if we already considered it if (!huIdsCollected.add(hu.getHUId())) { return; } final BatchToPrint lastBatch = !batches.isEmpty() ? batches.get(batches.size() - 1) : null; final BatchToPrin...
} @Getter private static class BatchToPrint { @NonNull private final AdProcessId printFormatProcessId; @NonNull private final ArrayList<HUToReport> hus = new ArrayList<>(); private BatchToPrint(final @NonNull AdProcessId printFormatProcessId) { this.printFormatProcessId = printFormatProcessId; } ...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing.rest-api\src\main\java\de\metas\manufacturing\workflows_api\activity_handlers\printReceivedHUQRCodes\PrintReceivedHUQRCodesActivityHandler.java
1
请完成以下Java代码
public class WebClientStatusCodeHandler { public static Mono<String> getResponseBodyUsingExchangeFilterFunction(String uri) { ExchangeFilterFunction errorResponseFilter = ExchangeFilterFunction .ofResponseProcessor(WebClientStatusCodeHandler::exchangeFilterResponseProcessor); return Web...
response -> response.bodyToMono(String.class).map(CustomBadRequestException::new)) .bodyToMono(String.class); } private static Mono<ClientResponse> exchangeFilterResponseProcessor(ClientResponse response) { HttpStatusCode status = response.statusCode(); if (HttpStatus.INTERNAL_SERVE...
repos\tutorials-master\spring-reactive-modules\spring-reactive-client\src\main\java\com\baeldung\webclient\status\WebClientStatusCodeHandler.java
1
请完成以下Java代码
public static class JsonLookupResult { private String id; private String name; private JsonNode jsonNode; public JsonLookupResult(String id, String name, JsonNode jsonNode) { this(name, jsonNode); this.id = id; } public JsonLookupResult(String n...
} public void setName(String name) { this.name = name; } public JsonNode getJsonNode() { return jsonNode; } public void setJsonNode(JsonNode jsonNode) { this.jsonNode = jsonNode; } } }
repos\Activiti-develop\activiti-core\activiti-json-converter\src\main\java\org\activiti\editor\language\json\converter\util\JsonConverterUtil.java
1
请完成以下Java代码
public static void printTextNTimesUpTo50(String textToPrint, int times) { int counter = 1; while (counter < 50) { System.out.println(textToPrint); if (counter == times) { break; } } } /** * Finds the index of {@code name} in a lis...
if (amountPrinted == amountToPrint) { break; } } } /** * Prints an specified amount of even numbers, up to 100. Shows usage of both {@code break} and {@code continue} branching statements. * @param amountToPrint Amount of even numbers to print. */ public s...
repos\tutorials-master\core-java-modules\core-java-lang-syntax\src\main\java\com\baeldung\core\controlstructures\Loops.java
1
请完成以下Java代码
public abstract class AbstractRuleEntity<T extends AbstractRule> implements RuleEntity { protected Long id; protected String app; protected String ip; protected Integer port; protected T rule; private Date gmtCreate; private Date gmtModified; @Override public Long getId() { ...
@Override public Integer getPort() { return port; } public AbstractRuleEntity<T> setPort(Integer port) { this.port = port; return this; } public T getRule() { return rule; } public AbstractRuleEntity<T> setRule(T rule) { this.rule = rule; re...
repos\spring-boot-student-master\spring-boot-student-sentinel-dashboard\src\main\java\com\alibaba\csp\sentinel\dashboard\datasource\entity\rule\AbstractRuleEntity.java
1
请完成以下Java代码
default <ChildType, ExtChildType extends ChildType> IQueryBuilder<ExtChildType> andCollectChildren( @NonNull final ModelColumn<ChildType, ?> linkColumnInChildTable, @NonNull final Class<ExtChildType> childType) { final String linkColumnNameInChildTable = linkColumnInChildTable.getColumnName(); return andColl...
*/ IQueryBuilder<T> setJoinAnd(); /** * Will only return records that are referenced by a <code>T_Selection</code> records which has the given selection ID. */ IQueryBuilder<T> setOnlySelection(PInstanceId pinstanceId); /** * Start an aggregation of different columns, everything grouped by given <code>colum...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\dao\IQueryBuilder.java
1
请完成以下Java代码
public class Post extends TenantEntity { @Serial private static final long serialVersionUID = 1L; /** * 主键id */ @Schema(description = "主键") @TableId(value = "id", type = IdType.ASSIGN_ID) @JsonSerialize(using = ToStringSerializer.class) private Long id; /** * 类型 */ @Schema(description = "类型") priva...
@Schema(description = "岗位编号") private String postCode; /** * 岗位名称 */ @Schema(description = "岗位名称") private String postName; /** * 岗位排序 */ @Schema(description = "岗位排序") private Integer sort; /** * 岗位描述 */ @Schema(description = "岗位描述") private String remark; }
repos\SpringBlade-master\blade-service-api\blade-system-api\src\main\java\org\springblade\system\entity\Post.java
1
请完成以下Java代码
public String getText() { return value.toString(); } @Override public String toString() { return getText(); } @Override public int hashCode() { return new HashcodeBuilder() .append(value) .toHashcode(); } @Override public boolean equals(Object obj) {
if (this == obj) { return true; } final ResultItemWrapper<ValueType> other = EqualsBuilder.getOther(this, obj); if (other == null) { return false; } return new EqualsBuilder() .append(this.value, other.value) .isEqual(); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\swing\autocomplete\ResultItemWrapper.java
1
请完成以下Java代码
public void setResourceName(String resourceName) { this.resourceName = resourceName; } public String getTenantId() { return tenantId; } public void setTenantId(String tenantId) { this.tenantId = tenantId; } public Integer getHistoryLevel() { return historyLevel...
this.suspensionState = suspensionState; } public boolean isSuspended() { return suspensionState == SuspensionState.SUSPENDED.getStateCode(); } public String getEngineVersion() { return engineVersion; } public void setEngineVersion(String engineVersion) { this.engineVer...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\persistence\entity\ProcessDefinitionEntityImpl.java
1
请完成以下Java代码
public String getId() { return id; } public void setId(String id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getDescription() { return description; } ...
public void setKey(String key) { this.key = key; } public int getVersion() { return version; } public void setVersion(int version) { this.version = version; } public FormModel getFormModel() { return formModel; } public void setFormModel(FormModel form...
repos\flowable-engine-main\modules\flowable-form-api\src\main\java\org\flowable\form\api\FormInfo.java
1