instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
public class BatchingRabbitTemplate extends RabbitTemplate { private final Lock lock = new ReentrantLock(); private final BatchingStrategy batchingStrategy; private final TaskScheduler scheduler; private volatile @Nullable ScheduledFuture<?> scheduledTask; /** * Create an instance with the supplied paramete...
MessageBatch batch = this.batchingStrategy.addToBatch(exchange, routingKey, message); if (batch != null) { super.send(batch.exchange(), batch.routingKey(), batch.message(), null); } Date next = this.batchingStrategy.nextRelease(); if (next != null) { this.scheduledTask = this.scheduler.schedul...
repos\spring-amqp-main\spring-rabbit\src\main\java\org\springframework\amqp\rabbit\core\BatchingRabbitTemplate.java
1
请在Spring Boot框架中完成以下Java代码
public EventRegistryEngine eventRegistryEngine(@SuppressWarnings("unused") ProcessEngine processEngine) { // The process engine needs to be injected, as otherwise it won't be initialized, which means that the EventRegistryEngine is not initialized yet if (!EventRegistryEngines.isInitialized()) {...
"org.flowable.engine.ProcessEngine", "org.flowable.app.engine.AppEngine" }) static class StandaloneEventRegistryConfiguration extends BaseEngineConfigurationWithConfigurers<SpringEventRegistryEngineConfiguration> { @Bean public EventRegistryFactoryBean formEngine(SpringEventRegistryEngi...
repos\flowable-engine-main\modules\flowable-spring-boot\flowable-spring-boot-starters\flowable-spring-boot-autoconfigure\src\main\java\org\flowable\spring\boot\eventregistry\EventRegistryServicesAutoConfiguration.java
2
请完成以下Java代码
public void setDate1 (java.sql.Timestamp Date1) { set_Value (COLUMNNAME_Date1, Date1); } /** Get Datum. @return Date when business is not conducted */ @Override public java.sql.Timestamp getDate1 () { return (java.sql.Timestamp)get_Value(COLUMNNAME_Date1); } /** Set Enddatum. @param EndDate Las...
return (java.lang.String)get_Value(COLUMNNAME_Frequency); } /** Set Repeat. @param IsRepeat Repeat */ @Override public void setIsRepeat (boolean IsRepeat) { set_Value (COLUMNNAME_IsRepeat, Boolean.valueOf(IsRepeat)); } /** Get Repeat. @return Repeat */ @Override public boolean isRepeat () { Obj...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_NonBusinessDay.java
1
请完成以下Java代码
public static void fillJsonTypes(Map<String, Class<? extends BaseBpmnJsonConverter>> convertersToBpmnMap) { convertersToBpmnMap.put(STENCIL_EVENT_THROW_NONE, ThrowEventJsonConverter.class); convertersToBpmnMap.put(STENCIL_EVENT_THROW_SIGNAL, ThrowEventJsonConverter.class); } public static void ...
return STENCIL_EVENT_THROW_NONE; } } protected void convertElementToJson(ObjectNode propertiesNode, BaseElement baseElement) { ThrowEvent throwEvent = (ThrowEvent) baseElement; addEventProperties(throwEvent, propertiesNode); } protected FlowElement convertJsonToElement( ...
repos\Activiti-develop\activiti-core\activiti-json-converter\src\main\java\org\activiti\editor\language\json\converter\ThrowEventJsonConverter.java
1
请完成以下Java代码
public void migrateDependentEntities() { for (MigratingInstance dependentEntity : migratingDependentInstances) { dependentEntity.migrateState(); } } @Override public void setParent(MigratingScopeInstance parentInstance) { if (this.parentInstance != null) { this.parentInstance.removeChild(...
} @Override public void detachChildren() { Set<MigratingProcessElementInstance> childrenCopy = new HashSet<MigratingProcessElementInstance>(getChildren()); for (MigratingProcessElementInstance child : childrenCopy) { child.detachState(); } } @Override public void remove(boolean skipCustomL...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\migration\instance\MigratingEventScopeInstance.java
1
请完成以下Java代码
public class AccountStatusUserDetailsChecker implements UserDetailsChecker, MessageSourceAware { private final Log logger = LogFactory.getLog(getClass()); protected MessageSourceAccessor messages = SpringSecurityMessageSource.getAccessor(); @Override public void check(UserDetails user) { if (!user.isAccountNon...
this.logger.debug("Failed to authenticate since user account credentials have expired"); throw new CredentialsExpiredException(this.messages .getMessage("AccountStatusUserDetailsChecker.credentialsExpired", "User credentials have expired")); } } /** * @since 5.2 */ @Override public void setMessageSour...
repos\spring-security-main\core\src\main\java\org\springframework\security\authentication\AccountStatusUserDetailsChecker.java
1
请在Spring Boot框架中完成以下Java代码
static class SpringBoot2AndLaterKotlinProjectGenerationConfiguration { @Bean @ConditionalOnBuildSystem(MavenBuildSystem.ID) KotlinMavenBuildCustomizer kotlinBuildCustomizer(KotlinProjectSettings kotlinProjectSettings) { return new KotlinMavenBuildCustomizer(kotlinProjectSettings); } @Bean MainCompilati...
return (typeDeclaration) -> { KotlinFunctionDeclaration configure = KotlinFunctionDeclaration.function("configure") .modifiers(KotlinModifier.OVERRIDE) .returning("org.springframework.boot.builder.SpringApplicationBuilder") .parameters( Parameter.of("application", "org.springframework.boot.bui...
repos\initializr-main\initializr-generator-spring\src\main\java\io\spring\initializr\generator\spring\code\kotlin\KotlinProjectGenerationDefaultContributorsConfiguration.java
2
请完成以下Java代码
public static boolean equals(@Nullable final AccountConceptualName o1, @Nullable final AccountConceptualName o2) {return Objects.equals(o1, o2);} public boolean isAnyOf(@Nullable final AccountConceptualName... names) { if (names == null) { return false; } for (final AccountConceptualName name : names) ...
} return false; } public boolean isProductMandatory() { return isAnyOf(P_Asset_Acct); } public boolean isWarehouseLocatorMandatory() { return isAnyOf(P_Asset_Acct); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\acct\AccountConceptualName.java
1
请在Spring Boot框架中完成以下Java代码
public class OmsOrderReturnApplyServiceImpl implements OmsOrderReturnApplyService { @Autowired private OmsOrderReturnApplyDao returnApplyDao; @Autowired private OmsOrderReturnApplyMapper returnApplyMapper; @Override public List<OmsOrderReturnApply> list(OmsReturnApplyQueryParam queryParam, Integ...
//完成退货 returnApply.setId(id); returnApply.setStatus(2); returnApply.setReceiveTime(new Date()); returnApply.setReceiveMan(statusParam.getReceiveMan()); returnApply.setReceiveNote(statusParam.getReceiveNote()); }else if(status.equals(3)){ //...
repos\mall-master\mall-admin\src\main\java\com\macro\mall\service\impl\OmsOrderReturnApplyServiceImpl.java
2
请完成以下Java代码
protected final String doIt() { this.countOK = 0; this.countError = 0; final Iterator<GenericPO> documents = retrieveDocumentsToProcess(); processDocuments(documents, getDocAction()); return "@Processed@ (OK=#" + countOK + ", Error=#" + countError + ")"; } protected abstract Iterator<GenericPO> retrieve...
addLog("Document " + doc + ": Processed"); countOK++; } @Override public boolean doCatch(final Throwable e) { final String msg = "Processing of document " + doc + ": Failed - ProccessMsg: " + documentBL.getDocument(doc).getProcessMsg() + "; ExceptionMsg: " + e.getMessage(); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\process\AbstractProcessDocumentsTemplate.java
1
请完成以下Java代码
public void setSerNo (final @Nullable java.lang.String SerNo) { set_Value (COLUMNNAME_SerNo, SerNo); } @Override public java.lang.String getSerNo() { return get_ValueAsString(COLUMNNAME_SerNo); } @Override public void setSubProducer_BPartner_ID (final int SubProducer_BPartner_ID) { if (SubProducer_BPa...
public java.lang.String getWarehouseLocatorIdentifier() { return get_ValueAsString(COLUMNNAME_WarehouseLocatorIdentifier); } @Override public void setWarehouseValue (final @Nullable java.lang.String WarehouseValue) { set_Value (COLUMNNAME_WarehouseValue, WarehouseValue); } @Override public java.lang.Stri...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_I_Inventory.java
1
请完成以下Java代码
public class MigratingActivityInstanceVisitor extends MigratingProcessElementInstanceVisitor { protected boolean skipCustomListeners; protected boolean skipIoMappings; public MigratingActivityInstanceVisitor(boolean skipCustomListeners, boolean skipIoMappings) { this.skipCustomListeners = skipCustomListener...
// must always be an activity instance MigratingActivityInstance ancestorActivityInstance = (MigratingActivityInstance) ancestorScopeInstance; ExecutionEntity newParentExecution = ancestorActivityInstance.createAttachableExecution(); Map<PvmActivity, PvmExecutionImpl> createdExecutions = newParent...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\migration\instance\MigratingActivityInstanceVisitor.java
1
请在Spring Boot框架中完成以下Java代码
public SAPGLJournal copy(@NonNull final SAPGLJournalCopyRequest copyRequest) { final SAPGLJournal journalToBeCopied = glJournalRepository.getById(copyRequest.getSourceJournalId()); final SAPGLJournalCreateRequest createRequest = SAPGLJournalCreateRequest.of(journalToBeCopied, copyRequest.getD...
private Optional<FAOpenItemTrxInfo> computeTrxInfo( @NonNull final AccountId accountId, @NonNull final SAPGLJournalLineId sapGLJournalLineId) { return Optional.empty(); } public void fireAfterComplete(final I_SAP_GLJournal record) { final SAPGLJournal glJournal = glJournalRepository.getByRecord(record); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java\de\metas\acct\gljournal_sap\service\SAPGLJournalService.java
2
请完成以下Java代码
public TreePath[] getCheckingRoots() { return getCheckingModel().getCheckingRoots(); } /** * Clears the checking. */ public void clearChecking() { getCheckingModel().clearChecking(); } /** * Add paths in the checking. */ public void addCheckingPaths(TreePa...
* * @param tsl the <code>TreeChckingListener</code> to remove */ public void removeTreeCheckingListener(TreeCheckingListener tsl) { this.checkingModel.removeTreeCheckingListener(tsl); } /** * Expand completely a tree */ public void expandAll() { expandSubTree(getP...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing\src\main\java\it\cnr\imaa\essi\lablib\gui\checkboxtree\CheckboxTree.java
1
请完成以下Java代码
public class UmsResource implements Serializable { private Long id; @ApiModelProperty(value = "创建时间") private Date createTime; @ApiModelProperty(value = "资源名称") private String name; @ApiModelProperty(value = "资源URL") private String url; @ApiModelProperty(value = "描述") private Str...
public Long getCategoryId() { return categoryId; } public void setCategoryId(Long categoryId) { this.categoryId = categoryId; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\UmsResource.java
1
请完成以下Java代码
public void setM_IolCandHandler(final de.metas.inoutcandidate.model.I_M_IolCandHandler M_IolCandHandler) { set_ValueFromPO(COLUMNNAME_M_IolCandHandler_ID, de.metas.inoutcandidate.model.I_M_IolCandHandler.class, M_IolCandHandler); } @Override public void setM_IolCandHandler_ID (final int M_IolCandHandler_ID) { ...
} @Override public void setRecord_ID (final int Record_ID) { if (Record_ID < 0) set_Value (COLUMNNAME_Record_ID, null); else set_Value (COLUMNNAME_Record_ID, Record_ID); } @Override public int getRecord_ID() { return get_ValueAsInt(COLUMNNAME_Record_ID); } @Override public void setStatus (fi...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java-gen\de\metas\inoutcandidate\model\X_M_IolCandHandler_Log.java
1
请完成以下Java代码
public int getC_Invoice_Candidate_Assignment_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_Candidate_Assignment_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Vertrag-Rechnungskandidat. @param C_Invoice_Candidate_Term_ID Vertrag-Rechnungskandidat */ @Override public v...
set_Value (COLUMNNAME_IsAssignedQuantityIncludedInSum, Boolean.valueOf(IsAssignedQuantityIncludedInSum)); } /** Get Zugeordnete Menge wird in Summe einbez.. @return Zugeordnete Menge wird in Summe einbez. */ @Override public boolean isAssignedQuantityIncludedInSum () { Object oo = get_Value(COLUMNNAME_IsAs...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java-gen\de\metas\contracts\model\X_C_Invoice_Candidate_Assignment.java
1
请完成以下Spring Boot application配置
server: port: 8088 spring: application: name: manyDatasource datasource: # spring.datasource.test1 # druid: test1: jdbcurl: jdbc:mysql://localhost:3333/demo?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8 username: root password: 123456 initial-size: 1 ...
minPoolSize: 3 maxPoolSize: 25 maxLifetime: 20000 borrowConnectionTimeout: 30 loginTimeout: 30 maintenanceInterval: 60 maxIdleTime: 60 mybatis: mapper-locations: classpath:mapper/*.xml spring.resources.static-locations: classpath:static/,file:static/ logging: level: ...
repos\springboot-demo-master\atomikos\src\main\resources\application.yaml
2
请完成以下Java代码
public class MPrintGraph extends X_AD_PrintGraph { /** * */ private static final long serialVersionUID = 4827755559898685764L; /** * Standard Constructor * @param ctx context * @param AD_PrintGraph_ID graph id * @param trxName trx */ public MPrintGraph (Properties ctx, int AD_PrintGraph_ID, Strin...
super (ctx, AD_PrintGraph_ID, trxName); } // MPrintGraph /** * Load Constructor * @param ctx context * @param rs result set * @param trxName trx */ public MPrintGraph (Properties ctx, ResultSet rs, String trxName) { super (ctx, rs, trxName); } // MPrintGraph } // MPrintGraph
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\print\MPrintGraph.java
1
请完成以下Java代码
protected void writeTerminateDefinition( Event parentEvent, TerminateEventDefinition terminateDefinition, XMLStreamWriter xtw ) throws Exception { xtw.writeStartElement(ELEMENT_EVENT_TERMINATEDEFINITION); if (terminateDefinition.isTerminateAll()) { writeQualified...
protected void writeDefaultAttribute(String attributeName, String value, XMLStreamWriter xtw) throws Exception { BpmnXMLUtil.writeDefaultAttribute(attributeName, value, xtw); } protected void writeQualifiedAttribute(String attributeName, String value, XMLStreamWriter xtw) throws Exception { Bpm...
repos\Activiti-develop\activiti-core\activiti-bpmn-converter\src\main\java\org\activiti\bpmn\converter\BaseBpmnXMLConverter.java
1
请完成以下Java代码
public class ProcessEngineContext { /** * Declares to the Process Engine that a new, separate context, * bound to the current thread, needs to be created for all subsequent * Process Engine database operations. The method should always be used * in a try-finally block to ensure that {@link #clear()} is c...
* <code> * try { * requiresNew(); * callable.call(); * } finally { * clear(); * } * </code> * * @param callable the callable to execute * @return what is defined by the callable passed to the method * @throws Exception */ public static <T> T withNewProcessEngineCo...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\context\ProcessEngineContext.java
1
请完成以下Java代码
public Address deepCopy(Address value) { if (Objects.isNull(value)) { return null; } Address newEmpAdd = new Address(); newEmpAdd.setAddressLine1(value.getAddressLine1()); newEmpAdd.setAddressLine2(value.getAddressLine2()); newEmpAdd.setCity(value.getCity())...
return (Serializable) deepCopy(value); } @Override public Address assemble(Serializable cached, Object owner) { return deepCopy((Address) cached); } @Override public Address replace(Address detached, Address managed, Object owner) { return detached; } @Override pub...
repos\tutorials-master\persistence-modules\hibernate-annotations\src\main\java\com\baeldung\hibernate\customtypes\AddressType.java
1
请完成以下Java代码
public void setDeploymentTenantId(String deploymentId, String newTenantId) { commandExecutor.execute(new SetDeploymentTenantIdCmd(deploymentId, newTenantId)); } @Override public void changeDeploymentParentDeploymentId(String deploymentId, String newParentDeploymentId) { commandExecutor....
return commandExecutor.execute(new GetDmnDefinitionCmd(decisionId)); } @Override public InputStream getDmnResource(String decisionId) { return commandExecutor.execute(new GetDeploymentDmnResourceCmd(decisionId)); } @Override public void setDecisionCategory(String decisionId, String cat...
repos\flowable-engine-main\modules\flowable-dmn-engine\src\main\java\org\flowable\dmn\engine\impl\DmnRepositoryServiceImpl.java
1
请完成以下Java代码
public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; AcquirableJobEntity other = (AcquirableJobEntity) obj; if (id == null) { if (other.id != null) return false; } else if ...
@Override public String toString() { return this.getClass().getSimpleName() + "[id=" + id + ", revision=" + revision + ", lockOwner=" + lockOwner + ", lockExpirationTime=" + lockExpirationTime + ", duedate=" + duedate + ", rootProcessInstanceId=" + rootProcessInstan...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\AcquirableJobEntity.java
1
请完成以下Java代码
final class WebsocketEventsLog { private static final Logger logger = LogManager.getLogger(WebsocketEventsLog.class); private final AtomicBoolean logEventsEnabled = new AtomicBoolean(false); private final AtomicInteger logEventsMaxSize = new AtomicInteger(500); private final List<WebsocketEventLogRecord> loggedEve...
} public void setLogEventsMaxSize(final int logEventsMaxSizeNew) { Preconditions.checkArgument(logEventsMaxSizeNew > 0, "logEventsMaxSize > 0"); final int logEventsMaxSizeOld = logEventsMaxSize.getAndSet(logEventsMaxSizeNew); logger.info("Changed logEventsMaxSize from {} to {}", logEventsMaxSizeOld, logEventsM...
repos\metasfresh-new_dawn_uat\backend\de.metas.util.web\src\main\java\de\metas\websocket\sender\WebsocketEventsLog.java
1
请在Spring Boot框架中完成以下Java代码
public class EverhourImportProcess extends JavaProcess { @Param(parameterName = "DateFrom") private LocalDate dateFrom; @Param(parameterName = "DateTo") private LocalDate dateTo; private final EverhourImporterService everhourImporterService = SpringContextHolder.instance.getBean(EverhourImporterService.class); ...
.orgId(Env.getOrgId()) .authToken(sysConfigBL.getValue(ACCESS_TOKEN.getName())) .startDate(dateFrom) .endDate(dateTo) .build(); timeBookingsImporterService.importTimeBookings(everhourImporterService, timeBookingsRequest); return MSG_OK; } protected void overwriteParameters(@NonNull final LocalD...
repos\metasfresh-new_dawn_uat\backend\de.metas.serviceprovider\src\main\java\de\metas\serviceprovider\everhour\EverhourImportProcess.java
2
请完成以下Java代码
public class MRegistrationAttribute extends X_A_RegistrationAttribute { /** * */ private static final long serialVersionUID = 5306354702182270968L; /** * Get All Asset Registration Attributes (not cached). * Refreshes Cache for direct addess * @param ctx context * @return array of Registration Attrib...
} // MRegistrationAttribute[] retValue = new MRegistrationAttribute[list.size()]; list.toArray(retValue); return retValue; } // getAll /** * Get Registration Attribute (cached) * @param ctx context * @param A_RegistrationAttribute_ID id * @return Registration Attribute */ public static MRegistrat...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\MRegistrationAttribute.java
1
请完成以下Java代码
public static final class Builder { private OrgId orgId; private String docTypeName; private int C_Payment_ID; private String documentNo; private int C_BPartner_ID; private String BPartnerName; private Date paymentDate; // task 09643 private Date dateAcct; private CurrencyCode currencyISOCode; pr...
return this; } public Builder setPayAmt(final BigDecimal payAmt) { this.payAmt = payAmt; return this; } public Builder setPayAmtConv(final BigDecimal payAmtConv) { this.payAmtConv = payAmtConv; return this; } public Builder setC_BPartner_ID(final int C_BPartner_ID) { this.C_BPartner_...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.swingui\src\main\java\de\metas\banking\payment\paymentallocation\model\PaymentRow.java
1
请在Spring Boot框架中完成以下Java代码
public class ClassificationType { @XmlElementRef(name = "Feature", namespace = "http://erpel.at/schemas/1p0/documents", type = JAXBElement.class, required = false) @XmlMixed protected List<Serializable> content; @XmlAttribute(name = "ClassificationSchema", namespace = "http://erpel.at/schemas/1p0/docum...
/** * The schema of the classification - e.g. eCl@ss. * * @return * possible object is * {@link String } * */ public String getClassificationSchema() { return classificationSchema; } /** * Sets the value of the classificationSchema property. ...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_ecosio_remadv\at\erpel\schemas\_1p0\documents\ClassificationType.java
2
请完成以下Java代码
public String getSql() { buildSqlIfNeeded(); return sql; } @Override public List<Object> getSqlParams(final Properties ctx) { return Collections.emptyList(); } private final void buildSqlIfNeeded() { if (sqlBuilt) { return; } final String columnNameInvoiceCandidateId = I_C_Invoice_Candidate_...
return false; } final int invoiceCandidateId = model.getC_Invoice_Candidate_ID(); return acceptInvoiceCandidateId(invoiceCandidateId); } public boolean acceptInvoiceCandidateId(final int invoiceCandidateId) { // // Case: no Lock was mentioned // => we consider only those records which were NOT locked ...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\invoicecandidate\api\impl\LockedByOrNotLockedAtAllFilter.java
1
请完成以下Java代码
public void setHelp (String Help) { set_Value (COLUMNNAME_Help, Help); } /** Get Comment/Help. @return Comment or Hint */ public String getHelp () { return (String)get_Value(COLUMNNAME_Help); } /** Set Host. @param Host Host */ public void setHost (String Host) { set_Value (COLUMNNAME_Host, H...
set_Value (COLUMNNAME_Port, Integer.valueOf(Port)); } /** Get Port. @return Port */ public int getPort () { Integer ii = (Integer)get_Value(COLUMNNAME_Port); if (ii == null) return 0; return ii.intValue(); } /** Set Search Key. @param Value Search key for the record in the format required - ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_EXP_Processor.java
1
请完成以下Java代码
public java.lang.String getHelp () { return (java.lang.String)get_Value(COLUMNNAME_Help); } /** Set Order By Value. @param IsOrderByValue Order list using the value column instead of the name column */ @Override public void setIsOrderByValue (boolean IsOrderByValue) { set_Value (COLUMNNAME_IsOrderBy...
* ValidationType AD_Reference_ID=2 * Reference name: AD_Reference Validation Types */ public static final int VALIDATIONTYPE_AD_Reference_ID=2; /** ListValidation = L */ public static final String VALIDATIONTYPE_ListValidation = "L"; /** DataType = D */ public static final String VALIDATIONTYPE_DataType = "D";...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_Reference.java
1
请在Spring Boot框架中完成以下Java代码
public class Product { @Id private Long id; private String name; private String category; private double price; public Product(Long id, String name, String category, double price) { this.id = id; this.name = name; this.category = category; this.price = price; ...
public void setName(String name) { this.name = name; } public String getCategory() { return category; } public void setCategory(String category) { this.category = category; } public double getPrice() { return price; } public void setPrice(double price)...
repos\tutorials-master\persistence-modules\hibernate-reactive\src\main\java\com\baeldung\hibernate\entities\Product.java
2
请在Spring Boot框架中完成以下Java代码
public <I extends EntityId> void removeById(TenantId tenantId, I id) { EntityType entityType = id.getEntityType(); EntityDaoService entityService = entityServiceRegistry.getServiceByEntityType(entityType); entityService.deleteEntity(tenantId, id, false); } private <I extends EntityId, E...
@SuppressWarnings("unchecked") private <E> Dao<E> getDao(EntityType entityType) { return (Dao<E>) daos.get(entityType); } @Autowired private void setDaos(Collection<Dao<?>> daos) { daos.forEach(dao -> { if (dao.getEntityType() != null) { this.daos.put(dao.get...
repos\thingsboard-master\application\src\main\java\org\thingsboard\server\service\sync\ie\exporting\DefaultExportableEntitiesService.java
2
请完成以下Java代码
protected class EnumerablePropertySourceLoggingFunction extends AbstractPropertySourceLoggingFunction { @Override public @Nullable PropertySource<?> apply(@Nullable PropertySource<?> propertySource) { if (propertySource instanceof EnumerablePropertySource) { EnumerablePropertySource<?> enumerablePropertyS...
? propertySource.getSource() : null; if (source instanceof Map) { Map<String, Object> map = new TreeMap<>((Map<String, Object>) source); logProperties(map.keySet(), map::get); } } return propertySource; } } }
repos\spring-boot-data-geode-main\spring-geode-project\spring-geode\src\main\java\org\springframework\geode\context\logging\EnvironmentLoggingApplicationListener.java
1
请完成以下Java代码
public int getParameterCount() { return 0; } @Override public String getLabel(final int index) { return null; } @Override public Object getParameterComponent(final int index) { return null; } @Override public Object getParameterToComponent(final int index) { return null; } @Override public O...
{ final Integer recordId = e.getKey(); if (recordId == null || recordId <= 0) { continue; } final Integer asiId = e.getValue(); if (asiId == null || asiId <= 0) { continue; } final OrderLineProductASIGridRowBuilder productQtyBuilder = new OrderLineProductASIGridRowBuilder(); prod...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\adempiere\gui\search\InfoProductASIController.java
1
请在Spring Boot框架中完成以下Java代码
public abstract class MultipleIdsRepositoryImpl<T, ID extends Serializable> implements MultipleIdsRepository<T, ID> { @PersistenceContext private EntityManager entityManager; private final Class<T> entityClass; public MultipleIdsRepositoryImpl(Class<T> entityClass) { this.entityClass ...
public List<T> fetchBySessionCheckMultipleIds(List<ID> ids) { List<T> result = getMultiLoadAccess().enableSessionCheck(true).multiLoad(ids); return result; } @Override public List<T> fetchInBatchesBySessionCheckMultipleIds(List<ID> ids, int batchSize) { List<T> result = getMultiL...
repos\Hibernate-SpringBoot-master\HibernateSpringBootLoadMultipleIds\src\main\java\com\bookstore\multipleids\MultipleIdsRepositoryImpl.java
2
请完成以下Java代码
public void dynamicRouteByNacosListener(String dataId, String group) { try { configService.addListener(dataId, group, new Listener() { @Override public void receiveConfigInfo(String configInfo) { log.info("进行网关更新:\n\r{}", configInfo); ...
properties.setProperty("namespace", gatewayRoutersConfig.getNamespace()); } if(StringUtils.isNotBlank( gatewayRoutersConfig.getUsername())){ properties.setProperty("username", gatewayRoutersConfig.getUsername()); } if(StringUtils.isNotBlank(gatewayRoutersC...
repos\JeecgBoot-main\jeecg-boot\jeecg-server-cloud\jeecg-cloud-gateway\src\main\java\org\jeecg\loader\DynamicRouteLoader.java
1
请完成以下Java代码
protected boolean beforeSave (boolean newRecord) { // Create Trees if (newRecord) { MTree_Base tree = new MTree_Base (getCtx(), getName()+MTree_Base.TREETYPE_CMContainer, MTree_Base.TREETYPE_CMContainer, get_TrxName()); if (!tree.save()) return false; setAD_TreeCMC_ID(tree.getAD_Tree_ID()); ...
* - create tree * @param newRecord insert * @param success save success * @return true if saved */ protected boolean afterSave (boolean newRecord, boolean success) { if (!success) return success; if (!newRecord) { // Clean Web Project Cache } return success; } // afterSave } // MWebProject
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\MWebProject.java
1
请完成以下Java代码
public String getTenantId() { return tenantId; } public String getState() { return state; } public Date getCreateTime() { return createTime; } public Date getRemovalTime() { return removalTime; } public String getRootProcessInstanceId() { return rootProcessInstanceId; } publ...
dto.caseDefinitionId = historicVariableInstance.getCaseDefinitionId(); dto.caseInstanceId = historicVariableInstance.getCaseInstanceId(); dto.caseExecutionId = historicVariableInstance.getCaseExecutionId(); dto.taskId = historicVariableInstance.getTaskId(); dto.tenantId = historicVariableInstance.getTen...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\history\HistoricVariableInstanceDto.java
1
请在Spring Boot框架中完成以下Java代码
private List<EndpointExposureOutcomeContributor> loadExposureOutcomeContributors(@Nullable ClassLoader classLoader, Environment environment) { ArgumentResolver argumentResolver = ArgumentResolver.of(Environment.class, environment); return SpringFactoriesLoader.forDefaultResourceLocation(classLoader) .load(End...
this.property = "management.endpoints." + name + ".exposure"; this.filter = new IncludeExcludeEndpointFilter<>(ExposableEndpoint.class, environment, this.property, exposure.getDefaultIncludes()); } @Override public @Nullable ConditionOutcome getExposureOutcome(EndpointId endpointId, Set<EndpointExposure...
repos\spring-boot-4.0.1\module\spring-boot-actuator-autoconfigure\src\main\java\org\springframework\boot\actuate\autoconfigure\endpoint\condition\OnAvailableEndpointCondition.java
2
请完成以下Java代码
public void setDescription (String Description) { set_Value (COLUMNNAME_Description, Description); } /** Get Description. @return Optional short description of the record */ public String getDescription () { return (String)get_Value(COLUMNNAME_Description); } /** Set Payroll Contract. @param HR_Con...
*/ public int getNetDays () { Integer ii = (Integer)get_Value(COLUMNNAME_NetDays); if (ii == null) return 0; return ii.intValue(); } /** Set Valid from. @param ValidFrom Valid from including this date (first day) */ public void setValidFrom (Timestamp ValidFrom) { set_Value (COLUMNNAME_Valid...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\eevolution\model\X_HR_Contract.java
1
请完成以下Java代码
public Builder errorCode(String errorCode) { this.errorCode = errorCode; return this; } /** * Sets the error description. * @param errorDescription the error description * @return the {@link Builder} */ public Builder errorDescription(String errorDescription) { this.errorDescription = errorD...
} Assert.hasText(this.redirectUri, "redirectUri cannot be empty"); OAuth2AuthorizationResponse authorizationResponse = new OAuth2AuthorizationResponse(); authorizationResponse.redirectUri = this.redirectUri; authorizationResponse.state = this.state; if (StringUtils.hasText(this.code)) { authorization...
repos\spring-security-main\oauth2\oauth2-core\src\main\java\org\springframework\security\oauth2\core\endpoint\OAuth2AuthorizationResponse.java
1
请完成以下Java代码
public static<T> Result<T> OK(T data) { Result<T> r = new Result<T>(); r.setSuccess(true); r.setCode(CommonConstant.SC_OK_200); r.setResult(data); return r; } public static<T> Result<T> OK(String msg, T data) { Result<T> r = new Result<T>(); r.setSuccess(true); r.setCode(CommonConstant.SC_OK_200); ...
} public static<T> Result<T> error(int code, String msg) { Result<T> r = new Result<T>(); r.setCode(code); r.setMessage(msg); r.setSuccess(false); return r; } public Result<T> error500(String message) { this.message = message; this.code = CommonConstant.SC_INTERNAL_SERVER_ERROR_500; this.success =...
repos\JeecgBoot-main\jeecg-boot\jeecg-boot-base-core\src\main\java\org\jeecg\common\api\vo\Result.java
1
请完成以下Java代码
public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(TimerEventDefinition.class, BPMN_ELEMENT_TIMER_EVENT_DEFINITION) .namespaceUri(BPMN20_NS) .extendsType(EventDefinition.class) .instanceProvider(new ModelTypeInstanceProvider<T...
public TimeDate getTimeDate() { return timeDateChild.getChild(this); } public void setTimeDate(TimeDate timeDate) { timeDateChild.setChild(this, timeDate); } public TimeDuration getTimeDuration() { return timeDurationChild.getChild(this); } public void setTimeDuration(TimeDuration timeDuratio...
repos\camunda-bpm-platform-master\model-api\bpmn-model\src\main\java\org\camunda\bpm\model\bpmn\impl\instance\TimerEventDefinitionImpl.java
1
请完成以下Java代码
public String getStartEventType() { return startEventType; } public void setStartEventType(String startEventType) { this.startEventType = startEventType; } public List<String> getCandidateStarterUsers() { return candidateStarterUsers; } public void setCandidateStarterU...
public Map<String, CaseElement> getAllCaseElements() { return allCaseElements; } public void setAllCaseElements(Map<String, CaseElement> allCaseElements) { this.allCaseElements = allCaseElements; } public <T extends PlanItemDefinition> List<T> findPlanItemDefinitionsOfType(Class<T> typ...
repos\flowable-engine-main\modules\flowable-cmmn-model\src\main\java\org\flowable\cmmn\model\Case.java
1
请完成以下Java代码
public String toEventMessage(String message) { String eventMessage = message.replaceAll("\\s+", " "); if (eventMessage.length() > 163) { eventMessage = eventMessage.substring(0, 160) + "..."; } return eventMessage; } @Override public String toString() { return this.getClass().getSimpleN...
+ ", tenantId=" + tenantId + "]"; } @Override public void setRevision(int revision) { this.revision = revision; } @Override public int getRevision() { return revision; } @Override public int getRevisionNext() { return revision + 1; } }
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\CommentEntity.java
1
请完成以下Java代码
protected Transaction getTransaction() { try { return transactionManager.getTransaction(); } catch (SystemException e) { throw new ActivitiException("SystemException while getting transaction ", e); } } public void addTransactionListener( TransactionState...
public TransactionStateSynchronization( TransactionState transactionState, TransactionListener transactionListener, CommandContext commandContext ) { this.transactionState = transactionState; this.transactionListener = transactionListener; ...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\cfg\jta\JtaTransactionContext.java
1
请完成以下Java代码
public static ExchangeFilterFunction countingFilter(AtomicInteger getCounter) { ExchangeFilterFunction countingFilter = (clientRequest, nextFilter) -> { HttpMethod httpMethod = clientRequest.method(); if (httpMethod == HttpMethod.GET) { getCounter.incrementAndGet(); ...
ClientRequest filteredRequest = ClientRequest.from(clientRequest) .url(newUrl) .build(); return nextFilter.exchange(filteredRequest); }; return urlModifyingFilter; } public static ExchangeFilterFunction loggingFilter(PrintStream printStream) { ...
repos\tutorials-master\spring-reactive-modules\spring-reactive-filters\src\main\java\com\baeldung\reactive\filters\WebClientFilters.java
1
请完成以下Java代码
public void setExternalId(final JsonExternalId externalId) { this.externalId = externalId; this.externalIdSet = true; } public void setActive(final Boolean active) { this.active = active; this.activeSet = true; } public void setName(final String name) { this.name = name; this.nameSet = true; } p...
public void setRegion(final String region) { this.region = region; this.regionSet = true; } public void setCountryCode(final String countryCode) { this.countryCode = countryCode; this.countryCodeSet = true; } public void setGln(final String gln) { this.gln = gln; this.glnSet = true; } public voi...
repos\metasfresh-new_dawn_uat\misc\de-metas-common\de-metas-common-bpartner\src\main\java\de\metas\common\bpartner\v1\request\JsonRequestLocation.java
1
请完成以下Java代码
public static boolean dbTypeIsOracle(DbType dbType) { return dbTypeIf(dbType, DbType.ORACLE, DbType.ORACLE_12C, DbType.DM); } /** * 是否是达梦 */ public static boolean dbTypeIsDm(DbType dbType) { return dbTypeIf(dbType, DbType.DM); } public static boolean dbTypeIsSqlServer(DbT...
return DataBaseConstant.DB_TYPE_SQLSERVER; }else if(dbTypeIsPostgre(dbType)){ return DataBaseConstant.DB_TYPE_POSTGRESQL; } return DataBaseConstant.DB_TYPE_MYSQL; } /** * 根据枚举类 获取数据库方言字符串 * @param dbType * @return */ public static String getDbDialect...
repos\JeecgBoot-main\jeecg-boot\jeecg-boot-base-core\src\main\java\org\jeecg\common\util\dynamic\db\DbTypeUtils.java
1
请在Spring Boot框架中完成以下Java代码
public Role getRole(Long id) { return roleService.getById(id); } @Override public String getRoleIds(String tenantId, String roleNames) { return roleService.getRoleIds(tenantId, roleNames); } @Override @GetMapping(API_PREFIX + "/getRoleName") public String getRoleName(Long id) { return roleService.getById...
@Override @GetMapping(API_PREFIX + "/getRoleAlias") public String getRoleAlias(Long id) { return roleService.getById(id).getRoleAlias(); } @Override @GetMapping(API_PREFIX + "/tenant") public R<Tenant> getTenant(Long id) { return R.data(tenantService.getById(id)); } @Override @GetMapping(API_PREFIX + "/t...
repos\SpringBlade-master\blade-service\blade-system\src\main\java\org\springblade\system\feign\SysClient.java
2
请完成以下Java代码
public Boolean getFallbackToDefaultTenant() { return fallbackToDefaultTenant; } public void setFallbackToDefaultTenant(Boolean fallbackToDefaultTenant) { this.fallbackToDefaultTenant = fallbackToDefaultTenant; } public void setCalledElementType(String calledElementType) { t...
setUseLocalScopeForOutParameters(otherElement.isUseLocalScopeForOutParameters()); setCompleteAsync(otherElement.isCompleteAsync()); setFallbackToDefaultTenant(otherElement.getFallbackToDefaultTenant()); inParameters = new ArrayList<>(); if (otherElement.getInParameters() != null && !oth...
repos\flowable-engine-main\modules\flowable-bpmn-model\src\main\java\org\flowable\bpmn\model\CallActivity.java
1
请完成以下Java代码
private List<AttributesChangedEvent> createMaterialEvent(final HUAttributeChanges changes) { if (changes.isEmpty()) { return ImmutableList.of(); } final HuId huId = changes.getHuId(); final I_M_HU hu = handlingUnitsBL.getById(huId); // // Consider only those HUs which have QtyOnHand if (!huStatusB...
.qty(productStorage.getQtyInStockingUOM().toBigDecimal()) .oldStorageAttributes(oldStorageAttributes) .newStorageAttributes(newStorageAttributes) .huId(productStorage.getHuId().getRepoId()) .build()); } return events; } private AttributesKeyWithASI toAttributesKeyWithASI(final AttributesKey ...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\material\interceptor\HUAttributeChangesCollector.java
1
请完成以下Java代码
public String toString() { return value.toString(); } public BigDecimal toBigDecimal() {return value;} @Override @NonNull public BigDecimal getValue() { return value; } @Override public void setValue(@Nullable final BigDecimal value) { this.value = value != null ? value : BigDecimal.ZERO; } @Over...
value = value.divide(divisor, scale, roundingMode); } public boolean comparesEqualTo(final BigDecimal val) { return value.compareTo(val) == 0; } public int signum() { return value.signum(); } public MutableBigDecimal min(final MutableBigDecimal value) { if (this.value.compareTo(value.getValue()) <= 0)...
repos\metasfresh-new_dawn_uat\backend\de.metas.util\src\main\java\org\adempiere\util\lang\MutableBigDecimal.java
1
请在Spring Boot框架中完成以下Java代码
public class WebConfiguration implements WebMvcConfigurer { /** * Uses session storage to remember the user’s language setting across requests. * Defaults to English if nothing is specified. * @return session-based {@link LocaleResolver} */ @Bean public LocaleResolver localeResolver() { SessionLocaleResol...
LocaleChangeInterceptor interceptor = new LocaleChangeInterceptor(); interceptor.setParamName("lang"); return interceptor; } /** * Registers the locale change interceptor so it can run on each request. * @param registry where interceptors are added */ @Override public void addInterceptors(InterceptorRegi...
repos\spring-petclinic-main\src\main\java\org\springframework\samples\petclinic\system\WebConfiguration.java
2
请完成以下Java代码
protected Capacity retrieveTotalCapacity() { checkStaled(); // // Get shipment schedule's target quantity (i.e. how much we need to deliver in total) // * in case we have QtyToDeliver_Override we consider this right away // * else we consider the QtyOrdered final BigDecimal qtyTarget; if (!InterfaceWrap...
{ staled = true; } private final void checkStaled() { if (!staled) { return; } InterfaceWrapperHelper.refresh(shipmentSchedule); staled = false; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\shipmentschedule\api\impl\ShipmentScheduleQtyPickedProductStorage.java
1
请完成以下Java代码
public boolean removeAll(Collection<?> c) { if (referenceSourceCollection.isImmutable()) { throw new UnsupportedModelOperationException("removeAll()", "collection is immutable"); } else { boolean result = false; for (Object o: c) { result |= remove(o); ...
public void clear() { if (referenceSourceCollection.isImmutable()) { throw new UnsupportedModelOperationException("clear()", "collection is immutable"); } else { Collection<DomElement> view = new ArrayList<DomElement>(); for (Source referenceSourceElement : referenc...
repos\camunda-bpm-platform-master\model-api\xml-model\src\main\java\org\camunda\bpm\model\xml\impl\type\reference\ElementReferenceCollectionImpl.java
1
请完成以下Java代码
public Long getUserId() { return userId; } public void setUserId(Long userId) { this.userId = userId; } public String getLoginName() { return loginName; } public void setLoginName(String loginName) { this.loginName = loginName; } public void setNickNam...
/** * 重载hashCode,只计算loginName; */ @Override public int hashCode() { return Objects.hashCode(loginName); } /** * 重载equals,只计算loginName; */ @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == nu...
repos\springBoot-master\springboot-shiro2\src\main\java\cn\abel\rest\shiro\ShiroUser.java
1
请完成以下Java代码
private List<RelatedProcessDescriptor> getInvoiceRelatedProcessDescriptors() { return ImmutableList.of( createProcessDescriptor(10, InvoicesView_MarkPreparedForAllocation.class), createProcessDescriptor(20, InvoicesView_UnMarkPreparedForAllocation.class), createProcessDescriptor(30, InvoicesView_AddAddit...
return PaymentsView.cast(views.getByIdOrNull(viewId)); } @Override public void closeById(final ViewId viewId, final ViewCloseAction closeAction) { views.closeById(viewId, closeAction); } @Override public Stream<IView> streamAllViews() { return views.streamAllViews(); } @Override public void invalidate...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\payment_allocation\PaymentsViewFactory.java
1
请完成以下Java代码
public String toString() { return getDelegate().toString(); } @Override public Set<Object> keySet() { return getDelegate().keySet(); } @Override public Set<java.util.Map.Entry<Object, Object>> entrySet() { return getDelegate().entrySet(); } @Override public Collection<Object> values() { return g...
public void storeToXML(OutputStream os, String comment) throws IOException { getDelegate().storeToXML(os, comment); } @Override public void storeToXML(OutputStream os, String comment, String encoding) throws IOException { getDelegate().storeToXML(os, comment, encoding); } @Override public String getProper...
repos\metasfresh-new_dawn_uat\backend\de.metas.util\src\main\java\de\metas\util\AbstractPropertiesProxy.java
1
请在Spring Boot框架中完成以下Java代码
public String getContextPath() { return this.contextPath; } public void setContextPath(String contextPath) { this.contextPath = contextPath; } public @Nullable String getSecret() { return this.secret; } public void setSecret(@Nullable String secret) { this.secret = secret; } public String getSecretH...
public void setEnabled(boolean enabled) { this.enabled = enabled; } } public static class Proxy { /** * The host of the proxy to use to connect to the remote application. */ private @Nullable String host; /** * The port of the proxy to use to connect to the remote application. */ private ...
repos\spring-boot-4.0.1\module\spring-boot-devtools\src\main\java\org\springframework\boot\devtools\autoconfigure\RemoteDevToolsProperties.java
2
请完成以下Java代码
public int getS_ResourceType_ID() { return get_ValueAsInt(COLUMNNAME_S_ResourceType_ID); } @Override public void setValue (final java.lang.String Value) { set_Value (COLUMNNAME_Value, Value); } @Override public java.lang.String getValue() { return get_ValueAsString(COLUMNNAME_Value);
} @Override public void setWaitingTime (final @Nullable BigDecimal WaitingTime) { set_Value (COLUMNNAME_WaitingTime, WaitingTime); } @Override public BigDecimal getWaitingTime() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_WaitingTime); return bd != null ? bd : BigDecimal.ZERO; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_S_Resource.java
1
请完成以下Java代码
public void setAD_Table_ID (final int AD_Table_ID) { if (AD_Table_ID < 1) set_ValueNoCheck (COLUMNNAME_AD_Table_ID, null); else set_ValueNoCheck (COLUMNNAME_AD_Table_ID, AD_Table_ID); } @Override public int getAD_Table_ID() { return get_ValueAsInt(COLUMNNAME_AD_Table_ID); } @Override public voi...
@Override public int getRecord_ID() { return get_ValueAsInt(COLUMNNAME_Record_ID); } /** * Type AD_Reference_ID=541967 * Reference name: Document_Acct_Log_Type */ public static final int TYPE_AD_Reference_ID=541967; /** Enqueued = enqueued */ public static final String TYPE_Enqueued = "enqueued"; /**...
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java-gen\de\metas\acct\model\X_Document_Acct_Log.java
1
请完成以下Java代码
private JSONOptions newJSONOptions() { return JSONOptions.of(userSession); } @PostMapping public WebuiImageId uploadImage(@RequestParam("file") final MultipartFile file) throws IOException { userSession.assertLoggedIn(); return imageService.uploadImage(file); } @GetMapping("/{imageId}") @ResponseBody p...
private WebuiImage getWebuiImage(final WebuiImageId imageId, final int maxWidth, final int maxHeight) { final WebuiImage image = imageService.getWebuiImage(imageId, maxWidth, maxHeight); assertUserHasAccess(image); return image; } private void assertUserHasAccess(final WebuiImage image) { final BooleanWith...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\upload\ImageRestController.java
1
请完成以下Java代码
public int getArg0() { return arg0; } /** * Sets the value of the arg0 property. * */ public void setArg0(int value) { this.arg0 = value; } /** * Gets the value of the arg1 property. * * @return * possible object is * {@link String ...
} /** * Sets the value of the arg1 property. * * @param value * allowed object is * {@link String } * */ public void setArg1(String value) { this.arg1 = value; } }
repos\tutorials-master\web-modules\jee-7\src\main\java\com\baeldung\jaxws\client\AddEmployee.java
1
请完成以下Java代码
public void setM_DiscountSchema_Calculated_Surcharge_ID (final int M_DiscountSchema_Calculated_Surcharge_ID) { if (M_DiscountSchema_Calculated_Surcharge_ID < 1) set_ValueNoCheck (COLUMNNAME_M_DiscountSchema_Calculated_Surcharge_ID, null); else set_ValueNoCheck (COLUMNNAME_M_DiscountSchema_Calculated_Surcha...
return get_ValueAsString(COLUMNNAME_Name); } @Override public void setSurcharge_Calc_SQL (final java.lang.String Surcharge_Calc_SQL) { set_Value (COLUMNNAME_Surcharge_Calc_SQL, Surcharge_Calc_SQL); } @Override public java.lang.String getSurcharge_Calc_SQL() { return get_ValueAsString(COLUMNNAME_Surcharge...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_DiscountSchema_Calculated_Surcharge.java
1
请在Spring Boot框架中完成以下Java代码
class LayoutFactorySupportingServices { @NonNull @Getter private final ISysConfigBL sysConfigBL = Services.get(ISysConfigBL.class); @NonNull @Getter private final SqlDocumentsRepository documentsRepository; @NonNull @Getter private final LookupDataSourceFactory lookupDataSourceFactory; @NonNull private final QuickI...
public boolean getSysConfigBooleanValue(final String name, final boolean defaultValue) { return sysConfigBL.getBooleanValue(name, defaultValue); } public boolean hasQuickInputEntityDescriptor(final DocumentEntityDescriptor.Builder entityDescriptor) { return quickInputDescriptors.hasQuickInputEntityDescriptor( ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\descriptor\factory\standard\LayoutFactorySupportingServices.java
2
请在Spring Boot框架中完成以下Java代码
public void drop(String tableName) { logger.warn("drop table {} from naive", tableName); System.out.println("drop table " + tableName + " from naive"); try { mongoTemplate.dropCollection(tableName.trim()); } catch (Exception e) { logger.error("drop tableName error...
logger.error(schemaName, tableName, obj, e); } } public void deleteData(String schemaName, String tableName, Document obj) { String path = "/" + schemaName + "/" + tableName + "/" + CanalEntry.EventType.DELETE.getNumber(); //保存原始数据 try { if (obj.containsKey("id")) {...
repos\spring-boot-leaning-master\2.x_data\3-3 使用 canal 将业务数据从 Mysql 同步到 MongoDB\spring-boot-canal-mongodb\src\main\java\com\neo\service\DataService.java
2
请完成以下Java代码
public class WEBUI_Picking_M_Source_HU_Delete extends PickingSlotViewBasedProcess { private boolean sourceWasDeleted = false; @Override protected ProcessPreconditionsResolution checkPreconditionsApplicable() { if (!getSelectedRowIds().isSingleDocumentId()) { return ProcessPreconditionsResolution.rejectBecau...
@Override protected void postProcess(final boolean success) { if (!success) { return; } if (sourceWasDeleted) { // unselect the row we just deleted the record of, to avoid an 'EntityNotFoundException' invalidatePickingSlotsView(); } } }
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\picking\pickingslot\process\WEBUI_Picking_M_Source_HU_Delete.java
1
请完成以下Java代码
public MQuery getDrillAcross (Point relativePoint) { MQuery retValue = null; for (int i = 0; i < m_elements.size() && retValue == null; i++) { PrintElement element = m_elements.get(i); retValue = element.getDrillAcross (relativePoint, m_pageNo); } return retValue; } // getDrillAcross /** * set Ba...
return m_image; } /** * String Representation * @return info */ @Override public String toString() { StringBuffer sb = new StringBuffer("Page["); sb.append(m_pageNo).append(",Elements=").append(m_elements.size()); sb.append("]"); return sb.toString(); } // toString } // Page
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\print\layout\Page.java
1
请在Spring Boot框架中完成以下Java代码
public class RoleNotificationsConfigRepository implements IRoleNotificationsConfigRepository { private final CCache<RoleId, RoleNotificationsConfig> roleNotificationsConfigsByRoleId = CCache.<RoleId, RoleNotificationsConfig> builder() .tableName(I_AD_Role_NotificationGroup.Table_Name) .initialCapacity(10) .ad...
return UserNotificationsGroup.builder() .groupInternalName(groupInternalName) .notificationTypes(UserNotificationsConfigRepository.toNotificationTypes(record.getNotificationType())) .build(); } @Override public ImmutableSet<RoleId> getRoleIdsContainingNotificationGroupName(@NonNull final NotificationGro...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\notification\impl\RoleNotificationsConfigRepository.java
2
请在Spring Boot框架中完成以下Java代码
public class GlobalProperties { // @Value("${thread-pool}") // access the value from application.properties via @Value @Max(5) @Min(0) private int threadPool; //@Value("${email}") @NotEmpty private String email; public int getThreadPool() { return threadPool; } pu...
return email; } public void setEmail(String email) { this.email = email; } @Override public String toString() { return "GlobalProperties{" + "threadPool=" + threadPool + ", email='" + email + '\'' + '}'; } }
repos\spring-boot-master\spring-boot-externalize-config\src\main\java\com\mkyong\global\GlobalProperties.java
2
请在Spring Boot框架中完成以下Java代码
private ClientAndOrgId getFallbackClientAndOrgId(@NonNull final ClientAndOrgId clientAndOrgId) { if (!clientAndOrgId.getOrgId().isAny()) { return clientAndOrgId.withAnyOrgId(); } else if (!clientAndOrgId.getClientId().isSystem()) { return clientAndOrgId.withSystemClientId(); } else { return nu...
return Optional.empty(); } // // // ------------------------------- // // public static class SysConfigEntryBuilder { public String getName() { return name; } } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\service\impl\SysConfigEntry.java
2
请在Spring Boot框架中完成以下Java代码
public static DemandDetailsQuery ofSupplyRequiredDescriptor(@NonNull final SupplyRequiredDescriptor supplyRequiredDescriptor) { return ofDemandDetail(DemandDetail.forSupplyRequiredDescriptor(supplyRequiredDescriptor)); } public static DemandDetailsQuery forDocumentLine( @NonNull final DocumentLineDescriptor do...
int forecastLineId; int inOutLineId; private DemandDetailsQuery( final int shipmentScheduleId, final int orderLineId, final int subscriptionLineId, final int forecastLineId, final int inOutLineId) { this.shipmentScheduleId = shipmentScheduleId; this.orderLineId = orderLineId; this.subscription...
repos\metasfresh-new_dawn_uat\backend\de.metas.material\dispo-commons\src\main\java\de\metas\material\dispo\commons\repository\query\DemandDetailsQuery.java
2
请完成以下Java代码
private static int getCodePointSize(byte[] bytes, int i) { int b = Byte.toUnsignedInt(bytes[i]); if ((b & 0b1_0000000) == 0b0_0000000) { return 1; } if ((b & 0b111_00000) == 0b110_00000) { return 2; } if ((b & 0b1111_0000) == 0b1110_0000) { return 3; } return 4; } private static int getCodeP...
codePoint = (codePoint << 6) + (bytes[i + j] & SUBSEQUENT_BYTE_BITMASK); } return codePoint; } /** * Supported compare types. */ private enum CompareType { MATCHES, MATCHES_ADDING_SLASH, STARTS_WITH } }
repos\spring-boot-4.0.1\loader\spring-boot-loader\src\main\java\org\springframework\boot\loader\zip\ZipString.java
1
请完成以下Java代码
private ReferenceId getTarget_Reference_ID() { return Check.assumeNotNull(targetReferenceId, "targetReferenceId is set"); } private ADRefTable getTargetTableRefInfoOrNull() { if (targetTableRefInfo == null) { targetTableRefInfo = retrieveTableRefInfo(getTarget_Reference_ID()); } return targe...
public ITranslatableString getTargetRoleDisplayName() { return targetRoleDisplayName; } public Builder setIsTableRecordIdTarget(final boolean isReferenceTarget) { isTableRecordIDTarget = isReferenceTarget; return this; } private boolean isTableRecordIdTarget() { return isTableRecordIDTarget;...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\document\references\related_documents\relation_type\SpecificRelationTypeRelatedDocumentsProvider.java
1
请完成以下Java代码
public final class ServletContextInitializers implements Iterable<ServletContextInitializer> { private final List<ServletContextInitializer> initializers; private ServletContextInitializers(List<ServletContextInitializer> initializers) { this.initializers = initializers; } @Override public Iterator<ServletCon...
map.from(cookie::getPath).to(config::setPath); map.from(cookie::getHttpOnly).to(config::setHttpOnly); map.from(cookie::getSecure).to(config::setSecure); map.from(cookie::getMaxAge).asInt(Duration::getSeconds).to(config::setMaxAge); map.from(cookie::getPartitioned) .as(Object::toString) .to((partitio...
repos\spring-boot-4.0.1\module\spring-boot-web-server\src\main\java\org\springframework\boot\web\server\servlet\ServletContextInitializers.java
1
请在Spring Boot框架中完成以下Java代码
public void addResourceHandlers(final ResourceHandlerRegistry registry) { registry.addResourceHandler("/resources/**").addResourceLocations("/resources/"); } @Override public void extendMessageConverters(final List<HttpMessageConverter<?>> converters) { converters.add(byteArrayHttpMessageCo...
return list; } @Override public void configurePathMatch(final PathMatchConfigurer configurer) { final UrlPathHelper urlPathHelper = new UrlPathHelper(); urlPathHelper.setRemoveSemicolonContent(false); configurer.setUrlPathHelper(urlPathHelper); } @Bean(name = "multipartReso...
repos\tutorials-master\spring-web-modules\spring-mvc-java\src\main\java\com\baeldung\spring\web\config\WebConfig.java
2
请完成以下Java代码
protected final void assertValidSessionId(final String sessionId) { if (sessionId == null || sessionId.trim().isEmpty()) { throw new RuntimeException("SessionId is empty"); } try { final int sessionIdInt = Integer.parseInt(sessionId.trim()); if (sessionIdInt <= 0) { throw new RuntimeException...
throw new PrintConnectionEndpointException("Error " + result + " while posting on " + url + ": " + errorMsg); } final LoginResponse loginResponse = beanEncoder.decodeStream(in, LoginResponse.class); return loginResponse; } catch (final Exception e) { log.info("Exception " + e); throw e instanceof ...
repos\metasfresh-new_dawn_uat\backend\de.metas.printing.client\src\main\java\de\metas\printing\client\endpoint\RestHttpPrintConnectionEndpoint.java
1
请完成以下Java代码
public void save(DataOutputStream out) throws IOException { if (!(featureMap instanceof ImmutableFeatureMDatMap)) { featureMap = new ImmutableFeatureMDatMap(featureMap.entrySet(), tagSet()); } featureMap.save(out); for (float aParameter : this.parameter) {...
{ parameter[i] = byteArray.nextFloat(); } } else { parameter = new float[size * tagSet.size()]; for (int i = 0; i < size; i++) { for (int j = 0; j < tagSet.size(); ++j) { parameter...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\model\perceptron\model\LinearModel.java
1
请完成以下Java代码
public class ReferredDocumentType1Choice { @XmlElement(name = "Cd") @XmlSchemaType(name = "string") protected DocumentType5Code cd; @XmlElement(name = "Prtry") protected String prtry; /** * Gets the value of the cd property. * * @return * possible object is * ...
* Gets the value of the prtry property. * * @return * possible object is * {@link String } * */ public String getPrtry() { return prtry; } /** * Sets the value of the prtry property. * * @param value * allowed object is * ...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.camt53\src\main\java-xjc\de\metas\banking\camt53\jaxb\camt053_001_02\ReferredDocumentType1Choice.java
1
请完成以下Java代码
public void checkRegisterDeployment() { } @Override public void checkUnregisterDeployment() { } @Override public void checkDeleteMetrics() { } @Override public void checkDeleteTaskMetrics() { } @Override public void checkReadSchemaLog() { } // helper ////////////////////////////////////...
return Context.getCommandContext().getProcessDefinitionManager().findLatestProcessDefinitionById(processDefinitionId); } protected DecisionDefinitionEntity findLatestDecisionDefinitionById(String decisionDefinitionId) { return Context.getCommandContext().getDecisionDefinitionManager().findDecisionDefinitionByI...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\cfg\multitenancy\TenantCommandChecker.java
1
请完成以下Java代码
protected void initializeTaskAssignee(TaskEntity task, VariableScope variableScope) { Expression assigneeExpression = taskDefinition.getAssigneeExpression(); if (assigneeExpression != null) { task.setAssignee((String) assigneeExpression.getValue(variableScope)); } } @SuppressWarnings({ "rawtypes"...
} else { throw new ProcessEngineException("Expression did not resolve to a string or collection of strings"); } } } /** * Extract a candidate list from a string. */ protected List<String> extractCandidates(String str) { return Arrays.asList(str.split("[\\s]*,[\\s]*")); } // gett...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\task\TaskDecorator.java
1
请完成以下Java代码
public void setAD_Issue_ID (final int AD_Issue_ID) { if (AD_Issue_ID < 1) set_ValueNoCheck (COLUMNNAME_AD_Issue_ID, null); else set_ValueNoCheck (COLUMNNAME_AD_Issue_ID, AD_Issue_ID); } @Override public int getAD_Issue_ID() { return get_ValueAsInt(COLUMNNAME_AD_Issue_ID); } @Override public voi...
} @Override public int getDocument_Acct_Log_ID() { return get_ValueAsInt(COLUMNNAME_Document_Acct_Log_ID); } @Override public void setRecord_ID (final int Record_ID) { if (Record_ID < 0) set_ValueNoCheck (COLUMNNAME_Record_ID, null); else set_ValueNoCheck (COLUMNNAME_Record_ID, Record_ID); } ...
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java-gen\de\metas\acct\model\X_Document_Acct_Log.java
1
请在Spring Boot框架中完成以下Java代码
private static Saml2X509Credential getSaml2Credential(String certificateLocation, Saml2X509Credential.Saml2X509CredentialType credentialType) { X509Certificate certificate = readCertificate(certificateLocation); return new Saml2X509Credential(certificate, credentialType); } private static RSAPrivateKey readPr...
private static X509Certificate readCertificate(String certificateLocation) { Resource certificate = resourceLoader.getResource(certificateLocation); try (InputStream inputStream = certificate.getInputStream()) { return (X509Certificate) CertificateFactory.getInstance("X.509").generateCertificate(inputStream); ...
repos\spring-security-main\config\src\main\java\org\springframework\security\config\saml2\RelyingPartyRegistrationsBeanDefinitionParser.java
2
请完成以下Java代码
public class App extends Jooby { { setServerOptions(new ServerOptions().setPort(8080) .setSecurePort(8433)); } { get("/", ctx -> "Hello World!"); } { get("/user/{id}", ctx -> "Hello user : " + ctx.path("id") .value()); get("/user/:id", ctx ->...
System.out.println("second"); // Moves execution to next handler: third return next.apply(ctx); }); get("/handler", ctx -> "third"); } { get("/sessionInMemory", ctx -> { Session session = ctx.session(); session.put("token", "value"); ...
repos\tutorials-master\web-modules\jooby\src\main\java\com\baeldung\jooby\App.java
1
请完成以下Java代码
public void add(final Object keyPart) { keyParts.add(keyPart); } public void setTrxName(String trxName) { this.trxName = trxName; } public String getTrxName() { return trxName; } public void setSkipCaching() { this.skipCaching = true; } public boolean isSkipCaching() { return skipCaching;
} /** * Advices the caching engine to refresh the cached value, instead of checking the cache. * * NOTE: this option will have NO affect if {@link #isSkipCaching()}. */ public void setCacheReload() { this.cacheReload = true; } /** @return true if instead the underlying method shall be invoked and cach...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\cache\interceptor\CacheKeyBuilder.java
1
请在Spring Boot框架中完成以下Java代码
public String getAckRequest() { return ackRequest; } /** * Sets the value of the ackRequest property. * * @param value * allowed object is * {@link String } * */ public void setAckRequest(String value) { this.ackRequest = value; } /*...
public void setAgreementId(String value) { this.agreementId = value; } /** * Gets the value of the testIndicator property. * * @return * possible object is * {@link String } * */ public String getTestIndicator() { return testIndicator; } ...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_ecosio_remadv\at\erpel\schemas\_1p0\messaging\header\InterchangeHeaderType.java
2
请完成以下Java代码
public String getParentDeploymentId() { return parentDeploymentId; } @Override public void setParentDeploymentId(String parentDeploymentId) { this.parentDeploymentId = parentDeploymentId; } @Override public void setResources(Map<String, EngineResource> resources) { this...
@Override public String getDerivedFromRoot() { return null; } @Override public String getEngineVersion() { return null; } // common methods ////////////////////////////////////////////////////////// @Override public String toString() { return "CmmnDeploymentEnt...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\persistence\entity\CmmnDeploymentEntityImpl.java
1
请完成以下Java代码
public void traversePreOrderWithoutRecursion() { Stack<Node> stack = new Stack<>(); Node current; stack.push(root); while(! stack.isEmpty()) { current = stack.pop(); visit(current.value); if(current.right != null) stack.push(current.ri...
} private void visit(int value) { System.out.print(" " + value); } static class Node { int value; Node left; Node right; Node(int value) { this.value = value; right = null; left = null; } } }
repos\tutorials-master\algorithms-modules\algorithms-searching\src\main\java\com\baeldung\algorithms\dfs\BinaryTree.java
1
请完成以下Java代码
public TenantResource getTenant(String id) { id = PathUtil.decodePathParam(id); return new TenantResourceImpl(getProcessEngine().getName(), id, relativeRootResourcePath, getObjectMapper()); } @Override public List<TenantDto> queryTenants(UriInfo uriInfo, Integer firstResult, Integer maxResults) { Ten...
URI baseUri = baseUriBuilder.build(); resourceOptionsDto.addReflexiveLink(baseUri, HttpMethod.GET, "list"); // GET /count URI countUri = baseUriBuilder.clone().path("/count").build(); resourceOptionsDto.addReflexiveLink(countUri, HttpMethod.GET, "count"); // POST /create if (!getIdentityServic...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\impl\TenantRestServiceImpl.java
1
请完成以下Java代码
public class Compilation { @Id private String id; private String name; public Compilation() { } public Compilation(String name) { super(); this.name = name; } 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; } }
repos\tutorials-master\persistence-modules\spring-boot-persistence-mongodb-2\src\main\java\com\baeldung\boot\collection\name\data\Compilation.java
1
请在Spring Boot框架中完成以下Java代码
QueueChannel remainderIsTwoChannel() { return new QueueChannel(); } boolean isMultipleOfThree(Integer number) { return number % 3 == 0; } boolean isRemainderOne(Integer number) { return number % 3 == 1; } boolean isRemainderTwo(Integer number) { return number %...
@Bean public IntegrationFlow remainderIsOneFlow() { return flow -> flow.split() .<Integer> filter(this::isRemainderOne) .channel("remainderIsOneChannel"); } @Bean public IntegrationFlow remainderIsTwoFlow() { return flow -> flow.split() .<Integer> fil...
repos\tutorials-master\spring-integration\src\main\java\com\baeldung\subflows\separateflows\SeparateFlowsExample.java
2
请完成以下Java代码
public BigDecimal getUnitPric() { return unitPric; } /** * Sets the value of the unitPric property. * * @param value * allowed object is * {@link BigDecimal } * */ public void setUnitPric(BigDecimal value) { this.unitPric = value; } ...
* allowed object is * {@link String } * */ public void setTaxTp(String value) { this.taxTp = value; } /** * Gets the value of the addtlPdctInf property. * * @return * possible object is * {@link String } * */ public St...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.camt53\src\main\java-xjc\de\metas\banking\camt53\jaxb\camt053_001_04\Product2.java
1
请完成以下Java代码
public org.compiere.model.I_C_BPartner getC_BPartner() throws RuntimeException { return get_ValueAsPO(COLUMNNAME_C_BPartner_ID, org.compiere.model.I_C_BPartner.class); } @Override public void setC_BPartner(org.compiere.model.I_C_BPartner C_BPartner) { set_ValueFromPO(COLUMNNAME_C_BPartner_ID, org.compiere.mod...
@Override public org.compiere.model.I_C_DocLine_Sort getC_DocLine_Sort() throws RuntimeException { return get_ValueAsPO(COLUMNNAME_C_DocLine_Sort_ID, org.compiere.model.I_C_DocLine_Sort.class); } @Override public void setC_DocLine_Sort(org.compiere.model.I_C_DocLine_Sort C_DocLine_Sort) { set_ValueFromPO(COL...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_BP_DocLine_Sort.java
1
请完成以下Java代码
public MReportColumn[] getColumns() { return m_columns; } // getColumns /** * List Info */ public void list() { System.out.println(toString()); if (m_columns == null) return; for (int i = 0; i < m_columns.length; i++) System.out.println("- " + m_columns[i].toString()); } // list
/*************************************************************************/ /** * String Representation * @return info */ public String toString () { StringBuffer sb = new StringBuffer ("MReportColumnSet[") .append(get_ID()).append(" - ").append(getName()) .append ("]"); return sb.toString (); } ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\report\MReportColumnSet.java
1
请完成以下Java代码
public Builder expiresAt(Instant expiresAt) { return claim(OAuth2TokenClaimNames.EXP, expiresAt); } /** * Sets the not before {@code (nbf)} claim, which identifies the time before which * the OAuth 2.0 Token MUST NOT be accepted for processing. * @param notBefore the time before which the OAuth 2.0 Tok...
* add, replace, or remove. * @param claimsConsumer a {@code Consumer} of the claims * @return the {@link Builder} */ public Builder claims(Consumer<Map<String, Object>> claimsConsumer) { claimsConsumer.accept(this.claims); return this; } /** * Builds a new {@link OAuth2TokenClaimsSet}. * @re...
repos\spring-security-main\oauth2\oauth2-authorization-server\src\main\java\org\springframework\security\oauth2\server\authorization\token\OAuth2TokenClaimsSet.java
1
请完成以下Java代码
public I_C_AggregationItem build() { final I_C_Aggregation aggregation = getC_Aggregation(); final I_C_AggregationItem aggregationItem = InterfaceWrapperHelper.newInstance(I_C_AggregationItem.class, aggregation); aggregationItem.setC_Aggregation(aggregation); aggregationItem.setType(getType()); aggregationIt...
else { this.adColumnId = Services.get(IADTableDAO.class).retrieveColumnId(adTableId, columnName); } return this; } private AdColumnId getAD_Column_ID() { return adColumnId; } public C_AggregationItem_Builder setIncluded_Aggregation(final I_C_Aggregation includedAggregation) { this.includedAggregati...
repos\metasfresh-new_dawn_uat\backend\de.metas.aggregation\src\main\java\de\metas\aggregation\model\C_AggregationItem_Builder.java
1
请完成以下Java代码
public class Ticket { @Id private TicketId id; private String event; public Ticket() { } public Ticket(TicketId id, String event) { super(); this.id = id; this.event = event; } public TicketId getId() {
return id; } public void setId(TicketId id) { this.id = id; } public String getEvent() { return event; } public void setEvent(String event) { this.event = event; } }
repos\tutorials-master\persistence-modules\spring-boot-persistence-mongodb-2\src\main\java\com\baeldung\boot\composite\key\data\Ticket.java
1