instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
public boolean canConvert(final String filterId) { return Objects.equals(filterId, FILTER_ID); } @Override public FilterSql getSql( @NonNull final DocumentFilter filter, final SqlOptions sqlOpts_NOTUSED, @NonNull final SqlDocumentFilterConverterContext context) { final String barcodeString ...
} protected boolean isAlwaysUseSameLayout() { return Services.get(ISysConfigBL.class).getBooleanValue(SYSCFG_AlwaysUseSameLayout, false); } protected RelatedProcessDescriptor createProcessDescriptor(@NonNull final Class<?> processClass) { return RelatedProcessDescriptor.builder() .processId(adProcessDAO....
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\handlingunits\HUEditorViewFactoryTemplate.java
1
请完成以下Java代码
public Execution getExecution() { ExecutionEntity execution = getExecutionFromContext(); if (execution != null) { return execution; } else { return getScopedAssociation().getExecution(); } } @Override public Object getVariable(String variableName) { ...
return executionContext.getExecution(); } } return null; } @Override public Task getTask() { if (Context.getCommandContext() != null) { throw new FlowableCdiException("Cannot work with tasks in an active command."); } return getScopedAssociati...
repos\flowable-engine-main\modules\flowable-cdi\src\main\java\org\flowable\cdi\impl\context\DefaultContextAssociationManager.java
1
请完成以下Java代码
public static JSONLookupValuesList error(@NonNull JsonErrorItem error) { return new JSONLookupValuesList(error); } @JsonProperty("values") private final List<JSONLookupValue> values; @JsonProperty("defaultValue") @JsonInclude(JsonInclude.Include.NON_ABSENT) private String defaultId; @JsonProperty("error") ...
.toString(); } public List<JSONLookupValue> getValues() { return values; } @JsonAnyGetter public Map<String, Object> getOtherProperties() { return otherProperties == null ? ImmutableMap.of() : otherProperties; } @JsonAnySetter public void putOtherProperty(final String name, final String jsonValue) { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\datatypes\json\JSONLookupValuesList.java
1
请完成以下Java代码
public class AIWithHUPIAttributeValue extends AbstractHUAttributeValue { private final I_M_AttributeInstance attributeInstance; private final boolean isGeneratedAttribute; public AIWithHUPIAttributeValue( @NonNull final IAttributeStorage attributeStorage, @NonNull final I_M_AttributeInstance attributeInstance...
@Override protected void setInternalValueStringInitial(final String value) { throw new UnsupportedOperationException("Setting initial value not supported"); } @Override protected void setInternalValueNumberInitial(final BigDecimal value) { throw new UnsupportedOperationException("Setting initial value not su...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\attribute\storage\impl\AIWithHUPIAttributeValue.java
1
请完成以下Java代码
public DateValue readValue(TypedValueField typedValueField) { Date date = null; String value = (String) typedValueField.getValue(); if (value != null) { SimpleDateFormat sdf = new SimpleDateFormat(dateFormat); try { date = sdf.parse(value); } catch (ParseException e) { ...
public void writeValue(DateValue dateValue, TypedValueField typedValueField) { Date date = (Date) dateValue.getValue(); if (date != null) { SimpleDateFormat sdf = new SimpleDateFormat(dateFormat); typedValueField.setValue(sdf.format(date)); } } protected boolean canReadValue(TypedValueFiel...
repos\camunda-bpm-platform-master\clients\java\client\src\main\java\org\camunda\bpm\client\variable\impl\mapper\DateValueMapper.java
1
请完成以下Java代码
protected @Nullable Object getPreAuthenticatedPrincipal(HttpServletRequest request) { String principal = (String) request.getAttribute(this.principalEnvironmentVariable); if (principal == null && this.exceptionIfVariableMissing) { throw new PreAuthenticatedCredentialsNotFoundException( this.principalEnviron...
public void setPrincipalEnvironmentVariable(String principalEnvironmentVariable) { Assert.hasText(principalEnvironmentVariable, "principalEnvironmentVariable must not be empty or null"); this.principalEnvironmentVariable = principalEnvironmentVariable; } public void setCredentialsEnvironmentVariable(String crede...
repos\spring-security-main\web\src\main\java\org\springframework\security\web\authentication\preauth\RequestAttributeAuthenticationFilter.java
1
请完成以下Java代码
public class RModelCalculationContext { private final IRModelMetadata metadata; private int columnIndex = -1; private int groupColumnIndex = -1; private int level = -1; private Object[] groupLevel2Value; public RModelCalculationContext(final IRModelMetadata metadata) { super(); Check.assumeNotNull(me...
public int getGroupColumnIndex() { return groupColumnIndex; } public void setGroupColumnIndex(int groupColumnIndex) { this.groupColumnIndex = groupColumnIndex; } public int getLevel() { return level; } public void setLevel(int level) { this.level = level; } public Object[] getGroupLevel2Value() ...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\org\compiere\report\core\RModelCalculationContext.java
1
请完成以下Java代码
public java.lang.String getRemoteHost() { return get_ValueAsString(COLUMNNAME_RemoteHost); } @Override public void setRequestURI (final @Nullable java.lang.String RequestURI) { set_Value (COLUMNNAME_RequestURI, RequestURI); } @Override public java.lang.String getRequestURI() { return get_ValueAsStrin...
public java.lang.String getStatus() { return get_ValueAsString(COLUMNNAME_Status); } @Override public void setTime (final java.sql.Timestamp Time) { set_Value (COLUMNNAME_Time, Time); } @Override public java.sql.Timestamp getTime() { return get_ValueAsTimestamp(COLUMNNAME_Time); } @Override publi...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_API_Request_Audit.java
1
请完成以下Java代码
public void setQtyDelivered (final BigDecimal QtyDelivered) { set_Value (COLUMNNAME_QtyDelivered, QtyDelivered); } @Override public BigDecimal getQtyDelivered() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_QtyDelivered); return bd != null ? bd : BigDecimal.ZERO; } @Override public void setQ...
{ final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_QtyInTransit); return bd != null ? bd : BigDecimal.ZERO; } @Override public void setQtyOrdered (final BigDecimal QtyOrdered) { set_Value (COLUMNNAME_QtyOrdered, QtyOrdered); } @Override public BigDecimal getQtyOrdered() { final BigDecimal bd = ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\eevolution\model\X_DD_OrderLine_Alternative.java
1
请完成以下Java代码
public VariableInstanceQuery orderByTenantId() { orderBy(VariableInstanceQueryProperty.TENANT_ID); return this; } @Override protected boolean hasExcludingConditions() { return super.hasExcludingConditions() || CompareUtil.elementIsNotContainedInArray(variableName, variableNames); } // results //...
return variableNames; } public String getVariableNameLike() { return variableNameLike; } public String[] getExecutionIds() { return executionIds; } public String[] getProcessInstanceIds() { return processInstanceIds; } public String[] getCaseExecutionIds() { return caseExecutionIds; ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\VariableInstanceQueryImpl.java
1
请完成以下Java代码
public static Object convertValueToJson(final Object value) { if (value == null) { return null; } else if (value instanceof String) { return value; } else if (value instanceof Integer) { return value; } else if (value instanceof BigDecimal) { return value.toString(); } else if (va...
{ return localDate.toString(); } else { return localDateTime.toLocalTime(); } } else { return value.toString(); } } }
repos\metasfresh-new_dawn_uat\misc\de-metas-common\de-metas-common-manufacturing\src\main\java\de\metas\common\handlingunits\JsonHUAttribute.java
1
请在Spring Boot框架中完成以下Java代码
public String getResourceName() { return resourceName; } public void setResourceName(String resourceName) { this.resourceName = resourceName; } @ApiModelProperty(example = "46aa6b3a-c0a1-11e6-bc93-6ab56fad108a") public String getDeploymentId() { return deploymentId; } ...
public String getTenantId() { return tenantId; } public void setTenantId(String tenantId) { this.tenantId = tenantId; } @ApiModelProperty(example = "decision_table") public String getDecisionType() { return decisionType; } public void setDecisionType(String decision...
repos\flowable-engine-main\modules\flowable-dmn-rest\src\main\java\org\flowable\dmn\rest\service\api\repository\DecisionResponse.java
2
请完成以下Java代码
public boolean isProcessed () { Object oo = get_Value(COLUMNNAME_Processed); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Process Now. @param Processing Process Now */ public void setProcessing (bool...
if (bd == null) return Env.ZERO; return bd; } /** Set Quantity Provided. @param ServiceLevelProvided Quantity of service or product provided */ public void setServiceLevelProvided (BigDecimal ServiceLevelProvided) { set_ValueNoCheck (COLUMNNAME_ServiceLevelProvided, ServiceLevelProvided); } /** ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_ServiceLevel.java
1
请在Spring Boot框架中完成以下Java代码
protected @NonNull <K, V> CacheTypeAwareRegionFactoryBean<K, V> configureAsLocalClientRegion( @NonNull Environment environment, @NonNull CacheTypeAwareRegionFactoryBean<K, V> clientRegion) { ClientRegionShortcut shortcut = environment.getProperty(SPRING_DATA_GEMFIRE_CACHE_CLIENT_REGION_SHORTCUT_PROPERTY, C...
static class IsNotCloudFoundryEnvironmentCondition { } @Conditional(NotKubernetesEnvironmentCondition.class) static class IsNotKubernetesEnvironmentCondition { } } public static final class ClusterNotAvailableCondition extends ClusterAwareConfiguration.ClusterAwareCondition { @Override public synchronized...
repos\spring-boot-data-geode-main\spring-geode-project\spring-geode\src\main\java\org\springframework\geode\config\annotation\ClusterNotAvailableConfiguration.java
2
请完成以下Java代码
public void setCaseDefinitionName(String caseDefinitionName) { this.caseDefinitionName = caseDefinitionName; } public int getXmlLineNumber() { return xmlLineNumber; } public void setXmlLineNumber(int xmlLineNumber) { this.xmlLineNumber = xmlLineNumber; } public int get...
public String toString() { StringBuilder strb = new StringBuilder(); strb.append("[Validation set: '").append(validatorSetName).append("' | Problem: '").append(problem).append("'] : "); strb.append(defaultDescription); strb.append(" - [Extra info : "); boolean extraInfoAlreadyPre...
repos\flowable-engine-main\modules\flowable-case-validation\src\main\java\org\flowable\cmmn\validation\validator\ValidationEntry.java
1
请在Spring Boot框架中完成以下Java代码
private static URL toURL(@NonNull final I_MSV3_Vendor_Config configDataRecord) { try { return new URL(configDataRecord.getMSV3_BaseUrl()); } catch (MalformedURLException e) { throw new AdempiereException("The MSV3_BaseUrl value of the given MSV3_Vendor_Config can't be parsed as URL", e) .appendPar...
configRecord.setUserID(config.getAuthUsername()); return configRecord; } private ClientSoftwareId retrieveSoftwareIndentifier() { try { final ADSystemInfo adSystem = Services.get(ISystemBL.class).get(); return ClientSoftwareId.of("metasfresh-" + adSystem.getDbVersion()); } catch (final RuntimeExcep...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma.vendor.gateway.msv3\src\main\java\de\metas\vertical\pharma\vendor\gateway\msv3\config\MSV3ClientConfigRepository.java
2
请完成以下Java代码
public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getBookId() { return bookId; } public void setBookId(Long bookId) { this.bookId = bookId; } public int getStars() { return stars; } public void...
} public boolean isFromCache() { return fromCache; } public void setFromCache(boolean fromCache) { this.fromCache = fromCache; } public Long getCachedTS() { return cachedTS; } public void setCachedTS(Long cachedTS) { this.cachedTS = cachedTS; } }
repos\tutorials-master\spring-cloud-modules\spring-cloud-bootstrap\zipkin-log-svc-rating\src\main\java\com\baeldung\spring\cloud\bootstrap\svcrating\rating\Rating.java
1
请完成以下Java代码
public final class MessageAuthorizationContext<T> { private final Message<T> message; private final Map<String, String> variables; /** * Creates an instance. * @param message the {@link HttpServletRequest} to use */ public MessageAuthorizationContext(Message<T> message) { this(message, Collections.emptyM...
} /** * Returns the {@link HttpServletRequest}. * @return the {@link HttpServletRequest} to use */ public Message<T> getMessage() { return this.message; } /** * Returns the extracted variable values where the key is the variable name and the * value is the variable value. * @return a map containing ...
repos\spring-security-main\messaging\src\main\java\org\springframework\security\messaging\access\intercept\MessageAuthorizationContext.java
1
请完成以下Java代码
public Object getPersistentState() { Map<String, Object> persistentState = new HashMap<>(); persistentState.put("caseDefinitionId", caseDefinitionId); persistentState.put("caseInstanceId", caseInstanceId); persistentState.put("planItemInstanceId", planItemInstanceId); persistentS...
this.onPartId = onPartId; } @Override public String getIfPartId() { return ifPartId; } @Override public void setIfPartId(String ifPartId) { this.ifPartId = ifPartId; } @Override public Date getTimeStamp() { return timeStamp; } @Override public ...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\persistence\entity\SentryPartInstanceEntityImpl.java
1
请在Spring Boot框架中完成以下Java代码
public class CompositeJobExecutionListenerJobDemo { @Autowired private JobBuilderFactory jobBuilderFactory; @Autowired private StepBuilderFactory stepBuilderFactory; @Bean public Job compositeJobExecutionListenerJob() { return jobBuilderFactory.get("compositeJobExecutionListenerJob") ...
public void afterJob(JobExecution jobExecution) { System.out.println("任务监听器One,after job execute: " + jobExecution.getJobInstance().getJobName()); } }; // 任务监听器2 JobExecutionListener jobExecutionListenerTwo = new JobExecutionListener() { @Override ...
repos\SpringAll-master\71.spring-batch-listener\src\main\java\cc\mrbird\batch\job\CompositeJobExecutionListenerJobDemo.java
2
请在Spring Boot框架中完成以下Java代码
public class AlipayController { @Autowired private AlipayConfig alipayConfig; @Autowired private AlipayService alipayService; @ApiOperation("支付宝电脑网站支付") @RequestMapping(value = "/pay", method = RequestMethod.GET) public void pay(AliPayParam aliPayParam, HttpServletResponse response) throws...
response.getWriter().close(); } @ApiOperation(value = "支付宝异步回调",notes = "必须为POST请求,执行成功返回success,执行失败返回failure") @RequestMapping(value = "/notify", method = RequestMethod.POST) public String notify(HttpServletRequest request){ Map<String, String> params = new HashMap<>(); Map<String, St...
repos\mall-master\mall-portal\src\main\java\com\macro\mall\portal\controller\AlipayController.java
2
请完成以下Java代码
public void put(String endpoint, TbX509DtlsSessionInfo msg) { try (var c = connectionFactory.getConnection()) { var serializedMsg = JavaSerDesUtil.encode(msg); if (serializedMsg != null) { c.set(getKey(endpoint), serializedMsg); } else { throw ...
} else { return null; } } } @Override public void remove(String endpoint) { try (var c = connectionFactory.getConnection()) { c.del(getKey(endpoint)); } } private byte[] getKey(String endpoint) { return (SESSION_EP + endpoint)...
repos\thingsboard-master\common\transport\lwm2m\src\main\java\org\thingsboard\server\transport\lwm2m\server\store\TbLwM2MDtlsSessionRedisStore.java
1
请完成以下Java代码
public void setM_RMAType_ID (int M_RMAType_ID) { if (M_RMAType_ID < 1) set_ValueNoCheck (COLUMNNAME_M_RMAType_ID, null); else set_ValueNoCheck (COLUMNNAME_M_RMAType_ID, Integer.valueOf(M_RMAType_ID)); } /** Get RMA Type. @return Return Material Authorization Type */ public int getM_RMAType_ID () ...
{ set_Value (COLUMNNAME_Name, Name); } /** Get Name. @return Alphanumeric identifier of the entity */ public String getName () { return (String)get_Value(COLUMNNAME_Name); } /** Get Record ID/ColumnName @return ID/ColumnName pair */ public KeyNamePair getKeyNamePair() { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_RMAType.java
1
请完成以下Java代码
public JComponent getComponent() { return button; } public void addMouseListener(final MouseListener l) { button.addMouseListener(l); } public void addActionListener(final ActionListener l) { button.addActionListener(l); }
public FavoritesGroup getGroup() { return group; } public MTreeNode getNode() { return node; } public int getNode_ID() { return node.getNode_ID(); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\grid\tree\FavoriteItem.java
1
请完成以下Java代码
public void sendEvent(String rawEvent, Map<String, Object> headerMap) { if (exchange != null) { rabbitOperations.convertAndSend(exchange, routingKey, rawEvent, m -> { for (String headerKey : headerMap.keySet()) { m.getMessageProperties().getHeaders().put(headerKey...
public void setRabbitOperations(RabbitOperations rabbitOperations) { this.rabbitOperations = rabbitOperations; } public String getExchange() { return exchange; } public void setExchange(String exchange) { this.exchange = exchange; } public String getRoutingKey() { ...
repos\flowable-engine-main\modules\flowable-event-registry-spring\src\main\java\org\flowable\eventregistry\spring\rabbit\RabbitOperationsOutboundEventChannelAdapter.java
1
请完成以下Java代码
public void setInputVerifier (InputVerifier l) { m_textPane.setInputVerifier(l); } // metas: begin public String getContentType() { if (m_textPane != null) return m_textPane.getContentType(); return null; } private void setHyperlinkListener() { if (hyperlinkListenerClass == null) { return; } ...
static { final String hyperlinkListenerClassname = "de.metas.adempiere.gui.ADHyperlinkHandler"; try { hyperlinkListenerClass = Thread.currentThread().getContextClassLoader().loadClass(hyperlinkListenerClassname); } catch (Exception e) { log.warn("Cannot instantiate hyperlink listener - " + hyperlinkL...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\swing\CTextPane.java
1
请完成以下Java代码
public static ImmutableSet<PaymentId> fromIntSet(@NonNull final Collection<Integer> repoIds) { if (repoIds.isEmpty()) { return ImmutableSet.of(); } return repoIds.stream().map(PaymentId::ofRepoIdOrNull).filter(Objects::nonNull).collect(ImmutableSet.toImmutableSet()); } public static ImmutableSet<Integer...
{ this.repoId = Check.assumeGreaterThanZero(repoId, "C_Payment_ID"); } @Override @JsonValue public int getRepoId() { return repoId; } public static boolean equals(@Nullable PaymentId id1, @Nullable PaymentId id2) { return Objects.equals(id1, id2); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\payment\PaymentId.java
1
请完成以下Java代码
public void setUnitCcy(String value) { this.unitCcy = value; } /** * Gets the value of the xchgRate property. * * @return * possible object is * {@link BigDecimal } * */ public BigDecimal getXchgRate() { return xchgRate; } /** *...
this.ctrctId = value; } /** * Gets the value of the qtnDt property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getQtnDt() { return qtnDt; } /** * Sets the value of the qtnDt propert...
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\CurrencyExchange5.java
1
请完成以下Java代码
public String toString() { return new ToStringBuilder(this).append("INTVALUE", this.intValue).append("STRINGVALUE", this.strSample).toString(); } public static void main(final String[] arguments) { final BuilderMethods simple1 = new BuilderMethods(1, "The First One"); System.out.println...
e.printStackTrace(); } } } class SampleBackgroundInitializer extends BackgroundInitializer<String> { @Override protected String initialize() throws Exception { return null; } // Any complex task that takes some time }
repos\tutorials-master\libraries-apache-commons\src\main\java\com\baeldung\commons\lang3\BuilderMethods.java
1
请在Spring Boot框架中完成以下Java代码
public void setTenantId(String tenantId) { this.tenantId = tenantId; } public String getTenantId() { return tenantId; } public void setTenantIdLike(String tenantIdLike) { this.tenantIdLike = tenantIdLike; } public String getTenantIdLike() { return tenantIdLike;...
} public Boolean getWithoutCategory() { return withoutCategory; } public void setWithoutCategory(Boolean withoutCategory) { this.withoutCategory = withoutCategory; } public String getRootScopeId() { return rootScopeId; } public void setRootScopeId(String rootScope...
repos\flowable-engine-main\modules\flowable-rest\src\main\java\org\flowable\rest\service\api\runtime\task\TaskQueryRequest.java
2
请在Spring Boot框架中完成以下Java代码
public Book postBook(@NotNull @Valid @RequestBody final Book book) { return book; } @RequestMapping(method = RequestMethod.HEAD, value = "/") @ResponseStatus(HttpStatus.OK) public Book headBook() { return new Book(); } @DeleteMapping("/{id}") @ResponseStatus(HttpStatus.OK) ...
@ApiResponses(value = { @ApiResponse(responseCode = "201", description = "Book created successfully", content = { @Content(mediaType = "application/json", schema = @Schema(implementation = Book.class)) }), @ApiResponse(responseCode = "400", description = "Invalid input provid...
repos\tutorials-master\spring-boot-modules\spring-boot-springdoc\src\main\java\com\baeldung\springdoc\controller\BookController.java
2
请完成以下Java代码
public class CustomBatchIterator<T> implements Iterator<List<T>> { private final int batchSize; private List<T> currentBatch; private final Iterator<T> iterator; private CustomBatchIterator(Iterator<T> sourceIterator, int batchSize) { this.batchSize = batchSize; this.iterator = sourceIt...
return iterator.hasNext(); } public static <T> Stream<List<T>> batchStreamOf(Stream<T> stream, int batchSize) { return stream(new CustomBatchIterator<>(stream.iterator(), batchSize)); } private static <T> Stream<T> stream(Iterator<T> iterator) { return StreamSupport.stream(Spliterators...
repos\tutorials-master\core-java-modules\core-java-streams-4\src\main\java\com\baeldung\streams\processing\CustomBatchIterator.java
1
请完成以下Java代码
public void setC_Flatrate_Conditions_ID (final int C_Flatrate_Conditions_ID) { if (C_Flatrate_Conditions_ID < 1) set_Value (COLUMNNAME_C_Flatrate_Conditions_ID, null); else set_Value (COLUMNNAME_C_Flatrate_Conditions_ID, C_Flatrate_Conditions_ID); } @Override public int getC_Flatrate_Conditions_ID() ...
set_Value (COLUMNNAME_M_Product_ID, M_Product_ID); } @Override public int getM_Product_ID() { return get_ValueAsInt(COLUMNNAME_M_Product_ID); } @Override public void setQty (final BigDecimal Qty) { set_Value (COLUMNNAME_Qty, Qty); } @Override public BigDecimal getQty() { final BigDecimal bd = get...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\de\metas\order\model\X_C_CompensationGroup_Schema_TemplateLine.java
1
请在Spring Boot框架中完成以下Java代码
public @Nullable Duration getStaleWhileRevalidate() { return this.staleWhileRevalidate; } public void setStaleWhileRevalidate(@Nullable Duration staleWhileRevalidate) { this.customized = true; this.staleWhileRevalidate = staleWhileRevalidate; } public @Nullable Duration getStaleIfError(...
return control; } private CacheControl createCacheControl() { if (Boolean.TRUE.equals(this.noStore)) { return CacheControl.noStore(); } if (Boolean.TRUE.equals(this.noCache)) { return CacheControl.noCache(); } if (this.maxAge != null) { return CacheControl.maxAge(this...
repos\spring-boot-4.0.1\core\spring-boot-autoconfigure\src\main\java\org\springframework\boot\autoconfigure\web\WebProperties.java
2
请完成以下Java代码
public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; User user = (User) o; return id == user.id && age == user.age && Objects.equals(name, user.name) && Objects.equals(creationDate, user.cre...
return lastLoginDate; } public void setLastLoginDate(LocalDate lastLoginDate) { this.lastLoginDate = lastLoginDate; } public boolean isActive() { return active; } public void setActive(boolean active) { this.active = active; } }
repos\tutorials-master\persistence-modules\spring-data-jpa-enterprise\src\main\java\com\baeldung\boot\domain\User.java
1
请完成以下Java代码
private String createInfo(@NonNull final I_SEPA_Export_Line line) { final StringBuilder sb = new StringBuilder(); if (line.getC_BPartner_ID() > 0) { sb.append("@C_BPartner_ID@ "); sb.append(getBPartnerNameById(line.getC_BPartner_ID())); } if (line.getC_BP_BankAccount_ID() > 0) { sb.append(" @C_BP_...
final Properties ctx = InterfaceWrapperHelper.getCtx(line); final I_C_BPartner_Location billToLocation = partnerDAO.retrieveBillToLocation(ctx, line.getC_BPartner_ID(), true, ITrx.TRXNAME_None); if ((bankAccount == null || !bankAccount.isAddressComplete()) && billToLocation == null) { return cdtr; } final...
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.sepa\base\src\main\java\de\metas\payment\sepa\sepamarshaller\impl\SEPAVendorCreditTransferMarshaler_Pain_001_001_03_CH_02.java
1
请完成以下Java代码
public void setC_BPartner_ID (int C_BPartner_ID) { if (C_BPartner_ID < 1) set_Value (COLUMNNAME_C_BPartner_ID, null); else set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner . @return Identifies a Business Partner */ public int getC_BPartner_ID () { ...
{ Integer ii = (Integer)get_Value(COLUMNNAME_M_PriceList_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Session ID. @param Session_ID Session ID */ public void setSession_ID (int Session_ID) { if (Session_ID < 1) set_Value (COLUMNNAME_Session_ID, null); else set_Value (COL...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_W_Basket.java
1
请完成以下Java代码
public static void setDtlsConnectorConfigCidLength(Configuration serverCoapConfig, Integer cIdLength) { serverCoapConfig.setTransient(DTLS_CONNECTION_ID_LENGTH); serverCoapConfig.setTransient(DTLS_CONNECTION_ID_NODE_ID); serverCoapConfig.set(DTLS_CONNECTION_ID_LENGTH, cIdLength); if (cId...
)); } public static boolean areMapsEqual(Map<Integer, String[]> m1, Map<Integer, String[]> m2) { if (m1.size() != m2.size()) return false; for (Integer key : m1.keySet()) { if (!m2.containsKey(key)) return false; String[] arr1 = m1.get(key); String[] arr2 = ...
repos\thingsboard-master\common\transport\lwm2m\src\main\java\org\thingsboard\server\transport\lwm2m\utils\LwM2MTransportUtil.java
1
请完成以下Java代码
public CommandInterceptor createTransactionInterceptor() { return null; } @Override protected void postProcessEngineInitialisation() { // empty here. will be done in registerTenant } @Override public Runnable getProcessEngineCloseRunnable() { return new Runnable() { ...
}; } public Command<Void> getProcessEngineCloseCommand() { return new Command<>() { @Override public Void execute(CommandContext commandContext) { CommandContextUtil.getProcessEngineConfiguration(commandContext).getCommandExecutor().execute(new SchemaOperationPro...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\cfg\multitenant\MultiSchemaMultiTenantProcessEngineConfiguration.java
1
请在Spring Boot框架中完成以下Java代码
public String getFREETEXT() { return freetext; } /** * Sets the value of the freetext property. * * @param value * allowed object is * {@link String } * */ public void setFREETEXT(String value) { this.freetext = value; } /** * G...
* {@link String } * */ public String getFREETEXTLANGUAGE() { return freetextlanguage; } /** * Sets the value of the freetextlanguage property. * * @param value * allowed object is * {@link String } * */ public void setFREETEXTL...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_stepcom_desadv\de\metas\edi\esb\jaxb\stepcom\desadv\DTEXT1.java
2
请完成以下Java代码
public ELResolver getELResolver() { return elResolver; } @Override public FunctionMapper getFunctionMapper() { return null; } @Override public VariableMapper getVariableMapper() { return null; } // delegate methods //////////////////////////// @Override @SuppressWarnings("rawtypes") ...
} @Override @SuppressWarnings("rawtypes") public void putContext(Class key, Object contextObject) { delegateContext.putContext(key, contextObject); } @Override public void setLocale(Locale locale) { delegateContext.setLocale(locale); } @Override public void setPropertyResolved(boolean resol...
repos\camunda-bpm-platform-master\engine-cdi\core\src\main\java\org\camunda\bpm\engine\cdi\impl\el\ElContextDelegate.java
1
请完成以下Java代码
String getConfigSummary() { return config != null ? config.toString() : ""; } @Nullable String getRequestAsString() { return elementToString(requestElement); } @Nullable String getResponseAsString() { return elementToString(responseElement); } @Nullable private String elementToString(@Nullable fina...
final StringResult result = new StringResult(); marshaller.marshal(element, result); return cleanupPdfData(result.toString()); } catch (final Exception ex) { throw new AdempiereException("Failed converting " + element + " to String", ex); } } /** * remove the pdfdata since it's long and useless a...
repos\metasfresh-new_dawn_uat\backend\de.metas.shipper.gateway.dpd\src\main\java\de\metas\shipper\gateway\dpd\logger\DpdClientLogEvent.java
1
请在Spring Boot框架中完成以下Java代码
public Amount getPriceSubtotal() { return priceSubtotal; } public void setPriceSubtotal(Amount priceSubtotal) { this.priceSubtotal = priceSubtotal; } public PricingSummary tax(Amount tax) { this.tax = tax; return this; } /** * Get tax * * @return tax **/ @javax.annotation.Nullable @ApiMo...
if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } PricingSummary pricingSummary = (PricingSummary)o; return Objects.equals(this.adjustment, pricingSummary.adjustment) && Objects.equals(this.deliveryCost, pricingSummary.deliveryCost) && Objects.equ...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\de-metas-camel-ebay\ebay-api-client\src\main\java\de\metas\camel\externalsystems\ebay\api\model\PricingSummary.java
2
请完成以下Java代码
public void setA_Table_Rate_Type (String A_Table_Rate_Type) { set_Value (COLUMNNAME_A_Table_Rate_Type, A_Table_Rate_Type); } /** Get Type. @return Type */ public String getA_Table_Rate_Type () { return (String)get_Value(COLUMNNAME_A_Table_Rate_Type); } /** A_Term AD_Reference_ID=53256 */ public stat...
/** Get Description. @return Optional short description of the record */ public String getDescription () { return (String)get_Value(COLUMNNAME_Description); } /** Set Processed. @param Processed The document has been processed */ public void setProcessed (boolean Processed) { set_Value (COLUMNN...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_A_Depreciation_Table_Header.java
1
请在Spring Boot框架中完成以下Java代码
public class PmsProductAttributeCategoryServiceImpl implements PmsProductAttributeCategoryService { @Autowired private PmsProductAttributeCategoryMapper productAttributeCategoryMapper; @Autowired private PmsProductAttributeCategoryDao productAttributeCategoryDao; @Override public int create(Str...
@Override public int delete(Long id) { return productAttributeCategoryMapper.deleteByPrimaryKey(id); } @Override public PmsProductAttributeCategory getItem(Long id) { return productAttributeCategoryMapper.selectByPrimaryKey(id); } @Override public List<PmsProductAttributeCa...
repos\mall-master\mall-admin\src\main\java\com\macro\mall\service\impl\PmsProductAttributeCategoryServiceImpl.java
2
请完成以下Java代码
public int getCM_AccessProfile_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_CM_AccessProfile_ID); if (ii == null) return 0; return ii.intValue(); } public I_CM_Media getCM_Media() throws RuntimeException { return (I_CM_Media)MTable.get(getCtx(), I_CM_Media.Table_Name) .getPO(getCM_Media_ID...
{ if (CM_Media_ID < 1) set_ValueNoCheck (COLUMNNAME_CM_Media_ID, null); else set_ValueNoCheck (COLUMNNAME_CM_Media_ID, Integer.valueOf(CM_Media_ID)); } /** Get Media Item. @return Contains media content like images, flash movies etc. */ public int getCM_Media_ID () { Integer ii = (Integer)get_V...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_CM_AccessMedia.java
1
请完成以下Java代码
private static ImmutableMap<Integer, SeqNo> createCache(final int lastSeqNoValue) { final ImmutableMap.Builder<Integer, SeqNo> builder = ImmutableMap.builder(); for (int i = 0; i <= lastSeqNoValue; i += STEP) { builder.put(i, new SeqNo(i)); } return builder.build(); } @JsonCreator public static SeqNo ...
public int toInt() { return value; } public SeqNo next() { return ofInt(value / STEP * STEP + STEP); } @Override public int compareTo(@NonNull final SeqNo other) { return this.value - other.value; } public static boolean equals(@Nullable final SeqNo seqNo1, @Nullable final SeqNo seqNo2) { return O...
repos\metasfresh-new_dawn_uat\backend\de.metas.util\src\main\java\de\metas\util\lang\SeqNo.java
1
请在Spring Boot框架中完成以下Java代码
public void notifySend(String notifyUrl, String merchantOrderNo, String merchantNo) { RpNotifyRecord record = new RpNotifyRecord(); record.setNotifyTimes(0); record.setLimitNotifyTimes(5); record.setStatus(NotifyStatusEnum.CREATED.name()); record.setUrl(notifyUrl); record.setMerchantOrderNo(merchantOrderNo...
* @param merchantOrderNo * 商户订单号 * @param notifyType * 消息类型 * @return */ @Override public RpNotifyRecord getNotifyByMerchantNoAndMerchantOrderNoAndNotifyType(String merchantNo, String merchantOrderNo, String...
repos\roncoo-pay-master\roncoo-pay-service\src\main\java\com\roncoo\pay\notify\service\impl\RpNotifyServiceImpl.java
2
请在Spring Boot框架中完成以下Java代码
public class UserController { @Inject private BindingResult bindingResult; private static final List<User> users = new ArrayList<>(); @Inject private Models models; /** * This is a controller. It displays a initial form to the user. * @return The view name */ @GET @Cont...
String id = UUID.randomUUID().toString(); user.setId(id); users.add(user); return "redirect:users/success"; } /** * Handles a redirect view * @return The view name */ @GET @Controller @Path("success") public String saveUserSuccess() { return "succe...
repos\tutorials-master\web-modules\jakarta-ee\src\main\java\com\baeldung\eclipse\krazo\UserController.java
2
请完成以下Java代码
static SslBundle of(@Nullable SslStoreBundle stores, @Nullable SslBundleKey key, @Nullable SslOptions options, @Nullable String protocol, @Nullable SslManagerBundle managers) { SslManagerBundle managersToUse = (managers != null) ? managers : SslManagerBundle.from(stores, key); return new SslBundle() { @Overr...
} /** * Factory method to create a new {@link SslBundle} which uses the system defaults. * @return a new {@link SslBundle} instance * @since 3.5.0 */ static SslBundle systemDefault() { try { KeyManagerFactory keyManagerFactory = KeyManagerFactory .getInstance(KeyManagerFactory.getDefaultAlgorithm())...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\ssl\SslBundle.java
1
请完成以下Java代码
public class Pizza { private static EnumSet<PizzaStatusEnum> deliveredPizzaStatuses = EnumSet.of(PizzaStatusEnum.DELIVERED); private PizzaStatusEnum status; public enum PizzaStatusEnum { ORDERED(5) { @Override public boolean isOrdered() { return true; ...
} public boolean isDeliverable() { return this.status.isReady(); } public void printTimeToDeliver() { System.out.println("Time to delivery is " + this.getStatus().getTimeToDelivery() + " days"); } public static List<Pizza> getAllUndeliveredPizzas(List<Pizza> input) { retur...
repos\tutorials-master\core-java-modules\core-java-lang-oop-types\src\main\java\com\baeldung\enums\Pizza.java
1
请完成以下Java代码
public <T> T[] toArray(T[] a) { return ruleResults.toArray(a); } @Override public boolean add(DmnDecisionResultEntries e) { throw new UnsupportedOperationException("decision result is immutable"); } @Override public boolean remove(Object o) { throw new UnsupportedOperationException("decision r...
public int lastIndexOf(Object o) { return ruleResults.lastIndexOf(o); } @Override public ListIterator<DmnDecisionResultEntries> listIterator() { return asUnmodifiableList().listIterator(); } @Override public ListIterator<DmnDecisionResultEntries> listIterator(int index) { return asUnmodifiable...
repos\camunda-bpm-platform-master\engine-dmn\engine\src\main\java\org\camunda\bpm\dmn\engine\impl\DmnDecisionResultImpl.java
1
请完成以下Java代码
public void updateInvoiceDetail(final I_C_Invoice_Detail invoiceDetail, final IHandlingUnitsInfo handlingUnitsInfo) { // nothing } /** * @return and ad-hoc implementation that actually works; TODO: fuse with the one in de.metas.materialtracking. */ @Override public IHandlingUnitsInfoWritableQty createHUInfo...
} @Override public IHandlingUnitsInfo add(@NonNull final IHandlingUnitsInfo infoToAdd) { Check.assume(Objects.equals(infoToAdd.getTUName(), this.getTUName()), "infoToAdd {} has a TUName that differs from ours {}", infoToAdd, this); return new PlainHandlingUnitsInfo( wrappedHUInfo.getTUName(), ...
repos\metasfresh-new_dawn_uat\backend\de.metas.materialtracking\src\main\java\de\metas\materialtracking\spi\impl\HandlingUnitsInfoFactory.java
1
请完成以下Java代码
protected String doIt() throws Exception { final I_M_ReceiptSchedule receiptSchedule = getProcessInfo().getRecordIfApplies(I_M_ReceiptSchedule.class, ITrx.TRXNAME_ThreadInherited).orElse(null); final int emptiesInOutId; if (receiptSchedule == null) { emptiesInOutId = createDraftEmptiesDocument(); } els...
final DocumentPath documentPath = DocumentPath.builder() .setDocumentType(WindowId.of(getTargetWindowId())) .setDocumentId(DocumentId.NEW_ID_STRING) .allowNewDocumentId() .build(); final DocumentId documentId = documentsRepo.forDocumentWritable(documentPath, NullDocumentChangesCollector.instance, doc...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\handlingunits\process\WEBUI_M_ReceiptSchedule_CreateEmptiesReturns_Base.java
1
请完成以下Java代码
private State pushElementToStack(Stack stack, String block, List<Stack<String>> currentStackList, int currentStateHeuristics, Stack<String> goalStateStack) { stack.push(block); int newStateHeuristics = getHeuristicsValue(currentStackList, goalStateStack); if (newStateHeuristics > currentStateHeu...
} /** * This method returns heuristics value for a particular stack */ public int getHeuristicsValueForStack(Stack<String> stack, List<Stack<String>> currentState, Stack<String> goalStateStack) { int stackHeuristics = 0; boolean isPositioneCorrect = true; int goalStartInde...
repos\tutorials-master\algorithms-modules\algorithms-miscellaneous-4\src\main\java\com\baeldung\algorithms\hillclimbing\HillClimbing.java
1
请完成以下Java代码
public void updateExternalTaskSuspensionStateByProcessDefinitionKey(String processDefinitionKey, SuspensionState suspensionState) { updateExternalTaskSuspensionState(null, null, processDefinitionKey, suspensionState); } public void updateExternalTaskSuspensionStateByProcessDefinitionKeyAndTenantId(String proce...
protected boolean useCreateTime(List<QueryOrderingProperty> orderingProperties) { return orderingProperties.stream() .anyMatch(orderingProperty -> CREATE_TIME.getName().equals(orderingProperty.getQueryProperty().getName())); } public void fireExternalTaskAvailableEvent() { Context.getCommandContext...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\ExternalTaskManager.java
1
请在Spring Boot框架中完成以下Java代码
public void remove(final String... keys) { for (String key : keys) { remove(key); } } /** * batch delete with pattern * @param pattern */ public void removePattern(final String pattern) { Set<Serializable> keys = redisTemplate.keys(pattern); if (ke...
* @param l * @param l1 * @return */ public List<Object> range(String k, long l, long l1){ ListOperations<String, Object> list = redisTemplate.opsForList(); return list.range(k,l,l1); } /** * set add * @param key * @param value */ public void setAdd(St...
repos\spring-boot-leaning-master\1.x\第09课:如何玩转 Redis\spring-boot-redis\src\main\java\com\neo\service\RedisService.java
2
请在Spring Boot框架中完成以下Java代码
public class CandidateStockChangeDetailId implements RepoIdAware { @JsonCreator public static CandidateStockChangeDetailId ofRepoId(final int repoId) { return new CandidateStockChangeDetailId(repoId); } @Nullable public static CandidateStockChangeDetailId ofRepoIdOrNull(final int repoId) { return repoId > 0...
int repoId; private CandidateStockChangeDetailId(final int repoId) { this.repoId = Check.assumeGreaterThanZero(repoId, "MD_Candidate_StockChange_Detail_ID"); } @Override @JsonValue public int getRepoId() { return repoId; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.material\dispo-commons\src\main\java\de\metas\material\dispo\commons\candidate\CandidateStockChangeDetailId.java
2
请完成以下Java代码
public String getErrorDetailsByteArrayId() { return errorDetailsByteArrayId; } public void setErrorDetailsByteArrayId(String errorDetailsByteArrayId) { this.errorDetailsByteArrayId = errorDetailsByteArrayId; } public String getErrorDetails() { ByteArrayEntity byteArray = getErrorByteArray(); r...
public void setTenantId(String tenantId) { this.tenantId = tenantId; } public long getPriority() { return priority; } public void setPriority(long priority) { this.priority = priority; } public int getState() { return state; } public void setState(int state) { this.state = state;...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\history\event\HistoricExternalTaskLogEntity.java
1
请完成以下Spring Boot application配置
server: port: 8088 spring: ai: openai: base-url: https://api.openai.com/ api-key: sk-xxx embedding: options: model: text-davinci-003 chat: #指定某一个API配置(覆盖全局配置) api-key: s
k-xxx base-url: https://api.openai.com/ options: model: gpt-3.5-turbo # 模型配置
repos\springboot-demo-master\ai\src\main\resources\application.yaml
2
请在Spring Boot框架中完成以下Java代码
public PageBean<RpNotifyRecord> queryNotifyRecordListPage(PageParam pageParam, Map<String, Object> paramMap) { return rpNotifyRecordDao.listPage(pageParam, paramMap); } /** * 创建消息通知 * * @param rpNotifyRecord */ @Override public long createNotifyRecord(RpNotifyRecord rpNotifyRecord) { return rpNotifyRec...
@Override public void updateNotifyRecord(RpNotifyRecord rpNotifyRecord) { rpNotifyRecordDao.update(rpNotifyRecord); } /** * 创建消息通知记录 * * @param rpNotifyRecordLog * @return */ @Override public long createNotifyRecordLog(RpNotifyRecordLog rpNotifyRecordLog) { return rpNotifyRecordLogDao.insert(rpNotif...
repos\roncoo-pay-master\roncoo-pay-service\src\main\java\com\roncoo\pay\notify\service\impl\RpNotifyServiceImpl.java
2
请完成以下Java代码
public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } SysDepartTreeModel model = (SysDepartTreeModel) o; return Objects.equals(id, model.id) && Objects.equals(parentId, model.parentId) &&...
Objects.equals(updateBy, model.updateBy) && Objects.equals(updateTime, model.updateTime) && Objects.equals(directorUserIds, model.directorUserIds) && Objects.equals(positionId, model.positionId) && Objects.equals(depPostParentId, model.depPostParentId) && ...
repos\JeecgBoot-main\jeecg-boot\jeecg-module-system\jeecg-system-biz\src\main\java\org\jeecg\modules\system\model\SysDepartTreeModel.java
1
请完成以下Java代码
private void init() { } // init /*************************************************************************/ /** Mandatory (default false) */ private boolean m_mandatory = false; /** * Set Editor Mandatory * @param mandatory true, if you have to enter data */ @Override public void setMandatory (bo...
/** * Set Editor to value * @param value value of the editor */ @Override public void setValue (Object value) { if (value == null) setText(""); else setText(value.toString()); } // setValue /** * Return Editor value * @return current value */ @Override public Object getValue() { re...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\swing\CPassword.java
1
请在Spring Boot框架中完成以下Java代码
private static class AnnotatedPoint implements Comparable<AnnotatedPoint> { @NonNull Instant value; @NonNull PointType type; public static AnnotatedPoint of(@NonNull final Instant instant, @NonNull final PointType type) { return AnnotatedPoint.builder() .value(instant) .type(type) .buil...
{ return this.type.ordinal() < other.type.ordinal() ? -1 : 1; } else { return this.value.compareTo(other.value); } } // the order is important here, as if multiple points have the same value // this is the order in which we deal with them public enum PointType { End, GapEnd, GapStart, ...
repos\metasfresh-new_dawn_uat\backend\de.metas.util\src\main\java\de\metas\util\time\IntervalUtils.java
2
请完成以下Java代码
public void setIsbn(String isbn) { this.isbn = isbn; } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if(obj == null) { return false; } if (getClass() != obj.getClass()) { ...
} final IdBook other = (IdBook) obj; if (!Objects.equals(this.id, other.id)) { return false; } return true; } @Override public int hashCode() { int hash = 3; hash = 89 * hash + Objects.hashCode(this.id); return hash; } }
repos\Hibernate-SpringBoot-master\HibernateSpringBootLombokEqualsAndHashCode\src\main\java\com\app\IdBook.java
1
请完成以下Java代码
public List<JobEntity> findJobsByTypeAndProcessDefinitionId( final String jobHandlerType, final String processDefinitionId ) { Map<String, String> params = new HashMap<String, String>(2); params.put("handlerType", jobHandlerType); params.put("processDefinitionId", processDefi...
@Override public void updateJobTenantIdForDeployment(String deploymentId, String newTenantId) { HashMap<String, Object> params = new HashMap<String, Object>(); params.put("deploymentId", deploymentId); params.put("tenantId", newTenantId); getDbSqlSession().update("updateJobTenantIdFo...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\persistence\entity\data\impl\MybatisJobDataManager.java
1
请完成以下Java代码
public void setSeqNo (final int SeqNo) { set_Value (COLUMNNAME_SeqNo, SeqNo); } @Override public int getSeqNo() { return get_ValueAsInt(COLUMNNAME_SeqNo); } /** * Type AD_Reference_ID=540836 * Reference name: C_CompensationGroup_SchemaLine_Type */ public static final int TYPE_AD_Reference_ID=54083...
public static final String TYPE_Revenue = "R"; /** Flatrate = F */ public static final String TYPE_Flatrate = "F"; @Override public void setType (final @Nullable java.lang.String Type) { set_Value (COLUMNNAME_Type, Type); } @Override public java.lang.String getType() { return get_ValueAsString(COLUMNNAME...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\de\metas\order\model\X_C_CompensationGroup_SchemaLine.java
1
请完成以下Java代码
public int getId() { return id; } public void setId(int id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getDescription() { return description; } public...
this.description = description; } public double getPrice() { return price; } public void setPrice(double price) { this.price = price; } public String getStatus() { return status; } public void setStatus(String status) { this.status = status; } }
repos\tutorials-master\libraries-data-db-2\src\main\java\com\baeldung\libraries\jdo\query\ProductItem.java
1
请完成以下Java代码
static boolean loadDat() { ByteArray byteArray = ByteArray.createByteArray(path + Predefine.VALUE_EXT); if (byteArray == null) return false; int size = byteArray.nextInt(); Character[] valueArray = new Character[size]; for (int i = 0; i < valueArray.length; ++i) { ...
DoubleArrayTrie<Character> trie; protected Searcher(char[] c, DoubleArrayTrie<Character> trie) { super(c); this.trie = trie; } protected Searcher(String text, DoubleArrayTrie<Character> trie) { super(text); this.trie = trie; ...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\dictionary\nr\JapanesePersonDictionary.java
1
请完成以下Java代码
public Pair<Vertex, Edge> nextMinimum(){ Edge nextMinimum = new Edge(Integer.MAX_VALUE); Vertex nextVertex = this; Iterator<Map.Entry<Vertex,Edge>> it = edges.entrySet().iterator(); while (it.hasNext()) { Map.Entry<Vertex,Edge> pair = it.next(); if (!pair.getKey()...
Iterator<Map.Entry<Vertex,Edge>> it = edges.entrySet().iterator(); while (it.hasNext()) { Map.Entry<Vertex,Edge> pair = it.next(); if (pair.getValue().isIncluded()) { if (!pair.getValue().isPrinted()) { sb.append(getLabel()); ...
repos\tutorials-master\algorithms-modules\algorithms-miscellaneous-5\src\main\java\com\baeldung\algorithms\prim\Vertex.java
1
请完成以下Java代码
public KeyNamePair getKeyNamePair() { return new KeyNamePair(get_ID(), getName()); } /** Set Percentage. @param Percentage Percent of the entire amount */ public void setPercentage (int Percentage) { set_Value (COLUMNNAME_Percentage, Integer.valueOf(Percentage)); } /** Get Percentage. ...
} /** Set Search Key. @param Value Search key for the record in the format required - must be unique */ public void setValue (String Value) { set_Value (COLUMNNAME_Value, Value); } /** Get Search Key. @return Search key for the record in the format required - must be unique */ public String getVa...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\eevolution\model\X_C_TaxBase.java
1
请完成以下Java代码
private Class<?> loadClass(final String classname, final boolean isServerProcess) { if (classname == null) { return null; } ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); if (classLoader == null) { classLoader = getClass().getClassLoader(); } try { return classLo...
} private ProcessPreconditionsResolution getPresetResolution() { return _presetResolution; } private boolean hasPresetResolution() { return _presetResolution != null; } private Class<? extends IProcessPrecondition> getPreconditionsClass() { return _preconditionsClass; } private ProcessClassInfo getP...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\process\ProcessPreconditionChecker.java
1
请完成以下Java代码
public IDeviceResponse handleRequest(@NonNull final DeviceRequestConfigureDevice request) { final Map<String, IDeviceConfigParam> parameters = request.getParameters(); final IDeviceConfigParam epClass = parameters.get(AbstractTcpScales.PARAM_ENDPOINT_CLASS); final IDeviceConfigParam epHost = parameters.get(Abst...
} ep.setReadTimeoutMillis(Integer.parseInt(epReadTimeoutMillis.getValue())); device.setEndPoint(ep); device.setRoundToPrecision(Integer.parseInt(roundToPrecision.getValue())); device.configureStatic(); return new IDeviceResponse() { }; } @Override public String toString() { return MoreObjects.toS...
repos\metasfresh-new_dawn_uat\backend\de.metas.device.scales\src\main\java\de\metas\device\scales\impl\ConfigureDeviceHandler.java
1
请在Spring Boot框架中完成以下Java代码
public void configure() { final CachingProvider cachingProvider = Caching.getCachingProvider(); final CacheManager cacheManager = cachingProvider.getCacheManager(); final MutableConfiguration<GetCurrenciesRequest, Object> config = new MutableConfiguration<>(); config.setTypes(GetCurrenciesRequest.class, Object...
if (CollectionUtils.isEmpty(currencies.getCurrencyList())) { throw new RuntimeException("No currencies return from Shopware!"); } final ImmutableMap<String, String> currencyId2IsoCode = currencies.getCurrencyList().stream() .collect(ImmutableMap.toImmutableMap(JsonCurrency::getId, JsonCurrency::getIsoCode...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\de-metas-camel-shopware6\src\main\java\de\metas\camel\externalsystems\shopware6\currency\GetCurrenciesRoute.java
2
请完成以下Java代码
private boolean isConsiderHUsFromTheWholeWarehouse() { return sysConfigBL.getBooleanValue(SYS_CONFIG_CONSIDER_HUs_FROM_THE_WHOLE_WAREHOUSE, false); } @NonNull private AllocableHUsList getAvailableHusForLine( @NonNull final PPOrderBOMLineId orderBOMLineId, @NonNull final LocatorId pickFromLocatorId) { fi...
{ if (!handlingUnitsBL.isLoadingUnit(allocableHU.getTopLevelHU())) { return Stream.empty(); } return handlingUnitsDAO.retrieveIncludedHUs(allocableHU.getTopLevelHU()) .stream() .filter(handlingUnitsBL::isTransportUnitOrAggregate); } private static LocatorId getPickFromLocatorId(@NonNull final I_PP...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\manufacturing\issue\plan\PPOrderIssuePlanCreateCommand.java
1
请完成以下Java代码
public class DomainDetail { /** * id : 11000002000016 * sitename : 新浪网 * sitedomain : sina.com.cn * sitetype : 交互式 * cdate : 2016-01-21 * comtype : 企业单位 * comname : 北京新浪互联信息服务有限公司 * comaddress : 北京市网安总队 * updateTime : 2017-09-09 */ private String id; private String sitename; private String sit...
return cdate; } public void setCdate(String cdate) { this.cdate = cdate; } public String getComtype() { return comtype; } public void setComtype(String comtype) { this.comtype = comtype; } public String getComname() { return comname; } public void setComname(String comname) { this.comname = com...
repos\spring-boot-quick-master\quick-feign\src\main\java\com\quick\feign\entity\DomainDetail.java
1
请完成以下Java代码
public void setQty (final BigDecimal Qty) { set_Value (COLUMNNAME_Qty, Qty); } @Override public BigDecimal getQty() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_Qty); return bd != null ? bd : BigDecimal.ZERO; } /** * RevaluationType AD_Reference_ID=541641 * Reference name: M_CostRevalua...
@Override public java.lang.String getRevaluationType() { return get_ValueAsString(COLUMNNAME_RevaluationType); } @Override public void setSeqNo (final int SeqNo) { set_Value (COLUMNNAME_SeqNo, SeqNo); } @Override public int getSeqNo() { return get_ValueAsInt(COLUMNNAME_SeqNo); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_CostRevaluation_Detail.java
1
请在Spring Boot框架中完成以下Java代码
public boolean isContainsCommissionTriggers(@NonNull final InvoiceId invoiceId) { final Set<SalesInvoiceLineDocumentId> invoiceLineIds = invoiceDAO.retrieveLines(invoiceId) .stream() .map(I_C_InvoiceLine::getC_InvoiceLine_ID) .map(invoiceLineId -> InvoiceAndLineId.ofRepoId(invoiceId, invoiceLineId)) ...
final List<I_C_Invoice_Candidate> invoiceCandidates = invoiceCandDAO.retrieveInvoiceCandidates(invoiceId); if (invoiceCandidates.isEmpty()) { return false; } final Set<SalesInvoiceCandidateDocumentId> invoiceCandIdSet = invoiceCandidates.stream() .map(I_C_Invoice_Candidate::getC_Invoice_Candidate_ID) ...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\commission\commissioninstance\services\CommissionTriggerService.java
2
请完成以下Java代码
public final class OAuth2AuthorizationCodeAuthenticationConverter implements AuthenticationConverter { @Nullable @Override public Authentication convert(HttpServletRequest request) { MultiValueMap<String, String> parameters = OAuth2EndpointUtils.getFormParameters(request); // grant_type (REQUIRED) String gra...
if (StringUtils.hasText(redirectUri) && parameters.get(OAuth2ParameterNames.REDIRECT_URI).size() != 1) { OAuth2EndpointUtils.throwError(OAuth2ErrorCodes.INVALID_REQUEST, OAuth2ParameterNames.REDIRECT_URI, OAuth2EndpointUtils.ACCESS_TOKEN_REQUEST_ERROR_URI); } Map<String, Object> additionalParameters = new ...
repos\spring-security-main\oauth2\oauth2-authorization-server\src\main\java\org\springframework\security\oauth2\server\authorization\web\authentication\OAuth2AuthorizationCodeAuthenticationConverter.java
1
请完成以下Java代码
public boolean supports(Class<?> authentication) { return UsernamePasswordAuthenticationToken.class.isAssignableFrom(authentication); } /** * Determines whether the supplied password will be used as the credentials in the * successful authentication token. If set to false, then the password will be * obtaine...
* will be stored as the principal in the <tt>Authentication</tt> returned by the * {@link #createSuccessfulAuthentication(org.springframework.security.authentication.UsernamePasswordAuthenticationToken, org.springframework.security.core.userdetails.UserDetails)} * method. * @param userDetailsContextMapper the str...
repos\spring-security-main\ldap\src\main\java\org\springframework\security\ldap\authentication\AbstractLdapAuthenticationProvider.java
1
请完成以下Java代码
protected org.compiere.model.POInfo initPO (Properties ctx) { org.compiere.model.POInfo poi = org.compiere.model.POInfo.getPOInfo (ctx, Table_Name, get_TrxName()); return poi; } /** Set Beschreibung. @param Description Beschreibung */ @Override public void setDescription (java.lang.String De...
@return Dosage Form */ @Override public int getM_DosageForm_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_M_DosageForm_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Name. @param Name Alphanumeric identifier of the entity */ @Override public void setName (java.lang.Stri...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma\src\main\java-gen\de\metas\vertical\pharma\model\X_M_DosageForm.java
1
请完成以下Java代码
public void changeStatusTo(@NonNull final PPOrderRoutingActivityStatus newStatus) { final PPOrderRoutingActivityStatus currentStatus = getStatus(); if (currentStatus.equals(newStatus)) { return; } currentStatus.assertCanChangeTo(newStatus); this.status = newStatus; } void reportProgress(final PPOrde...
if (!Objects.equals(getDurationRequired(), getDurationReal())) { // addDescription(Services.get(IMsgBL.class).parseTranslation(getCtx(), "@closed@ ( @Duration@ :" + getDurationRequiered() + ") ( @QtyRequiered@ :" + getQtyRequiered() + ")")); setDurationRequired(getDurationReal()); setQtyRequired(getQtyDelive...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing\src\main\java\org\eevolution\api\PPOrderRoutingActivity.java
1
请完成以下Java代码
public void setName (final java.lang.String Name) { set_Value (COLUMNNAME_Name, Name); } @Override public java.lang.String getName() { return get_ValueAsString(COLUMNNAME_Name); } @Override public void setStdPrecision (final int StdPrecision) { set_Value (COLUMNNAME_StdPrecision, StdPrecision); } @...
public static final String UOMTYPE_Power = "PO"; /** Pressure = PR */ public static final String UOMTYPE_Pressure = "PR"; /** Temperature = TE */ public static final String UOMTYPE_Temperature = "TE"; /** Time = TM */ public static final String UOMTYPE_Time = "TM"; /** Torque = TO */ public static final String ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_UOM.java
1
请完成以下Java代码
public Evaluatee2 asEvaluatee() { return new Evaluatee2() { @Override public String get_ValueAsString(final String variableName) { if (!has_Variable(variableName)) { return ""; } final Object value = POJOWrapper.this.getValuesMap().get(variableName); return value == null ? "" : v...
{ _modelInternalAccessor = new POJOModelInternalAccessor(this); } return _modelInternalAccessor; } POJOModelInternalAccessor _modelInternalAccessor = null; public static IModelInternalAccessor getModelInternalAccessor(final Object model) { final POJOWrapper wrapper = getWrapper(model); if (wrapper == n...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\wrapper\POJOWrapper.java
1
请完成以下Java代码
protected PvmExecutionImpl newProcessInstance() { return new ExecutionImpl(); } public List<ActivityImpl> getInitialActivityStack() { return getInitialActivityStack(initial); } public synchronized List<ActivityImpl> getInitialActivityStack(ActivityImpl startActivity) { List<ActivityImpl> initialAc...
return "ProcessDefinition("+id+")"; } public String getDescription() { return (String) getProperty("documentation"); } /** * @return all lane-sets defined on this process-instance. Returns an empty list if none are defined. */ public List<LaneSet> getLaneSets() { if(laneSets == null) { ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\pvm\process\ProcessDefinitionImpl.java
1
请完成以下Java代码
protected String doIt() { final IDunningDAO dunningDAO = Services.get(IDunningDAO.class); // // Generate dunning candidates for (final I_C_Dunning dunning : dunningDAO.retrieveDunnings()) { for (final I_C_DunningLevel dunningLevel : dunningDAO.retrieveDunningLevels(dunning)) { generateCandidates(d...
final IDunningBL dunningBL = Services.get(IDunningBL.class); trxManager.runInNewTrx(new TrxRunnableAdapter() { @Override public void run(String localTrxName) throws Exception { final IDunningContext context = dunningBL.createDunningContext(getCtx(), dunningLevel, p_DunningDate, get_TrxName()); co...
repos\metasfresh-new_dawn_uat\backend\de.metas.dunning\src\main\java\de\metas\dunning\process\C_Dunning_Candidate_Create.java
1
请完成以下Java代码
protected void singleSelect(ObjectNode parent, SingleSelectCapability capability, Function<MetadataElement, ObjectNode> valueMapper, Function<String, String> defaultMapper) { ObjectNode single = nodeFactory.objectNode(); single.put("type", capability.getType().getName()); DefaultMetadataElement defaultType = c...
protected ObjectNode mapDependency(Dependency dependency) { if (dependency.getCompatibilityRange() == null) { // only map the dependency if no compatibilityRange is set return mapValue(dependency); } return null; } protected ObjectNode mapType(Type type) { ObjectNode result = mapValue(type); result.p...
repos\initializr-main\initializr-web\src\main\java\io\spring\initializr\web\mapper\InitializrMetadataV2JsonMapper.java
1
请完成以下Java代码
public CaseInstanceStartEventSubscriptionDeletionBuilder addCorrelationParameterValue(String parameterName, Object parameterValue) { correlationParameterValues.put(parameterName, parameterValue); return this; } @Override public CaseInstanceStartEventSubscriptionDeletionBuilder addCorrelatio...
public Map<String, Object> getCorrelationParameterValues() { return correlationParameterValues; } @Override public void deleteSubscriptions() { checkValidInformation(); cmmnRuntimeService.deleteCaseInstanceStartEventSubscriptions(this); } protected void checkValidInformatio...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\runtime\CaseInstanceStartEventSubscriptionDeletionBuilderImpl.java
1
请在Spring Boot框架中完成以下Java代码
static class HazelcastInstanceEntityManagerFactoryDependsOnConfiguration { } static class HazelcastInstanceEntityManagerFactoryDependsOnPostProcessor extends EntityManagerFactoryDependsOnPostProcessor { HazelcastInstanceEntityManagerFactoryDependsOnPostProcessor() { super("hazelcastInstance"); } } st...
super(ConfigurationPhase.REGISTER_BEAN); } @ConditionalOnBean(name = "hazelcastInstance") static class HasHazelcastInstance { } @ConditionalOnBean(AbstractEntityManagerFactoryBean.class) static class HasJpa { } } }
repos\spring-boot-4.0.1\module\spring-boot-hazelcast\src\main\java\org\springframework\boot\hazelcast\autoconfigure\HazelcastJpaDependencyAutoConfiguration.java
2
请完成以下Java代码
public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName; } public String getPassword() { return passwor...
public int getIsDeleted() { return isDeleted; } public void setIsDeleted(int isDeleted) { this.isDeleted = isDeleted; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } @Ove...
repos\spring-boot-projects-main\SpringBoot前后端分离实战项目源码\spring-boot-project-front-end&back-end\src\main\java\cn\lanqiao\springboot3\entity\AdminUser.java
1
请完成以下Java代码
public void setC_Prepayment_Acct (int C_Prepayment_Acct) { set_Value (COLUMNNAME_C_Prepayment_Acct, Integer.valueOf(C_Prepayment_Acct)); } /** Get Customer Prepayment. @return Account for customer prepayments */ public int getC_Prepayment_Acct () { Integer ii = (Integer)get_Value(COLUMNNAME_C_Prepayment...
Integer ii = (Integer)get_Value(COLUMNNAME_C_Receivable_Acct); if (ii == null) return 0; return ii.intValue(); } public I_C_ValidCombination getC_Receivable_Services_A() throws RuntimeException { return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_Name) .getPO(getC_Receivabl...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_BP_Customer_Acct.java
1
请完成以下Java代码
public class UserCreationDTO { private String name; private String password; private List<String> roles; UserCreationDTO() {} public String getName() { return name; } public String getPassword() { return password; } public List<String> getRoles() {
return roles; } void setName(String name) { this.name = name; } void setPassword(String password) { this.password = password; } void setRoles(List<String> roles) { this.roles = roles; } }
repos\tutorials-master\patterns-modules\design-patterns-architectural\src\main\java\com\baeldung\dtopattern\api\UserCreationDTO.java
1
请完成以下Java代码
public int hashCode() { return Objects.hash(super.hashCode(), firstName, lastName, email); } public static class Builder { private String firstName; private String lastName; private String email; private String username; private String password; private ...
public Builder withPassword(String password) { this.password = password; return this; } public Builder withAuthorities(Collection<? extends GrantedAuthority> authorities) { this.authorities = authorities; return this; } public CustomUserD...
repos\tutorials-master\spring-security-modules\spring-security-web-thymeleaf\src\main\java\com\baeldung\customuserdetails\CustomUserDetails.java
1
请完成以下Java代码
public Date getCreatedTime() { return createdTime; } /** * 设置 创建时间. * * @param createdTime 创建时间. */ public void setCreatedTime(Date createdTime) { this.createdTime = createdTime; } /** * 获取 更新时间. * * @return 更新时间. */
public Date getUpdatedTime() { return updatedTime; } /** * 设置 更新时间. * * @param updatedTime 更新时间. */ public void setUpdatedTime(Date updatedTime) { this.updatedTime = updatedTime; } protected Serializable pkVal() { return this.id; } }
repos\SpringBootBucket-master\springboot-jwt\src\main\java\com\xncoding\jwt\dao\domain\Role.java
1
请在Spring Boot框架中完成以下Java代码
public class HealthcareChPdfAttachmentController { private final OrderCandidatesRestEndpoint orderCandidatesRestEndpoint; public HealthcareChPdfAttachmentController( @NonNull final OrderCandidatesRestEndpoint orderCandidatesRestEndpoint) { this.orderCandidatesRestEndpoint = orderCandidatesRestEndpoint; } @P...
throws IOException { final ImmutableList<String> tags = ImmutableList.of( ATTACHMENT_TAGNAME_EXPORT_PROVIDER/* name */, ForumDatenaustauschChConstants.INVOICE_EXPORT_PROVIDER_ID/* value */, ATTACHMENT_TAGNAME_BELONGS_TO_EXTERNAL_REFERENCE/* name */, externalReference/* value */, TAGNAME_CONCATENATE_PDF_T...
repos\metasfresh-new_dawn_uat\backend\vertical-healthcare_ch\forum_datenaustausch_ch.invoice_rest-api\src\main\java\de\metas\vertical\healthcare\forum_datenaustausch_ch\rest\HealthcareChPdfAttachmentController.java
2
请完成以下Java代码
public int getM_AttributeSet_IncludedTab_ID() { return get_ValueAsInt(COLUMNNAME_M_AttributeSet_IncludedTab_ID); } @Override public void setM_AttributeValue_ID (final int M_AttributeValue_ID) { if (M_AttributeValue_ID < 1) set_Value (COLUMNNAME_M_AttributeValue_ID, null); else set_Value (COLUMNNAME...
@Override public void setValueDate (final @Nullable java.sql.Timestamp ValueDate) { set_Value (COLUMNNAME_ValueDate, ValueDate); } @Override public java.sql.Timestamp getValueDate() { return get_ValueAsTimestamp(COLUMNNAME_ValueDate); } @Override public void setValueNumber (final @Nullable BigDecimal Va...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_Record_Attribute.java
1
请完成以下Java代码
public org.compiere.model.I_C_CountryArea getC_CountryArea() throws RuntimeException { return get_ValueAsPO(COLUMNNAME_C_CountryArea_ID, org.compiere.model.I_C_CountryArea.class); } @Override public void setC_CountryArea(org.compiere.model.I_C_CountryArea C_CountryArea) { set_ValueFromPO(COLUMNNAME_C_CountryA...
Gültig ab inklusiv (erster Tag) */ @Override public void setValidFrom (java.sql.Timestamp ValidFrom) { set_Value (COLUMNNAME_ValidFrom, ValidFrom); } /** Get Gültig ab. @return Gültig ab inklusiv (erster Tag) */ @Override public java.sql.Timestamp getValidFrom () { return (java.sql.Timestamp)ge...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_CountryArea_Assign.java
1
请完成以下Java代码
private DocumentFilterList getFilters() { return _filtersById.isEmpty() ? DocumentFilterList.EMPTY : DocumentFilterList.ofList(_filtersById.values()); } public Builder addFiltersIfAbsent(final Collection<DocumentFilter> filters) { filters.forEach(filter -> { final boolean notDuplicate = isNotDuplicat...
private IViewInvalidationAdvisor getViewInvalidationAdvisor() { return viewInvalidationAdvisor; } public Builder applySecurityRestrictions(final boolean applySecurityRestrictions) { this.applySecurityRestrictions = applySecurityRestrictions; return this; } private boolean isApplySecurityRestricti...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\view\DefaultView.java
1
请在Spring Boot框架中完成以下Java代码
public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception { endpoints.tokenStore(jwtTokenStore()).accessTokenConverter(jwtAccessTokenConverter()); DefaultTokenServices tokenServices = (DefaultTokenServices) endpoints.getDefaultAuthorizationServerTokenServices(); t...
} @Bean public TokenStore jwtTokenStore() { return new JwtTokenStore(jwtAccessTokenConverter()); } @Bean public JwtAccessTokenConverter jwtAccessTokenConverter(){ JwtAccessTokenConverter converter = new JwtAccessTokenConverter(); converter.setSigningKey("testKey"); ...
repos\Spring-Boot-In-Action-master\springbt_sso_jwt\codesheep-server\src\main\java\cn\codesheep\config\AuthorizationServerConfig.java
2
请完成以下Java代码
public static class Person { private String name; private String address; public String getName() { return name; } public void setName(String name) { this.name = name; } public String getAddress() { return address; }...
return port; } public void setPort(int port) { this.port = port; } public boolean isResend() { return resend; } public void setResend(boolean resend) { this.resend = resend; } public Person getSender() { return sender; } public void setSender(...
repos\tutorials-master\spring-boot-modules\spring-boot-properties-3\src\main\java\com\baeldung\properties\json\CustomJsonProperties.java
1