instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
public Schema getSchema() { return Public.PUBLIC; } @Override public UniqueKey<ArticleRecord> getPrimaryKey() { return Keys.ARTICLE_PKEY; } @Override public List<UniqueKey<ArticleRecord>> getKeys() { return Arrays.<UniqueKey<ArticleRecord>>asList(Keys.ARTICLE_PKEY); ...
public Article rename(String name) { return new Article(DSL.name(name), null); } /** * Rename this table */ @Override public Article rename(Name name) { return new Article(name, null); } // ------------------------------------------------------------------------- ...
repos\tutorials-master\persistence-modules\jooq\src\main\java\com\baeldung\jooq\model\tables\Article.java
1
请完成以下Java代码
public BigDecimal getQty() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_Qty); return bd != null ? bd : BigDecimal.ZERO; } @Override public void setQtyInUOM (final @Nullable BigDecimal QtyInUOM) { set_Value (COLUMNNAME_QtyInUOM, QtyInUOM); } @Override public BigDecimal getQtyInUOM() { fi...
public static final int TYPE_AD_Reference_ID=541716; /** Material = M */ public static final String TYPE_Material = "M"; /** Cost = C */ public static final String TYPE_Cost = "C"; @Override public void setType (final java.lang.String Type) { set_ValueNoCheck (COLUMNNAME_Type, Type); } @Override public jav...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_MatchInv.java
1
请在Spring Boot框架中完成以下Java代码
public List<SysTenantPack> getPackListByTenantId(String tenantId) { return sysTenantPackUserMapper.getPackListByTenantId(oConvertUtils.getInt(tenantId)); } /** * 根据套餐包的code 新增其他关联默认产品包下的角色与菜单的关系 * * @param packCode * @param permission */ private void addDefaultPackPermissio...
} } /** * 同步同 packCode 下的相关套餐包数据 * * @param sysTenantPack */ private void syncRelatedPackDataByDefaultPack(SysTenantPack sysTenantPack) { //查询与默认套餐相同code的套餐 LambdaQueryWrapper<SysTenantPack> query = new LambdaQueryWrapper<>(); query.ne(SysTenantPack::getPackType,...
repos\JeecgBoot-main\jeecg-boot\jeecg-module-system\jeecg-system-biz\src\main\java\org\jeecg\modules\system\service\impl\SysTenantPackServiceImpl.java
2
请完成以下Java代码
public void setDeploymentId(String deploymentId) { this.deploymentId = deploymentId; } public void setBytes(byte[] bytes) { this.bytes = bytes; } public int getRevision() { return revision; } public void setRevision(int revision) { this.revision = revision; } public String getTenantI...
public void setRootProcessInstanceId(String rootProcessInstanceId) { this.rootProcessInstanceId = rootProcessInstanceId; } public Date getRemovalTime() { return removalTime; } public void setRemovalTime(Date removalTime) { this.removalTime = removalTime; } @Override public String toString()...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\ByteArrayEntity.java
1
请完成以下Java代码
public void setClassname (final java.lang.String Classname) { set_Value (COLUMNNAME_Classname, Classname); } @Override public java.lang.String getClassname() { return get_ValueAsString(COLUMNNAME_Classname); } @Override public void setM_IolCandHandler_ID (final int M_IolCandHandler_ID) { if (M_IolCand...
return get_ValueAsInt(COLUMNNAME_M_IolCandHandler_ID); } @Override public void setTableName (final java.lang.String TableName) { set_Value (COLUMNNAME_TableName, TableName); } @Override public java.lang.String getTableName() { return get_ValueAsString(COLUMNNAME_TableName); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java-gen\de\metas\inoutcandidate\model\X_M_IolCandHandler.java
1
请完成以下Java代码
protected static boolean isNumber(Object obj) { return obj instanceof Number; } protected Map<String, Object> createDefensiveCopyInputVariables(Map<String, Object> inputVariables) { Map<String, Object> defensiveCopyMap = new HashMap<>(); if (inputVariables != null) { for ...
} else if (entry.getValue() instanceof Double) { newValue = Double.valueOf(((Double) entry.getValue()).doubleValue()); } else if (entry.getValue() instanceof Integer) { newValue = Integer.valueOf(((Integer) entry.getValue()).intValue()); } else if ...
repos\flowable-engine-main\modules\flowable-dmn-api\src\main\java\org\flowable\dmn\api\DecisionExecutionAuditContainer.java
1
请完成以下Java代码
public void setChildElements(Map<String, List<ExtensionElement>> childElements) { this.childElements = childElements; } public ExtensionElement clone() { ExtensionElement clone = new ExtensionElement(); clone.setValues(this); return clone; } public void setValues(Extens...
childElements = new LinkedHashMap<String, List<ExtensionElement>>(); if (otherElement.getChildElements() != null && !otherElement.getChildElements().isEmpty()) { for (String key : otherElement.getChildElements().keySet()) { List<ExtensionElement> otherElementList = otherElement.getCh...
repos\Activiti-develop\activiti-core\activiti-bpmn-model\src\main\java\org\activiti\bpmn\model\ExtensionElement.java
1
请完成以下Java代码
private HTTPIngressRuleValue buildHttpRule(DeptrackResource primary) { return new HTTPIngressRuleValueBuilder() // Backend route .addNewPath() .withPath("/api") .withPathType("Prefix") .withNewBackend() .withNewService() .wit...
.addNewPath() .withPath("/") .withPathType("Prefix") .withNewBackend() .withNewService() .withName(primary.getFrontendServiceName()) .withNewPort() .withName("http") .endPort() ...
repos\tutorials-master\kubernetes-modules\k8s-operator\src\main\java\com\baeldung\operators\deptrack\resources\deptrack\DeptrackIngressResource.java
1
请完成以下Java代码
public static <T> T getInstance(final String classname, final Class<T> interfaceClazz) { if (classname == null) { throw new IllegalArgumentException("classname is null"); } if (interfaceClazz == null) { throw new IllegalArgumentException("interfaceClazz is null"); } try { ClassLoader classLoad...
return sb.toString(); } /** * * @param filename * @return file extension or null */ public static String getFileExtension(final String filename) { final int idx = filename.lastIndexOf("."); if (idx > 0) { return filename.substring(idx + 1); } return null; } public static void close(final C...
repos\metasfresh-new_dawn_uat\backend\de.metas.printing.client\src\main\java\de\metas\printing\client\util\Util.java
1
请完成以下Java代码
public void addChangedRowIds(final Collection<DocumentId> rowIds) { if (rowIds.isEmpty()) { return; } if (changedRowIds == null) { changedRowIds = new HashSet<>(); } changedRowIds.addAll(rowIds); } public void addChangedRowId(@NonNull final DocumentId rowId) { if (changedRowIds == null) { ...
public DocumentIdsSelection getChangedRowIds() { final boolean fullyChanged = this.fullyChanged; final Set<DocumentId> changedRowIds = this.changedRowIds; if (fullyChanged) { return DocumentIdsSelection.ALL; } else if (changedRowIds == null || changedRowIds.isEmpty()) { return DocumentIdsSelection...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\view\event\ViewChanges.java
1
请完成以下Java代码
public void setParameterName (String ParameterName) { set_Value (COLUMNNAME_ParameterName, ParameterName); } /** Get Parameter Name. @return Parameter Name */ public String getParameterName () { return (String)get_Value(COLUMNNAME_ParameterName); } /** Get Record ID/ColumnName @return ID/Co...
set_Value (COLUMNNAME_P_Number_To, P_Number_To); } /** Get Process Number To. @return Process Parameter */ public BigDecimal getP_Number_To () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_P_Number_To); if (bd == null) return Env.ZERO; return bd; } /** Set Process String. @param P_String ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_PInstance_Para.java
1
请完成以下Java代码
public void updateIsAutoFlag(final I_ExternalSystem_Config_GRSSignum grsConfig) { if (!grsConfig.isSyncBPartnersToRestEndpoint()) { grsConfig.setIsAutoSendVendors(false); grsConfig.setIsAutoSendCustomers(false); } } @ModelChange(timings = { ModelValidator.TYPE_AFTER_CHANGE }, ifColumnsChanged = { ...
{ if (!grsConfig.isCreateBPartnerFolders()) { return; } if (Check.isBlank(grsConfig.getBPartnerExportDirectories()) || Check.isBlank(grsConfig.getBasePathForExportDirectories())) { throw new AdempiereException("BPartnerExportDirectories and BasePathForExportDirectories must be set!") .appendPa...
repos\metasfresh-new_dawn_uat\backend\de.metas.externalsystem\src\main\java\de\metas\externalsystem\grssignum\interceptor\ExternalSystem_Config_GRSSignum.java
1
请完成以下Java代码
public class WorkerNodeEntity { /** * Entity unique id (table unique) */ private long id; /** * Type of CONTAINER: HostName, ACTUAL : IP. */ private String hostName; /** * Type of CONTAINER: Port, ACTUAL : Timestamp + Random(0-10000) */ private String port; ...
public void setHostName(String hostName) { this.hostName = hostName; } public String getPort() { return port; } public void setPort(String port) { this.port = port; } public int getType() { return type; } public void setType(int type) { this.ty...
repos\Spring-Boot-In-Action-master\id-spring-boot-starter\src\main\java\com\baidu\fsg\uid\worker\entity\WorkerNodeEntity.java
1
请完成以下Java代码
protected SecurityExpressionOperations createSecurityExpressionRoot(@Nullable Authentication authentication, FilterInvocation fi) { FilterInvocationExpressionRoot root = new FilterInvocationExpressionRoot(() -> authentication, fi); root.setAuthorizationManagerFactory(getAuthorizationManagerFactory()); root.set...
* {@link org.springframework.security.access.expression.SecurityExpressionRoot#hasRole(String)}. * For example, if hasRole("ADMIN") or hasRole("ROLE_ADMIN") is passed in, then the * role ROLE_ADMIN will be used when the defaultRolePrefix is "ROLE_" (default). * </p> * * <p> * If null or empty, then no defau...
repos\spring-security-main\access\src\main\java\org\springframework\security\web\access\expression\DefaultWebSecurityExpressionHandler.java
1
请完成以下Java代码
public class CleanableHistoricDecisionInstanceReportDto extends AbstractQueryDto<CleanableHistoricDecisionInstanceReport>{ protected String[] decisionDefinitionIdIn; protected String[] decisionDefinitionKeyIn; protected String[] tenantIdIn; protected Boolean withoutTenantId; protected Boolean compact; pro...
@Override protected boolean isValidSortByValue(String value) { return VALID_SORT_BY_VALUES.contains(value); } @Override protected CleanableHistoricDecisionInstanceReport createNewQuery(ProcessEngine engine) { return engine.getHistoryService().createCleanableHistoricDecisionInstanceReport(); } @Ove...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\history\CleanableHistoricDecisionInstanceReportDto.java
1
请完成以下Java代码
private void deactivateBPartnersAndRelatedEntries() { final Instant now = SystemTime.asInstant(); final List<BPartnerId> partnerIdsToDeactivate = queryBL.createQueryBuilder(I_AD_OrgChange_History.class) .addCompareFilter(I_AD_OrgChange_History.COLUMNNAME_Date_OrgChange, CompareQueryFilter.Operator.LESS_OR_EQU...
{ final ICompositeQueryUpdater<I_AD_User> queryUpdater = queryBL.createCompositeQueryUpdater(I_AD_User.class) .addSetColumnValue(I_AD_User.COLUMNNAME_IsActive, false); queryBL .createQueryBuilder(I_AD_User.class) .addInArrayFilter(I_AD_User.COLUMNNAME_C_BPartner_ID, partnerIds) .create() .update...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\bpartner\process\C_BPartner_DeactivateAfterOrgChange.java
1
请完成以下Java代码
/* package */void setLookupValuesStale(final Boolean lookupValuesStale, final ReasonSupplier reason) { this.lookupValuesStale = lookupValuesStale; lookupValuesStaleReason = reason; logger.trace("collect {} lookupValuesStale: {} -- {}", fieldName, lookupValuesStale, lookupValuesStaleReason); } public DocumentV...
} } public void putDebugProperty(final String name, final Object value) { if (debugProperties == null) { debugProperties = new LinkedHashMap<>(); } debugProperties.put(name, value); } public void putDebugProperties(final Map<String, Object> debugProperties) { if (debugProperties == null || debugPr...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\model\DocumentFieldChange.java
1
请在Spring Boot框架中完成以下Java代码
public long findVariableInstanceCountByQueryCriteria(VariableInstanceQueryImpl variableInstanceQuery) { return dataManager.findVariableInstanceCountByQueryCriteria(variableInstanceQuery); } @Override public List<VariableInstance> findVariableInstancesByQueryCriteria(VariableInstanceQueryImpl variab...
} @Override public void deleteVariablesByTaskId(String taskId) { dataManager.deleteVariablesByTaskId(taskId); } @Override public void deleteVariablesByExecutionId(String executionId) { dataManager.deleteVariablesByExecutionId(executionId); } @Override public vo...
repos\flowable-engine-main\modules\flowable-variable-service\src\main\java\org\flowable\variable\service\impl\persistence\entity\VariableInstanceEntityManagerImpl.java
2
请完成以下Java代码
public String getCauseIncidentProcessInstanceId() { return causeIncidentProcessInstanceId; } public void setCauseIncidentProcessInstanceId(String causeIncidentProcessInstanceId) { this.causeIncidentProcessInstanceId = causeIncidentProcessInstanceId; } public String getCauseIncidentProcessDefinitionId(...
} public String getRootCauseIncidentFailedActivityId() { return rootCauseIncidentFailedActivityId; } public void setRootCauseIncidentFailedActivityId(String rootCauseIncidentFailedActivityId) { this.rootCauseIncidentFailedActivityId = rootCauseIncidentFailedActivityId; } public String getRootCauseI...
repos\camunda-bpm-platform-master\webapps\assembly\src\main\java\org\camunda\bpm\cockpit\impl\plugin\base\dto\IncidentDto.java
1
请在Spring Boot框架中完成以下Java代码
public boolean hasDataTypeInIdentityColumn() { return false; // As specify in NHibernate dialect } /* public String appendIdentitySelectToInsert(String insertString) { return new StringBuffer(insertString.length()+30). // As specify in NHibernate dialect append(insertString). append("; ...
} public String getForUpdateString() { return ""; } public boolean supportsOuterJoinForUpdate() { return false; } public String getDropForeignKeyString() { throw new UnsupportedOperationException("No drop foreign key syntax supported by SQLiteDialect"); } public...
repos\SpringBoot-vue-master\src\main\java\com\boylegu\springboot_vue\config\SQLiteDialect.java
2
请完成以下Java代码
public DetailsBuilder processEngineName(String processEngineName) { if (this.processEngineNames == null) { this.processEngineNames = new HashSet<String>(); } this.processEngineNames.add(processEngineName); return this; } public DetailsBuilder processEngineNames(Set...
public int getMaxJobsPerAcquisition() { return maxJobsPerAcquisition; } public int getWaitTimeInMillis() { return waitTimeInMillis; } public Set<String> getProcessEngineNames() { return processEngineNames; } @Override public String toString() { return "Details [nam...
repos\camunda-bpm-platform-master\spring-boot-starter\starter\src\main\java\org\camunda\bpm\spring\boot\starter\actuator\JobExecutorHealthIndicator.java
1
请完成以下Java代码
public void parseServiceTask(Element serviceTaskElement, ScopeImpl scope, ActivityImpl activity) { addExecutionListener(activity); } @Override public void parseStartEvent(Element startEventElement, ScopeImpl scope, ActivityImpl activity) { addExecutionListener(activity); } @Override public void pa...
DelegateListener<?> listener, String event) { if (skippable) { element.addListener(event, listener); } else { element.addBuiltInListener(event, listener); } } private void addTaskListener(TaskDefinition taskDefinition) { if (taskListener != null) { for (String event : TASK_EVENTS)...
repos\camunda-bpm-platform-master\spring-boot-starter\starter\src\main\java\org\camunda\bpm\spring\boot\starter\event\PublishDelegateParseListener.java
1
请完成以下Java代码
public class OAuth2RefreshTokenAuthenticationToken extends OAuth2AuthorizationGrantAuthenticationToken { private final String refreshToken; private final Set<String> scopes; /** * Constructs an {@code OAuth2RefreshTokenAuthenticationToken} using the provided * parameters. * @param refreshToken the refresh t...
this.scopes = Collections.unmodifiableSet((scopes != null) ? new HashSet<>(scopes) : Collections.emptySet()); } /** * Returns the refresh token. * @return the refresh token */ public String getRefreshToken() { return this.refreshToken; } /** * Returns the requested scope(s). * @return the requested s...
repos\spring-security-main\oauth2\oauth2-authorization-server\src\main\java\org\springframework\security\oauth2\server\authorization\authentication\OAuth2RefreshTokenAuthenticationToken.java
1
请完成以下Java代码
public void updateByQuery(@NonNull final DDOrderCandidateQuery query, @NonNull final UnaryOperator<DDOrderCandidate> updater) { final List<I_DD_Order_Candidate> records = toSqlQuery(query).create().list(); for (final I_DD_Order_Candidate record : records) { final DDOrderCandidate candidate = fromRecord(record...
} return queryBL.createQueryBuilder(I_DD_Order_Candidate.class) .addOnlyActiveRecordsFilter() .addInArrayFilter(I_DD_Order_Candidate.COLUMNNAME_DD_Order_Candidate_ID, ids) .create() .createSelection(); } public List<DDOrderCandidate> getBySelectionId(@NonNull final PInstanceId selectionId) { re...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing\src\main\java\de\metas\distribution\ddordercandidate\DDOrderCandidateRepository.java
1
请完成以下Java代码
public class UnionFind { private int[] parents; private int[] ranks; public UnionFind(int n) { parents = new int[n]; ranks = new int[n]; for (int i = 0; i < n; i++) { parents[i] = i; ranks[i] = 0; } } public int find(int u) { while (u...
int vParent = find(v); if (uParent == vParent) { return; } if (ranks[uParent] < ranks[vParent]) { parents[uParent] = vParent; } else if (ranks[uParent] > ranks[vParent]) { parents[vParent] = uParent; } else { parents[vParent] = uPa...
repos\tutorials-master\algorithms-modules\algorithms-miscellaneous-6\src\main\java\com\baeldung\algorithms\boruvka\UnionFind.java
1
请完成以下Java代码
public HistoricVariableInstanceEntity findHistoricVariableInstanceByVariableInstanceId(String variableInstanceId) { return historicVariableInstanceDataManager.findHistoricVariableInstanceByVariableInstanceId(variableInstanceId); } @Override public void deleteHistoricVariableInstancesByTaskId(String...
} @Override public long findHistoricVariableInstanceCountByNativeQuery(Map<String, Object> parameterMap) { return historicVariableInstanceDataManager.findHistoricVariableInstanceCountByNativeQuery(parameterMap); } public HistoricVariableInstanceDataManager getHistoricVariableInstanceDataManage...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\persistence\entity\HistoricVariableInstanceEntityManagerImpl.java
1
请完成以下Java代码
static void markZeroesInMatrix(int[][] matrix, int rows, int cols) { for (int i = 1; i < rows; i++) { for (int j = 1; j < cols; j++) { if (matrix[i][j] == 0) { matrix[i][0] = 0; matrix[0][j] = 0; } } } } ...
} static void setZeroesByOptimalApproach(int[][] matrix) { int rows = matrix.length; int cols = matrix[0].length; boolean firstRowZero = hasZeroInFirstRow(matrix, cols); boolean firstColZero = hasZeroInFirstCol(matrix, rows); markZeroesInMatrix(matrix, rows...
repos\tutorials-master\core-java-modules\core-java-arrays-operations-advanced-2\src\main\java\com\baeldung\matrixtozero\SetMatrixToZero.java
1
请在Spring Boot框架中完成以下Java代码
public String getStartUserId() { return startUserId; } public void setStartUserId(String startUserId) { this.startUserId = startUserId; } public String getReferenceId() { return referenceId; } public void setReferenceId(String referenceId) { this.referenceId = ...
this.withoutTenantId = withoutTenantId; } public Boolean getIncludeLocalVariables() { return includeLocalVariables; } public void setIncludeLocalVariables(Boolean includeLocalVariables) { this.includeLocalVariables = includeLocalVariables; } public Set<String> getCaseInstanceI...
repos\flowable-engine-main\modules\flowable-cmmn-rest\src\main\java\org\flowable\cmmn\rest\service\api\history\planitem\HistoricPlanItemInstanceQueryRequest.java
2
请完成以下Java代码
public class RemittanceLocation4 { @XmlElement(name = "RmtId") protected String rmtId; @XmlElement(name = "RmtLctnDtls") protected List<RemittanceLocationDetails1> rmtLctnDtls; /** * Gets the value of the rmtId property. * * @return * possible object is * {@link S...
* Gets the value of the rmtLctnDtls property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for ...
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.esr\src\main\java-xjc_camt054_001_06\de\metas\payment\camt054_001_06\RemittanceLocation4.java
1
请在Spring Boot框架中完成以下Java代码
public String getBIC() { return bic; } /** * Sets the value of the bic property. * * @param value * allowed object is * {@link String } * */ public void setBIC(String value) { this.bic = value; } /** * Gets the value of the bank...
* allowed object is * {@link String } * */ public void setIBAN(String value) { this.iban = value; } /** * Gets the value of the bankAccountOwner property. * * @return * possible object is * {@link String } * */ public ...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_ecosio_remadv\at\erpel\schemas\_1p0\documents\extensions\edifact\AdditionalBankAccountType.java
2
请在Spring Boot框架中完成以下Java代码
public class PostController extends BladeController { private IPostService postService; /** * 详情 */ @GetMapping("/detail") @ApiOperationSupport(order = 1) @Operation(summary = "详情", description = "传入post") public R<PostVO> detail(Post post) { Post detail = postService.getOne(Condition.getQueryWrapper(post...
/** * 修改 岗位表 */ @PostMapping("/update") @ApiOperationSupport(order = 5) @Operation(summary = "修改", description = "传入post") public R update(@Valid @RequestBody Post post) { return R.status(postService.updateById(post)); } /** * 新增或修改 岗位表 */ @PostMapping("/submit") @ApiOperationSupport(order = 6) @Ope...
repos\SpringBlade-master\blade-service\blade-system\src\main\java\org\springblade\system\controller\PostController.java
2
请完成以下Java代码
public class EchoServer { private static final String POISON_PILL = "POISON_PILL"; public static void main(String[] args) throws IOException { Selector selector = Selector.open(); ServerSocketChannel serverSocket = ServerSocketChannel.open(); serverSocket.bind(new InetSocketAddress("lo...
buffer.clear(); } } private static void register(Selector selector, ServerSocketChannel serverSocket) throws IOException { SocketChannel client = serverSocket.accept(); client.configureBlocking(false); client.register(selector, SelectionKey.OP_READ); } public static Pro...
repos\tutorials-master\core-java-modules\core-java-nio\src\main\java\com\baeldung\selector\EchoServer.java
1
请在Spring Boot框架中完成以下Java代码
public int getPort() { return this.port; } public void setPort(int port) { this.port = port; } public int getSocketBufferSize() { return this.socketBufferSize; } public void setSocketBufferSize(int socketBufferSize) { this.socketBufferSize = socketBufferSize; } public int getSubscriptionCapacity() {...
public void setSubscriptionDiskStoreName(String subscriptionDiskStoreName) { this.subscriptionDiskStoreName = subscriptionDiskStoreName; } public SubscriptionEvictionPolicy getSubscriptionEvictionPolicy() { return this.subscriptionEvictionPolicy; } public void setSubscriptionEvictionPolicy(SubscriptionEvictio...
repos\spring-boot-data-geode-main\spring-geode-project\spring-geode-autoconfigure\src\main\java\org\springframework\geode\boot\autoconfigure\configuration\support\CacheServerProperties.java
2
请完成以下Java代码
private static boolean hasLoop(final RoleId roleId, final List<RoleId> trace) { final List<RoleId> trace2; if (trace == null) { trace2 = new ArrayList<>(); } else { trace2 = new ArrayList<>(trace); } trace2.add(roleId); // final String sql = "SELECT " + I_AD_Role_Included.COLUMNNAME_Inclu...
if (hasLoop(childId, trace2)) { trace.clear(); trace.addAll(trace2); return true; } } } catch (SQLException e) { throw new DBException(e, sql); } finally { DB.close(rs, pstmt); rs = null; pstmt = null; } // return false; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\security\model\interceptor\AD_Role_Included.java
1
请完成以下Java代码
public String getDescription() { return m_description; } /** * Set Description * @param newDescription description */ public void setDescription(String newDescription) { m_description = newDescription; } // setDescription /** * Extension * @param newExtension ext */ public void setExtension(S...
return getFile(file, filter).getAbsolutePath(); } // getFileName /** * Verify file with filter * @param file file * @param filter filter * @return file */ public static File getFile(File file, FileFilter filter) { String fName = file.getAbsolutePath(); if (fName == null || fName.equals("")) fNa...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\util\ExtensionFileFilter.java
1
请完成以下Java代码
private CreateReceiptCandidateRequestBuilder createReceiptCandidateRequestBuilder(final AggregationKey key) { return CreateReceiptCandidateRequest.builder() .orderId(orderId) .orderBOMLineId(coByProductOrderBOMLineId) .orgId(orgId) .date(date) .locatorId(key.getLocatorId()) .topLevelH...
{ return tuPIItemProductId.isVirtualHU() ? VIRTUAL : new HUPIItemProductLUTUSpec(tuPIItemProductId, null); } public static HUPIItemProductLUTUSpec lu(@NonNull HUPIItemProductId tuPIItemProductId, @NonNull HuPackingInstructionsItemId luPIItemId) { return new HUPIItemProductLUTUSpec(tuPIItemProduct...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\pporder\api\impl\AbstractPPOrderReceiptHUProducer.java
1
请完成以下Java代码
public class HibernateUtil { private static final String DEFAULT_RESOURCE = "manytomany.cfg.xml"; private static final Logger LOGGER = LoggerFactory.getLogger(HibernateUtil.class); private static SessionFactory buildSessionFactory(String resource) { try { // Create the SessionFactory f...
LOGGER.debug("Hibernate Annotation serviceRegistry created"); return configuration.buildSessionFactory(serviceRegistry); } catch (Throwable ex) { LOGGER.error("Initial SessionFactory creation failed.", ex); throw new ExceptionInInitializerError(ex); } } publ...
repos\tutorials-master\persistence-modules\hibernate-mapping-2\src\main\java\com\baeldung\hibernate\booleanconverters\HibernateUtil.java
1
请完成以下Java代码
public ProcessPreconditionsResolution checkPreconditionsApplicable(final @NonNull IProcessPreconditionsContext context) { if (context.isNoSelection()) { return ProcessPreconditionsResolution.rejectBecauseNoSelection(); } return ProcessPreconditionsResolution.accept(); } @Override protected String doIt()...
return MSG_OK; } private List<I_C_Invoice_Candidate> getSelectedInvoiceCandidates() { final IQueryFilter<I_C_Invoice_Candidate> selectedPartners = getProcessInfo().getQueryFilterOrElseFalse(); return queryBL.createQueryBuilder(I_C_Invoice_Candidate.class, getCtx(), ITrx.TRXNAME_ThreadInherited) .addOnlyAct...
repos\metasfresh-new_dawn_uat\backend\de.metas.materialtracking\src\main\java\de\metas\materialtracking\process\C_Invoice_Candidate_Assign_MaterialTracking.java
1
请完成以下Spring Boot application配置
spring: application: name: demo-admin-server # Spring 应用名 cloud: nacos: # Nacos 作为注册中心的配置项,对应 NacosDiscoveryProperties 配置类 discovery: server-addr: 127.0.0.1:8848 # Nacos 服务器地址 service: ${spring.application.name} # 注册到 Nacos 的服务名。默认值为 ${spring.application.name}。 mail: # 配置发送告警的...
******' default-encoding: UTF-8 boot: admin: notify: mail: from: ${spring.mail.username} # 告警发件人 to: 7685413@qq.com # 告警收件人
repos\SpringBoot-Labs-master\labx-15\labx-15-admin-04-adminserver-mail\src\main\resources\application.yaml
2
请完成以下Java代码
public BigDecimal getQtyTU() { final BigDecimal qty = infoWindow.getValue(rowIndexModel, IHUPackingAware.COLUMNNAME_QtyPacks); return qty; } @Override public void setQtyTU(final BigDecimal qtyPacks) { infoWindow.setValueByColumnName(IHUPackingAware.COLUMNNAME_QtyPacks, rowIndexModel, qtyPacks); } @Overri...
public void setC_BPartner_ID(final int partnerId) { throw new UnsupportedOperationException(); } @Override public int getC_BPartner_ID() { final KeyNamePair bpartnerKNP = infoWindow.getValue(rowIndexModel, IHUPackingAware.COLUMNNAME_C_BPartner_ID); return bpartnerKNP != null ? bpartnerKNP.getKey() : -1; } ...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\adempiere\gui\search\impl\HUPackingAwareInfoWindowAdapter.java
1
请完成以下Java代码
public Map<String, Map<String, List<GraphicInfo>>> getDecisionServiceDividerLocationByDiagramIdMap() { return decisionServiceDividerLocationByDiagramIdMap; } public Map<String, List<GraphicInfo>> getDecisionServiceDividerLocationMapByDiagramId(String diagramId) { return decisionServiceDividerLo...
} public void setExporter(String exporter) { this.exporter = exporter; } public String getExporterVersion() { return exporterVersion; } public void setExporterVersion(String exporterVersion) { this.exporterVersion = exporterVersion; } public Map<String, String> getNa...
repos\flowable-engine-main\modules\flowable-dmn-model\src\main\java\org\flowable\dmn\model\DmnDefinition.java
1
请完成以下Java代码
public void insertBatch(BatchEntity batch) { batch.setCreateUserId(getCommandContext().getAuthenticatedUserId()); getDbEntityManager().insert(batch); } public BatchEntity findBatchById(String id) { return getDbEntityManager().selectById(BatchEntity.class, id); } public long findBatchCountByQueryCr...
Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("batchId", batchId); parameters.put("suspensionState", suspensionState.getStateCode()); ListQueryParameterObject queryParameter = new ListQueryParameterObject(); queryParameter.setParameter(parameters); getDbEntityManag...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\BatchManager.java
1
请完成以下Java代码
public int getPromotionUsageLimit () { Integer ii = (Integer)get_Value(COLUMNNAME_PromotionUsageLimit); if (ii == null) return 0; return ii.intValue(); } /** Set Sequence. @param SeqNo Method of ordering records; lowest number comes first */ public void setSeqNo (int SeqNo) { set_Value (COLUM...
Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); if (ii == null) return 0; return ii.intValue(); } /** Set Start Date. @param StartDate First effective day (inclusive) */ public void setStartDate (Timestamp StartDate) { set_Value (COLUMNNAME_StartDate, StartDate); } /** Get Start Date. @re...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_PromotionPreCondition.java
1
请完成以下Java代码
public List<FlowableListener> getTaskListeners() { return taskListeners; } public void setTaskListeners(List<FlowableListener> taskListeners) { this.taskListeners = taskListeners; } @Override public HumanTask clone() { HumanTask clone = new HumanTask(); clone.setVal...
setAssignee(otherElement.getAssignee()); setOwner(otherElement.getOwner()); setFormKey(otherElement.getFormKey()); setSameDeployment(otherElement.isSameDeployment()); setValidateFormFields(otherElement.getValidateFormFields()); setDueDate(otherElement.getDueDate()); setPr...
repos\flowable-engine-main\modules\flowable-cmmn-model\src\main\java\org\flowable\cmmn\model\HumanTask.java
1
请完成以下Java代码
public boolean isPending() {return this == POSPaymentProcessingStatus.PENDING;} public boolean isPendingOrSuccessful() {return isPending() || isSuccessful();} public boolean isSuccessful() {return this == POSPaymentProcessingStatus.SUCCESSFUL;} public boolean isFailed() {return this == POSPaymentProcessingStatus....
else if (paymentMethod.isCash() && isPending()) { return BooleanWithReason.TRUE; } else if (isCanceled() || isFailed()) { return BooleanWithReason.TRUE; } else { return BooleanWithReason.falseBecause("Payments with status " + this + " cannot be deleted"); } } public boolean isAllowRefund() ...
repos\metasfresh-new_dawn_uat\backend\de.metas.pos.base\src\main\java\de\metas\pos\POSPaymentProcessingStatus.java
1
请完成以下Java代码
private Deployment withProjectVersion1Based(Deployment deployment) { String projectReleaseVersion = deployment.getProjectReleaseVersion(); if (StringUtils.isNumeric(projectReleaseVersion)) { //The project version in the database is 0 based while in the devops section is 1 based D...
if (afterRollback) { LOGGER.info("This pod has been marked as created after a rollback."); eventType = ApplicationEvents.APPLICATION_ROLLBACK; } else { eventType = ApplicationEvents.APPLICATION_DEPLOYED; } return eventType; } public void setAfterRollb...
repos\Activiti-develop\activiti-core\activiti-spring-boot-starter\src\main\java\org\activiti\spring\ApplicationDeployedEventProducer.java
1
请完成以下Java代码
public void onBeforeSave_assertTrlColumnExists(final I_AD_Column adColumn) { if (!adColumn.isTranslated()) { return; } if (!DisplayType.isText(adColumn.getAD_Reference_ID())) { throw new AdempiereException("Only text columns are translatable"); } if (tableDAO.isVirtualColumn(adColumn)) { thr...
&& !columnName.equals("AD_Language") && !columnName.equals("EntityType")) { throw new AdempiereException("Lookup or ID columns shall have the name ending with `_ID`"); } if (displayType == DisplayType.Locator && !columnName.contains("Locator")) { throw new AdempiereException("A Locator column ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\column\model\interceptor\AD_Column.java
1
请完成以下Java代码
public String getComputerName() { return computerName; } public void setComputerName(String computerName) { this.computerName = computerName; } public String getComputerIp() { return computerIp; } public void setComputerIp(String computerIp) { this.computerIp =...
public String getOsName() { return osName; } public void setOsName(String osName) { this.osName = osName; } public String getOsArch() { return osArch; } public void setOsArch(String osArch) { this.osArch = osArch; } }
repos\spring-boot-demo-master\demo-websocket\src\main\java\com\xkcoding\websocket\model\server\Sys.java
1
请完成以下Java代码
public Object getPersistentState() { HashMap<String, Object> state = new HashMap<>(); state.put("processDefinitionId", processDefinitionId); state.put("processDefinitionKey", processDefinitionKey); state.put("activityId", activityId); state.put("jobType", jobType); state.put("jobConfiguration", ...
} public void setSuspensionState(int state) { this.suspensionState = state; } public Long getOverridingJobPriority() { return jobPriority; } public void setJobPriority(Long jobPriority) { this.jobPriority = jobPriority; } public String getTenantId() { return tenantId; } public voi...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\JobDefinitionEntity.java
1
请完成以下Java代码
public Criteria andMenuIdIn(List<Long> values) { addCriterion("menu_id in", values, "menuId"); return (Criteria) this; } public Criteria andMenuIdNotIn(List<Long> values) { addCriterion("menu_id not in", values, "menuId"); return (Criteria) this; ...
} public boolean isSingleValue() { return singleValue; } public boolean isBetweenValue() { return betweenValue; } public boolean isListValue() { return listValue; } public String getTypeHandler() { return typeHan...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\UmsRoleMenuRelationExample.java
1
请完成以下Java代码
public class GroupQueryDto extends AbstractQueryDto<GroupQuery> { private static final String SORT_BY_GROUP_ID_VALUE = "id"; private static final String SORT_BY_GROUP_NAME_VALUE = "name"; private static final String SORT_BY_GROUP_TYPE_VALUE = "type"; private static final List<String> VALID_SORT_BY_VALUES; s...
} @CamundaQueryParam("memberOfTenant") public void setMemberOfTenant(String tenantId) { this.tenantId = tenantId; } @Override protected boolean isValidSortByValue(String value) { return VALID_SORT_BY_VALUES.contains(value); } @Override protected GroupQuery createNewQuery(ProcessEngine engine)...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\identity\GroupQueryDto.java
1
请完成以下Java代码
public boolean isXYPosition () { Object oo = get_Value(COLUMNNAME_IsXYPosition); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Name. @param Name Alphanumeric identifier of the entity */ public voi...
{ return new KeyNamePair(get_ID(), getName()); } /** Set XY Separator. @param XYSeparator The separator between the X and Y function. */ public void setXYSeparator (String XYSeparator) { set_Value (COLUMNNAME_XYSeparator, XYSeparator); } /** Get XY Separator. @return The separator between...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_LabelPrinterFunction.java
1
请完成以下Java代码
public void setCountEnqueued (final int CountEnqueued) { set_ValueNoCheck (COLUMNNAME_CountEnqueued, CountEnqueued); } @Override public int getCountEnqueued() { return get_ValueAsInt(COLUMNNAME_CountEnqueued); } @Override public void setCountProcessed (final int CountProcessed) { set_ValueNoCheck (COL...
@Override public void setC_Queue_PackageProcessor_ID (final int C_Queue_PackageProcessor_ID) { if (C_Queue_PackageProcessor_ID < 1) set_ValueNoCheck (COLUMNNAME_C_Queue_PackageProcessor_ID, null); else set_ValueNoCheck (COLUMNNAME_C_Queue_PackageProcessor_ID, C_Queue_PackageProcessor_ID); } @Override ...
repos\metasfresh-new_dawn_uat\backend\de.metas.async\src\main\java-gen\de\metas\async\model\X_RV_Async_batch_statistics.java
1
请完成以下Java代码
public java.lang.String getQuoteType () { return (java.lang.String)get_Value(COLUMNNAME_QuoteType); } @Override public org.compiere.model.I_AD_User getSalesRep() throws RuntimeException { return get_ValueAsPO(COLUMNNAME_SalesRep_ID, org.compiere.model.I_AD_User.class); } @Override public void setSalesRep...
{ if (SalesRep_ID < 1) set_ValueNoCheck (COLUMNNAME_SalesRep_ID, null); else set_ValueNoCheck (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID)); } /** Get Aussendienst. @return Aussendienst */ @Override public int getSalesRep_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_SalesRep_ID);...
repos\metasfresh-new_dawn_uat\backend\de.metas.rfq\src\main\java-gen\de\metas\rfq\model\X_RV_C_RfQ_UnAnswered.java
1
请完成以下Java代码
final class WebSocketCodecDelegate { private static final ResolvableType MESSAGE_TYPE = ResolvableType.forClass(GraphQlWebSocketMessage.class); private final Decoder<?> decoder; private final Encoder<?> encoder; private boolean messagesEncoded; WebSocketCodecDelegate(CodecConfigurer codecConfigurer) { Ass...
WebSocketMessage encodeConnectionAck(WebSocketSession session, Object ackPayload) { return encode(session, GraphQlWebSocketMessage.connectionAck(ackPayload)); } WebSocketMessage encodeNext(WebSocketSession session, String id, Map<String, Object> responseMap) { return encode(session, GraphQlWebSocketMessage.next(...
repos\spring-graphql-main\spring-graphql\src\main\java\org\springframework\graphql\server\webflux\WebSocketCodecDelegate.java
1
请完成以下Java代码
public class FoldingHash { /** * Calculate the hash value of a given string. * * @param str Assume it is not null * @param groupSize the group size in the folding technique * @param maxValue defines a max value that the hash may acquire (exclusive) * @return integer value from 0...
} /** * Concatenate the numbers into a single number as if they were strings. * Assume that the procedure does not suffer from the overflow. * @param numbers integers to concatenate * @return */ public int concatenate(int[] numbers) { final String merged = IntStream.of(numbers)...
repos\tutorials-master\algorithms-modules\algorithms-miscellaneous-3\src\main\java\com\baeldung\folding\FoldingHash.java
1
请完成以下Java代码
private String convert (int number) { if (number == 0) return "zero"; String prefix = ""; if (number < 0) { number = -number; prefix = "moins"; } String soFar = ""; int place = 0; boolean pluralPossible = true; boolean pluralForm = false; do { int n = number % 1000; // par tranche ...
// StringBuffer sb = new StringBuffer (); int pos = amount.lastIndexOf ('.'); int pos2 = amount.lastIndexOf (','); if (pos2 > pos) pos = pos2; String oldamt = amount; amount = amount.replaceAll (",", ""); String amttobetranslate = amount.substring (0, (pos)); // Here we clean unexpected space in ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\util\AmtInWords_FR.java
1
请在Spring Boot框架中完成以下Java代码
public HFINI1 getHFINI1() { return hfini1; } /** * Sets the value of the hfini1 property. * * @param value * allowed object is * {@link HFINI1 } * */ public void setHFINI1(HFINI1 value) { this.hfini1 = value; } /** * Gets the va...
return this.hrfad1; } /** * Gets the value of the hctad1 property. * * @return * possible object is * {@link HCTAD1 } * */ public HCTAD1 getHCTAD1() { return hctad1; } /** * Sets the value of the hctad1 property. * * @param v...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_stepcom_invoic\de\metas\edi\esb\jaxb\stepcom\invoic\HADRE1.java
2
请完成以下Java代码
public class DeployDto extends BaseDTO implements Serializable { @ApiModelProperty(value = "ID") private String id; @ApiModelProperty(value = "应用") private AppDto app; @ApiModelProperty(value = "服务器") private Set<ServerDeployDto> deploys; @ApiModelProperty(value = "服务器名称") private String servers; @ApiM...
} @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } DeployDto deployDto = (DeployDto) o; return Objects.equals(id, deployDto.id); } @Override public int hashCode() { return Objects.hash(id); } }
repos\eladmin-master\eladmin-system\src\main\java\me\zhengjie\modules\maint\service\dto\DeployDto.java
1
请完成以下Java代码
public void setIsCollapsible (boolean IsCollapsible) { set_Value (COLUMNNAME_IsCollapsible, Boolean.valueOf(IsCollapsible)); } /** Get Collapsible. @return Flag to indicate the state of the dashboard panel */ public boolean isCollapsible () { Object oo = get_Value(COLUMNNAME_IsCollapsible); if (oo != ...
/** Set PA_DashboardContent_ID. @param PA_DashboardContent_ID PA_DashboardContent_ID */ public void setPA_DashboardContent_ID (int PA_DashboardContent_ID) { if (PA_DashboardContent_ID < 1) set_ValueNoCheck (COLUMNNAME_PA_DashboardContent_ID, null); else set_ValueNoCheck (COLUMNNAME_PA_DashboardContent...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_PA_DashboardContent.java
1
请完成以下Java代码
protected void updateStaticData() { InternalsImpl internals = staticData.getProduct().getInternals(); if (internals.getApplicationServer() == null) { ApplicationServerImpl applicationServer = diagnosticsRegistry.getApplicationServer(); internals.setApplicationServer(applicationServer); } /...
} protected Map<String, Metric> calculateMetrics() { Map<String, Metric> metrics = new HashMap<>(); if (metricsRegistry != null) { Map<String, Meter> telemetryMeters = metricsRegistry.getDiagnosticsMeters(); for (String metricToReport : METRICS_TO_REPORT) { long value = telemetryMeters...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\diagnostics\DiagnosticsCollector.java
1
请完成以下Java代码
public final void setObject(final int parameterIndex, final Object x, final int targetSqlType, final int scaleOrLength) throws SQLException { logMigrationScript_SetParam(parameterIndex, x); getStatementImpl().setObject(parameterIndex, x, targetSqlType, scaleOrLength); } @Override public final void setAsciiStre...
getStatementImpl().setNCharacterStream(parameterIndex, value); } @Override public final void setClob(final int parameterIndex, final Reader reader) throws SQLException { // logMigrationScript_SetParam(parameterIndex, reader); getStatementImpl().setClob(parameterIndex, reader); } @Override public final void...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\sql\impl\CPreparedStatementProxy.java
1
请完成以下Java代码
public class CmsHelpCategory implements Serializable { private Long id; private String name; @ApiModelProperty(value = "分类图标") private String icon; @ApiModelProperty(value = "专题数量") private Integer helpCount; private Integer showStatus; private Integer sort; private static fina...
public Integer getShowStatus() { return showStatus; } public void setShowStatus(Integer showStatus) { this.showStatus = showStatus; } public Integer getSort() { return sort; } public void setSort(Integer sort) { this.sort = sort; } @Override public...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\CmsHelpCategory.java
1
请完成以下Java代码
public class AclPermissionCacheOptimizer implements PermissionCacheOptimizer { private final Log logger = LogFactory.getLog(getClass()); private final AclService aclService; private SidRetrievalStrategy sidRetrievalStrategy = new SidRetrievalStrategyImpl(); private ObjectIdentityRetrievalStrategy oidRetrievalSt...
for (Object domainObject : objects) { if (domainObject != null) { ObjectIdentity oid = this.oidRetrievalStrategy.getObjectIdentity(domainObject); oidsToCache.add(oid); } } List<Sid> sids = this.sidRetrievalStrategy.getSids(authentication); this.logger.debug(LogMessage.of(() -> "Eagerly loading Acls ...
repos\spring-security-main\acl\src\main\java\org\springframework\security\acls\AclPermissionCacheOptimizer.java
1
请完成以下Java代码
private CacheInvalidationGroup getCacheInvalidationGroupByTableName(final String tableName) { return cacheInvalidationGroupsByTableName.computeIfAbsent(tableName, CacheInvalidationGroup::new); } public void cacheInvalidateOnRecordsChanged(final Set<String> tableNames) { tableNames.stream() .map(cacheInvali...
private List<LookupDataSource> purgeAndGet() { synchronized (lookupDataSources) { final List<LookupDataSource> result = new ArrayList<>(lookupDataSources.size()); for (final Iterator<WeakReference<LookupDataSource>> it = lookupDataSources.iterator(); it.hasNext(); ) { final LookupDataSource loo...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\model\lookup\LookupDataSourceFactory.java
1
请完成以下Java代码
public class CookieList { /** * Convert a cookie list into a JSONObject. A cookie list is a sequence of name/value pairs. The names are separated from the values by '='. The pairs are separated by ';'. The names and the values * will be unescaped, possibly converting '+' and '%' sequences. * * ...
*/ @SuppressWarnings("unchecked") public static String toString(JSONObject o) throws JSONException { boolean b = false; Iterator keys = o.keys(); String s; StringBuilder sb = new StringBuilder(); while (keys.hasNext()) { s = keys.next().toString(); ...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\util\json\CookieList.java
1
请完成以下Java代码
public static PPOrderRoutingActivityId ofRepoId(@NonNull final PPOrderId orderId, final int repoId) { return new PPOrderRoutingActivityId(orderId, repoId); } public static PPOrderRoutingActivityId ofRepoId(@NonNull final PPOrderId orderId, @NonNull final String repoIdString) { try { return new PPOrderRout...
int repoId; private PPOrderRoutingActivityId(@NonNull final PPOrderId orderId, final int repoId) { this.orderId = orderId; this.repoId = Check.assumeGreaterThanZero(repoId, "PP_Order_Node_ID"); } @JsonValue public int toJson() { return getRepoId(); } public static boolean equals(@Nullable final PPOrder...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing\src\main\java\org\eevolution\api\PPOrderRoutingActivityId.java
1
请完成以下Java代码
public class AgreementMethodType { @XmlElementRefs({ @XmlElementRef(name = "KA-Nonce", namespace = "http://www.w3.org/2001/04/xmlenc#", type = JAXBElement.class, required = false), @XmlElementRef(name = "OriginatorKeyInfo", namespace = "http://www.w3.org/2001/04/xmlenc#", type = JAXBElement.class, ...
if (content == null) { content = new ArrayList<Object>(); } return this.content; } /** * Gets the value of the algorithm property. * * @return * possible object is * {@link String } * */ public String getAlgorithm() { retu...
repos\metasfresh-new_dawn_uat\backend\vertical-healthcare_ch\forum_datenaustausch_ch.invoice_440_request\src\main\java-xjc\de\metas\vertical\healthcare_ch\forum_datenaustausch_ch\invoice_440\request\AgreementMethodType.java
1
请完成以下Java代码
public static PPOrderLineRowId fromDocumentId(final DocumentId documentId) { final List<String> parts = PARTS_SPLITTER.splitToList(documentId.toJson()); return fromStringPartsList(parts); } private static PPOrderLineRowId fromStringPartsList(final List<String> parts) { final int partsCount = parts.size(); ...
public static PPOrderLineRowId ofIssuedOrReceivedHU(@Nullable DocumentId parentRowId, @NonNull final HuId huId) { return new PPOrderLineRowId(PPOrderLineRowType.IssuedOrReceivedHU, parentRowId, huId.getRepoId()); } public static PPOrderLineRowId ofSourceHU(@NonNull DocumentId parentRowId, @NonNull final HuId sour...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\pporder\PPOrderLineRowId.java
1
请完成以下Java代码
public void setTutId(String tutId) { this.tutId = tutId; } public String getType() { return type; } @XmlAttribute public void setType(String type) { this.type = type; } public String getTitle() { return title; } @XmlElement public void setTitle...
} @XmlElement public void setDescription(String description) { this.description = description; } public String getDate() { return date; } @XmlElement public void setDate(String date) { this.date = date; } public String getAuthor() { return author; ...
repos\tutorials-master\xml-modules\xml\src\main\java\com\baeldung\xml\binding\Tutorial.java
1
请完成以下Java代码
private void switchState(TbContext ctx, EntityId entityId, EntityGeofencingState entityState, boolean matches, long ts) { entityState.setInside(matches); entityState.setStateSwitchTime(ts); entityState.setStayed(false); persist(ctx, entityId, entityState); } private void setStai...
@Override protected Class<TbGpsGeofencingActionNodeConfiguration> getConfigClazz() { return TbGpsGeofencingActionNodeConfiguration.class; } @Override public TbPair<Boolean, JsonNode> upgrade(int fromVersion, JsonNode oldConfiguration) throws TbNodeException { boolean hasChanges = false;...
repos\thingsboard-master\rule-engine\rule-engine-components\src\main\java\org\thingsboard\rule\engine\geo\TbGpsGeofencingActionNode.java
1
请完成以下Java代码
private DeviceProfileInfo toDeviceProfileInfo(DeviceProfile profile) { return profile == null ? null : new DeviceProfileInfo(profile.getId(), profile.getTenantId(), profile.getName(), profile.getImage(), profile.getDefaultDashboardId(), profile.getType(), profile.getTransportType()); } ...
return value; } private String formatCertificateValue(String certificateValue) { try { CertificateFactory cf = CertificateFactory.getInstance("X.509"); ByteArrayInputStream inputStream = new ByteArrayInputStream(certificateValue.getBytes()); Certificate[] certificate...
repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\device\DeviceProfileServiceImpl.java
1
请在Spring Boot框架中完成以下Java代码
public class PPOrderLineData { @Nullable String description; int productBomLineId; /** * Specifies whether this line is about a receipt (co-product or by-product) or about an issue. */ boolean receipt; @NonNull Instant issueOrReceiveDate; @NonNull ProductDescriptor productDescriptor; @Nullable MinMaxDes...
@JsonProperty("minMaxDescriptor") @Nullable final MinMaxDescriptor minMaxDescriptor, @JsonProperty("qtyRequired") @NonNull final BigDecimal qtyRequired, @JsonProperty("qtyDelivered") @Nullable final BigDecimal qtyDelivered) { this.description = description; // don't assert that the ID is greater that zero, ...
repos\metasfresh-new_dawn_uat\backend\de.metas.material\event\src\main\java\de\metas\material\event\pporder\PPOrderLineData.java
2
请完成以下Java代码
public void setC_Order(final org.compiere.model.I_C_Order C_Order) { set_ValueFromPO(COLUMNNAME_C_Order_ID, org.compiere.model.I_C_Order.class, C_Order); } @Override public void setC_Order_ID (final int C_Order_ID) { if (C_Order_ID < 1) set_ValueNoCheck (COLUMNNAME_C_Order_ID, null); else set_ValueN...
return get_ValueAsString(COLUMNNAME_Description); } @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 public int getM_Product_ID() { return get_Val...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_OrderLine_Detail.java
1
请完成以下Java代码
public Map<String, Object> getReturnVarMap() { return returnVarMap; } public void setReturnVarMap(Map<String, Object> returnVarMap) { this.returnVarMap = returnVarMap; } public String getProcessInitiatorHeaderName() { return processInitiatorHeaderName; } public void se...
@Override public boolean isLenientProperties() { return true; } public long getTimeout() { return timeout; } public int getTimeResolution() { return timeResolution; } }
repos\flowable-engine-main\modules\flowable-camel\src\main\java\org\flowable\camel\FlowableEndpoint.java
1
请完成以下Java代码
public Long getPersonNumber() { return personNumber; } public void setPersonNumber(Long personNumber) { this.personNumber = personNumber; } public Boolean getIsActive() { return isActive; } public void setIsActive(Boolean isActive) { this.isActive = isActive; ...
this.securityNumber = scode; } public String getDcode() { return departmentCode; } public void setDcode(String dcode) { this.departmentCode = dcode; } public Address getAddress() { return address; } public void setAddress(Address address) { this.addres...
repos\tutorials-master\persistence-modules\java-jpa\src\main\java\com\baeldung\jpa\uniqueconstraints\Person.java
1
请完成以下Java代码
public boolean isAsynchronous() { return asynchronous; } public void setAsynchronous(boolean asynchronous) { this.asynchronous = asynchronous; } public boolean isAsynchronousLeave() { return asynchronousLeave; } public void setAsynchronousLeave(boolean asynchronousLeav...
public void setIncomingFlows(List<SequenceFlow> incomingFlows) { this.incomingFlows = incomingFlows; } public List<SequenceFlow> getOutgoingFlows() { return outgoingFlows; } public void setOutgoingFlows(List<SequenceFlow> outgoingFlows) { this.outgoingFlows = outgoingFlows; ...
repos\flowable-engine-main\modules\flowable-bpmn-model\src\main\java\org\flowable\bpmn\model\FlowNode.java
1
请完成以下Java代码
public void startConsumer() { executor.submit(() -> { Properties properties = new Properties(); properties.setProperty(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG, "localhost:9092,localhost:9093"); properties.setProperty(ConsumerConfig.GROUP_ID_CONFIG, "groupId"); pr...
} // 异步确认提交 consumer.commitAsync((offsets, exception) -> { if (Objects.isNull(exception)) { // TODO 告警、落盘、重试 } }); } }); } }
repos\spring-boot-student-master\spring-boot-student-kafka\src\main\java\com\xiaolyuh\consumer\KafkaConsumerDemo.java
1
请完成以下Java代码
public Authentication authenticate(Authentication authentication) throws AuthenticationException { Assert.isTrue(authentication instanceof BearerTokenAuthenticationToken, "Authentication must be of type BearerTokenAuthenticationToken"); BearerTokenAuthenticationToken token = (BearerTokenAuthenticationToken) ...
private final Log logger = LogFactory.getLog(getClass()); private final Map<String, AuthenticationManager> authenticationManagers = new ConcurrentHashMap<>(); private final Predicate<String> trustedIssuer; TrustedIssuerJwtAuthenticationManagerResolver(Predicate<String> trustedIssuer) { this.trustedIssuer = ...
repos\spring-security-main\oauth2\oauth2-resource-server\src\main\java\org\springframework\security\oauth2\server\resource\authentication\JwtIssuerAuthenticationManagerResolver.java
1
请在Spring Boot框架中完成以下Java代码
public DataSource getNonJtaDataSource() { return nonJtaDataSource; } public PersistenceUnitInfoImpl setNonJtaDataSource(DataSource nonJtaDataSource) { this.nonJtaDataSource = nonJtaDataSource; this.jtaDataSource = null; transactionType = PersistenceUnitTransactionType.RESOURCE_...
@Override public String getPersistenceXMLSchemaVersion() { return JPA_VERSION; } @Override public ClassLoader getClassLoader() { return Thread.currentThread().getContextClassLoader(); } @Override public void addTransformer(ClassTransformer transformer) { throw new...
repos\tutorials-master\patterns-modules\design-patterns-architectural\src\main\java\com\baeldung\daopattern\config\PersistenceUnitInfoImpl.java
2
请完成以下Java代码
public void setPhone (final @Nullable java.lang.String Phone) { set_Value (COLUMNNAME_Phone, Phone); } @Override public java.lang.String getPhone() { return get_ValueAsString(COLUMNNAME_Phone); } @Override public void setPhone2 (final @Nullable java.lang.String Phone2) { set_Value (COLUMNNAME_Phone2, ...
@Override public void setTitle (final @Nullable java.lang.String Title) { set_Value (COLUMNNAME_Title, Title); } @Override public java.lang.String getTitle() { return get_ValueAsString(COLUMNNAME_Title); } @Override public void setUnlockAccount (final @Nullable java.lang.String UnlockAccount) { set_V...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_User.java
1
请完成以下Java代码
public class GL_Journal { private final IDocTypeBL docTypeBL = Services.get(IDocTypeBL.class); @CalloutMethod(columnNames = I_GL_Journal.COLUMNNAME_C_DocType_ID) public void onC_DocType_ID(final I_GL_Journal glJournal) { final IDocumentNoInfo documentNoInfo = Services.get(IDocumentNoBuilderFactory.class) .cr...
// // Calculate currency rate final BigDecimal currencyRate; if (acctSchema != null) { currencyRate = Services.get(ICurrencyBL.class).getCurrencyRateIfExists( currencyId, acctSchema.getCurrencyId(), dateAcct, conversionTypeId, adClientId, adOrgId) .map(CurrencyRate::getConv...
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java\de\metas\acct\callout\GL_Journal.java
1
请完成以下Java代码
protected String resolveAccessExternalSchemaProperty() { String systemProperty = System.getProperty(JAXP_ACCESS_EXTERNAL_SCHEMA_SYSTEM_PROPERTY); if (systemProperty != null) { return systemProperty; } else { return JAXP_ACCESS_EXTERNAL_SCHEMA_ALL; } } public ModelInstance parseModelFro...
try { synchronized(document) { validator.validate(document.getDomSource()); } } catch (IOException e) { throw new ModelValidationException("Error during DOM document validation", e); } catch (SAXException e) { throw new ModelValidationException("DOM document is not valid", e); ...
repos\camunda-bpm-platform-master\model-api\xml-model\src\main\java\org\camunda\bpm\model\xml\impl\parser\AbstractModelParser.java
1
请完成以下Java代码
public int[] allTags() { return allTags; } public void save(DataOutputStream out) throws IOException { out.writeInt(type.ordinal()); out.writeInt(size()); for (String tag : idStringMap) { out.writeUTF(tag); } } @Override public bo...
public void load(DataInputStream in) throws IOException { idStringMap.clear(); stringIdMap.clear(); int size = in.readInt(); for (int i = 0; i < size; i++) { String tag = in.readUTF(); idStringMap.add(tag); stringIdMap.put(tag, i); ...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\model\perceptron\tagset\TagSet.java
1
请完成以下Java代码
public class WFProcessMapper { public static InventoryId toInventoryId(final WFProcessId wfProcessId) { return wfProcessId.getRepoIdAssumingApplicationId(InventoryMobileApplication.APPLICATION_ID, InventoryId::ofRepoId); } public static WFProcessId toWFProcessId(final InventoryId inventoryId) { return WFProce...
.document(inventory) .activities(ImmutableList.of( WFActivity.builder() .id(WFActivityId.ofString("A1")) .caption(TranslatableStrings.empty()) .wfActivityType(InventoryJobWFActivityHandler.HANDLED_ACTIVITY_TYPE) .status(InventoryJobWFActivityHandler.computeActivityState(invento...
repos\metasfresh-new_dawn_uat\backend\de.metas.inventory.mobileui\src\main\java\de\metas\inventory\mobileui\rest_api\mappers\WFProcessMapper.java
1
请完成以下Java代码
public String getName() { return name; } public void setName(String name) { this.name = name; } public List<Group> getGroups() { return groups; } public void setGroups(List<Group> groups) { this.groups = groups; }
public void setModeratorGroups(List<Group> moderatorGroups) { this.moderatorGroups = moderatorGroups; } public List<Group> getModeratorGroups() { return moderatorGroups; } @Override public String toString() { return "User [name=" + name + "]"; } }
repos\tutorials-master\persistence-modules\hibernate-annotations-2\src\main\java\com\baeldung\hibernate\wherejointable\User.java
1
请完成以下Java代码
public static BigDecimal toBigDecimalOrZero(final String str) { if (str == null || str.isEmpty()) { return BigDecimal.ZERO; } try { return new BigDecimal(str); } catch (NumberFormatException e) { return BigDecimal.ZERO; } } public static String formatMessage(final String message, Object....
* * StringBuffer sb = new StringBuffer(); for (int i = 0; i < normStr.length(); i++) { char ch = normStr.charAt(i); if (ch < 255) sb.append(ch); } return sb.toString(); /* */ } /** * Check if given string contains digits only. * * @param stringToVerify * @return {@link code true} if the given string ...
repos\metasfresh-new_dawn_uat\backend\de.metas.printing.common\de.metas.printing.esb.base\src\main\java\de\metas\printing\esb\base\util\StringUtils.java
1
请完成以下Java代码
public ResponseEntity createUser(@Valid @RequestBody RegisterParam registerParam) { User user = userService.createUser(registerParam); UserData userData = userQueryService.findById(user.getId()).get(); return ResponseEntity.status(201) .body(userResponse(new UserWithToken(userData, jwtService.toToke...
{ put("user", userWithToken); } }; } } @Getter @JsonRootName("user") @NoArgsConstructor class LoginParam { @NotBlank(message = "can't be empty") @Email(message = "should be an email") private String email; @NotBlank(message = "can't be empty") private String password; }
repos\spring-boot-realworld-example-app-master\src\main\java\io\spring\api\UsersApi.java
1
请完成以下Java代码
public static String fileAsString(File file) { try { return inputStreamAsString(new FileInputStream(file)); } catch(FileNotFoundException e) { throw LOG.fileNotFoundException(file.getAbsolutePath(), e); } } /** * Returns the content of a File. * * @param file the file to load * ...
throw LOG.nullParameter("filename"); } URL fileUrl = null; if (classLoader != null) { fileUrl = classLoader.getResource(filename); } if (fileUrl == null) { // Try the current Thread context classloader classLoader = Thread.currentThread().getContextClassLoader(); fileUrl = ...
repos\camunda-bpm-platform-master\commons\utils\src\main\java\org\camunda\commons\utils\IoUtil.java
1
请完成以下Java代码
private void adjustLUTUConfiguration(final I_M_HU_LUTU_Configuration lutuConfig, final I_M_ReceiptSchedule receiptSchedule) { if (lutuConfigurationFactory.isNoLU(lutuConfig)) { // // Adjust TU lutuConfig.setIsInfiniteQtyTU(false); lutuConfig.setQtyTU(BigDecimal.ONE); } else { // // Adjust L...
// Adjust CU if TU can hold an infinite qty, but the material receipt is of course finite, so we need to adjust the LUTU Configuration. // Otherwise, receiving using the default configuration will not work. final BigDecimal qtyTU = lutuConfig.getQtyTU(); if (lutuConfig.isInfiniteQtyCU() && qtyTU.signum() > 0) ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\handlingunits\process\WEBUI_M_ReceiptSchedule_ReceiveHUs_UsingDefaults.java
1
请完成以下Java代码
protected TaskListener initializeTaskListener(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context, CamundaTaskListener listener) { Collection<CamundaField> fields = listener.getCamundaFields(); List<FieldDeclaration> fieldDeclarations = initializeFieldDeclarations(element, activity, context, ...
} } return taskListener; } protected HumanTask getDefinition(CmmnElement element) { return (HumanTask) super.getDefinition(element); } @Override protected CmmnActivityBehavior getActivityBehavior() { return new HumanTaskActivityBehavior(); } }
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\cmmn\handler\HumanTaskItemHandler.java
1
请完成以下Java代码
protected Consumer<AbstractGraphQlClientSyncBuilder<?>> getBuilderInitializer() { return (builder) -> { builder.interceptors((interceptorList) -> interceptorList.addAll(this.interceptors)); builder.documentSource(this.documentSource); builder.setJsonConverter(getJsonConverter()); }; } private Chain crea...
JsonMapper jsonMapper = JsonMapper.builder().addModule(new GraphQlJacksonModule()).build(); return new JacksonJsonHttpMessageConverter(jsonMapper); } } @SuppressWarnings("removal") private static final class DefaultJackson2Converter { static HttpMessageConverter<Object> initialize() { com.fasterxml.jacks...
repos\spring-graphql-main\spring-graphql\src\main\java\org\springframework\graphql\client\AbstractGraphQlClientSyncBuilder.java
1
请在Spring Boot框架中完成以下Java代码
public java.lang.String getSUMUP_merchant_code() { return get_ValueAsString(COLUMNNAME_SUMUP_merchant_code); } @Override public void setSUMUP_Transaction_ID (final int SUMUP_Transaction_ID) { if (SUMUP_Transaction_ID < 1) set_ValueNoCheck (COLUMNNAME_SUMUP_Transaction_ID, null); else set_ValueNoChe...
{ return get_ValueAsInt(COLUMNNAME_SUMUP_Transaction_ID); } @Override public void setTimestamp (final java.sql.Timestamp Timestamp) { set_Value (COLUMNNAME_Timestamp, Timestamp); } @Override public java.sql.Timestamp getTimestamp() { return get_ValueAsTimestamp(COLUMNNAME_Timestamp); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.sumup\src\main\java-gen\de\metas\payment\sumup\repository\model\X_SUMUP_Transaction.java
2
请完成以下Java代码
public void setInternalName (java.lang.String InternalName) { set_ValueNoCheck (COLUMNNAME_InternalName, InternalName); } /** Get Interner Name. @return Generally used to give records a name that can be safely referenced from code. */ @Override public java.lang.String getInternalName () { return (java.l...
/** Get Name. @return Name */ @Override public java.lang.String getName () { return (java.lang.String)get_Value(COLUMNNAME_Name); } /** Set URL. @param URL Full URL address - e.g. http://www.adempiere.org */ @Override public void setURL (java.lang.String URL) { set_Value (COLUMNNAME_URL, URL); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java-gen\de\metas\impex\model\X_AD_InputDataSource.java
1
请完成以下Java代码
protected org.compiere.model.POInfo initPO(final Properties ctx) { return org.compiere.model.POInfo.getPOInfo(Table_Name); } /** * AD_Language AD_Reference_ID=106 * Reference name: AD_Language */ public static final int AD_LANGUAGE_AD_Reference_ID=106; @Override public void setAD_Language (final java.la...
@Override public int getAD_Ref_List_ID() { return get_ValueAsInt(COLUMNNAME_AD_Ref_List_ID); } @Override public void setDescription (final @Nullable java.lang.String Description) { set_Value (COLUMNNAME_Description, Description); } @Override public java.lang.String getDescription() { return get_Valu...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_Ref_List_Trl.java
1
请在Spring Boot框架中完成以下Java代码
public class AlipayConfigUtil { private static final Log LOG = LogFactory.getLog(AlipayConfigUtil.class); /** * 通过静态代码块读取上传文件的验证格式配置文件,静态代码块只执行一次(单例) */ private static Properties properties = new Properties(); /** * 私有构造方法 **/ private AlipayConfigUtil() { } static { ...
// 字符编码格式 目前支持 gbk 或 utf-8 public static final String input_charset = (String) properties.get("input_charset"); // 支付类型 ,无需修改 public static final String payment_type = (String) properties.get("payment_type"); // 调用的接口名,无需修改 public static final String service = (String) properties.get("service"); ...
repos\roncoo-pay-master\roncoo-pay-service\src\main\java\com\roncoo\pay\trade\utils\alipay\config\AlipayConfigUtil.java
2
请完成以下Java代码
private BankStatementLineAndPaymentsRows retrieveRowsData(final BanksStatementReconciliationViewCreateRequest request) { final List<BankStatementLineRow> bankStatementLineRows = rowsRepo.getBankStatementLineRowsByIds(request.getBankStatementLineIds()); final List<PaymentToReconcileRow> paymentToReconcileRows = row...
} @Override public void invalidateView(final ViewId viewId) { views.invalidateView(viewId); } private List<RelatedProcessDescriptor> getPaymentToReconcilateProcesses() { return ImmutableList.of( createProcessDescriptor(PaymentsToReconcileView_Reconcile.class)); } private final RelatedProcessDescripto...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\bankstatement_reconciliation\BankStatementReconciliationViewFactory.java
1
请在Spring Boot框架中完成以下Java代码
public class BankStatementCreateRequest { @Nullable BankStatementImportFileId bankStatementImportFileId; @NonNull OrgId orgId; @NonNull BankAccountId orgBankAccountId; @NonNull LocalDate statementDate; @NonNull String name; @Nullable
String description; @Nullable BigDecimal beginningBalance; @Nullable ElectronicFundsTransfer eft; @Value @Builder public static class ElectronicFundsTransfer { LocalDate statementDate; String statementReference; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.base\src\main\java\de\metas\banking\service\BankStatementCreateRequest.java
2
请完成以下Java代码
public void setC_OLCand_AlbertaTherapy_ID(final int C_OLCand_AlbertaTherapy_ID) { if (C_OLCand_AlbertaTherapy_ID < 1) set_ValueNoCheck(COLUMNNAME_C_OLCand_AlbertaTherapy_ID, null); else set_ValueNoCheck(COLUMNNAME_C_OLCand_AlbertaTherapy_ID, C_OLCand_AlbertaTherapy_ID); } @Override public int getC_OLCand...
@Override public int getC_OLCand_ID() { return get_ValueAsInt(COLUMNNAME_C_OLCand_ID); } @Override public void setTherapy(final String Therapy) { set_Value(COLUMNNAME_Therapy, Therapy); } @Override public String getTherapy() { return get_ValueAsString(COLUMNNAME_Therapy); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.healthcare.alberta\src\main\java-gen\de\metas\vertical\healthcare\alberta\model\X_C_OLCand_AlbertaTherapy.java
1
请完成以下Java代码
public void setAD_Print_Clients_ID (int AD_Print_Clients_ID) { if (AD_Print_Clients_ID < 1) set_ValueNoCheck (COLUMNNAME_AD_Print_Clients_ID, null); else set_ValueNoCheck (COLUMNNAME_AD_Print_Clients_ID, Integer.valueOf(AD_Print_Clients_ID)); } @Override public int getAD_Print_Clients_ID() { return...
{ set_Value (COLUMNNAME_DateLastPoll, DateLastPoll); } @Override public java.sql.Timestamp getDateLastPoll() { return get_ValueAsTimestamp(COLUMNNAME_DateLastPoll); } @Override public void setHostKey (java.lang.String HostKey) { set_Value (COLUMNNAME_HostKey, HostKey); } @Override public java.lang....
repos\metasfresh-new_dawn_uat\backend\de.metas.printing\de.metas.printing.base\src\main\java-gen\de\metas\printing\model\X_AD_Print_Clients.java
1