instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
public Collection<InputsCaseParameter> getInputs() { return inputsCollection.get(this); } public Collection<OutputsCaseParameter> getOutputs() { return outputsCollection.get(this); } public Collection<InputCaseParameter> getInputParameters() { return inputParameterCollection.get(this); } publ...
}); isBlockingAttribute = typeBuilder.booleanAttribute(CMMN_ATTRIBUTE_IS_BLOCKING) .defaultValue(true) .build(); SequenceBuilder sequenceBuilder = typeBuilder.sequence(); inputsCollection = sequenceBuilder.elementCollection(InputsCaseParameter.class) .build(); outputsCollecti...
repos\camunda-bpm-platform-master\model-api\cmmn-model\src\main\java\org\camunda\bpm\model\cmmn\impl\instance\TaskImpl.java
1
请在Spring Boot框架中完成以下Java代码
public class PersonServiceImpl implements PersonService { private static final Logger logger = LoggerFactory.getLogger(PersonServiceImpl.class); @Autowired PersonRepository personRepository; @Override @CachePut(value = "people", key = "#person.id") public Person save(Person person) { P...
@Override @Cacheable(value = "people1")//3 public Person findOne1() { Person p = personRepository.findOne(2L); logger.info("为id、key为:" + p.getId() + "数据做了缓存"); return p; } @Override @Cacheable(value = "people2")//3 public Person findOne2(Person person) { Person p...
repos\spring-boot-student-master\spring-boot-student-cache-caffeine\src\main\java\com\xiaolyuh\service\impl\PersonServiceImpl.java
2
请完成以下Java代码
public void setObjectIdentityRetrievalStrategy(ObjectIdentityRetrievalStrategy objectIdentityRetrievalStrategy) { Assert.notNull(objectIdentityRetrievalStrategy, "ObjectIdentityRetrievalStrategy required"); this.objectIdentityRetrievalStrategy = objectIdentityRetrievalStrategy; } protected void setProcessConfigA...
return this.processConfigAttribute.equals(attribute.getAttribute()); } /** * This implementation supports any type of class, because it does not query the * presented secure object. * @param clazz the secure object * @return always <code>true</code> */ @Override public boolean supports(Class<?> clazz) { ...
repos\spring-security-main\access\src\main\java\org\springframework\security\acls\afterinvocation\AbstractAclProvider.java
1
请完成以下Java代码
public I_PA_Measure getPA_Measure() throws RuntimeException { return (I_PA_Measure)MTable.get(getCtx(), I_PA_Measure.Table_Name) .getPO(getPA_Measure_ID(), get_TrxName()); } /** Set Measure. @param PA_Measure_ID Concrete Performance Measurement */ public void setPA_Measure_ID (int PA_Measure_ID) { ...
*/ public void setSeqNo (int SeqNo) { set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); } /** Get Sequence. @return Method of ordering records; lowest number comes first */ public int getSeqNo () { Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); if (ii == null) return 0; return ii.intVal...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_PA_Achievement.java
1
请完成以下Java代码
public class EventListenerActivityBehavior extends EventListenerOrMilestoneActivityBehavior { protected static final CmmnBehaviorLogger LOG = ProcessEngineLogger.CMNN_BEHAVIOR_LOGGER; public void created(CmmnActivityExecution execution) { // TODO: implement this: // (1) in case of a UserEventListener the...
return false; } public void fireEntryCriteria(CmmnActivityExecution execution) { throw LOG.criteriaNotAllowedForEventListenerException("entry", execution.getId()); } public void repeat(CmmnActivityExecution execution) { // It is not possible to repeat a event listener } protected boolean evaluate...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\cmmn\behavior\EventListenerActivityBehavior.java
1
请在Spring Boot框架中完成以下Java代码
public class MyMessagingProperties { private List<String> addresses = new ArrayList<>(Arrays.asList("a", "b")); private ContainerType containerType = ContainerType.SIMPLE; // @fold:on // getters/setters ... public List<String> getAddresses() { return this.addresses; } public void setAddresses(List<String> a...
public ContainerType getContainerType() { return this.containerType; } public void setContainerType(ContainerType containerType) { this.containerType = containerType; } // @fold:off public enum ContainerType { SIMPLE, DIRECT } }
repos\spring-boot-4.0.1\documentation\spring-boot-docs\src\main\java\org\springframework\boot\docs\appendix\configurationmetadata\annotationprocessor\automaticmetadatageneration\MyMessagingProperties.java
2
请完成以下Java代码
static boolean checkUsingIsDigitMethod(String input) { if (input == null || input.isEmpty()) { return false; } for (char c : input.toCharArray()) { if (Character.isDigit(c)) { return true; } } return false; } static b...
} static boolean checkUsingApacheCommonsLang(String input) { String result = StringUtils.getDigits(input); return result != null && !result.isEmpty(); } static boolean checkUsingGuava(String input) { if (input == null || input.isEmpty()) { return false; } ...
repos\tutorials-master\core-java-modules\core-java-string-operations-11\src\main\java\com\baeldung\strcontainsnumber\StrContainsNumberUtils.java
1
请完成以下Java代码
public int getC_BPartner_ID() { return get_ValueAsInt(COLUMNNAME_C_BPartner_ID); } @Override public void setMobileUI_UserProfile_Picking_BPartner_ID (final int MobileUI_UserProfile_Picking_BPartner_ID) { if (MobileUI_UserProfile_Picking_BPartner_ID < 1) set_ValueNoCheck (COLUMNNAME_MobileUI_UserProfile_P...
set_Value (COLUMNNAME_MobileUI_UserProfile_Picking_ID, MobileUI_UserProfile_Picking_ID); } @Override public int getMobileUI_UserProfile_Picking_ID() { return get_ValueAsInt(COLUMNNAME_MobileUI_UserProfile_Picking_ID); } @Override public org.compiere.model.I_MobileUI_UserProfile_Picking_Job getMobileUI_UserP...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_MobileUI_UserProfile_Picking_BPartner.java
1
请完成以下Java代码
public static PickingSlotQRCode getPickingSlotQRCode(final DocumentFilterList filters) { final String barcodeString = StringUtils.trimBlankToNull(filters.getParamValueAsString(PickingSlotBarcodeFilter_FilterId, PARAM_Barcode)); if (barcodeString == null) { return null; } // // Try parsing the Global QR...
{ return PickingSlotQRCode.ofGlobalQRCode(globalQRCode); } // // Case: Legacy barcode support else { final IPickingSlotDAO pickingSlotDAO = Services.get(IPickingSlotDAO.class); return pickingSlotDAO.getPickingSlotIdAndCaptionByCode(barcodeString) .map(PickingSlotQRCode::ofPickingSlotIdAndCaption...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\picking\pickingslot\PickingSlotViewFilters.java
1
请完成以下Java代码
public String getCaseInstanceId() { return caseInstanceId; } public Set<ActivatePlanItemDefinitionMapping> getActivatePlanItemDefinitions() { return activatePlanItemDefinitions; } public Set<MoveToAvailablePlanItemDefinitionMapping> getChangeToAvailableStatePlanItemDefinitions() { ...
} public Set<ChangePlanItemIdWithDefinitionIdMapping> getChangePlanItemIdsWithDefinitionId() { return changePlanItemIdsWithDefinitionId; } public Set<ChangePlanItemDefinitionWithNewTargetIdsMapping> getChangePlanItemDefinitionWithNewTargetIds() { return changePlanItemDefinitionWith...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\runtime\ChangePlanItemStateBuilderImpl.java
1
请完成以下Java代码
public Iterator<AssignableInvoiceCandidate> getAllAssigned( @NonNull final RefundInvoiceCandidate refundInvoiceCandidate) { return Services.get(IQueryBL.class) .createQueryBuilder(I_C_Invoice_Candidate_Assignment.class) .addOnlyActiveRecordsFilter() .addEqualsFilter( I_C_Invoice_Candidate_Assign...
* In production, assignable invoice candidates are created elsewhere and are only loaded if they are relevant for refund contracts. * That's why this method is intended only for (unit-)testing. */ @VisibleForTesting public AssignableInvoiceCandidate saveNew(@NonNull final AssignableInvoiceCandidate assignableCand...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\refund\AssignableInvoiceCandidateRepository.java
1
请完成以下Java代码
public IQuery<I_C_Queue_WorkPackage> createQuery(final Properties ctx, final IWorkPackageQuery packageQuery) { return new POJOQuery<>(ctx, I_C_Queue_WorkPackage.class, null, // tableName=null => get it from the given model class ITrx.TRXNAME_None) .addFilter(new QueueFilter(packageQuery)) .setLi...
return false; } // Only work packages for given process final Set<QueuePackageProcessorId> packageProcessorIds = packageQuery.getPackageProcessorIds(); if (packageProcessorIds != null) { if (packageProcessorIds.isEmpty()) { slogger.warn("There were no package processor Ids set in the packag...
repos\metasfresh-new_dawn_uat\backend\de.metas.async\src\main\java\de\metas\async\api\impl\PlainQueueDAO.java
1
请在Spring Boot框架中完成以下Java代码
public CreateArticleResult handle(CreateArticle command) { var currentUserId = authenticationService.getRequiredCurrentUserId(); var existsByTitle = articleRepository.existsByTitle(command.getTitle()); if (existsByTitle) { throw badRequest("article [title=%s] already exists", comman...
var newTags = tagList.stream() .filter(name -> !existingTagNames.contains(name)) .map(Tag::new) .toList(); for (var newTag : newTags) { Tag tag; try { tag = tagRepository.save(newTag); ...
repos\realworld-backend-spring-master\service\src\main\java\com\github\al\realworld\application\command\CreateArticleHandler.java
2
请在Spring Boot框架中完成以下Java代码
public class DynamicPropertySource extends MapPropertySource { public DynamicPropertySource(String name, Map<String, Object> source) { super(name, source); } public static Builder builder(){ return new Builder(); } public static class Builder{ private String sourceName; private Map<String, Object> sour...
public Builder setProperty(String key, String value) { this.sourceMap.put(key, value); return this; } public Builder setProperty(Map<String, Object> sourceMap) { this.sourceMap.putAll(sourceMap); return this; } public DynamicPropertySource build() { return new DynamicPropertySource(this.source...
repos\spring-boot-quick-master\quick-activemq2\src\main\java\com\active2\config\DynamicPropertySource.java
2
请完成以下Java代码
public class PostInvocationAdviceProvider implements AfterInvocationProvider { protected final Log logger = LogFactory.getLog(getClass()); private final PostInvocationAuthorizationAdvice postAdvice; public PostInvocationAdviceProvider(PostInvocationAuthorizationAdvice postAdvice) { this.postAdvice = postAdvice;...
if (attribute instanceof PostInvocationAttribute) { return (PostInvocationAttribute) attribute; } } return null; } @Override public boolean supports(ConfigAttribute attribute) { return attribute instanceof PostInvocationAttribute; } @Override public boolean supports(Class<?> clazz) { return Metho...
repos\spring-security-main\access\src\main\java\org\springframework\security\access\prepost\PostInvocationAdviceProvider.java
1
请完成以下Java代码
protected String getClassBeanName(ListableBeanFactory listableBeanFactory) { String[] beanNames = listableBeanFactory.getBeanNamesForAnnotation(EnableExternalTaskClient.class); List<String> classBeanNames = Arrays.stream(beanNames) .filter(isClassAnnotation(listableBeanFactory)) .collect(Collec...
protected String getClientBeanName(ListableBeanFactory listableBeanFactory) { String[] beanNamesForType = listableBeanFactory.getBeanNamesForType(ExternalTaskClient.class); if (beanNamesForType.length > 1) { throw LOG.noUniqueClientException(); } else if (beanNamesForType.length == 1) { return ...
repos\camunda-bpm-platform-master\spring-boot-starter\starter-client\spring\src\main\java\org\camunda\bpm\client\spring\impl\client\ClientPostProcessor.java
1
请完成以下Java代码
public void setRfQ_Win_MailText_ID (int RfQ_Win_MailText_ID) { if (RfQ_Win_MailText_ID < 1) set_Value (COLUMNNAME_RfQ_Win_MailText_ID, null); else set_Value (COLUMNNAME_RfQ_Win_MailText_ID, Integer.valueOf(RfQ_Win_MailText_ID)); } /** Get RfQ win mail text. @return RfQ win mail text */ @Override p...
if (ii == null) return 0; return ii.intValue(); } /** * RfQType AD_Reference_ID=540661 * Reference name: RfQType */ public static final int RFQTYPE_AD_Reference_ID=540661; /** Default = D */ public static final String RFQTYPE_Default = "D"; /** Procurement = P */ public static final String RFQTYPE_...
repos\metasfresh-new_dawn_uat\backend\de.metas.rfq\src\main\java-gen\de\metas\rfq\model\X_C_RfQ_Topic.java
1
请完成以下Java代码
public Class< ? > getType(ELContext context, Object base, Object property) { return getWrappedResolver().getType(wrapContext(context), base, property); } @Override public Object getValue(ELContext context, Object base, Object property) { //we need to resolve a bean only for the first "member" of expressi...
} @Override public void setValue(ELContext context, Object base, Object property, Object value) { getWrappedResolver().setValue(wrapContext(context), base, property, value); } @Override public Object invoke(ELContext context, Object base, Object method, java.lang.Class< ? >[] paramTypes, Object[] params...
repos\camunda-bpm-platform-master\engine-cdi\core\src\main\java\org\camunda\bpm\engine\cdi\impl\el\CdiResolver.java
1
请完成以下Java代码
public void setIsRequiredMailAddres (boolean IsRequiredMailAddres) { set_Value (COLUMNNAME_IsRequiredMailAddres, Boolean.valueOf(IsRequiredMailAddres)); } /** Get Requires Mail Address. @return Requires Mail Address */ @Override public boolean isRequiredMailAddres () { Object oo = get_Value(COLUMNNAME_I...
{ Integer ii = (Integer)get_Value(COLUMNNAME_MKTG_Platform_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Name. @param Name Alphanumeric identifier of the entity */ @Override public void setName (java.lang.String Name) { set_Value (COLUMNNAME_Name, Name); } /** Get Name. @...
repos\metasfresh-new_dawn_uat\backend\de.metas.marketing\base\src\main\java-gen\de\metas\marketing\base\model\X_MKTG_Platform.java
1
请在Spring Boot框架中完成以下Java代码
public String getMessage() { return MESSAGE; } /** * @return the title of the process */ @Override public String getSubject() { return subject; } /**
* @return the title of the process */ @Override public String getTitle() { return title; } @Override public String getTo() { return to; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\org\compiere\report\email\service\impl\BPartnerEmailParams.java
2
请完成以下Java代码
class JarEntriesStream implements Closeable { private static final int BUFFER_SIZE = 4 * 1024; private final JarInputStream in; private final byte[] inBuffer = new byte[BUFFER_SIZE]; private final byte[] compareBuffer = new byte[BUFFER_SIZE]; private final Inflater inflater = new Inflater(true); private Jar...
} catch (EOFException ex) { // Continue and throw exception due to mismatched content length. } fail("content"); } if (expected.read() != -1) { fail("content"); } } private void fail(String check) { throw new IllegalStateException("Content mismatch when reading security info for entry '%s' (%...
repos\spring-boot-4.0.1\loader\spring-boot-loader\src\main\java\org\springframework\boot\loader\jar\JarEntriesStream.java
1
请在Spring Boot框架中完成以下Java代码
public final class AuthorizedUrlVariable { private final String variable; private AuthorizedUrlVariable(String variable) { this.variable = variable; } /** * Compares the value of a path variable in the URI with an `Authentication` * attribute * <p> * For example, <pre> * requestMa...
* @param function a function to get value from {@link Authentication}. * @return the {@link AuthorizationManagerRequestMatcherRegistry} for further * customization. */ public AuthorizationManagerRequestMatcherRegistry equalTo(Function<Authentication, String> function) { return access((auth, requestCo...
repos\spring-security-main\config\src\main\java\org\springframework\security\config\annotation\web\configurers\AuthorizeHttpRequestsConfigurer.java
2
请完成以下Java代码
public @Nullable Function<Long, Long> getOffsetComputeFunction() { return this.offsetComputeFunction; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } TopicPartitionOffset that = (TopicPartitionOffset) o; ...
@Override public int hashCode() { return Objects.hash(this.topicPartition, this.position); } @Override public String toString() { return "TopicPartitionOffset{" + "topicPartition=" + this.topicPartition + ", offset=" + this.offset + ", relativeToCurrent=" + this.relativeToCurrent + (this.positi...
repos\spring-kafka-main\spring-kafka\src\main\java\org\springframework\kafka\support\TopicPartitionOffset.java
1
请完成以下Java代码
final class SystemEnvironmentPropertyMapper implements PropertyMapper { public static final PropertyMapper INSTANCE = new SystemEnvironmentPropertyMapper(); private final Map<String, ConfigurationPropertyName> propertySourceNameCache = new ConcurrentReferenceHashMap<>(); @Override public List<String> map(Configu...
return ConfigurationPropertyName.adapt(propertySourceName, '_', this::processElementValue); } catch (Exception ex) { return ConfigurationPropertyName.EMPTY; } } private CharSequence processElementValue(CharSequence value) { String result = value.toString().toLowerCase(Locale.ENGLISH); return isNumber(re...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\context\properties\source\SystemEnvironmentPropertyMapper.java
1
请完成以下Java代码
protected void writePlanItemDefinitionSpecificAttributes(T planItemDefinition, XMLStreamWriter xtw) throws Exception { } /** * Writes common elements like planItem documentation. * Subclasses should call super.writePlanItemDefinitionCommonElements(), it is recommended to override * writePlanIte...
protected void writePlanItemDefinitionDefaultItemControl(CmmnModel model, T planItemDefinition, XMLStreamWriter xtw) throws Exception { if (planItemDefinition.getDefaultControl() != null) { PlanItemControlExport.writeDefaultControl(model, planItemDefinition.getDefaultControl(), xtw); } }...
repos\flowable-engine-main\modules\flowable-cmmn-converter\src\main\java\org\flowable\cmmn\converter\export\AbstractPlanItemDefinitionExport.java
1
请完成以下Java代码
public String getMilestoneInstanceId() { return milestoneInstanceId; } @Override public String getId() { return milestoneInstanceId; } public String getName() { return name; } public String getCaseInstanceId() { return caseInstanceId; } public ...
} public Date getReachedAfter() { return reachedAfter; } public String getTenantId() { return tenantId; } public String getTenantIdLike() { return tenantIdLike; } public boolean isWithoutTenantId() { return withoutTenantId; } }
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\runtime\MilestoneInstanceQueryImpl.java
1
请完成以下Java代码
public void close() { } @Override public InputStream getBody() throws IOException { return new ByteArrayInputStream(message.getBytes()); } @Override public HttpHeaders getHeaders() { HttpHeaders headers = new HttpHeaders(); headers.setContentType(MediaType.APPLICATION_J...
return status; } public void setStatus(HttpStatus status) { this.status = status; } public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } }
repos\tutorials-master\spring-cloud-modules\spring-cloud-zuul-fallback\spring-cloud-zuul-fallback-api-gateway\src\main\java\com\baeldung\spring\cloud\apigateway\fallback\GatewayClientResponse.java
1
请完成以下Java代码
String getName() { return this.name; } DataLoaderOptions getOptions() { return this.optionsSupplier.get(); } @Override public CompletionStage<List<V>> load(List<K> keys, BatchLoaderEnvironment environment) { GraphQLContext graphQLContext = environment.getContext(); Assert.state(graphQLContext !=...
this.loader = loader; this.optionsSupplier = optionsSupplier; } String getName() { return this.name; } DataLoaderOptions getOptions() { return this.optionsSupplier.get(); } @Override public CompletionStage<Map<K, V>> load(Set<K> keys, BatchLoaderEnvironment environment) { GraphQLContext gra...
repos\spring-graphql-main\spring-graphql\src\main\java\org\springframework\graphql\execution\DefaultBatchLoaderRegistry.java
1
请完成以下Java代码
public class JMSConsumerThread { private static final String USERNAME= ActiveMQConnection.DEFAULT_USER; // 默认的连接用户名 private static final String PASSWORD=ActiveMQConnection.DEFAULT_PASSWORD; // 默认的连接密码 private static final String BROKEURL=ActiveMQConnection.DEFAULT_BROKER_URL; // 默认的连接地址 ConnectionFact...
public void consumer(){ MessageConsumer messageConsumer; // 消息的消费者 try { session=connection.createSession(Boolean.FALSE, Session.AUTO_ACKNOWLEDGE); // 创建Session destination=session.createQueue("queue1"); messageConsumer=session.createConsumer(destination); // 创建消息消费者...
repos\spring-boot-quick-master\quick-activemq\src\main\java\com\mq\client\JMSConsumerThread.java
1
请完成以下Java代码
public R apply(final T input) { final K key = keyFunction.apply(input); lock.readLock().lock(); boolean readLockAcquired = true; boolean writeLockAcquired = false; try { if (Objects.equals(lastKey, key)) { return lastValue; } // Upgrade to write lock lock.readLock().unlock...
} } @Override public void forget() { final WriteLock writeLock = lock.writeLock(); writeLock.lock(); try { lastKey = null; lastValue = null; } finally { writeLock.unlock(); } } } private static final class SimpleMemoizingFunction<T, R> extends MemoizingFunctionWithKey...
repos\metasfresh-new_dawn_uat\backend\de.metas.util\src\main\java\de\metas\util\Functions.java
1
请在Spring Boot框架中完成以下Java代码
public String getGroupId() { return groupId; } public void setGroupId(String groupId) { this.groupId = groupId; } @ApiModelProperty(example = "null") public String getTaskId() { return taskId; } public void setTaskId(String taskId) { this.taskId = taskId; ...
return caseInstanceId; } public void setCaseInstanceId(String caseInstanceId) { this.caseInstanceId = caseInstanceId; } @ApiModelProperty(example = "http://localhost:8182/cmmn-history/historic-case-instances/5") public String getCaseInstanceUrl() { return caseInstanceUrl; } ...
repos\flowable-engine-main\modules\flowable-cmmn-rest\src\main\java\org\flowable\cmmn\rest\service\api\history\task\HistoricIdentityLinkResponse.java
2
请完成以下Java代码
protected void checkAccess(CommandContext commandContext, BatchEntity batch) { for(CommandChecker checker : commandContext.getProcessEngineConfiguration().getCommandCheckers()) { checkAccess(checker, batch); } } protected abstract void checkAccess(CommandChecker checker, BatchEntity batch); protec...
.includeJobs(true) ); suspendJobDefinitionCmd.disableLogUserOperation(); return suspendJobDefinitionCmd; } protected abstract AbstractSetJobDefinitionStateCmd createSetJobDefinitionStateCommand(UpdateJobDefinitionSuspensionStateBuilderImpl builder); protected void logUserOperation(CommandContext com...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\cmd\AbstractSetBatchStateCmd.java
1
请完成以下Java代码
protected String doIt() throws Exception { final ShipperTransportationId shipperTransportationId = ShipperTransportationId.ofRepoId(getRecord_ID()); final I_M_ShipperTransportation shipperTransportation = shipperTransportationDAO.getById(shipperTransportationId); Check.assumeNotNull(shipperTransportation, "shi...
// skip generic delivery days final I_C_BPartner_Location bpLocation = dd.getC_BPartner_Location(); if (bpLocation == null) { continue; } final List<I_C_Order> purchaseOrders = orderDAO.retrievePurchaseOrdersForPickup(bpLocation, dd.getDeliveryDate(), dd.getDeliveryDateTimeMax()); if (purchaseOrd...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\tourplanning\process\M_ShippingPackage_CreateFromTourplanning.java
1
请完成以下Java代码
public abstract class AbstractSideAction implements ISideAction { private static final transient String GENERATED_ID_Prefix = "ID_" + UUID.randomUUID() + "_"; private static final transient AtomicLong GENERATED_ID_Next = new AtomicLong(0); private final String id; public AbstractSideAction() { this((String)nul...
{ this.id = GENERATED_ID_Prefix + GENERATED_ID_Next.incrementAndGet(); } else { this.id = id; } } @Override public final String getId() { return id; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ui\sideactions\model\AbstractSideAction.java
1
请完成以下Java代码
public JSONDocumentChangedWebSocketEvent copy() { return new JSONDocumentChangedWebSocketEvent(this); } JSONDocumentChangedWebSocketEvent markRootDocumentAsStaled() { stale = Boolean.TRUE; return this; } JSONDocumentChangedWebSocketEvent markActiveTabStaled() { activeTabStaled = Boolean.TRUE; return ...
@Override @JsonIgnore public WebsocketTopicName getWebsocketEndpoint() { return WebsocketTopicNames.buildDocumentTopicName(windowId, id); } public void staleTabs(@NonNull final Collection<DetailId> tabIds) { tabIds.stream().map(this::getIncludedTabInfo).forEach(JSONIncludedTabInfo::markAllRowsStaled); } p...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\events\JSONDocumentChangedWebSocketEvent.java
1
请完成以下Java代码
public void setM_Product_AlbertaBillableTherapy_ID (final int M_Product_AlbertaBillableTherapy_ID) { if (M_Product_AlbertaBillableTherapy_ID < 1) set_ValueNoCheck (COLUMNNAME_M_Product_AlbertaBillableTherapy_ID, null); else set_ValueNoCheck (COLUMNNAME_M_Product_AlbertaBillableTherapy_ID, M_Product_Alberta...
/** Absaugung = 12 */ public static final String THERAPY_Absaugung = "12"; /** Patientenüberwachung = 13 */ public static final String THERAPY_Patientenueberwachung = "13"; /** Sauerstoff = 14 */ public static final String THERAPY_Sauerstoff = "14"; /** Inhalations- und Atemtherapie = 15 */ public static final S...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.healthcare.alberta\src\main\java-gen\de\metas\vertical\healthcare\alberta\model\X_M_Product_AlbertaBillableTherapy.java
1
请完成以下Java代码
private void removeCredential(HttpServletRequest request, HttpServletResponse response, @Nullable String id) throws IOException { this.userCredentials.delete(Bytes.fromBase64(id)); response.setStatus(HttpStatus.NO_CONTENT.value()); } static class WebAuthnRegistrationRequest { private @Nullable RelyingParty...
public static class SuccessfulUserRegistrationResponse { private final CredentialRecord credentialRecord; SuccessfulUserRegistrationResponse(CredentialRecord credentialRecord) { this.credentialRecord = credentialRecord; } public boolean isSuccess() { return true; } } }
repos\spring-security-main\webauthn\src\main\java\org\springframework\security\web\webauthn\registration\WebAuthnRegistrationFilter.java
1
请完成以下Java代码
public class JwtRequest implements Serializable { private static final long serialVersionUID = 5926468583005150707L; private String username; private String password; //need default constructor for JSON Parsing public JwtRequest() { } public JwtRequest(String username, String password) { this.setUser...
public String getUsername() { return this.username; } public void setUsername(String username) { this.username = username; } public String getPassword() { return this.password; } public void setPassword(String password) { this.password = password; } }
repos\SpringBoot-Projects-FullStack-master\Advanced-SpringSecure\spring-boot-jwt-without-JPA\spring-boot-jwt\src\main\java\com\javainuse\model\JwtRequest.java
1
请完成以下Java代码
public void performOperationAsync(AtomicOperation executionOperation, ExecutionEntity execution) { performOperation(executionOperation, execution, true); } public void performOperation(final AtomicOperation executionOperation, final ExecutionEntity execution, final boolean performAsync) { AtomicOperationIn...
try { invocation.execute(bpmnStackTrace, processDataContext); } catch(RuntimeException e) { // log bpmn stacktrace bpmnStackTrace.printStackTrace(Context.getProcessEngineConfiguration().isBpmnStacktraceVerbose()); // rethrow throw e; } } protected boolean requiresContextSwitch...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\interceptor\CommandInvocationContext.java
1
请完成以下Java代码
boolean isBooked() { return status == Status.BOOKED; } boolean isCancelled() { return status == Status.BOOKING_CANCELLED; } BookedTicket(Long movieId, String seatNumber) { this.movieId = movieId; this.seatNumber = seatNumber; } Long id() { return id; ...
return movieId; } String seatNumber() { return seatNumber; } Instant createdAt() { return createdAt; } Status status() { return status; } protected BookedTicket() { // Default constructor for JPA } }
repos\tutorials-master\spring-boot-modules\spring-boot-libraries-3\src\main\java\com\baeldung\spring\modulith\cqrs\ticket\BookedTicket.java
1
请完成以下Java代码
public static OptionalBoolean ofNullableBoolean(@Nullable final Boolean value) { return value != null ? ofBoolean(value) : UNKNOWN; } public static OptionalBoolean ofNullableString(@Nullable final String value) { return ofNullableBoolean(StringUtils.toBooleanOrNull(value)); } public boolean isTrue() { re...
} @JsonValue @Nullable public Boolean toBooleanOrNull() { switch (this) { case TRUE: return Boolean.TRUE; case FALSE: return Boolean.FALSE; case UNKNOWN: return null; default: throw new IllegalStateException("Type not handled: " + this); } } @Nullable public String toBooleanSt...
repos\metasfresh-new_dawn_uat\backend\de.metas.util\src\main\java\de\metas\util\OptionalBoolean.java
1
请完成以下Java代码
public void setMD_Candidate_RebookedFrom(final de.metas.material.dispo.model.I_MD_Candidate MD_Candidate_RebookedFrom) { set_ValueFromPO(COLUMNNAME_MD_Candidate_RebookedFrom_ID, de.metas.material.dispo.model.I_MD_Candidate.class, MD_Candidate_RebookedFrom); } @Override public void setMD_Candidate_RebookedFrom_ID...
@Override public int getMD_Stock_ID() { return get_ValueAsInt(COLUMNNAME_MD_Stock_ID); } @Override public void setMovementQty (final BigDecimal MovementQty) { set_Value (COLUMNNAME_MovementQty, MovementQty); } @Override public BigDecimal getMovementQty() { final BigDecimal bd = get_ValueAsBigDecimal(C...
repos\metasfresh-new_dawn_uat\backend\de.metas.material\dispo-commons\src\main\java-gen\de\metas\material\dispo\model\X_MD_Candidate_Transaction_Detail.java
1
请完成以下Java代码
public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((color == null) ? 0 : color.hashCode()); return result; } /* (non-Javadoc) * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equal...
if (other.color != null) { return false; } } else if (!color.equals(other.color)) { return false; } return true; } protected Color getColor() { return color; } protected void setColor(Color color) { this.color = color; ...
repos\tutorials-master\core-java-modules\core-java-lang-8\src\main\java\com\baeldung\equalshashcode\entities\Square.java
1
请完成以下Java代码
public GridController getCurrentGridController() { return this.m_curGC; } public final AppsAction getIgnoreAction() { return aIgnore; } public final boolean isAlignVerticalTabsWithHorizontalTabs() { return alignVerticalTabsWithHorizontalTabs; } /** * For a given component, it removes component's key...
if (compAction == null) { continue; } if (isRemoveKeyStrokePredicate != null && !isRemoveKeyStrokePredicate.apply(key)) { continue; } // NOTE: Instead of removing it, it is much more safe to bind it to "none", // to explicitly say to not consume that key event even if is defined in some p...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\apps\APanel.java
1
请完成以下Spring Boot application配置
# # Configurações de acesso ao Minio # aws: s3: region: sa-east-1 # When using AWS, the library will use one of the available # credential sources described in the documentation.
# accessKeyId: **** # secretAccessKey: **** bucket: dev1.token.com.br
repos\tutorials-master\aws-modules\aws-reactive\src\main\resources\application.yml
2
请完成以下Java代码
public class HomepageForwardingMatcher<T> implements Predicate<T> { private final List<Pattern> includeRoutes; private final List<Pattern> excludeRoutes; private final Function<T, String> methodAccessor; private final Function<T, String> pathAccessor; private final Function<T, List<MediaType>> acceptsAccessor...
String path = this.pathAccessor.apply(request); boolean isExcludedRoute = this.excludeRoutes.stream().anyMatch((p) -> p.matcher(path).matches()); boolean isIncludedRoute = this.includeRoutes.stream().anyMatch((p) -> p.matcher(path).matches()); if (isExcludedRoute || !isIncludedRoute) { return false; } ret...
repos\spring-boot-admin-master\spring-boot-admin-server-ui\src\main\java\de\codecentric\boot\admin\server\ui\web\HomepageForwardingMatcher.java
1
请在Spring Boot框架中完成以下Java代码
public static JsonWFProcess of( @NonNull final WFProcess wfProcess, @NonNull final WFProcessHeaderProperties headerProperties, @NonNull final ImmutableMap<WFActivityId, UIComponent> uiComponents, @NonNull final JsonOpts jsonOpts) { return builder() .id(wfProcess.getId().getAsString()) .headerProp...
.isAllowAbort(wfProcess.isAllowAbort()) .build(); } @JsonIgnore public JsonWFActivity getActivityById(@NonNull final String activityId) { return activities.stream().filter(activity -> activity.getActivityId().equals(activityId)) .findFirst() .orElseThrow(() -> new AdempiereException(NO_ACTIVITY_ERROR...
repos\metasfresh-new_dawn_uat\backend\de.metas.workflow.rest-api\src\main\java\de\metas\workflow\rest_api\controller\v2\json\JsonWFProcess.java
2
请在Spring Boot框架中完成以下Java代码
public Object generate(Object target, Method method, Object... params) { StringBuilder sb = new StringBuilder(); sb.append(target.getClass().getName()); sb.append(method.getName()); for (Object obj : params) { sb.append(obj.toString());...
return rcm; } @Bean public RedisTemplate<String, String> redisTemplate(RedisConnectionFactory factory) { StringRedisTemplate template = new StringRedisTemplate(factory); Jackson2JsonRedisSerializer jackson2JsonRedisSerializer = new Jackson2JsonRedisSerializer(Object.class); ObjectMa...
repos\spring-boot-quick-master\quick-redies\src\main\java\com\quick\redis\config\RedisConfig.java
2
请完成以下Java代码
public NativeHistoricVariableInstanceQuery disableCustomObjectDeserialization() { this.isCustomObjectDeserializationEnabled = false; return this; } public List<HistoricVariableInstance> executeList(CommandContext commandContext, Map<String, Object> parameterMap, int firstResult, int maxResults) { ...
// do not fail if one of the variables fails to load LOG.exceptionWhileGettingValueForVariable(t); } } } return historicVariableInstances; } public long executeCount(CommandContext commandContext, Map<String, Object> parameterMap) { return commandContext .getHistoricVa...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\NativeHistoricVariableInstanceQueryImpl.java
1
请完成以下Java代码
public Builder setParentDocument(final Document parentDocument) { this.parentDocument = parentDocument; return this; } public Builder noSorting() { _noSorting = true; _orderBys = null; return this; } public boolean isNoSorting() { return _noSorting; } public Builder addOrderBy(@No...
{ _orderBys = new ArrayList<>(orderBys.toList()); } return this; } private DocumentQueryOrderByList getOrderBysEffective() { return _noSorting ? DocumentQueryOrderByList.EMPTY : DocumentQueryOrderByList.ofList(_orderBys); } public Builder setFirstRow(final int firstRow) { this.fi...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\model\DocumentQuery.java
1
请在Spring Boot框架中完成以下Java代码
public Result<JwSysUserDepartVo> getThirdUserByWechat(HttpServletRequest request){ //获取企业微信配置 Integer tenantId = oConvertUtils.getInt(TokenUtils.getTenantIdByRequest(request),0); SysThirdAppConfig config = appConfigService.getThirdConfigByThirdType(tenantId, MessageTypeEnum.QYWX.getType()); ...
public Result<SyncInfoVo> syncWechatEnterpriseDepartAndUserToLocal(@RequestParam(name = "jwUserDepartJson") String jwUserDepartJson,HttpServletRequest request){ int tenantId = oConvertUtils.getInt(TokenUtils.getTenantIdByRequest(request), 0); SyncInfoVo syncInfoVo = wechatEnterpriseService.syncWechatEnt...
repos\JeecgBoot-main\jeecg-boot\jeecg-module-system\jeecg-system-biz\src\main\java\org\jeecg\modules\system\controller\ThirdAppController.java
2
请完成以下Java代码
public style setMedia(String media) { addAttribute("media",media); return this; } /** Sets the lang="" and xml:lang="" attributes @param lang the lang="" and xml:lang="" attributes */ public Element setLang(String lang) { addAttribute("lang...
addElementToRegistry(element); return(this); } /** Adds an Element to the element. @param element Adds an Element to the element. */ public style addElement(String element) { addElementToRegistry(element); return(this); } /** R...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\tools\src\main\java-legacy\org\apache\ecs\xhtml\style.java
1
请完成以下Java代码
public WebGraphQlHandler.Builder interceptor(WebGraphQlInterceptor... interceptors) { return interceptors(Arrays.asList(interceptors)); } @Override public WebGraphQlHandler.Builder interceptors(List<WebGraphQlInterceptor> interceptors) { this.interceptors.addAll(interceptors); interceptors.forEach((intercepto...
@Override public ContextSnapshotFactory contextSnapshotFactory() { return snapshotFactory; } @Override public Mono<WebGraphQlResponse> handleRequest(WebGraphQlRequest request) { ContextSnapshot snapshot = snapshotFactory.captureAll(); return executionChain.next(request).contextWrite((context) -...
repos\spring-graphql-main\spring-graphql\src\main\java\org\springframework\graphql\server\DefaultWebGraphQlHandlerBuilder.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.nam
e}。 metadata: user.name: user # Spring Security 安全认证的账号 user.password: user # Spring Security 安全认证的密码
repos\SpringBoot-Labs-master\labx-15\labx-15-admin-03-adminserver\src\main\resources\application.yaml
2
请完成以下Java代码
public void setDecisionDefinitionIdIn(String[] decisionDefinitionIdIn) { this.decisionDefinitionIdIn = decisionDefinitionIdIn; } @CamundaQueryParam(value = "decisionDefinitionKeyIn", converter = StringArrayConverter.class) public void setDecisionDefinitionKeyIn(String[] decisionDefinitionKeyIn) { this.de...
if (Boolean.TRUE.equals(withoutTenantId)) { query.withoutTenantId(); } if (tenantIdIn != null && tenantIdIn.length > 0) { query.tenantIdIn(tenantIdIn); } if (Boolean.TRUE.equals(compact)) { query.compact(); } } @Override protected void applySortBy(CleanableHistoricDecisionIn...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\history\CleanableHistoricDecisionInstanceReportDto.java
1
请在Spring Boot框架中完成以下Java代码
public final class RSocketMessagingAutoConfiguration { @Bean @ConditionalOnMissingBean RSocketMessageHandler messageHandler(RSocketStrategies rSocketStrategies, ObjectProvider<RSocketMessageHandlerCustomizer> customizers, ApplicationContext context) { RSocketMessageHandler messageHandler = new RSocketMessageHa...
} private static final class ControllerAdviceBeanWrapper implements MessagingAdviceBean { private final ControllerAdviceBean adviceBean; private ControllerAdviceBeanWrapper(ControllerAdviceBean adviceBean) { this.adviceBean = adviceBean; } @Override public @Nullable Class<?> getBeanType() { return ...
repos\spring-boot-4.0.1\module\spring-boot-rsocket\src\main\java\org\springframework\boot\rsocket\autoconfigure\RSocketMessagingAutoConfiguration.java
2
请完成以下Java代码
private StagingData retrieveStagingData(@NonNull final String transactionId) { return cache.getOrLoad(transactionId, this::retrieveStagingData0); } @NonNull private StagingData retrieveStagingData0(@NonNull final String transactionId) { final ImmutableList<I_M_ReceiptSchedule_ExportAudit> exportAuditRecord = ...
Maps.uniqueIndex(exportAuditRecord, I_M_ReceiptSchedule_ExportAudit::getM_ReceiptSchedule_ID), exportAuditRecord); } @Value private static class StagingData { @NonNull ImmutableMap<Integer, I_M_ReceiptSchedule_ExportAudit> schedIdToRecords; @NonNull ImmutableList<I_M_ReceiptSchedule_ExportAudit> recor...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\inoutcandidate\exportaudit\ReceiptScheduleAuditRepository.java
1
请完成以下Java代码
final class OAuth2AuthorizationRequestDeserializer extends ValueDeserializer<OAuth2AuthorizationRequest> { @Override public OAuth2AuthorizationRequest deserialize(JsonParser parser, DeserializationContext context) { JsonNode root = context.readTree(parser); return deserialize(parser, context, root); } private...
private Builder getBuilder(JsonParser parser, AuthorizationGrantType authorizationGrantType) { if (AuthorizationGrantType.AUTHORIZATION_CODE.equals(authorizationGrantType)) { return OAuth2AuthorizationRequest.authorizationCode(); } throw new InvalidFormatException(parser, "Invalid authorizationGrantType", auth...
repos\spring-security-main\oauth2\oauth2-authorization-server\src\main\java\org\springframework\security\oauth2\server\authorization\jackson\OAuth2AuthorizationRequestDeserializer.java
1
请完成以下Spring Boot application配置
spring: datasource: url: jdbc:h2:mem:mydb;MODE=Oracle username: sa password: password driverClassName: org.h2.Driver jpa: database-platform: org.hibernate.dialect.OracleDialect defer-datasource-initialization: true sho
w-sql: true properties: hibernate: format_sql: true sql: init: data-locations:
repos\tutorials-master\persistence-modules\hibernate6\src\main\resources\application-oracle.yaml
2
请完成以下Java代码
public int breakCipher(String message) { return probableOffset(chiSquares(message)); } private double[] chiSquares(String message) { double[] expectedLettersFrequencies = expectedLettersFrequencies(message.length()); double[] chiSquares = new double[ALPHABET_SIZE]; for (int of...
.map(probability -> probability * messageLength) .toArray(); } private int probableOffset(double[] chiSquares) { int probableOffset = 0; for (int offset = 0; offset < chiSquares.length; offset++) { log.debug(String.format("Chi-Square for offset %d: %.2f", offset, chiSquare...
repos\tutorials-master\algorithms-modules\algorithms-miscellaneous-6\src\main\java\com\baeldung\algorithms\caesarcipher\CaesarCipher.java
1
请在Spring Boot框架中完成以下Java代码
public @Nullable Duration getInitialDelay() { return this.initialDelay; } public void setInitialDelay(@Nullable Duration initialDelay) { this.initialDelay = initialDelay; } public @Nullable String getCron() { return this.cron; } public void setCron(@Nullable String cron) { this.cron = cron; ...
public boolean isDefaultLoggingEnabled() { return this.defaultLoggingEnabled; } public void setDefaultLoggingEnabled(boolean defaultLoggingEnabled) { this.defaultLoggingEnabled = defaultLoggingEnabled; } public List<String> getObservationPatterns() { return this.observationPatterns; } public voi...
repos\spring-boot-4.0.1\module\spring-boot-integration\src\main\java\org\springframework\boot\integration\autoconfigure\IntegrationProperties.java
2
请完成以下Java代码
public static FileValueBuilder fileValue(String filename, boolean isTransient) { return new FileValueBuilderImpl(filename).setTransient(isTransient); } /** * Shortcut for calling {@code Variables.fileValue(name).file(file).mimeType(type).create()}. * The name is set to the file name and the mime type is ...
* The name is set to the file name and the mime type is detected via {@link MimetypesFileTypeMap}. */ public static FileValue fileValue(File file, boolean isTransient){ String contentType = MimetypesFileTypeMap.getDefaultFileTypeMap().getContentType(file); return new FileValueBuilderImpl(file.getName()).fi...
repos\camunda-bpm-platform-master\commons\typed-values\src\main\java\org\camunda\bpm\engine\variable\Variables.java
1
请在Spring Boot框架中完成以下Java代码
public class ProductId implements RepoIdAware { int repoId; @JsonCreator public static ProductId ofRepoId(final int repoId) { return new ProductId(repoId); } @Nullable public static ProductId ofRepoIdOrNull(@Nullable final Integer repoId) { return repoId != null && repoId > 0 ? new ProductId(repoId) : nul...
{ return productIds.stream() .filter(Objects::nonNull) .map(ProductId::toRepoId) .collect(ImmutableSet.toImmutableSet()); } public static boolean equals(@Nullable final ProductId o1, @Nullable final ProductId o2) { return Objects.equals(o1, o2); } private ProductId(final int repoId) { this.rep...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\product\ProductId.java
2
请完成以下Java代码
protected boolean shouldInclude(Term term) { // 除掉停用词 return CoreStopWordDictionary.shouldInclude(term); } /** * 设置关键词提取器使用的分词器 * * @param segment 任何开启了词性标注的分词器 * @return 自己 */ public KeywordExtractor setSegment(Segment segment) { defaultSegment = se...
} /** * 提取关键词(top 10) * * @param document 文章 * @return */ public List<String> getKeywords(String document) { return getKeywords(defaultSegment.seg(document), 10); } protected void filter(List<Term> termList) { ListIterator<Term> listIterator = termList....
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\summary\KeywordExtractor.java
1
请完成以下Spring Boot application配置
spring.application.name=mcp-server-oauth2 server.port=8090 spring.security.oauth2.resourceserver.jwt.issuer-uri=http://localhost:9000 spring.ai.mcp.server.enabled=true spring.ai.mcp.server.name=mcp-calculator-server spring.ai.mcp.server.version=1.0.0 spring.ai.mcp.server.stdio=fal
se logging.level.org.springframework.security=DEBUG logging.level.org.springframework.ai.mcp=INFO logging.level.root=INFO
repos\tutorials-master\spring-ai-modules\spring-ai-mcp-oauth\mcp-server-oauth2\src\main\resources\application.properties
2
请在Spring Boot框架中完成以下Java代码
public <I extends EntityId> I getExternalIdByInternal(I internalId) { ExportableEntityDao<I, ?> dao = getExportableEntityDao(internalId.getEntityType()); if (dao == null) { return null; } return dao.getExternalIdByInternal(internalId); } private boolean belongsToTena...
@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代码
public void setIsMultiLine (final boolean IsMultiLine) { set_Value (COLUMNNAME_IsMultiLine, IsMultiLine); } @Override public boolean isMultiLine() { return get_ValueAsBoolean(COLUMNNAME_IsMultiLine); } @Override public void setName (final java.lang.String Name) { set_Value (COLUMNNAME_Name, Name); } ...
{ return get_ValueAsBoolean(COLUMNNAME_Processing); } @Override public void setSkipFirstNRows (final int SkipFirstNRows) { set_Value (COLUMNNAME_SkipFirstNRows, SkipFirstNRows); } @Override public int getSkipFirstNRows() { return get_ValueAsInt(COLUMNNAME_SkipFirstNRows); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_ImpFormat.java
1
请完成以下Java代码
public String getContent() { return content; } public void setContent(String content) { this.content = content; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public Int...
} @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", subjectId=").append(subjectId); sb....
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\CmsSubjectComment.java
1
请完成以下Java代码
default <T> void accumulateAndProcessBeforeCommit( @NonNull final String propertyName, @NonNull final Collection<T> itemsToAccumulate, @NonNull final Consumer<ImmutableList<T>> beforeCommitListProcessor) { final ITrx trx = getThreadInheritedTrx(OnTrxMissingPolicy.ReturnTrxNone); if (isActive(trx) && canRe...
} else { afterCommitListProcessor.accept(ImmutableList.copyOf(itemsToAccumulate)); } } default <T> void accumulateAndProcessAfterRollback( @NonNull final String propertyName, @NonNull final Collection<T> itemsToAccumulate, @NonNull final Consumer<ImmutableList<T>> processor) { final ITrx trx = g...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\trx\api\ITrxManager.java
1
请完成以下Java代码
public class C_DocType_Clone_Selection extends JavaProcess implements IProcessPrecondition { private final IQueryBL queryBL = Services.get(IQueryBL.class); private final IDocTypeBL docTypeBL = Services.get(IDocTypeBL.class); private static final String PARAM_AD_ORG_ID = I_AD_Org.COLUMNNAME_AD_Org_ID; @Param(parame...
if (createSelection() <= 0) { throw new AdempiereException("@NoSelection@"); } } private int createSelection() { final IQueryBuilder<I_C_DocType> queryBuilder = createDocTypesQueryBuilder(); final PInstanceId adPInstanceId = getPinstanceId(); Check.assumeNotNull(adPInstanceId, "adPInstanceId is not n...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\document\process\C_DocType_Clone_Selection.java
1
请完成以下Java代码
public class ChatGPTEventListener extends EventSourceListener { private SseEmitter sseEmitter; private String traceId; private List<String> answer = new ArrayList<>(); public ChatGPTEventListener(SseEmitter sseEmitter, String traceId) { this.sseEmitter = sseEmitter; this.traceId = t...
JSONObject choiceJson = choicesJsonArray.getJSONObject(0); JSONObject deltaJson = choiceJson.getJSONObject("delta"); String text = deltaJson.getStr("content"); if (text != null) { content = text; answer.add(content); sseEmitter.send(Sse...
repos\spring-boot-quick-master\quick-sse\src\main\java\com\quick\event\ChatGPTEventListener.java
1
请在Spring Boot框架中完成以下Java代码
public int updateStatus(Long id, Integer status) { SmsHomeAdvertise record = new SmsHomeAdvertise(); record.setId(id); record.setStatus(status); return advertiseMapper.updateByPrimaryKeySelective(record); } @Override public SmsHomeAdvertise getItem(Long id) { return ...
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date start = null; try { start = sdf.parse(startStr); } catch (ParseException e) { e.printStackTrace(); } Date end = null; try { end...
repos\mall-master\mall-admin\src\main\java\com\macro\mall\service\impl\SmsHomeAdvertiseServiceImpl.java
2
请在Spring Boot框架中完成以下Java代码
public String toString() { return "Cluster{" + "ip='" + ip + '\'' + ", path='" + path + '\'' + '}'; } } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; ...
public List<Cluster> getCluster() { return cluster; } public void setCluster(List<Cluster> cluster) { this.cluster = cluster; } @Override public String toString() { return "ServerProperties{" + "email='" + email + '\'' + ", cluster=" + cluste...
repos\spring-boot-master\profile-properties\src\main\java\com\mkyong\config\ServerProperties.java
2
请完成以下Java代码
public de.metas.dimension.model.I_DIM_Dimension_Spec getDIM_Dimension_Spec() { return get_ValueAsPO(COLUMNNAME_DIM_Dimension_Spec_ID, de.metas.dimension.model.I_DIM_Dimension_Spec.class); } @Override public void setDIM_Dimension_Spec(de.metas.dimension.model.I_DIM_Dimension_Spec DIM_Dimension_Spec) { set_Valu...
else set_ValueNoCheck (COLUMNNAME_DIM_Dimension_Spec_ID, Integer.valueOf(DIM_Dimension_Spec_ID)); } /** Get Dimensionsspezifikation. @return Dimensionsspezifikation */ @Override public int getDIM_Dimension_Spec_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_DIM_Dimension_Spec_ID); if (ii == null)...
repos\metasfresh-new_dawn_uat\backend\de.metas.dimension\src\main\java-gen\de\metas\dimension\model\X_DIM_Dimension_Spec_Assignment.java
1
请完成以下Java代码
public void setType(String type) { this.type = type; } public void setRequired(boolean required) { this.required = required; } public void setDisplay(Boolean display) { this.display = display; } public void setDisplayName(String displayName) { this.displayName ...
return analytics; } public void setAnalytics(boolean analytics) { this.analytics = analytics; } public void setEphemeral(boolean ephemeral) { this.ephemeral = ephemeral; } public boolean isEphemeral() { return ephemeral; } }
repos\Activiti-develop\activiti-core-common\activiti-connector-model\src\main\java\org\activiti\core\common\model\connector\VariableDefinition.java
1
请完成以下Java代码
public List<HistoricProcessInstance> getRunningHistoricProcessInstances(Date startedAfter, Date startedAt, int maxResults) { return commandExecutor.execute( new O...
} public List<HistoricIncidentEntity> getOpenHistoricIncidents(Date createdAfter, Date createdAt, int maxResults) { return commandExecutor.execute( new OptimizeOpenHistoricIncidents...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\OptimizeService.java
1
请完成以下Java代码
public void run() { // Skip if the find panel is not expanded if (!findPanel.isExpanded()) { return; } // NOTE: because when the change event is triggered only the collapsed state is changed, and the actual component layout is happening later, // we are enqueuing an event to be ...
public VEditor getEditor(final String columnName) { return columnName2editor.get(columnName); } public final List<String> getEditorColumnNames() { return new ArrayList<>(columnName2editor.keySet()); } public final CLabel getEditorLabel(final String columnName) { return columnName2label.get(columnName); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java\org\compiere\grid\VPanel.java
1
请完成以下Java代码
class AliasedConfigurationPropertySource implements ConfigurationPropertySource { private final ConfigurationPropertySource source; private final ConfigurationPropertyNameAliases aliases; AliasedConfigurationPropertySource(ConfigurationPropertySource source, ConfigurationPropertyNameAliases aliases) { Assert.no...
} } } return ConfigurationPropertyState.ABSENT; } @Override public @Nullable Object getUnderlyingSource() { return this.source.getUnderlyingSource(); } protected ConfigurationPropertySource getSource() { return this.source; } protected ConfigurationPropertyNameAliases getAliases() { return this.a...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\context\properties\source\AliasedConfigurationPropertySource.java
1
请完成以下Java代码
public class Application { public static Twitter getTwitterinstance() { /** * if not using properties file, we can set access token by following way */ // ConfigurationBuilder cb = new ConfigurationBuilder(); // cb.setDebugEnabled(true) // .setOAuthConsumerKey("//TODO") // .setOAuthConsumerSecret("//T...
System.out.println("Got a status deletion notice id:" + arg.getStatusId()); } @Override public void onScrubGeo(long userId, long upToStatusId) { System.out.println("Got scrub_geo event userId:" + userId + " upToStatusId:" + upToStatusId); } @Override public void onSta...
repos\tutorials-master\saas-modules\twitter4j\src\main\java\com\baeldung\Application.java
1
请完成以下Java代码
public void setUserAgent (final @Nullable java.lang.String UserAgent) { set_Value (COLUMNNAME_UserAgent, UserAgent); } @Override public java.lang.String getUserAgent() { return get_ValueAsString(COLUMNNAME_UserAgent); } @Override public void setUserName (final java.lang.String UserName) { set_ValueNoCh...
public java.lang.String getUserName() { return get_ValueAsString(COLUMNNAME_UserName); } @Override public void setVersion (final java.lang.String Version) { set_ValueNoCheck (COLUMNNAME_Version, Version); } @Override public java.lang.String getVersion() { return get_ValueAsString(COLUMNNAME_Version);...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_Issue.java
1
请完成以下Java代码
public String getDocumentInfo() { final IDocTypeBL docTypeBL = Services.get(IDocTypeBL.class); final DocTypeId docTypeId = DocTypeId.ofRepoId(getC_DocType_ID()); final ITranslatableString docTypeName = docTypeBL.getNameById(docTypeId); return docTypeName.translate(Env.getADLanguageOrBaseLanguage()) + " " + ge...
.qtyMoved(activity.getQtyToDeliver()) .durationSetup(Duration.ZERO) .duration(Duration.ZERO) .build()); } } } private void createVariances() { final IPPCostCollectorBL ppCostCollectorBL = Services.get(IPPCostCollectorBL.class); // for (final I_PP_Order_BOMLine bomLine : getLines()) {...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing\src\main\java\org\eevolution\model\MPPOrder.java
1
请在Spring Boot框架中完成以下Java代码
public class JobsConfig { private static final Logger log = LoggerFactory.getLogger(SequentialJobsConfig.class); @Bean public Job jobOne(JobRepository jobRepository, Step stepOne) { return new JobBuilder("jobOne", jobRepository).start(stepOne) .build(); } @Bean public Step...
@Bean public Job jobTwo(JobRepository jobRepository, Step stepTwo) { return new JobBuilder("jobTwo", jobRepository).start(stepTwo) .build(); } @Bean public Step stepTwo(JobRepository jobRepository, PlatformTransactionManager transactionManager) { return new StepBuilder("step...
repos\tutorials-master\spring-batch-2\src\main\java\com\baeldung\springbatch\jobs\JobsConfig.java
2
请完成以下Java代码
public static void parseText(char[] text, AhoCorasickDoubleArrayTrie.IHit<CoreDictionary.Attribute> processor) { DEFAULT.parseText(text, processor); } /** * 解析一段文本(目前采用了BinTrie+DAT的混合储存形式,此方法可以统一两个数据结构) * * @param text 文本 * @param processor 处理器 */ public static voi...
{ DEFAULT.parseLongestText(text, processor); } /** * 热更新(重新加载)<br> * 集群环境(或其他IOAdapter)需要自行删除缓存文件(路径 = HanLP.Config.CustomDictionaryPath[0] + Predefine.BIN_EXT) * * @return 是否加载成功 */ public static boolean reload() { return DEFAULT.reload(); } }
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\dictionary\CustomDictionary.java
1
请完成以下Java代码
public void setMessageID (java.lang.String MessageID) { set_Value (COLUMNNAME_MessageID, MessageID); } /** Get Message-ID. @return EMail Message-ID */ @Override public java.lang.String getMessageID () { return (java.lang.String)get_Value(COLUMNNAME_MessageID); } @Override public org.compiere.model....
*/ @Override public void setSubject (java.lang.String Subject) { set_Value (COLUMNNAME_Subject, Subject); } /** Get Betreff. @return Mail Betreff */ @Override public java.lang.String getSubject () { return (java.lang.String)get_Value(COLUMNNAME_Subject); } @Override public org.compiere.model.I_AD...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_Mail.java
1
请完成以下Java代码
public class X_Data_Export_Audit extends org.compiere.model.PO implements I_Data_Export_Audit, org.compiere.model.I_Persistent { private static final long serialVersionUID = -1753567361L; /** Standard Constructor */ public X_Data_Export_Audit (final Properties ctx, final int Data_Export_Audit_ID, @Nullable ...
@Override public int getData_Export_Audit_ID() { return get_ValueAsInt(COLUMNNAME_Data_Export_Audit_ID); } @Override public org.compiere.model.I_Data_Export_Audit getData_Export_Audit_Parent() { return get_ValueAsPO(COLUMNNAME_Data_Export_Audit_Parent_ID, org.compiere.model.I_Data_Export_Audit.class); } ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_Data_Export_Audit.java
1
请完成以下Java代码
public class SysDictVo { /** * 字典id */ @TableId(type = IdType.ASSIGN_ID) private String id; /** * 字典名称 */ private String dictName; /** * 字典编码 */ private String dictCode;
/** * 应用id */ private String lowAppId; /** * 租户ID */ private Integer tenantId; /** * 字典子项 */ private List<SysDictItem> dictItemsList; }
repos\JeecgBoot-main\jeecg-boot\jeecg-module-system\jeecg-system-biz\src\main\java\org\jeecg\modules\system\vo\lowapp\SysDictVo.java
1
请完成以下Java代码
public void setIsApplyToTUs (final boolean IsApplyToTUs) { set_Value (COLUMNNAME_IsApplyToTUs, IsApplyToTUs); } @Override public boolean isApplyToTUs() { return get_ValueAsBoolean(COLUMNNAME_IsApplyToTUs); } @Override public void setIsAutoPrint (final boolean IsAutoPrint) { set_Value (COLUMNNAME_IsAut...
@Override public int getLabelReport_Process_ID() { return get_ValueAsInt(COLUMNNAME_LabelReport_Process_ID); } @Override public void setM_HU_Label_Config_ID (final int M_HU_Label_Config_ID) { if (M_HU_Label_Config_ID < 1) set_ValueNoCheck (COLUMNNAME_M_HU_Label_Config_ID, null); else set_ValueNoCh...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java-gen\de\metas\handlingunits\model\X_M_HU_Label_Config.java
1
请完成以下Java代码
public void setExternalSystem_Config_ID (final int ExternalSystem_Config_ID) { if (ExternalSystem_Config_ID < 1) set_Value (COLUMNNAME_ExternalSystem_Config_ID, null); else set_Value (COLUMNNAME_ExternalSystem_Config_ID, ExternalSystem_Config_ID); } @Override public int getExternalSystem_Config_ID() ...
set_Value (COLUMNNAME_Name, Name); } @Override public String getName() { return get_ValueAsString(COLUMNNAME_Name); } @Override public void setValue (final @Nullable String Value) { set_Value (COLUMNNAME_Value, Value); } @Override public String getValue() { return get_ValueAsString(COLUMNNAME_Value...
repos\metasfresh-new_dawn_uat\backend\de.metas.externalsystem\src\main\java-gen\de\metas\externalsystem\model\X_ExternalSystem_Other_ConfigParameter.java
1
请完成以下Java代码
public Account getAccount( @NonNull final ProductAcctType acctType, @NonNull final AcctSchema as) { final ProductId productId = getProductId(); if (productId == null) { return super.getAccount(acctType, as); } else { final String acctColumnName = acctType.getColumnName(); final String sql = ...
} else { return services.createCostDetailOrEmpty( CostDetailCreateRequest.builder() .acctSchemaId(acctSchemaId) .clientId(getClientId()) .orgId(getOrgId()) .productId(getProductId()) .attributeSetInstanceId(getAttributeSetInstanceId()) .documentRef(Cos...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing\src\main\java\de\metas\manufacturing\acct\DocLine_CostCollector.java
1
请完成以下Java代码
private static Optional<InvalidEmail> createInvalidEmailInfo(final Pattern regExpInvalidAddress, final String reponseString) { final Matcher invalidAddressMatcher = regExpInvalidAddress.matcher(reponseString); if (invalidAddressMatcher.matches()) { final String errorMsg = invalidAddressMatcher.group(); fin...
updateGroup(campaign); return LocalToRemoteSyncResult.updated(campaign); } @Override public void sendEmailActivationForm( @NonNull final String formId, @NonNull final String email) { final String url = "/forms/" + formId + "/send/activate"; final SendEmailActivationFormRequest body = SendEmailActivatio...
repos\metasfresh-new_dawn_uat\backend\de.metas.marketing\cleverreach\src\main\java\de\metas\marketing\gateway\cleverreach\CleverReachClient.java
1
请在Spring Boot框架中完成以下Java代码
public void run(String... args) { var authors = insertAuthors(); listAllAuthors(); findById(authors); findByPartialName(); queryFindByName(); deleteAll(); } private void deleteAll() { this.authorRepository.deleteAll(); long count = this.authorRepository.count(); System.out.printf("deleteAll(): coun...
System.out.printf("findById(): author1 = %s%n", author1); System.out.printf("findById(): author2 = %s%n", author2); } private void listAllAuthors() { List<Author> authors = this.authorRepository.findAll(); for (Author author : authors) { System.out.printf("listAllAuthors(): author = %s%n", author); for (...
repos\spring-data-examples-main\jpa\graalvm-native\src\main\java\com\example\data\jpa\CLR.java
2
请完成以下Java代码
public ProductPrice convertProductPriceToUom( @NonNull final ProductPrice price, @NonNull final UomId toUomId, @NonNull final CurrencyPrecision pricePrecision) { if (price.getUomId().equals(toUomId)) { return price; } final UOMConversionRate rate = getRate(price.getProductId(), toUomId, price.getU...
@Override public void createUOMConversion(@NonNull final CreateUOMConversionRequest request) { uomConversionsDAO.createUOMConversion(request); } @Override public @NonNull Quantity convertToKilogram(@NonNull final Quantity qty, @NonNull final ProductId productId) { final UomId kilogramUomId = uomDAO.getUomIdB...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\uom\impl\UOMConversionBL.java
1
请在Spring Boot框架中完成以下Java代码
public class XmlXtraStationary { XMLGregorianCalendar hospitalizationDate; Duration treatmentDays; String hospitalizationType; String hospitalizationMode; String clazz; String sectionMajor; Boolean hasExpenseLoading; Boolean doCostAssessment; @NonNull XmlGrouperData admissionType; @NonNull XmlGroup...
@NonNull XmlBfsData bfsResidenceBeforeAdmission; @NonNull XmlBfsData bfsAdmissionType; @NonNull XmlBfsData bfsDecisionForDischarge; @NonNull XmlBfsData bfsResidenceAfterDischarge; @Singular List<XmlCaseDetail> caseDetails; }
repos\metasfresh-new_dawn_uat\backend\vertical-healthcare_ch\forum_datenaustausch_ch.invoice_xversion\src\main\java\de\metas\vertical\healthcare_ch\forum_datenaustausch_ch\invoice_xversion\request\model\payload\body\treatment\XmlXtraStationary.java
2
请完成以下Java代码
public Byte getIsDeleted() { return isDeleted; } public void setIsDeleted(Byte isDeleted) { this.isDeleted = isDeleted; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; }
@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", commentId=").append(commentId); sb.append(", newsId=").append(newsId); sb...
repos\spring-boot-projects-main\SpringBoot咨询发布系统实战项目源码\springboot-project-news-publish-system\src\main\java\com\site\springboot\core\entity\NewsComment.java
1
请完成以下Java代码
protected boolean checkActivityOutputParameterSupported(Element activityElement, ActivityImpl activity) { String tagName = activityElement.getTagName(); if (tagName.equals("endEvent")) { addError("camunda:outputParameter not allowed for element type '" + tagName + "'.", activityElement); return tru...
} protected void addTimeCycleWarning(Element timeCycleElement, String type, String timerElementId) { String warning = "It is not recommended to use a " + type + " timer event with a time cycle."; addWarning(warning, timeCycleElement, timerElementId); } protected void ensureNoExpressionInMessageStartEven...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\bpmn\parser\BpmnParse.java
1
请完成以下Java代码
public class ContactDetails { private String mobile; private String landline; @XStreamAsAttribute private String contactType; public String getMobile() { return mobile; } public void setMobile(String mobile) { this.mobile = mobile; } public String getLandline() ...
} public void setLandline(String landline) { this.landline = landline; } public String getContactType() { return contactType; } public void setContactType(String contactType) { this.contactType = contactType; } @Override public String toString() { retu...
repos\tutorials-master\xml-modules\xstream\src\main\java\com\baeldung\implicit\collection\pojo\ContactDetails.java
1
请完成以下Java代码
public void removeTreeCheckingListener(TreeCheckingListener tsl) { this.checkingModel.removeTreeCheckingListener(tsl); } /** * Expand completely a tree */ public void expandAll() { expandSubTree(getPathForRow(0)); } private void expandSubTree(TreePath path) { expandPath(path);...
/** * @return a string representation of the tree, including the checking, * enabling and greying sets. */ @Override public String toString() { String retVal = super.toString(); TreeCheckingModel tcm = getCheckingModel(); if (tcm != null) { return retVal + "\n" + tcm.t...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing\src\main\java\it\cnr\imaa\essi\lablib\gui\checkboxtree\CheckboxTree.java
1
请完成以下Java代码
public OrderItemBuilder purchasedQty(@NonNull final Quantity purchasedQty) { innerBuilder.purchasedQty(purchasedQty); return this; } public OrderItemBuilder remotePurchaseOrderId(final String remotePurchaseOrderId) { innerBuilder.remotePurchaseOrderId(remotePurchaseOrderId); return this; } pub...
purchaseOrderItems.add(purchaseOrderItem); } public Quantity getPurchasedQty() { return purchaseOrderItems.stream() .map(PurchaseOrderItem::getPurchasedQty) .reduce(Quantity::add) .orElseGet(() -> getQtyToPurchase().toZero()); } public List<PurchaseOrderItem> getPurchaseOrderItems() { return Imm...
repos\metasfresh-new_dawn_uat\backend\de.metas.purchasecandidate.base\src\main\java\de\metas\purchasecandidate\PurchaseCandidate.java
1
请完成以下Java代码
public ManufacturingOrderExportAudit getByTransactionId(@NonNull final APITransactionId transactionId) { final StagingData stagingData = retrieveStagingData(transactionId); return toExportAudit(stagingData); } private static ManufacturingOrderExportAudit toExportAudit(@NonNull final StagingData stagingData) { ...
} @Value private static class StagingData { private final APITransactionId transactionId; private final ImmutableList<I_PP_Order_ExportAudit> records; @Getter(AccessLevel.NONE) ImmutableMap<PPOrderId, I_PP_Order_ExportAudit> recordsByOrderId; @Builder private StagingData( @NonNull final APITransac...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing.rest-api\src\main\java\de\metas\manufacturing\rest_api\ManufacturingOrderExportAuditRepository.java
1
请完成以下Java代码
public ASILayout getLayout() { return descriptor.getLayout(); } public DocumentId getDocumentId() { return data.getDocumentId(); } AttributeSetId getAttributeSetId() { return descriptor.getAttributeSetId(); } void processValueChanges(final List<JSONDocumentChangedEvent> events, final ReasonSupplier re...
{ assertNotCompleted(); final I_M_AttributeSetInstance asiRecord = createM_AttributeSetInstance(this); final IntegerLookupValue lookupValue = IntegerLookupValue.of(asiRecord.getM_AttributeSetInstance_ID(), asiRecord.getDescription()); completed = true; return lookupValue; } private static I_M_AttributeSet...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\pattribute\ASIDocument.java
1