instruction string | input string | output string | source_file string | priority int64 |
|---|---|---|---|---|
请完成以下Java代码 | public class UpdateCaseDefinitionHistoryTimeToLiveCmd implements Command<Void>, Serializable {
private static final long serialVersionUID = 1L;
protected String caseDefinitionId;
protected Integer historyTimeToLive;
public UpdateCaseDefinitionHistoryTimeToLiveCmd(String caseDefinitionId, Integer historyTimeT... | propertyChanges.add(new PropertyChange("historyTimeToLive", caseDefinitionEntity.getHistoryTimeToLive(), historyTimeToLive));
propertyChanges.add(new PropertyChange("caseDefinitionKey", null, caseDefinitionEntity.getKey()));
commandContext.getOperationLogManager()
.logCaseDefinitionOperation(UserOperati... | repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\cmmn\cmd\UpdateCaseDefinitionHistoryTimeToLiveCmd.java | 1 |
请完成以下Java代码 | public static ContextSnapshotFactory selectInstance(@Nullable ContextSnapshotFactory factory) {
if (factory != null) {
return factory;
}
return sharedInstance;
}
/**
* Save the {@code ContextSnapshotFactory} in the given {@link Context}.
* @param factory the instance to save
* @param context the conte... | return selectInstance(factory);
}
/**
* Shortcut to obtain the {@code ContextSnapshotFactory} instance, and to
* capture from the given {@link ContextView}.
* @param contextView the context to capture from
* @return a snapshot from the capture
*/
public static ContextSnapshot captureFrom(ContextView conte... | repos\spring-graphql-main\spring-graphql\src\main\java\org\springframework\graphql\execution\ContextPropagationHelper.java | 1 |
请完成以下Java代码 | public java.lang.String getLabelCertificationAuthority ()
{
return (java.lang.String)get_Value(COLUMNNAME_LabelCertificationAuthority);
}
@Override
public org.compiere.model.I_M_Label getM_Label() throws RuntimeException
{
return get_ValueAsPO(COLUMNNAME_M_Label_ID, org.compiere.model.I_M_Label.class);
}
... | @Override
public void setM_Product(org.compiere.model.I_M_Product M_Product)
{
set_ValueFromPO(COLUMNNAME_M_Product_ID, org.compiere.model.I_M_Product.class, M_Product);
}
/** Set Produkt.
@param M_Product_ID
Produkt, Leistung, Artikel
*/
@Override
public void setM_Product_ID (int M_Product_ID)
{
if... | repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_Product_Certificate.java | 1 |
请在Spring Boot框架中完成以下Java代码 | public Date getCollectDate() {
return collectDate;
}
/**
* 汇总日期
*
* @param collectDate
*/
public void setCollectDate(Date collectDate) {
this.collectDate = collectDate;
}
/**
* 汇总类型(参考枚举:SettDailyCollectTypeEnum)
*
* @return
*/
public String getCollectType() {
return collectType;
}
/*... | }
/**
* 交易总笔数
*
* @param totalCount
*/
public void setTotalCount(Integer totalCount) {
this.totalCount = totalCount;
}
/**
* 结算状态(参考枚举:SettDailyCollectStatusEnum)
*
* @return
*/
public String getSettStatus() {
return settStatus;
}
/**
* 结算状态(参考枚举:SettDailyCollectStatusEnum)
*
* @p... | repos\roncoo-pay-master\roncoo-pay-service\src\main\java\com\roncoo\pay\account\entity\RpSettDailyCollect.java | 2 |
请完成以下Java代码 | public void setM_AttributeValue_ID (int M_AttributeValue_ID)
{
if (M_AttributeValue_ID < 1)
set_Value (COLUMNNAME_M_AttributeValue_ID, null);
else
set_Value (COLUMNNAME_M_AttributeValue_ID, Integer.valueOf(M_AttributeValue_ID));
}
/** Get Merkmals-Wert.
@return Product Attribute Value
*/
@Override... | set_Value (COLUMNNAME_ValueDate, ValueDate);
}
/** Get Datum.
@return Datum */
@Override
public java.sql.Timestamp getValueDate ()
{
return (java.sql.Timestamp)get_Value(COLUMNNAME_ValueDate);
}
/** Set Zahlwert.
@param ValueNumber
Numeric Value
*/
@Override
public void setValueNumber (java.ma... | repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_AttributeInstance.java | 1 |
请完成以下Spring Boot application配置 | management:
endpoint:
# Health 端点配置项,对应 HealthProperties 配置类
health:
show-details: ALWAYS # 何时显示完整的健康信息。默认为 NEVER 都不展示。可选 WHEN_AUTHORIZED 当经过授权的用户;可选 ALWAYS 总是展示。
endpoints:
# Actuator HTTP 配置项,对应 WebEndpointProperties | 配置类
web:
exposure:
include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。 | repos\SpringBoot-Labs-master\labx-05-spring-cloud-alibaba-nacos-config\labx-05-sca-nacos-config-demo-actuator\src\main\resources\application.yaml | 2 |
请完成以下Java代码 | private IQueryBuilder<I_C_Invoice_Candidate> createICQueryBuilder()
{
// Get the user selection filter (i.e. what user filtered in his window)
final IQueryFilter<I_C_Invoice_Candidate> userSelectionFilter;
if (Ini.isSwingClient())
{
// In case of Swing, preserve the old functionality, i.e. if no where claus... | // .addEqualsFilter(I_C_Invoice_Candidate.COLUMNNAME_IsError, false)
// .addEqualsFilter(I_C_Invoice_Candidate.COLUMNNAME_IsInDispute, false)
//
;
//
// Consider only approved invoices (if we were asked to do so)
if (invoicingParams != null && invoicingParams.isOnlyApprovedForInvoicing())
{
quer... | repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\invoicecandidate\process\C_Invoice_Candidate_EnqueueSelectionForInvoicing.java | 1 |
请在Spring Boot框架中完成以下Java代码 | public String getLicencePic() {
return licencePic;
}
public void setLicencePic(String licencePic) {
this.licencePic = licencePic;
}
public Timestamp getRegisterTime() {
return registerTime;
}
public void setRegisterTime(Timestamp registerTime) {
this.registerTi... | public void setRoleEntity(RoleEntity roleEntity) {
this.roleEntity = roleEntity;
}
@Override
public String toString() {
return "UserEntity{" +
"id='" + id + '\'' +
", username='" + username + '\'' +
", password='" + password + '\'' +
... | repos\SpringBoot-Dubbo-Docker-Jenkins-master\Gaoxi-Common-Service-Facade\src\main\java\com\gaoxi\entity\user\UserEntity.java | 2 |
请完成以下Java代码 | public class CmmnDeployer extends AbstractDefinitionDeployer<CaseDefinitionEntity> {
public static final String[] CMMN_RESOURCE_SUFFIXES = new String[] { "cmmn11.xml", "cmmn10.xml", "cmmn" };
protected ExpressionManager expressionManager;
protected CmmnTransformer transformer;
@Override
protected String[] ... | // context ///////////////////////////////////////////////////////////////////////////////////////////
protected CaseDefinitionManager getCaseDefinitionManager() {
return getCommandContext().getCaseDefinitionManager();
}
// getters/setters ////////////////////////////////////////////////////////////////////... | repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\cmmn\deployer\CmmnDeployer.java | 1 |
请在Spring Boot框架中完成以下Java代码 | public class Application {
@Bean
InitializingBean usersAndGroupsInitializer(final IdentityService identityService) {
return new InitializingBean() {
@Override
public void afterPropertiesSet() throws Exception {
// install groups & users
Group gr... | User josh = identityService.newUser("jlong");
josh.setFirstName("Josh");
josh.setLastName("Long");
josh.setPassword("password");
identityService.saveUser(josh);
identityService.createMembership("jlong", "user");
}
};
... | repos\flowable-engine-main\modules\flowable-spring-boot\flowable-spring-boot-samples\flowable-spring-boot-sample-rest-api\src\main\java\flowable\Application.java | 2 |
请完成以下Java代码 | public final class Application {
private final String name;
@Nullable
private final BuildVersion buildVersion;
private final String status;
private final Instant statusTimestamp;
private final List<Instance> instances;
@lombok.Builder(builderClassName = "Builder", toBuilder = true)
private Application(Str... | else {
this.instances = new ArrayList<>(instances);
}
}
public static Application.Builder create(String name) {
return builder().name(name);
}
public static class Builder {
// Will be generated by lombok
}
} | repos\spring-boot-admin-master\spring-boot-admin-server\src\main\java\de\codecentric\boot\admin\server\domain\entities\Application.java | 1 |
请在Spring Boot框架中完成以下Java代码 | public String getElementId() {
return elementId;
}
public String getElementName() {
return elementName;
}
public String getScopeId() {
return scopeId;
}
public boolean isWithoutScopeId() {
return withoutScopeId;
}
public String getSubScopeId() {
... | return correlationId;
}
public boolean isOnlyTimers() {
return onlyTimers;
}
public boolean isOnlyMessages() {
return onlyMessages;
}
public boolean isExecutable() {
return executable;
}
public boolean isOnlyExternalWorkers() {
return onlyExternalWorke... | repos\flowable-engine-main\modules\flowable-job-service\src\main\java\org\flowable\job\service\impl\DeadLetterJobQueryImpl.java | 2 |
请完成以下Java代码 | private static ITranslatableString buildMessage(
@Nullable final ProductId productId,
@Nullable final UomId fromUomId,
@Nullable final UomId toUomId)
{
return TranslatableStrings.builder()
.appendADMessage(MSG)
.append(" ").appendADElement("M_Product_ID").append(": ").append(extractProductName(produ... | try
{
final I_C_UOM uom = Services.get(IUOMDAO.class).getById(uomId);
if (uom == null)
{
return "<" + uomId.getRepoId() + ">";
}
return uom.getUOMSymbol();
}
catch (final Exception ex)
{
return "<" + uomId.getRepoId() + ">";
}
}
} | repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java-legacy\org\adempiere\exceptions\NoUOMConversionException.java | 1 |
请完成以下Java代码 | public void setTradgPty(PartyIdentification43 value) {
this.tradgPty = value;
}
/**
* Gets the value of the prtry property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list wi... | * </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link ProprietaryParty3 }
*
*
*/
public List<ProprietaryParty3> getPrtry() {
if (prtry == null) {
prtry = new ArrayList<ProprietaryParty3>();
}
return this... | repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.camt53\src\main\java-xjc\de\metas\banking\camt53\jaxb\camt053_001_04\TransactionParties3.java | 1 |
请完成以下Java代码 | public void setSecurityContextHolderStrategy(SecurityContextHolderStrategy strategy) {
this.securityContextHolderStrategy = () -> strategy;
}
/**
* Filter a {@code returnedObject} using the {@link PostFilter} annotation that the
* {@link MethodInvocation} specifies.
* @param mi the {@link MethodInvocation} t... | }
MethodSecurityExpressionHandler expressionHandler = this.registry.getExpressionHandler();
EvaluationContext ctx = expressionHandler.createEvaluationContext(this::getAuthentication, mi);
return expressionHandler.filter(returnedObject, attribute.getExpression(), ctx);
}
private Authentication getAuthentication... | repos\spring-security-main\core\src\main\java\org\springframework\security\authorization\method\PostFilterAuthorizationMethodInterceptor.java | 1 |
请完成以下Java代码 | public static int sizeUsingJava7(final Iterable data) {
if (data instanceof Collection) {
return ((Collection<?>) data).size();
}
int counter = 0;
for (final Object i : data) {
counter++;
}
return counter;
}
/**
* Get the size of {@c... | /**
* Get the size of {@code Iterable} using Apache Collections.
*
* @param data the iterable
* @return the size of the iterable
*/
public static int sizeUsingApacheCollections(final Iterable data) {
return IterableUtils.size(data);
}
/**
* Get the size of {@code Iter... | repos\tutorials-master\core-java-modules\core-java-collections-2\src\main\java\com\baeldung\collections\iterablesize\IterableSize.java | 1 |
请完成以下Java代码 | public CountResultDto getUserCount(UriInfo uriInfo) {
UserQueryDto queryDto = new UserQueryDto(getObjectMapper(), uriInfo.getQueryParameters());
return getUserCount(queryDto);
}
protected CountResultDto getUserCount(UserQueryDto queryDto) {
UserQuery query = queryDto.toQuery(getProcessEngine());
lo... | // GET /
URI baseUri = baseUriBuilder.build();
resourceOptionsDto.addReflexiveLink(baseUri, HttpMethod.GET, "list");
// GET /count
URI countUri = baseUriBuilder.clone().path("/count").build();
resourceOptionsDto.addReflexiveLink(countUri, HttpMethod.GET, "count");
// POST /create
if(!ident... | repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\impl\UserRestServiceImpl.java | 1 |
请完成以下Java代码 | public List<CostElement> getActiveMaterialCostingElements(@NonNull final ClientId clientId)
{
return getIndexedCostElements()
.streamByClientId(clientId)
.filter(CostElement::isMaterial)
.collect(ImmutableList.toImmutableList());
}
@Override
public Set<CostElementId> getActiveCostElementIds()
{
re... | private IndexedCostElements(final Collection<CostElement> costElements)
{
costElementsById = Maps.uniqueIndex(costElements, CostElement::getId);
}
public Optional<CostElement> getById(final CostElementId id)
{
return Optional.ofNullable(costElementsById.get(id));
}
public Stream<CostElement> streamB... | repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\costing\impl\CostElementRepository.java | 1 |
请完成以下Java代码 | public String getContent() {
return content;
}
public void setContent(final String content) {
this.content = content;
}
public String getLanguage() {
return language;
}
public void setLanguage(final String language) {
this.language = language;
}
@Overr... | return false;
}
if (!Objects.equals(title, article.title)) {
return false;
}
if (!Objects.equals(content, article.content)) {
return false;
}
return Objects.equals(language, article.language);
}
@Override
public int hashCode() {
... | repos\tutorials-master\persistence-modules\spring-data-jpa-query-3\src\main\java\com\baeldung\spring\data\jpa\spel\entity\Article.java | 1 |
请完成以下Java代码 | public Object setDynAttribute(final String attributeName, final Object value)
{
Check.assumeNotEmpty(attributeName, "attributeName not empty");
final int recordId = getGridTab().getRecord_ID();
Map<String, Object> dynAttributes = recordId2dynAttributes.get(recordId);
if (dynAttributes == null)
{
dynAttri... | recordIds.remove();
}
}
public final IModelInternalAccessor getModelInternalAccessor()
{
return modelInternalAccessorSupplier.get();
}
public final boolean isOldValues()
{
return useOldValues;
}
public static final boolean isOldValues(final Object model)
{
final GridTabWrapper wrapper = getWrapper(... | repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\adempiere\model\GridTabWrapper.java | 1 |
请完成以下Java代码 | public static InventoryLineId ofRepoId(final int repoId)
{
return new InventoryLineId(repoId);
}
public static InventoryLineId ofRepoIdOrNull(final int repoId)
{
return repoId > 0 ? ofRepoId(repoId) : null;
}
@JsonCreator
@Nullable
public static InventoryLineId ofNullableObject(@Nullable final Object obj)... | @NonNull
public static InventoryLineId ofObject(@NonNull final Object obj)
{
return RepoIdAwares.ofObject(obj, InventoryLineId.class, InventoryLineId::ofRepoId);
}
@Override
@JsonValue
public int getRepoId()
{
return repoId;
}
public static boolean equals(@Nullable final InventoryLineId id1, @Nullable f... | repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\inventory\InventoryLineId.java | 1 |
请完成以下Java代码 | public class CompressByteArrayUtil {
public static byte[] compress(byte[] input) {
Deflater deflater = new Deflater();
deflater.setInput(input);
deflater.finish();
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
byte[] buffer = new byte[1024];
whi... | int decompressedSize = inflater.inflate(buffer);
outputStream.write(buffer, 0, decompressedSize);
}
return outputStream.toByteArray();
}
public static void main(String[] args) throws Exception {
String inputString = "Baeldung helps developers explore the Java ecosystem and ... | repos\tutorials-master\core-java-modules\core-java-lang-7\src\main\java\com\baeldung\compressbytes\CompressByteArrayUtil.java | 1 |
请完成以下Java代码 | private final boolean hasTextToCopy()
{
final JTextComponent textComponent = getTextComponent();
if (textComponent == null)
{
return false;
}
// Document document = textComponent.getDocument();
// final JComboBox<?> comboBox = getComboBox();
// final ComboBoxEditor editor = comboBox.getEditor();
// comb... | textComponent.cut();
}
private void doPaste()
{
final JTextComponent textComponent = getTextComponent();
if (textComponent == null)
{
return;
}
textComponent.paste();
}
private void doSelectAll()
{
final JTextComponent textComponent = getTextComponent();
if (textComponent == null)
{
retur... | repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ui\editor\JComboBoxCopyPasteSupportEditor.java | 1 |
请完成以下Java代码 | public int getQtyDemand_QtySupply_V_ID()
{
return get_ValueAsInt(COLUMNNAME_QtyDemand_QtySupply_V_ID);
}
@Override
public void setQtyForecasted (final @Nullable BigDecimal QtyForecasted)
{
set_ValueNoCheck (COLUMNNAME_QtyForecasted, QtyForecasted);
}
@Override
public BigDecimal getQtyForecasted()
{
f... | public void setQtyToMove (final @Nullable BigDecimal QtyToMove)
{
set_ValueNoCheck (COLUMNNAME_QtyToMove, QtyToMove);
}
@Override
public BigDecimal getQtyToMove()
{
final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_QtyToMove);
return bd != null ? bd : BigDecimal.ZERO;
}
@Override
public void setQt... | repos\metasfresh-new_dawn_uat\backend\de.metas.material\cockpit\src\main\java-gen\de\metas\material\cockpit\model\X_QtyDemand_QtySupply_V.java | 1 |
请在Spring Boot框架中完成以下Java代码 | public String getExpDate() {
return expDate;
}
public void setExpDate(String expDate) {
this.expDate = expDate;
}
public String getIsDefault() {
return isDefault;
}
public void setIsDefault(String isDefault) {
this.isDefault = isDefault;
}
public String getIsAuth() { | return isAuth;
}
public void setIsAuth(String isAuth) {
this.isAuth = isAuth;
}
public String getStatusDesc() {
if (StringUtil.isEmpty(this.getStatus())) {
return "";
} else {
return PublicStatusEnum.getEnum(this.getStatus()).getDesc();
}
}
} | repos\roncoo-pay-master\roncoo-pay-service\src\main\java\com\roncoo\pay\user\entity\RpUserQuickPayBankAccount.java | 2 |
请完成以下Java代码 | public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
} | public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
@Override
public String toString() {
return "Customer [id=" + id + ", firstName=" + firstName + ", lastName=" + lastName + "]";
}
} | repos\tutorials-master\docker-modules\docker-spring-boot-postgres\src\main\java\com\baeldung\docker\Customer.java | 1 |
请完成以下Java代码 | public KafkaAdmin getAdmin() {
return kafkaAdmin;
}
protected Properties toAdminProps() {
Properties props = toProps();
props.put(AdminClientConfig.BOOTSTRAP_SERVERS_CONFIG, servers);
props.put(AdminClientConfig.RETRIES_CONFIG, retries);
return props;
}
private ... | Map<String, String> merged = new LinkedHashMap<>();
for (String entry : entries) {
String[] kv = entry.split("=", 2);
if (kv.length == 2) {
merged.put(kv[0].trim(), kv[1].trim());
}
}
List<TbProperty> props = merged.... | repos\thingsboard-master\common\queue\src\main\java\org\thingsboard\server\queue\kafka\TbKafkaSettings.java | 1 |
请完成以下Java代码 | public XMLGregorianCalendar getEndezeit() {
return endezeit;
}
/**
* Sets the value of the endezeit property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setEndezeit(XMLGregorianCalendar value) {
this... | */
public VertragsdatenHauptbestellzeit getHauptbestellzeit() {
return hauptbestellzeit;
}
/**
* Sets the value of the hauptbestellzeit property.
*
* @param value
* allowed object is
* {@link VertragsdatenHauptbestellzeit }
*
*/
public void setHa... | repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma.msv3.schema.v1\src\main\java-xjc\de\metas\vertical\pharma\vendor\gateway\msv3\schema\v1\VertragsdatenBestellfenster.java | 1 |
请完成以下Java代码 | public boolean reportException(Throwable failure) {
FailureAnalysis analysis = analyze(failure, this.analyzers);
return report(analysis);
}
private @Nullable FailureAnalysis analyze(Throwable failure, List<FailureAnalyzer> analyzers) {
for (FailureAnalyzer analyzer : analyzers) {
try {
FailureAnalysis a... | }
return null;
}
private boolean report(@Nullable FailureAnalysis analysis) {
List<FailureAnalysisReporter> reporters = this.springFactoriesLoader.load(FailureAnalysisReporter.class);
if (analysis == null || reporters.isEmpty()) {
return false;
}
for (FailureAnalysisReporter reporter : reporters) {
r... | repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\diagnostics\FailureAnalyzers.java | 1 |
请完成以下Java代码 | private IAllocationRequest createAllocationRequest(final IProductStorage productStorage)
{
return AllocationUtils.builder()
.setHUContext(huContext)
.setProduct(productStorage.getProductId())
.setQuantity(productStorage.getQty())
.setDate(getHUIterator().getDate())
.setFromReference... | if (!destroyEmptyHUs)
{
return;
}
for (final I_M_HU hu : sourceHUs)
{
// Skip it if already destroyed
if (handlingUnitsBL.isDestroyed(hu))
{
continue;
}
handlingUnitsBL.destroyIfEmptyStorage(huContext, hu);
}
}
private void createHUSnapshotsIfRequired(final IHUContext huContext)
{
... | repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\allocation\impl\HUListAllocationSourceDestination.java | 1 |
请完成以下Java代码 | public static IdentityLinkServiceConfiguration getIdentityLinkServiceConfiguration() {
return getIdentityLinkServiceConfiguration(getCommandContext());
}
public static IdentityLinkServiceConfiguration getIdentityLinkServiceConfiguration(CommandContext commandContext) {
return getAppEngineConfig... | }
public static EntityCache getEntityCache() {
return getEntityCache(getCommandContext());
}
public static EntityCache getEntityCache(CommandContext commandContext) {
return commandContext.getSession(EntityCache.class);
}
public static CommandContext getCommandContext() {
... | repos\flowable-engine-main\modules\flowable-app-engine\src\main\java\org\flowable\app\engine\impl\util\CommandContextUtil.java | 1 |
请完成以下Java代码 | default void setLocaleCharsetMappings(Map<Locale, Charset> localeCharsetMappings) {
getSettings().setLocaleCharsetMappings(localeCharsetMappings);
}
/**
* Sets the init parameters that are applied to the container's
* {@link ServletContext}.
* @param initParameters the init parameters
*/
default void setI... | /**
* Add {@link CookieSameSiteSupplier CookieSameSiteSuppliers} to those that should be
* used to obtain the {@link SameSite} attribute of any added cookie.
* @param cookieSameSiteSuppliers the suppliers to add
* @see #setCookieSameSiteSuppliers
*/
default void addCookieSameSiteSuppliers(CookieSameSiteSuppl... | repos\spring-boot-4.0.1\module\spring-boot-web-server\src\main\java\org\springframework\boot\web\server\servlet\ConfigurableServletWebServerFactory.java | 1 |
请完成以下Java代码 | public Builder addIncludedRow(@NonNull final HUEditorRow includedRow)
{
if (includedRows == null)
{
includedRows = new ArrayList<>();
}
includedRows.add(includedRow);
return this;
}
private List<HUEditorRow> buildIncludedRows()
{
if (includedRows == null || includedRows.isEmpty())
{
... | /**
* @param currentRow the row that is currently constructed using this builder
*/
private ImmutableMultimap<OrderLineId, HUEditorRow> prepareIncludedOrderLineReservations(@NonNull final HUEditorRow currentRow)
{
final ImmutableMultimap.Builder<OrderLineId, HUEditorRow> includedOrderLineReservationsBuilde... | repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\handlingunits\HUEditorRow.java | 1 |
请完成以下Java代码 | public ResponseEntity<JsonError> InvalidIdentifierException(@NonNull final InvalidIdentifierException e)
{
final String msg = "Invalid identifier: " + e.getMessage();
final HttpStatus status = e.getMessage().startsWith("tea")
? HttpStatus.I_AM_A_TEAPOT // whohoo, finally found a reason!
: HttpStatus.NOT_F... | }
private ResponseEntity<JsonError> logAndCreateError(
@NonNull final Exception e,
@NonNull final HttpStatus status)
{
return logAndCreateError(e, null, status);
}
private ResponseEntity<JsonError> logAndCreateError(
@NonNull final Exception e,
@Nullable final String detail,
@NonNull final HttpSt... | repos\metasfresh-new_dawn_uat\backend\de.metas.util.web\src\main\java\de\metas\util\web\exception\RestResponseEntityExceptionHandler.java | 1 |
请完成以下Java代码 | public boolean isFullyMoved()
{
return !steps.isEmpty() && steps.stream().allMatch(DistributionJobStep::isDroppedToLocator);
}
private static WFActivityStatus computeStatusFromSteps(final @NonNull List<DistributionJobStep> steps)
{
return steps.isEmpty()
? WFActivityStatus.NOT_STARTED
: WFActivityStatu... | public DistributionJobLine withChangedSteps(@NonNull final UnaryOperator<DistributionJobStep> stepMapper)
{
final ImmutableList<DistributionJobStep> changedSteps = CollectionUtils.map(steps, stepMapper);
return changedSteps.equals(steps)
? this
: toBuilder().steps(changedSteps).build();
}
public Distrib... | repos\metasfresh-new_dawn_uat\backend\de.metas.distribution.rest-api\src\main\java\de\metas\distribution\mobileui\job\model\DistributionJobLine.java | 1 |
请完成以下Java代码 | public String getTenantId() {
return tenantId;
}
public void setTenantId(String tenantId) {
this.tenantId = tenantId;
}
public void forceUpdate() {
this.forcedUpdate = true;
}
public Object getPersistentState() {
Map<String, Object> persistentState = new HashMap<String, Object>();
per... | .getCaseExecutionManager()
.findCaseExecutionById(caseExecutionId);
}
@Override
public Set<String> getReferencedEntityIds() {
Set<String> referencedEntityIds = new HashSet<String>();
return referencedEntityIds;
}
@Override
public Map<String, Class> getReferencedEntitiesIdAndClass() {
M... | repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\cmmn\entity\runtime\CaseSentryPartEntity.java | 1 |
请完成以下Java代码 | public String getId() {
return id;
}
public long getInstances() {
return instances;
}
public long getCanceled() {
return canceled;
}
public long getFinished() {
return finished;
}
public long getCompleteScope() {
return completeScope;
}
public long getOpenIncidents() {
r... | HistoricActivityStatisticsDto result = new HistoricActivityStatisticsDto();
result.id = statistics.getId();
result.instances = statistics.getInstances();
result.canceled = statistics.getCanceled();
result.finished = statistics.getFinished();
result.completeScope = statistics.getCompleteScope();
... | repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\history\HistoricActivityStatisticsDto.java | 1 |
请完成以下Java代码 | protected Device toDevice() {
Device device = new Device(new DeviceId(getUuid()));
device.setCreatedTime(createdTime);
device.setVersion(version);
if (tenantId != null) {
device.setTenantId(TenantId.fromUUID(tenantId));
}
if (customerId != null) {
... | }
if (softwareId != null) {
device.setSoftwareId(new OtaPackageId(softwareId));
}
device.setDeviceData(JacksonUtil.convertValue(deviceData, DeviceData.class));
device.setName(name);
device.setType(type);
device.setLabel(label);
device.setAdditionalInfo... | repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\model\sql\AbstractDeviceEntity.java | 1 |
请完成以下Java代码 | public void handleTransportError(WebSocketSession session, Throwable exception) throws Exception {
logger.info("[handleTransportError][session({}) 发生异常]", session, exception);
}
@Override
public void afterPropertiesSet() throws Exception {
// 通过 ApplicationContext 获得所有 MessageHandler Bean
... | if (type instanceof ParameterizedType) {
ParameterizedType parameterizedType = (ParameterizedType) type;
// 要求是 MessageHandler 接口
if (Objects.equals(parameterizedType.getRawType(), MessageHandler.class)) {
Type[] actualTypeArguments = p... | repos\SpringBoot-Labs-master\lab-25\lab-websocket-25-02\src\main\java\cn\iocoder\springboot\lab25\springwebsocket\websocket\DemoWebSocketHandler.java | 1 |
请完成以下Java代码 | public String getTextMsg ()
{
return (String)get_Value(COLUMNNAME_TextMsg);
}
/** Set Valid from.
@param ValidFrom
Valid from including this date (first day)
*/
public void setValidFrom (Timestamp ValidFrom)
{
set_Value (COLUMNNAME_ValidFrom, ValidFrom);
}
/** Get Valid from.
@return Valid from ... | Valid to including this date (last day)
*/
public void setValidTo (Timestamp ValidTo)
{
set_Value (COLUMNNAME_ValidTo, ValidTo);
}
/** Get Valid to.
@return Valid to including this date (last day)
*/
public Timestamp getValidTo ()
{
return (Timestamp)get_Value(COLUMNNAME_ValidTo);
}
} | repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\eevolution\model\X_HR_Attribute.java | 1 |
请在Spring Boot框架中完成以下Java代码 | public class GracefulShutdownManager implements DisposableBean {
@Autowired
private MQManager mqManager;
@Autowired
private GracefulShutdownFilter shutdownFilter;
@Override
public void destroy() throws Exception {
// reject requests
shutdownFilter.startShutdown();
/... | // Dubbo service offline
//dubboManager.unregisterDubboServices();
// Nacos service offline
// nacosManager.deregisterFromNacos();
// wait all task finish
waitForTasksToComplete();
}
private void waitForTasksToComplete() {
System.out.println("Waiting for tasks t... | repos\springboot-demo-master\rabbitmq\src\main\java\com\et\rabbitmq\config\GracefulShutdownManager.java | 2 |
请在Spring Boot框架中完成以下Java代码 | public class TopicRabbitConfig {
final static String message = "topic.message";
final static String messages = "topic.messages";
@Bean
public Queue queueMessage() {
return new Queue(TopicRabbitConfig.message);
}
@Bean
public Queue queueMessages() {
return new Queue(TopicRa... | @Bean
TopicExchange exchange() {
return new TopicExchange("topicExchange");
}
@Bean
Binding bindingExchangeMessage(Queue queueMessage, TopicExchange exchange) {
return BindingBuilder.bind(queueMessage).to(exchange).with("topic.message");
}
@Bean
Binding bindingExchangeMessa... | repos\spring-boot-leaning-master\1.x\第11课:RabbitMQ 详解\spring-boot-rabbitmq\src\main\java\com\neo\rabbit\TopicRabbitConfig.java | 2 |
请在Spring Boot框架中完成以下Java代码 | public BigDecimal getAmount() {
return amount;
}
public void setAmount(BigDecimal amount) {
this.amount = amount;
}
public InsuranceContractMaxPermanentPrescriptionPeriod timePeriod(BigDecimal timePeriod) {
this.timePeriod = timePeriod;
return this;
}
/**
* Zeitintervall (Unbekannt &#... | return Objects.hash(amount, timePeriod);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class InsuranceContractMaxPermanentPrescriptionPeriod {\n");
sb.append(" amount: ").append(toIndentedString(amount)).append("\n");
sb.append(" timePeriod:... | repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\alberta\alberta-article-api\src\main\java\io\swagger\client\model\InsuranceContractMaxPermanentPrescriptionPeriod.java | 2 |
请完成以下Java代码 | public BigDecimal getQtyReserved ()
{
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyReserved);
if (bd == null)
return Env.ZERO;
return bd;
}
/** Set Revenue Recognition Amt.
@param RRAmt
Revenue Recognition Amount
*/
public void setRRAmt (BigDecimal RRAmt)
{
set_Value (COLUMNNAME_RRAmt,... | else
set_Value (COLUMNNAME_Ref_OrderLine_ID, Integer.valueOf(Ref_OrderLine_ID));
}
/** Get Referenced Order Line.
@return Reference to corresponding Sales/Purchase Order
*/
public int getRef_OrderLine_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_Ref_OrderLine_ID);
if (ii == null)
return 0;
... | repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java-gen\org\adempiere\model\X_RV_C_OrderLine_Overview.java | 1 |
请完成以下Java代码 | public void setDelegateAsyncAfterUpdate(AsyncAfterUpdate delegateAsyncAfterUpdate) {
this.delegateAsyncAfterUpdate = delegateAsyncAfterUpdate;
}
/**
* Delegate interface for the asyncBefore property update.
*/
public interface AsyncBeforeUpdate {
/**
* Method which is called if the asyncBefore... | }
/**
* Delegate interface for the asyncAfter property update
*/
public interface AsyncAfterUpdate {
/**
* Method which is called if the asyncAfter property should be updated.
*
* @param asyncAfter the new value for the asyncBefore flag
* @param exclusive the exclusive flag
*/
... | repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\pvm\process\ActivityImpl.java | 1 |
请在Spring Boot框架中完成以下Java代码 | public Integer getRiskDay() {
return riskDay;
}
public void setRiskDay(Integer riskDay) {
this.riskDay = riskDay;
}
public String getAuditStatusDesc() {
return PublicEnum.getEnum(this.getAuditStatus()).getDesc();
}
public String getFundIntoTypeDesc() {
return Fun... | public String getSecurityRating() {
return securityRating;
}
public void setSecurityRating(String securityRating) {
this.securityRating = securityRating;
}
public String getMerchantServerIp() {
return merchantServerIp;
}
public void setMerchantServerIp(String merchantS... | repos\roncoo-pay-master\roncoo-pay-service\src\main\java\com\roncoo\pay\user\entity\RpUserPayConfig.java | 2 |
请完成以下Java代码 | public void setJobId(String jobId) {
this.jobId = jobId;
}
public String getBatchId() {
return batchId;
}
public void setBatchId(String batchId) {
this.batchId = batchId;
}
public String getCategory() {
return category;
}
public void setCategory(String category) {
this.category =... | return externalTaskId;
}
public void setExternalTaskId(String externalTaskId) {
this.externalTaskId = externalTaskId;
}
public String getAnnotation() {
return annotation;
}
public void setAnnotation(String annotation) {
this.annotation = annotation;
}
public String getTenantId() {
re... | repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\oplog\UserOperationLogContextEntry.java | 1 |
请在Spring Boot框架中完成以下Java代码 | private DataImportConfigsCollection getCollection()
{
return cache.getOrLoad(0, this::retrieveCollection);
}
private DataImportConfigsCollection retrieveCollection()
{
final ImmutableList<DataImportConfig> configs = Services.get(IQueryBL.class)
.createQueryBuilderOutOfTrx(I_C_DataImport.class)
.addOnly... | }
public DataImportConfig getById(@NonNull final DataImportConfigId id)
{
final DataImportConfig config = configsById.get(id);
if (config == null)
{
throw new AdempiereException("@NotFound@ @C_DataConfig_ID@: " + id);
}
return config;
}
public Optional<DataImportConfig> getByInternalName(fi... | repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\impexp\config\DataImportConfigRepository.java | 2 |
请完成以下Java代码 | public GLDistributionBuilder setCurrencyId(final CurrencyId currencyId)
{
_currencyId = currencyId;
_precision = null;
return this;
}
private CurrencyId getCurrencyId()
{
Check.assumeNotNull(_currencyId, "currencyId not null");
return _currencyId;
}
private CurrencyPrecision getPrecision()
{
if (_p... | private Sign getAmountSign()
{
Check.assumeNotNull(_amountSign, "amountSign not null");
return _amountSign;
}
public GLDistributionBuilder setQtyToDistribute(final BigDecimal qtyToDistribute)
{
_qtyToDistribute = qtyToDistribute;
return this;
}
private BigDecimal getQtyToDistribute()
{
Check.assumeN... | repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java\de\metas\acct\gldistribution\GLDistributionBuilder.java | 1 |
请完成以下Java代码 | public static final UserPreferenceLevelConstraint forPreferenceType(@NonNull final String preferenceType)
{
final UserPreferenceLevelConstraint constraint = preferenceType2constraint.get(preferenceType);
if (constraint == null)
{
throw new IllegalArgumentException("No " + UserPreferenceLevelConstraint.class +... | }
/** @return false, i.e. never inherit this constraint because it shall be defined by current role itself */
@Override
public boolean isInheritable()
{
return false;
}
/**
* @return preference type (see X_AD_Role.PREFERENCETYPE_*)
*/
public String getPreferenceType()
{
return preferenceType;
}
/**... | repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\security\permissions\UserPreferenceLevelConstraint.java | 1 |
请完成以下Java代码 | public class ParseExceptionDto extends ExceptionDto {
protected Map<String, ResourceReportDto> details = new HashMap<>();
// transformer /////////////////////////////
public static ParseExceptionDto fromException(ParseException exception) {
ParseExceptionDto dto = new ParseExceptionDto();
dto.setType(... | }
ResourceReportDto resourceReportDto = new ResourceReportDto(errorDtos, warningDtos);
dto.details.put(report.getResourceName(), resourceReportDto);
}
return dto;
}
// getter / setters ////////////////////////
public Map<String, ResourceReportDto> getDetails() {
return details;
}
p... | repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\ParseExceptionDto.java | 1 |
请在Spring Boot框架中完成以下Java代码 | public class JacksonCustomizations {
@Bean
public Module realWorldModules() {
return new RealWorldModules();
}
public static class RealWorldModules extends SimpleModule {
public RealWorldModules() {
addSerializer(DateTime.class, new DateTimeSerializer());
}
}
public static class DateTim... | protected DateTimeSerializer() {
super(DateTime.class);
}
@Override
public void serialize(DateTime value, JsonGenerator gen, SerializerProvider provider)
throws IOException {
if (value == null) {
gen.writeNull();
} else {
gen.writeString(ISODateTimeFormat.dateTime(... | repos\spring-boot-realworld-example-app-master\src\main\java\io\spring\JacksonCustomizations.java | 2 |
请在Spring Boot框架中完成以下Java代码 | public String getOutcome() {
return outcome;
}
public void setOutcome(String outcome) {
this.outcome = outcome;
}
public void setVariables(List<RestVariable> variables) {
this.variables = variables;
}
@ApiModelProperty(value = "If action is complete, you can use this p... | return transientVariables;
}
@JsonTypeInfo(use = Id.CLASS, defaultImpl = RestVariable.class)
public void setTransientVariables(List<RestVariable> transientVariables) {
this.transientVariables = transientVariables;
}
@Override
@ApiModelProperty(value = "Action to perform: Either complet... | repos\flowable-engine-main\modules\flowable-cmmn-rest\src\main\java\org\flowable\cmmn\rest\service\api\runtime\task\TaskActionRequest.java | 2 |
请完成以下Java代码 | public String getActivityType() {
return activityType;
}
public void setActivityType(String activityType) {
this.activityType = activityType;
}
public String getActivityName() {
return activityName;
}
public void setActivityName(String activityName) {
this.activityName = activityName;
}... | public void setIncidents(Incident[] incidents) {
this.incidents = incidents;
}
public void setSubProcessInstanceId(String subProcessInstanceId) {
this.subProcessInstanceId = subProcessInstanceId;
}
public String getSubProcessInstanceId() {
return subProcessInstanceId;
}
public String toString... | repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\TransitionInstanceImpl.java | 1 |
请完成以下Java代码 | public List<Account> getAccounts() {
return accountService.findAccountList();
}
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
public Account getAccountById(@PathVariable("id") int id) {
return accountService.findAccount(id);
}
@RequestMapping(value = "/{id}", method ... | @RequestMapping(value = "", method = RequestMethod.POST)
public String postAccount(@RequestParam(value = "name") String name,
@RequestParam(value = "money") double money) {
int t= accountService.add(name,money);
if(t==1) {
return "success";
}else {
... | repos\SpringBootLearning-master\springboot-mybatis-tx\src\main\java\com\forezp\web\AccountController.java | 1 |
请完成以下Java代码 | public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Font.class, DC_ELEMENT_FONT)
.namespaceUri(DC_NS)
.instanceProvider(new ModelTypeInstanceProvider<Font>() {
public Font newInstance(ModelTypeInstanceContext instanceContext)... | public void setBold(boolean isBold) {
isBoldAttribute.setValue(this, isBold);
}
public Boolean isItalic() {
return isItalicAttribute.getValue(this);
}
public void setItalic(boolean isItalic) {
isItalicAttribute.setValue(this, isItalic);
}
public Boolean isUnderline() {
return isUnderlineA... | repos\camunda-bpm-platform-master\model-api\bpmn-model\src\main\java\org\camunda\bpm\model\bpmn\impl\instance\dc\FontImpl.java | 1 |
请完成以下Java代码 | public class DemoWorkflowImpl implements DemoWorkflow {
private List<CloudEvent> eventList = new ArrayList<>();
private DemoActivities demoActivities =
Workflow.newActivityStub(DemoActivities.class,
ActivityOptions.newBuilder()
.setStartToCloseTimeou... | .withId(String.valueOf(Workflow.newRandom().nextInt(1000 - 1 + 1) + 1))
.withType("example.demo.result")
.withSource(URI.create("http://temporal.io"))
.withData(
"application/json",
node.toPrettyString().getBytes(StandardCha... | repos\spring-boot-demo-main\src\main\java\com\temporal\demos\temporalspringbootdemo\workflows\DemoWorkflowImpl.java | 1 |
请完成以下Java代码 | public class UiExtensionsScanner {
private static final Logger log = LoggerFactory.getLogger(UiExtensionsScanner.class);
private final ResourcePatternResolver resolver;
public UiExtensionsScanner(ResourcePatternResolver resolver) {
this.resolver = resolver;
}
public UiExtensions scan(String... locations) thr... | }
private String toPattern(String location) {
// replace the classpath pattern to search all locations and not just the first
return location.replace("classpath:", "classpath*:");
}
@Nullable
private String getResourcePath(String location, Resource resource) throws IOException {
String locationWithoutPrefix... | repos\spring-boot-admin-master\spring-boot-admin-server-ui\src\main\java\de\codecentric\boot\admin\server\ui\extensions\UiExtensionsScanner.java | 1 |
请完成以下Java代码 | public void setIsOwned (boolean IsOwned)
{
set_Value (COLUMNNAME_IsOwned, Boolean.valueOf(IsOwned));
}
/** Get Owned.
@return The asset is owned by the organization
*/
public boolean isOwned ()
{
Object oo = get_Value(COLUMNNAME_IsOwned);
if (oo != null)
{
if (oo instanceof Boolean)
retur... | return "Y".equals(oo);
}
return false;
}
/** Set Name.
@param Name
Alphanumeric identifier of the entity
*/
public void setName (String Name)
{
set_Value (COLUMNNAME_Name, Name);
}
/** Get Name.
@return Alphanumeric identifier of the entity
*/
public String getName ()
{
return (String)ge... | repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_A_Asset_Group.java | 1 |
请完成以下Java代码 | public List<String> getProcessInstanceIds() {
return processInstanceIds;
}
public void setProcessInstanceIds(List<String> processInstanceIds) {
this.processInstanceIds = processInstanceIds;
}
public ProcessInstanceQueryDto getProcessInstanceQuery() {
return processInstanceQuery;
}
public void... | public void setHistoricProcessInstanceQuery(HistoricProcessInstanceQueryDto historicProcessInstanceQuery) {
this.historicProcessInstanceQuery = historicProcessInstanceQuery;
}
public HistoricProcessInstanceQueryDto getHistoricProcessInstanceQuery() {
return historicProcessInstanceQuery;
}
public boole... | repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\runtime\batch\DeleteProcessInstancesDto.java | 1 |
请完成以下Java代码 | public Object getValue()
{
return m_value;
} // getValue
private AttributeSetInstanceId getAttributeSetInstanceId()
{
final Object valueObj = getValue();
if (valueObj == null
|| (valueObj.getClass().equals(Object.class)) // initial value
)
{
return AttributeSetInstanceId.NONE;
}
if (valueO... | {
} // addActionListener
@Override
public void actionPerformed(final ActionEvent e)
{
try
{
if (e.getSource() == m_button)
{
actionButton();
}
}
catch (final Exception ex)
{
Services.get(IClientUI.class).error(attributeContext.getWindowNo(), ex);
}
} // actionPerformed
private v... | repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\grid\ed\VPAttribute.java | 1 |
请完成以下Java代码 | public void add(final K key, final V value)
{
List<V> values = map.get(key);
if (values == null)
{
values = newValuesList();
map.put(key, values);
}
values.add(value);
}
protected List<V> newValuesList()
{
return new ArrayList<V>();
}
/**
* Set the given single value under the given key.
... | }
@Override
public void putAll(Map<? extends K, ? extends List<V>> m)
{
map.putAll(m);
}
@Override
public void clear()
{
map.clear();
}
@Override
public Set<K> keySet()
{
return map.keySet();
}
@Override
public Collection<List<V>> values()
{
return map.values();
}
@Override
public Set<Map... | repos\metasfresh-new_dawn_uat\backend\de.metas.util\src\main\java\de\metas\util\collections\MultiValueMap.java | 1 |
请完成以下Java代码 | public static MaxEntModel create(ByteArray byteArray)
{
MaxEntModel m = new MaxEntModel();
m.correctionConstant = byteArray.nextInt(); // correctionConstant
m.correctionParam = byteArray.nextDouble(); // getCorrectionParameter
// label
int numOutcomes = byteArray.nextInt();... | double[] contextParameters = new double[outcomePatterns[i].length - 1];
for (int k = 1; k < outcomePatterns[i].length; k++)
{
contextParameters[k - 1] = byteArray.nextDouble();
}
params[pid] = new Context(outcomePattern, contextParamete... | repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\model\maxent\MaxEntModel.java | 1 |
请完成以下Java代码 | public void ensureOneContract(@NonNull final I_C_Flatrate_Term term)
{
ensureOneContractOfGivenType(term);
}
@DocValidate(timings = ModelValidator.TIMING_BEFORE_COMPLETE)
public void ensureOneContractBeforeComplete(@NonNull final I_C_Flatrate_Term term)
{
ensureOneContractOfGivenType(term);
}
private void ... | default:
logger.debug("Skipping ensureOneContractOfGivenType check for 'Type_Conditions' =" + contractType);
}
}
@DocValidate(timings = { ModelValidator.TIMING_BEFORE_COMPLETE })
public void setC_Flatrate_Term_Master(@NonNull final I_C_Flatrate_Term term)
{
if (term.getC_Flatrate_Term_Master_ID() <= 0)
{... | repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\interceptor\C_Flatrate_Term.java | 1 |
请完成以下Java代码 | public class Article {
private UUID id;
private String title;
private String content;
private Date createdAt;
private Area area;
public Area getArea() {
return area;
}
public void setArea(Area area) {
this.area = area;
}
public Date getCreatedAt() {
ret... | }
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
} | repos\tutorials-master\json-modules\json-2\src\main\java\com\baeldung\jsonschemageneration\simple\Article.java | 1 |
请完成以下Java代码 | public class R_Request
{
@CalloutMethod(columnNames = I_R_Request.COLUMNNAME_R_MailText_ID)
public void onR_MailText_ID(final I_R_Request request, final ICalloutField calloutField)
{
final MailTemplateId mailTemplateId = MailTemplateId.ofRepoIdOrNull(request.getR_MailText_ID());
if (mailTemplateId == null)
{
... | public void onR_StandardResponse_ID(final I_R_Request request, final ICalloutField calloutField)
{
final I_R_StandardResponse standardResponse = request.getR_StandardResponse();
if (standardResponse == null)
{
return;
}
String txt = standardResponse.getResponseText();
txt = Env.parseContext(calloutFiel... | repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\request\callout\R_Request.java | 1 |
请完成以下Java代码 | public String getPayloadExtractorDelegateExpression() {
return payloadExtractorDelegateExpression;
}
public void setPayloadExtractorDelegateExpression(String payloadExtractorDelegateExpression) {
this.payloadExtractorDelegateExpression = payloadExtractorDelegateExpression;
}
public... | this.channelEventTenantIdDetection = channelEventTenantIdDetection;
}
public Object getInboundEventProcessingPipeline() {
return inboundEventProcessingPipeline;
}
public void setInboundEventProcessingPipeline(Object inboundEventProcessingPipeline) {
this.inboundEventProcessingPipeline ... | repos\flowable-engine-main\modules\flowable-event-registry-model\src\main\java\org\flowable\eventregistry\model\InboundChannelModel.java | 1 |
请完成以下Java代码 | public Class< ? > getCommonPropertyType(ELContext context, Object base) {
return getWrappedResolver().getCommonPropertyType(wrapContext(context), base);
}
@Override
public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base) {
return getWrappedResolver().getFeatureDescriptors... | @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代码 | protected boolean beforeDelete()
{
if (isPosted())
{
MPeriod.testPeriodOpen(getCtx(), getDateTrx(), DocBaseType.MatchPO, getAD_Org_ID());
setPosted(false);
Services.get(IFactAcctDAO.class).deleteForDocumentModel(this);
}
final ICostingService costDetailService = Adempiere.getBean(ICostingService.clas... | orderLine.setQtyDelivered(orderLine.getQtyDelivered().subtract(getQty()));
}
if (getC_InvoiceLine_ID() > 0)
{
orderLine.setQtyInvoiced(orderLine.getQtyInvoiced().subtract(getQty()));
}
InterfaceWrapperHelper.save(orderLine);
}
return true;
}
@Override
public String toString()
{
return new... | repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java-legacy\org\compiere\model\MMatchPO.java | 1 |
请完成以下Java代码 | boolean empty()
{
return (_size == 0);
}
/**
* 缓冲区大小
* @return 大小
*/
int size()
{
return _size;
}
/**
* 清空缓存
*/
void clear()
{
resize(0);
_buf = null;
_size = 0;
_capacity = 0;
}
/**
* 在末尾加一个值
... | {
resizeBuf(size);
}
while (_size < size)
{
_buf[_size++] = value;
}
}
/**
* 增加容量
* @param size 容量
*/
void reserve(int size)
{
if (size > _capacity)
{
resizeBuf(size);
}
}
/**
* 设置缓冲... | repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\collection\dartsclone\details\AutoBytePool.java | 1 |
请完成以下Java代码 | public static char getDefaultBeginEndModifier()
{
return begin_end_modifier;
}
/**
What the end modifier should be
*/
public static char getDefaultEndEndModifier()
{
return end_end_modifier;
}
/*
What character should we use for quoting attributes.
*/
public static char getDefaultAttr... | return position;
}
/**
Default value to set case type
*/
public static int getDefaultCaseType()
{
return case_type;
}
public static char getDefaultStartTag()
{
return start_tag;
}
public static char getDefaultEndTag()
{
return end_tag;
}
/**
Should we print html in a more readable format?
*... | repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\tools\src\main\java-legacy\org\apache\ecs\ECSDefaults.java | 1 |
请完成以下Java代码 | public Object getParameterValue(final int index, final boolean returnValueTo)
{
return null;
}
@Override
public String[] getWhereClauses(final List<Object> params)
{
return new String[0];
}
@Override
public String getText()
{
return null;
}
@Override
public void save(final Properties ctx, final int... | }
@Override
public void prepareEditor(final CEditor editor, final Object value, final int rowIndexModel, final int columnIndexModel)
{
// nothing
}
@Override
public String getProductCombinations()
{
final List<Integer> piItemProductIds = new ArrayList<Integer>();
for (final IHUPackingAware record : packi... | repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\adempiere\gui\search\InfoProductQtyPacksController.java | 1 |
请在Spring Boot框架中完成以下Java代码 | public void setDTEXT1(DTEXT1 value) {
this.dtext1 = value;
}
/**
* Gets the value of the dpric1 property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present insi... | }
/**
* Gets the value of the dtaxi1 property.
*
* @return
* possible object is
* {@link DTAXI1 }
*
*/
public DTAXI1 getDTAXI1() {
return dtaxi1;
}
/**
* Sets the value of the dtaxi1 property.
*
* @param value
* allowed ... | repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_stepcom_invoic\de\metas\edi\esb\jaxb\stepcom\invoic\DETAILXrech.java | 2 |
请在Spring Boot框架中完成以下Java代码 | public class ExternalSystemOtherConfigRepository
{
private final IQueryBL queryBL = Services.get(IQueryBL.class);
@NonNull
public ExternalSystemOtherConfig getById(@NonNull final ExternalSystemOtherConfigId externalSystemOtherConfigId)
{
final List<ExternalSystemOtherConfigParameter> parameters = queryBL.createQ... | .id(externalSystemOtherConfigId)
.parameters(parameters)
.build();
}
@NonNull
private ExternalSystemOtherConfigParameter recordToParameterModel(@NonNull final I_ExternalSystem_Other_ConfigParameter configParameter)
{
return ExternalSystemOtherConfigParameter.builder()
.id(ExternalSystemOtherConfigPar... | repos\metasfresh-new_dawn_uat\backend\de.metas.externalsystem\src\main\java\de\metas\externalsystem\other\ExternalSystemOtherConfigRepository.java | 2 |
请完成以下Java代码 | public class FeelTypedVariableMapper extends VariableMapper {
public static final FeelEngineLogger LOG = FeelLogger.ENGINE_LOGGER;
protected ExpressionFactory expressionFactory;
protected VariableContext variableContext;
public FeelTypedVariableMapper(ExpressionFactory expressionFactory, VariableContext vari... | }
public ValueExpression setVariable(String variable, ValueExpression expression) {
throw LOG.variableMapperIsReadOnly();
}
public Object unpackVariable(String variable) {
TypedValue valueTyped = variableContext.resolve(variable);
if(valueTyped != null) {
return valueTyped.getValue();
}
... | repos\camunda-bpm-platform-master\engine-dmn\feel-juel\src\main\java\org\camunda\bpm\dmn\feel\impl\juel\el\FeelTypedVariableMapper.java | 1 |
请在Spring Boot框架中完成以下Java代码 | public class BPartnerQuickInputAttributesRepository
{
private final BPQuickInputAttributes1RecordAdapter attributes1RecordAdapter = new BPQuickInputAttributes1RecordAdapter();
private final BPQuickInputAttributes2RecordAdapter attributes2RecordAdapter = new BPQuickInputAttributes2RecordAdapter();
private final BPQui... | .attributesSet5(attributes5RecordAdapter.getAttributes(bpartnerQuickInputId))
.build();
}
public void saveAttributes(
@NonNull final BPartnerAttributes bpartnerAttributes,
@NonNull final BPartnerQuickInputId bpartnerQuickInputId)
{
attributes1RecordAdapter.saveAttributes(bpartnerAttributes.getAttributes... | repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\bpartner\quick_input\service\BPartnerQuickInputAttributesRepository.java | 2 |
请完成以下Java代码 | public Object invokeParent(final Method method, final Object[] methodArgs) throws Exception
{
return POWrapper.this.invokeParent(method, methodArgs);
}
@Override
public boolean invokeEquals(final Object[] methodArgs)
{
return POWrapper.this.invokeEquals(methodArgs);
}
@Override
public Object get... | {
return POWrapper.this.getColumnIndex(columnName);
}
@Override
public boolean isVirtualColumn(final String columnName)
{
return POWrapper.this.isVirtualColumn(columnName);
}
@Override
public boolean isKeyColumnName(final String columnName)
{
return POWrapper.this.isKeyColumnName(columnName);... | repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\adempiere\model\POWrapper.java | 1 |
请完成以下Java代码 | protected DataRedisConnectionDetails getDockerComposeConnectionDetails(DockerComposeConnectionSource source) {
return new RedisDockerComposeConnectionDetails(source.getRunningService());
}
/**
* {@link DataRedisConnectionDetails} backed by a {@code redis}
* {@link RunningService}.
*/
static class RedisDocke... | this.standalone = Standalone.of(service.host(), service.ports().get(REDIS_PORT));
this.sslBundle = getSslBundle(service);
}
@Override
public @Nullable SslBundle getSslBundle() {
return this.sslBundle;
}
@Override
public Standalone getStandalone() {
return this.standalone;
}
}
} | repos\spring-boot-4.0.1\module\spring-boot-data-redis\src\main\java\org\springframework\boot\data\redis\docker\compose\RedisDockerComposeConnectionDetailsFactory.java | 1 |
请完成以下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 Zusagbar.
@param QtyPromised Zusagbar */
@Override
public void setQtyPromise... | set_ValueNoCheck (COLUMNNAME_QtyRequiered, QtyRequiered);
}
/** Get Menge angefragt.
@return Menge angefragt */
@Override
public java.math.BigDecimal getQtyRequiered ()
{
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyRequiered);
if (bd == null)
return BigDecimal.ZERO;
return bd;
}
/** Set ... | repos\metasfresh-new_dawn_uat\backend\de.metas.rfq\src\main\java-gen\de\metas\rfq\model\X_C_RfQResponseLine.java | 1 |
请完成以下Java代码 | public class ApprovalCommentDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 任务ID
*/
private String taskId;
/**
* 任务名称
*/
private String taskName;
/**
* 审批人ID
*/
private String approverId; | /**
* 审批人姓名
*/
private String approverName;
/**
* 审批意见
*/
private String approvalComment;
/**
* 审批时间
*/
private Date approvalTime;
} | repos\JeecgBoot-main\jeecg-boot\jeecg-boot-base-core\src\main\java\org\jeecg\common\api\dto\ApprovalCommentDTO.java | 1 |
请在Spring Boot框架中完成以下Java代码 | public class ActivitiAnnotationDrivenBeanDefinitionParser implements BeanDefinitionParser {
private final String processEngineAttribute = "process-engine";
public BeanDefinition parse(Element element, ParserContext parserContext) {
registerProcessScope(element, parserContext);
registerStateHandlerAnnotationBean... | private void registerProcessStartAnnotationBeanPostProcessor(Element element, ParserContext parserContext) {
Class clz = ProcessStartAnnotationBeanPostProcessor.class;
BeanDefinitionBuilder beanDefinitionBuilder = BeanDefinitionBuilder.genericBeanDefinition(clz);
AbstractBeanDefinition beanDefinition = beanDefin... | repos\camunda-bpm-platform-master\engine-spring\core\src\main\java\org\camunda\bpm\engine\spring\components\config\xml\ActivitiAnnotationDrivenBeanDefinitionParser.java | 2 |
请完成以下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()
... | @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_RuntimeParameter.java | 1 |
请完成以下Java代码 | void includeTab(final GridController detail)
{
final GridTab gridTab = detail.getMTab();
final int adTabId = gridTab.getAD_Tab_ID();
//
// Add this included grid controller to our internal list.
// If we are not able to add it now, we will add it later in "addField".
if (!includedTabList.containsKey(adTab... | SwingUtilities.invokeLater(new Runnable()
{
@Override
public void run()
{
detail.scrollToVisible();
}
});
}
});
}
}
public VEditor getEditor(final String columnName)
{
return columnName2editor.get(columnName);
}
public final List<String> getEditorColumnNames()
... | repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java\org\compiere\grid\VPanel.java | 1 |
请完成以下Java代码 | public void onSuccess(Void msg) {
responseWriter.setResult(new ResponseEntity<>(HttpStatus.OK));
}
@Override
public void onError(Throwable e) {
responseWriter.setResult(new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR));
}
}
@RequiredArgsConstructor... | @Override
public void onToDeviceRpcRequest(UUID sessionId, ToDeviceRpcRequestMsg msg) {
log.trace("[{}] Received RPC command to device", sessionId);
responseWriter.setResult(new ResponseEntity<>(JsonConverter.toJson(msg, true).toString(), HttpStatus.OK));
transportService.pro... | repos\thingsboard-master\common\transport\http\src\main\java\org\thingsboard\server\transport\http\DeviceApiController.java | 1 |
请完成以下Java代码 | public class GenericEventListenerActivityBehaviour extends CoreCmmnTriggerableActivityBehavior implements PlanItemActivityBehavior {
@Override
public void onStateTransition(CommandContext commandContext, DelegatePlanItemInstance planItemInstance, String transition) {
}
@Override
public void execu... | CommandContextUtil.getCmmnEngineConfiguration(commandContext).getListenerNotificationHelper().executeLifecycleListeners(
commandContext, planItemInstanceEntity, PlanItemInstanceState.ACTIVE, PlanItemInstanceState.AVAILABLE);
} else {
CommandContextUtil.getAgenda(comm... | repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\behavior\impl\GenericEventListenerActivityBehaviour.java | 1 |
请完成以下Java代码 | public Object getParameterComponent(final int index)
{
return null;
}
@Override
public Object getParameterToComponent(final int index)
{
return null;
}
@Override
public Object getParameterValue(final int index, final boolean returnValueTo)
{
return null;
}
@Override
public String[] getWhereClauses(... | {
final ArrayKey key = mkKey(rowRecord);
return packingInfos.get(key);
}
@Override
public void prepareEditor(final CEditor editor, final Object value, final int rowIndexModel, final int columnIndexModel)
{
// nothing
}
@Override
public String getProductCombinations()
{
final List<Integer> piItemProduc... | repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\adempiere\gui\search\InfoProductQtyPacksController.java | 1 |
请完成以下Java代码 | public String getPlaceholder() {
return placeholder;
}
public void setPlaceholder(String placeholder) {
this.placeholder = placeholder;
}
public LayoutDefinition getLayout() {
return layout;
}
public void setLayout(LayoutDefinition layout) {
this.layout = layou... | return params;
}
public void setParams(Map<String, Object> params) {
this.params = params;
}
@JsonIgnore
public Object getParam(String name) {
if (params != null) {
return params.get(name);
}
return null;
}
} | repos\flowable-engine-main\modules\flowable-form-model\src\main\java\org\flowable\form\model\FormField.java | 1 |
请在Spring Boot框架中完成以下Java代码 | public class CaseDefinitionUtil {
public static CaseDefinition getCaseDefinition(String caseDefinitionId) {
CmmnDeploymentManager deploymentManager = CommandContextUtil.getCmmnEngineConfiguration().getDeploymentManager();
CaseDefinitionCacheEntry cacheEntry = deploymentManager.getCaseDefinition... | }
return deploymentManager.findDeployedCaseDefinitionById(caseDefinitionId);
}
public static CmmnModel getCmmnModel(String caseDefinitionId) {
CmmnDeploymentManager deploymentManager = CommandContextUtil.getCmmnEngineConfiguration().getDeploymentManager();
CaseDefinitionCacheEntry cache... | repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\repository\CaseDefinitionUtil.java | 2 |
请在Spring Boot框架中完成以下Java代码 | public class PickingJobStepEvent
{
@Builder.Default
@NonNull Instant timestamp = SystemTime.asInstant();
@NonNull PickingJobLineId pickingLineId;
@Nullable PickingJobStepId pickingStepId;
@Nullable PickingJobStepPickFromKey pickFromKey;
@NonNull PickingJobStepEventType eventType;
//
// Common
@NonNull Scan... | //
// Event Type: UNPICK
@Nullable HUQRCode unpickToTargetQRCode;
public static Collection<PickingJobStepEvent> removeDuplicates(@NonNull final Collection<PickingJobStepEvent> events)
{
return events
.stream()
.collect(ImmutableMap.toImmutableMap(
event -> Util.ArrayKey.of(event.getPickingLineId(),... | repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\picking\job\model\PickingJobStepEvent.java | 2 |
请完成以下Java代码 | public void setInvoicableQtyBasedOn (final @Nullable java.lang.String InvoicableQtyBasedOn)
{
set_ValueNoCheck (COLUMNNAME_InvoicableQtyBasedOn, InvoicableQtyBasedOn);
}
@Override
public java.lang.String getInvoicableQtyBasedOn()
{
return get_ValueAsString(COLUMNNAME_InvoicableQtyBasedOn);
}
@Override
pu... | @Override
public boolean isProcessed()
{
return get_ValueAsBoolean(COLUMNNAME_Processed);
}
@Override
public void setProcessing (final boolean Processing)
{
set_ValueNoCheck (COLUMNNAME_Processing, Processing);
}
@Override
public boolean isProcessing()
{
return get_ValueAsBoolean(COLUMNNAME_Processi... | repos\metasfresh-new_dawn_uat\backend\de.metas.edi\src\main\java-gen\de\metas\esb\edi\model\X_M_InOut_Desadv_V.java | 1 |
请完成以下Java代码 | private final void save(final I_M_HU_Trx_Attribute huTrxAttribute)
{
if (!saveTrxAttributes)
{
return; // don't save it
}
InterfaceWrapperHelper.save(huTrxAttribute);
}
/**
* Process given {@link I_M_HU_Trx_Attribute} by calling the actual processor.
*
* @param huTrxAttribute
*/
private void pr... | }
else if (HUTransactionAttributeOperation.DROP.equals(operation))
{
trxAttributeProcessor.processDrop(huContext, huTrxAttribute, referencedModel);
}
else
{
throw new InvalidAttributeValueException("Invalid operation on trx attribute (" + operation + "): " + huTrxAttribute);
}
}
@Override
public v... | repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\attribute\impl\HUTransactionAttributeProcessor.java | 1 |
请完成以下Java代码 | public int getRevisionNext() {
return 0;
}
@Override
public void setName(String name) {}
@Override
public void setProcessInstanceId(String processInstanceId) {}
@Override
public void setExecutionId(String executionId) {}
@Override
public Object getValue() {
return... | }
@Override
public void setTypeName(String typeName) {}
@Override
public String getProcessInstanceId() {
return null;
}
@Override
public String getTaskId() {
return null;
}
@Override
public void setTaskId(String taskId) {}
@Override
public String getE... | repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\persistence\entity\TransientVariableInstance.java | 1 |
请完成以下Java代码 | public void setLockedDate (Timestamp LockedDate)
{
set_Value (COLUMNNAME_LockedDate, LockedDate);
}
/** Get Locked Date.
@return Date when this record was locked
*/
public Timestamp getLockedDate ()
{
return (Timestamp)get_Value(COLUMNNAME_LockedDate);
}
/** Set Phone.
@param Phone
Identifies a ... | }
public I_R_Request getR_Request() throws RuntimeException
{
return (I_R_Request)MTable.get(getCtx(), I_R_Request.Table_Name)
.getPO(getR_Request_ID(), get_TrxName()); }
/** Set Request.
@param R_Request_ID
Request from a Business Partner or Prospect
*/
public void setR_Request_ID (int R_Request_... | repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java-gen\de\metas\callcenter\model\X_R_Group_Prospect.java | 1 |
请完成以下Java代码 | public String getDownloadUrl() {
return downloadUrl;
}
public void setDownloadUrl(String downloadUrl) {
this.downloadUrl = downloadUrl;
}
public String getAppName() {
return appName;
}
public void setAppName(String appName) {
this.appName = appName;
}
... | public String getTips() {
return tips;
}
public void setTips(String tips) {
this.tips = tips;
}
public Date getPublishtime() {
return publishtime;
}
public void setPublishtime(Date publishtime) {
this.publishtime = publishtime;
}
} | repos\SpringBootBucket-master\springboot-swagger2\src\main\java\com\xncoding\jwt\api\model\VersionResult.java | 1 |
请完成以下Java代码 | public int hashCode() {
return Objects.hash(this.settings);
}
@Override
public String toString() {
return "AbstractSettings {" + "settings=" + this.settings + '}';
}
/**
* A builder for subclasses of {@link AbstractSettings}.
*
* @param <T> the type of object
* @param <B> the type of the builder
*/... | * {@code Map}
* @return the {@link AbstractBuilder} for further configuration
*/
public B settings(Consumer<Map<String, Object>> settingsConsumer) {
settingsConsumer.accept(getSettings());
return getThis();
}
public abstract T build();
protected final Map<String, Object> getSettings() {
return ... | repos\spring-security-main\oauth2\oauth2-authorization-server\src\main\java\org\springframework\security\oauth2\server\authorization\settings\AbstractSettings.java | 1 |
请完成以下Java代码 | public OriginalBusinessQuery1 getOrgnlBizQry() {
return orgnlBizQry;
}
/**
* Sets the value of the orgnlBizQry property.
*
* @param value
* allowed object is
* {@link OriginalBusinessQuery1 }
*
*/
public void setOrgnlBizQry(OriginalBusinessQuery1 val... | return addtlInf;
}
/**
* Sets the value of the addtlInf property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAddtlInf(String value) {
this.addtlInf = value;
}
} | repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.camt53\src\main\java-xjc\de\metas\banking\camt53\jaxb\camt053_001_04\GroupHeader58.java | 1 |
请完成以下Java代码 | public void setIsWriteOff (boolean IsWriteOff)
{
set_Value (COLUMNNAME_IsWriteOff, Boolean.valueOf(IsWriteOff));
}
/** Get Massenaustritt.
@return Massenaustritt */
@Override
public boolean isWriteOff ()
{
Object oo = get_Value(COLUMNNAME_IsWriteOff);
if (oo != null)
{
if (oo instanceof Boolean... | return (java.lang.String)get_Value(COLUMNNAME_Note);
}
/** Set Notiz Header.
@param NoteHeader
Optional weitere Information für ein Dokument
*/
@Override
public void setNoteHeader (java.lang.String NoteHeader)
{
set_Value (COLUMNNAME_NoteHeader, NoteHeader);
}
/** Get Notiz Header.
@return Optional... | repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_DunningLevel.java | 1 |
请完成以下Java代码 | public String getAsyncExecutorLockOwner() {
return asyncExecutorLockOwner;
}
public ProcessEngineConfigurationImpl setAsyncExecutorLockOwner(String asyncExecutorLockOwner) {
this.asyncExecutorLockOwner = asyncExecutorLockOwner;
return this;
}
public int getAsyncExecutorTimerLoc... | return asyncExecutorAsyncJobLockTimeInMillis;
}
public ProcessEngineConfigurationImpl setAsyncExecutorAsyncJobLockTimeInMillis(int asyncExecutorAsyncJobLockTimeInMillis) {
this.asyncExecutorAsyncJobLockTimeInMillis = asyncExecutorAsyncJobLockTimeInMillis;
return this;
}
public int getA... | repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\cfg\ProcessEngineConfigurationImpl.java | 1 |
请完成以下Java代码 | public List<? extends IViewRow> getIncludedRows()
{
return ImmutableList.of();
}
final void assertEditable()
{
if (!editable)
{
throw new AdempiereException("Row is not editable");
}
}
public PricingConditionsRow copyAndChangeToEditable()
{
if (editable)
{
return this;
}
return toBuilder... | return lookups.getFieldDropdown(fieldName);
}
public BPartnerId getBpartnerId()
{
return BPartnerId.ofRepoId(bpartner.getIdAsInt());
}
public String getBpartnerDisplayName()
{
return bpartner.getDisplayName();
}
public boolean isVendor()
{
return !isCustomer();
}
public CurrencyId getCurrencyId()
... | repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\order\pricingconditions\view\PricingConditionsRow.java | 1 |
请在Spring Boot框架中完成以下Java代码 | private EntityExportData toData(String data) {
return JacksonUtil.fromString(data, EntityExportData.class);
}
private static String getRelativePath(EntityType entityType, EntityId entityId) {
String path = entityType.name().toLowerCase();
if (entityId != null) {
path += "/" ... | }
private ToVersionControlServiceMsg.Builder newRequestProto(PendingGitRequest<?> request, RepositorySettings settings) {
var tenantId = request.getTenantId();
var requestId = request.getRequestId();
var builder = ToVersionControlServiceMsg.newBuilder()
.setNodeId(serviceInf... | repos\thingsboard-master\application\src\main\java\org\thingsboard\server\service\sync\vc\DefaultGitVersionControlQueueService.java | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.