instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
public ImmutableList<Object> toImmutableList() { if (noValue) { return ImmutableList.of(); } else if (singleValue != null) { return ImmutableList.of(singleValue); } else { Objects.requireNonNull(multipleValues); return multipleValues; } } public IdsToFilter mergeWith(@NonNull final Ids...
return this; } else if (isNoValue()) { return other; } else { final ImmutableSet<Object> multipleValues = Stream.concat(toImmutableList().stream(), other.toImmutableList().stream()) .distinct() .collect(ImmutableSet.toImmutableSet()); return ofMultipleValues(multipleValues); } } }
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\model\lookup\IdsToFilter.java
1
请在Spring Boot框架中完成以下Java代码
class SslBundleRabbitConnectionFactoryBean extends RabbitConnectionFactoryBean { private @Nullable SslBundle sslBundle; private boolean enableHostnameVerification; @Override protected void setUpSSL() { if (this.sslBundle != null) { this.connectionFactory.useSslProtocol(this.sslBundle.createSslContext()); ...
super.setUpSSL(); } } void setSslBundle(@Nullable SslBundle sslBundle) { this.sslBundle = sslBundle; } @Override public void setEnableHostnameVerification(boolean enable) { this.enableHostnameVerification = enable; super.setEnableHostnameVerification(enable); } }
repos\spring-boot-4.0.1\module\spring-boot-amqp\src\main\java\org\springframework\boot\amqp\autoconfigure\SslBundleRabbitConnectionFactoryBean.java
2
请在Spring Boot框架中完成以下Java代码
public void setC_POS_ID (final int C_POS_ID) { if (C_POS_ID < 1) set_Value (COLUMNNAME_C_POS_ID, null); else set_Value (COLUMNNAME_C_POS_ID, C_POS_ID); } @Override public int getC_POS_ID() { return get_ValueAsInt(COLUMNNAME_C_POS_ID); } @Override public void setC_POS_Journal_ID (final int C_POS...
{ return get_ValueAsString(COLUMNNAME_DocumentNo); } @Override public void setIsClosed (final boolean IsClosed) { set_Value (COLUMNNAME_IsClosed, IsClosed); } @Override public boolean isClosed() { return get_ValueAsBoolean(COLUMNNAME_IsClosed); } @Override public void setOpeningNote (final @Nullabl...
repos\metasfresh-new_dawn_uat\backend\de.metas.pos.base\src\main\java-gen\de\metas\pos\repository\model\X_C_POS_Journal.java
2
请完成以下Java代码
default DocumentLocation toDocumentLocation() { final BPartnerId bpartnerId = BPartnerId.ofRepoIdOrNull(getDropShip_BPartner_ID()); return DocumentLocation.builder() .bpartnerId(bpartnerId) .bpartnerLocationId(BPartnerLocationId.ofRepoIdOrNull(bpartnerId, getDropShip_Location_ID())) .contactId(BPartner...
setDropShip_Location_ID(BPartnerLocationId.toRepoId(from.getBpartnerLocationId())); setDropShip_Location_Value_ID(LocationId.toRepoId(from.getLocationId())); setDropShip_User_ID(BPartnerContactId.toRepoId(from.getContactId())); setDeliveryToAddress(from.getBpartnerAddress()); } default void setFrom(@NonNull fi...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\document\location\adapter\IDocumentDeliveryLocationAdapter.java
1
请完成以下Java代码
public void onParameterChanged(final String parameterName) { final String actionName = p_Action; if (ActionType.TU_To_NewLUs.toString().equals(actionName)) { onParameterChanged_ActionTUToNewLUs(parameterName); } if (PARAM_Action.equals(parameterName) && ActionType.CU_To_NewTUs.toString().equals(actionNa...
} } private void onParameterChanged_ActionCUToNewTUs() { final Optional<I_M_HU_PI_Item_Product> packingItemOptional = newParametersFiller().getDefaultM_HU_PI_Item_Product(); if (packingItemOptional.isPresent()) { final BigDecimal realCUQty = getSingleSelectedRow().getQtyCU(); p_M_HU_PI_Item_Product = ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\handlingunits\process\WEBUI_M_HU_Transform.java
1
请完成以下Java代码
public String getTenantId() { return tenantId; } @Override public void setTenantId(String tenantId) { this.tenantId = tenantId; } @Override public String getCategory() { return category; } @Override public void setCategory(String category) { this.ca...
public String getDecisionType() { return decisionType; } @Override public void setDecisionType(String decisionType) { this.decisionType = decisionType; } @Override public String toString() { return "DecisionEntity[" + id + "]"; } }
repos\flowable-engine-main\modules\flowable-dmn-engine\src\main\java\org\flowable\dmn\engine\impl\persistence\entity\DecisionEntityImpl.java
1
请在Spring Boot框架中完成以下Java代码
public class SingleResourceAutoDeploymentStrategy extends AbstractProcessAutoDeploymentStrategy { private static final Logger LOGGER = LoggerFactory.getLogger(SingleResourceAutoDeploymentStrategy.class); /** * The deployment mode this strategy handles. */ public static final String DEPLOYMENT_MO...
final String resourceName = determineResourceName(resource); final DeploymentBuilder deploymentBuilder = repositoryService.createDeployment().enableDuplicateFiltering().name(resourceName); addResource(resource, resourceName, deploymentBuilder); try { deploymentBuilder...
repos\flowable-engine-main\modules\flowable-spring\src\main\java\org\flowable\spring\configurator\SingleResourceAutoDeploymentStrategy.java
2
请完成以下Java代码
public void syncSend(Integer id) { // 创建 Demo13Message 消息 Demo13Message message = new Demo13Message(); message.setId(id); // 同步发送消息 rabbitTemplate.invoke(new RabbitOperations.OperationsCallback<Object>() { @Override public Object doInRabbit(RabbitOperatio...
logger.info("[handle][Confirm 成功]"); } }, new ConfirmCallback() { @Override public void handle(long deliveryTag, boolean multiple) throws IOException { logger.info("[handle][Confirm 失败]"); } }); } }
repos\SpringBoot-Labs-master\lab-04-rabbitmq\lab-04-rabbitmq-demo-confirm\src\main\java\cn\iocoder\springboot\lab04\rabbitmqdemo\producer\Demo13Producer.java
1
请在Spring Boot框架中完成以下Java代码
public class ViewHeaderProperty { @Nullable String fieldName; @NonNull ITranslatableString caption; @NonNull ITranslatableString value; @SuppressWarnings("unused") public static class ViewHeaderPropertyBuilder { public ViewHeaderPropertyBuilder value(final ITranslatableString value) { this.value = value; ...
public ViewHeaderPropertyBuilder value(final String value) { return value(TranslatableStrings.anyLanguage(value)); } public ViewHeaderPropertyBuilder value(final ZonedDateTime value) { return value(TranslatableStrings.dateAndTime(value)); } public ViewHeaderPropertyBuilder value(final int value) {...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\view\ViewHeaderProperty.java
2
请在Spring Boot框架中完成以下Java代码
public String getDesc() { return desc; } public void setDesc(String desc) { this.desc = desc; } public static Map<String, Map<String, Object>> toMap() { TrxTypeEnum[] ary = TrxTypeEnum.values(); Map<String, Map<String, Object>> enumMap = new HashMap<String, Map<String, Object>>(); for (int num = 0; num ...
public static TrxTypeEnum getEnum(String name) { TrxTypeEnum[] arry = TrxTypeEnum.values(); for (int i = 0; i < arry.length; i++) { if (arry[i].name().equalsIgnoreCase(name)) { return arry[i]; } } return null; } /** * 取枚举的json字符串 * * @return */ public static String getJsonStr() { TrxType...
repos\roncoo-pay-master\roncoo-pay-service\src\main\java\com\roncoo\pay\trade\enums\TrxTypeEnum.java
2
请完成以下Java代码
protected Mono<Void> doNotify(InstanceEvent event, Instance instance) { return Mono .fromRunnable(() -> restTemplate.postForEntity(buildUrl(), createMessage(event, instance), Void.class)); } private String buildUrl() { Long timestamp = System.currentTimeMillis(); return String.format("%s&timestamp=%s&sign=%...
byte[] signData = mac.doFinal(stringToSign.getBytes(StandardCharsets.UTF_8)); return URLEncoder.encode(new String(Base64.encodeBase64(signData)), StandardCharsets.UTF_8); } catch (Exception ex) { log.warn("Failed to sign message", ex); } return ""; } public void setRestTemplate(RestTemplate restTemplat...
repos\spring-boot-admin-master\spring-boot-admin-server\src\main\java\de\codecentric\boot\admin\server\notify\DingTalkNotifier.java
1
请完成以下Java代码
public class Student implements Serializable { public enum Gender { MALE, FEMALE } private String id; private String name; private Gender gender; private int grade; public Student(String id, String name, Gender gender, int grade) { this.id = id; this.name = name; ...
} public void setGender(Gender gender) { this.gender = gender; } public int getGrade() { return grade; } public void setGrade(int grade) { this.grade = grade; } @Override public String toString() { return "Student{" + "id='" + id + '\'' + ", name='" + ...
repos\tutorials-master\persistence-modules\spring-data-redis\src\main\java\com\baeldung\spring\data\redis\model\Student.java
1
请在Spring Boot框架中完成以下Java代码
public class EDICBPartnerLookupBPLGLNVType { @XmlElement(name = "GLN", required = true) protected String gln; @XmlElement(name = "StoreGLN") protected String storeGLN; /** * Gets the value of the gln property. * * @return * possible object is * {@link String } ...
/** * Gets the value of the storeGLN property. * * @return * possible object is * {@link String } * */ public String getStoreGLN() { return storeGLN; } /** * Sets the value of the storeGLN property. * * @param value * allowed...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_metasfreshinhousev1\de\metas\edi\esb\jaxb\metasfreshinhousev1\EDICBPartnerLookupBPLGLNVType.java
2
请完成以下Java代码
public void actionPerformed (ActionEvent e) { int AD_Form_ID = 118; // ArchiveViewer FormFrame ff = new FormFrame(); if (!ff.openForm(AD_Form_ID)) { ff.dispose(); return; } ArchiveViewer av = (ArchiveViewer)ff.getFormPanel(); // if (e.getSource() == m_documents) { av.query(false, m_AD_Table_...
else if (e.getSource() == m_reports) { av.query(true, m_AD_Table_ID, m_Record_ID); } else { av.query(true, m_AD_Table_ID, 0); } // AEnv.addToWindowManager(ff); ff.pack(); AEnv.showCenterScreen(ff); ff = null; } // actionPerformed } // AArchive
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\apps\AArchive.java
1
请完成以下Spring Boot application配置
spring.datasource.url=jdbc:h2:mem:db;DB_CLOSE_DELAY=-1 spring.datasource.username=sa spring.datasource.password=sa spring.jpa.properties.hibernate.globally_quoted_identifiers=true logging.level.com.baeldung.spring.data.persistence.search=error spring.jpa.show-sql=false logging.level.org.hibernate.SQL=ERROR logging.le...
bernate.type.descriptor.sql.BasicBinder=ERROR spring.jpa.properties.hibernate.format_sql=true spring.jpa.defer-datasource-initialization=true
repos\tutorials-master\persistence-modules\spring-data-jpa-repo-2\src\main\resources\application.properties
2
请完成以下Java代码
public void setDecimalSeparator (java.lang.String DecimalSeparator) { set_Value (COLUMNNAME_DecimalSeparator, DecimalSeparator); } /** Get Decimal Separator. @return Decimal Separator */ @Override public java.lang.String getDecimalSeparator () { return (java.lang.String)get_Value(COLUMNNAME_DecimalSepar...
{ return (java.lang.String)get_Value(COLUMNNAME_Name); } /** Set Number Grouping Separator. @param NumberGroupingSeparator Number Grouping Separator */ @Override public void setNumberGroupingSeparator (java.lang.String NumberGroupingSeparator) { set_Value (COLUMNNAME_NumberGroupingSeparator, NumberGroupin...
repos\metasfresh-new_dawn_uat\backend\de.metas.datev\src\main\java-gen\de\metas\datev\model\X_DATEV_ExportFormat.java
1
请在Spring Boot框架中完成以下Java代码
public boolean matches(CharSequence charSequence, String s) { String encode = DigestUtils.md5DigestAsHex(charSequence.toString().getBytes()); boolean res = s.equals( encode ); return res; } } ); } @Override protected void configure(HttpSe...
.anyRequest().authenticated(); //使用自定义的 Token过滤器 验证请求的Token是否合法 http.addFilterBefore(authenticationTokenFilterBean(), UsernamePasswordAuthenticationFilter.class); http.headers().cacheControl(); } @Bean public JwtTokenFilter authenticationTokenFilterBean() throws Exception { ...
repos\SpringBootLearning-master (1)\springboot-jwt\src\main\java\com\gf\config\SecurityConfig.java
2
请完成以下Java代码
public String toString() { return "compile"; } }; /** * The library is used at runtime but not needed for compile. */ LibraryScope RUNTIME = new LibraryScope() { @Override public String toString() { return "runtime"; } }; /** * The library is needed for compile but is usually provided when...
LibraryScope PROVIDED = new LibraryScope() { @Override public String toString() { return "provided"; } }; /** * Marker for custom scope when custom configuration is used. */ LibraryScope CUSTOM = new LibraryScope() { @Override public String toString() { return "custom"; } }; }
repos\spring-boot-4.0.1\loader\spring-boot-loader-tools\src\main\java\org\springframework\boot\loader\tools\LibraryScope.java
1
请完成以下Java代码
public String getCtry() { return ctry; } /** * Sets the value of the ctry property. * * @param value * allowed object is * {@link String } * */ public void setCtry(String value) { this.ctry = value; } /** * Gets the value of the...
/** * Gets the value of the inf property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for...
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.sepa\schema-pain_001_01_03_ch_02\src\main\java-xjc\de\metas\payment\sepa\jaxb\sct\pain_001_001_03_ch_02\StructuredRegulatoryReporting3.java
1
请完成以下Java代码
public String getReadCountStr() { return readCountStr; } public void setReadCountStr(String readCountStr) { this.readCountStr = readCountStr; } public void setPublishDate(Date publishDate) { this.publishDate = publishDate; } public int getReadCount() { return readCount; } public void setReadCount(in...
public List<String> getComment() { return comment; } public void setComment(List<String> comment) { this.comment = comment; } public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } public String getUrlMd5() { return urlMd5; } public void setUrlMd5(String urlMd...
repos\spring-boot-quick-master\quick-vw-crawler\src\main\java\com\crawler\vw\entity\Blog.java
1
请完成以下Java代码
public String getLastNameLike() { return lastNameLike; } public String getLastNameLikeIgnoreCase() { return lastNameLikeIgnoreCase; } public String getEmail() { return email; } public String getEmailLike() { return emailLike; } public String getGroupId...
} public String getFullNameLikeIgnoreCase() { return fullNameLikeIgnoreCase; } public String getDisplayName() { return displayName; } public String getDisplayNameLike() { return displayNameLike; } public String getDisplayNameLikeIgnoreCase() { return displ...
repos\flowable-engine-main\modules\flowable-idm-engine\src\main\java\org\flowable\idm\engine\impl\UserQueryImpl.java
1
请完成以下Spring Boot application配置
spring.kafka.bootstrap-servers=localhost:9095 message.topic.name=baeldung long.message.topic.name=longMessage greeting.topic.name=greeting filtered.topic.name=filtered partitioned.topic.name=partitioned multi.type.topic.name=multitype # monitoring - lag analysis monitor.kafka.bootstrap.config=localhost:9092 monitor.kaf...
le-listeners.books.topic.name=books spring.kafka.streams.application-id=baeldung-streams spring.kafka.consumer.group-id=baeldung-group spring.kafka.streams.properties[default.key.serde]=org.apache.kafka.common.serialization.Serdes$StringSerde kafka.topics.iot=iot_sensor_data
repos\tutorials-master\spring-kafka\src\main\resources\application-dlt.properties
2
请完成以下Java代码
public void firePrintOut( final I_AD_Archive archive, @Nullable final UserId userId, final String printerName, final int copies, @NonNull final ArchivePrintOutStatus status) { for (final IArchiveEventListener listener : listeners) { listener.onPrintOut(archive, userId, printerName, copies, status...
{ listener.onPrintOut(archive, userId, printerName, copies, status); } } } @Override public void fireVoidDocument(final I_AD_Archive archive) { for (final IArchiveEventListener listener : listeners) { listener.onVoidDocument(archive); } } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\archive\api\impl\ArchiveEventManager.java
1
请完成以下Java代码
public boolean isNewInfo() { return getResult() != null; } // isNewInfo /** * Get Name of creator * @return name */ public String getCreatedByName() { I_AD_User user = Services.get(IUserDAO.class).retrieveUserOrNull(getCtx(), getCreatedBy()); return user.getName(); } // getCreatedByName /** * ...
{ return MRefList.getListName(getCtx(), CONFIDENTIALTYPEENTRY_AD_Reference_ID, getConfidentialTypeEntry()); } // getConfidentialTextEntry /** * Before Save * @param newRecord new * @return true */ @Override protected boolean beforeSave (boolean newRecord) { if (getConfidentialTypeEntry() == null) ...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java-legacy\org\compiere\model\MRequestUpdate.java
1
请完成以下Java代码
public class ProcessApplicationScriptEnvironment { protected ProcessApplicationInterface processApplication; protected ScriptEngineResolver processApplicationScriptEngineResolver; protected Map<String, List<ExecutableScript>> environmentScripts = new HashMap<>(); public ProcessApplicationScriptEnvironment(Pr...
if(processApplicationScriptEngineResolver == null) { processApplicationScriptEngineResolver = new DefaultScriptEngineResolver(new ScriptEngineManager(getProcessApplicationClassloader())); } } } return processApplicationScriptEngineResolver.getScriptEngine(scriptEngineName, cache); } ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\application\impl\ProcessApplicationScriptEnvironment.java
1
请完成以下Java代码
private void verifyTransactionCurrency( @NonNull final EntryTransaction8 txDtls, @NonNull final ESRTransactionBuilder trxBuilder) { if (bankAccountCurrencyCode == null) { return; // nothing to do } // TODO: this does not really belong into the loader! move it to the matcher code. final ActiveOrHist...
private String getErrorMsg(@NonNull final AdMessageKey adMessage, @Nullable final Object... params) { return msgBL.getTranslatableMsgText(adMessage, params).translate(adLanguage); } /** * Marshals the given {@code} into an XML string and return that as the "key". * mkTrxKey for version 6 <code>BankToCustomerD...
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.esr\src\main\java\de\metas\payment\esr\dataimporter\impl\camt54\ESRDataImporterCamt54v06.java
1
请在Spring Boot框架中完成以下Java代码
public class ReactorProperties { /** * Context Propagation support mode for Reactor operators. */ private ContextPropagationMode contextPropagation = ContextPropagationMode.LIMITED; public ContextPropagationMode getContextPropagation() { return this.contextPropagation; } public void setContextPropagation(...
public enum ContextPropagationMode { /** * Context Propagation is applied to all Reactor operators. */ AUTO, /** * Context Propagation is only applied to "tap" and "handle" Reactor operators. */ LIMITED } }
repos\spring-boot-4.0.1\module\spring-boot-reactor\src\main\java\org\springframework\boot\reactor\autoconfigure\ReactorProperties.java
2
请在Spring Boot框架中完成以下Java代码
public String getValue() { return value; } public void setValue(String value) { this.value = value; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ErrorParameter errorParameter = (ErrorParamet...
sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String to...
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\ErrorParameter.java
2
请完成以下Java代码
public final class GridTabMaxRows { private static final int DEFAULT_MaxRows = -1000; public static final GridTabMaxRows DEFAULT = new GridTabMaxRows(DEFAULT_MaxRows); public static final GridTabMaxRows NO_RESTRICTION = new GridTabMaxRows(0); /** * Creates a new restrictiction. * * Based on given <code>maxR...
} else { sb.append(maxRows); } sb.append("]"); return sb.toString(); } /** * Gets the maximum rows allowed. * * The returned number makes sense only if it's not {@link #isDefault()} or {@link #isNoRestriction()}. * * @return max rows allowed. */ public int getMaxRows() { return maxRo...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\compiere\model\GridTabMaxRows.java
1
请在Spring Boot框架中完成以下Java代码
public class UserDetail implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue private Long id; @Column(nullable = false, unique = true) private String userId; @Column(nullable = true) private String address; @Column(nullable = true) priva...
} public void setUserId(String userId) { this.userId = userId; } public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } public String getHobby() { return hobby; } public void setHobby(Stri...
repos\spring-boot-leaning-master\1.x\第04课:Spring Data Jpa 的使用\spring-boot-Jpa\src\main\java\com\neo\domain\UserDetail.java
2
请完成以下Java代码
public void setCategory(String category) { this.category = category; } @Override public String getDiagramResourceName() { return diagramResourceName; } @Override public void setDiagramResourceName(String diagramResourceName) { this.diagramResourceName = diagramResourceN...
@Override public String getDerivedFromRoot() { return derivedFromRoot; } @Override public void setDerivedFromRoot(String derivedFromRoot) { this.derivedFromRoot = derivedFromRoot; } @Override public int getDerivedVersion() { return derivedVersion; } @Overri...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\persistence\entity\ProcessDefinitionEntityImpl.java
1
请在Spring Boot框架中完成以下Java代码
public class TransactionDtls2Wrapper extends TransactionDtlsWrapper { @NonNull EntryTransaction2 entryDtls; @Builder private TransactionDtls2Wrapper(@NonNull final EntryTransaction2 entryDtls) { this.entryDtls = entryDtls; } @Nullable @Override public String getAcctSvcrRef() { return entryDtls.getRefs()...
} return String.join(delimiter, rmtInf.getUstrd()); } @Override protected @NonNull String getLineDescription(final @NonNull String delimiter) { return entryDtls.getAddtlTxInf(); } @Nullable @Override public String getCcy() { return entryDtls.getAmtDtls().getInstdAmt().getAmt().getCcy(); } /** * @r...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.camt53\src\main\java\de\metas\banking\camt53\wrapper\v02\TransactionDtls2Wrapper.java
2
请在Spring Boot框架中完成以下Java代码
public static String convertToXML(@NonNull final Object object, @NonNull final Class<?> clazz) { try { final JAXBContext jaxbContext = JAXBContext.newInstance(clazz); final Marshaller marshaller = jaxbContext.createMarshaller(); marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE); m...
if (nodeList.getLength() == 0) { return null; } final Node childNode = nodeList.item(0); return (Element)childNode; } @NonNull public static String addXMLDeclarationIfNeeded(@NonNull final String payload) { if (payload.trim().startsWith("<?xml")) { // Payload already contains XML declaration r...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\de-metas-camel-leichundmehl\src\main\java\de\metas\camel\externalsystems\leichundmehl\to_leichundmehl\util\XMLUtil.java
2
请完成以下Java代码
public void processAddressDocumentChanges(final int addressDocIdInt, final List<JSONDocumentChangedEvent> events, final IDocumentChangesCollector changesCollector) { final DocumentId addressDocId = DocumentId.of(addressDocIdInt); final Document addressDoc = getAddressDocumentForWriting(addressDocId, changesCollect...
final String locationStr = locationBL.mkAddress(locationRecord); return IntegerLookupValue.of(locationRecord.getC_Location_ID(), locationStr); } private I_C_Location createC_Location(final Document locationDoc) { final I_C_Location locationRecord = InterfaceWrapperHelper.create(Env.getCtx(), I_C_Location.class,...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\address\AddressRepository.java
1
请完成以下Java代码
public class DunningPrintingQueueHandler extends PrintingQueueHandlerAdapter { public static final transient DunningPrintingQueueHandler instance = new DunningPrintingQueueHandler(); private static final Logger logger = LogManager.getLogger(DunningPrintingQueueHandler.class); private DunningPrintingQueueHandler() ...
if (InterfaceWrapperHelper.isInstanceOf(archiveRerencedModel, I_C_DunningDoc.class)) { queueItem.setItemName(X_C_Printing_Queue.ITEMNAME_Mahnung); } } @Override public String toString() { return ObjectUtils.toString(this); } /** * Allays returns <code>true</code>. */ @Override public boolean isA...
repos\metasfresh-new_dawn_uat\backend\de.metas.dunning\src\main\java\de\metas\dunning\printing\spi\impl\DunningPrintingQueueHandler.java
1
请完成以下Java代码
public class ELRequestMatcher implements RequestMatcher { private final Expression expression; public ELRequestMatcher(String el) { SpelExpressionParser parser = new SpelExpressionParser(); this.expression = parser.parseExpression(el); } @Override public boolean matches(HttpServletRequest request) { Evalu...
* context * @return EL root context which is used to evaluate the expression */ public EvaluationContext createELContext(HttpServletRequest request) { return new StandardEvaluationContext(new ELRequestMatcherContext(request)); } @Override public String toString() { StringBuilder sb = new StringBuilder(); ...
repos\spring-security-main\web\src\main\java\org\springframework\security\web\util\matcher\ELRequestMatcher.java
1
请在Spring Boot框架中完成以下Java代码
private BeanMetadataElement getObservationRegistry(Element methodSecurityElmt) { String holderStrategyRef = methodSecurityElmt.getAttribute(ATT_OBSERVATION_REGISTRY_REF); if (StringUtils.hasText(holderStrategyRef)) { return new RuntimeBeanReference(holderStrategyRef); } return BeanDefinitionBuilder.rootBeanD...
} static class DefaultWebSecurityExpressionHandlerBeanFactory extends GrantedAuthorityDefaultsParserUtils.AbstractGrantedAuthorityDefaultsBeanFactory { private DefaultHttpSecurityExpressionHandler handler = new DefaultHttpSecurityExpressionHandler(); @Override public DefaultHttpSecurityExpressionHandler ge...
repos\spring-security-main\config\src\main\java\org\springframework\security\config\http\AuthorizationFilterParser.java
2
请完成以下Java代码
public class CustomObjectType implements VariableType { protected String typeName; protected Class<?> theClass; public CustomObjectType(String typeName, Class<?> theClass) { this.theClass = theClass; this.typeName = typeName; } public String getTypeName() { return this.typ...
} public boolean isAbleToStore(Object value) { if (value == null) { return true; } return this.theClass.isAssignableFrom(value.getClass()); } public boolean isCachable() { return true; } public void setValue(Object value, ValueFields valueFields) { ...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\variable\CustomObjectType.java
1
请完成以下Java代码
private static InvoiceAndLineId getInvoiceLineId(final @NonNull CreateViewRequest request) { return Check.assumeNotNull(request.getParameterAs(VIEW_PARAM_invoiceLineId, InvoiceAndLineId.class), "No invoiceLineId parameter provided"); } @NonNull private static SOTrx getSOTrx(final @NonNull CreateViewRequest reque...
{ DocumentFilterDescriptor filterDescriptor = this._filterDescriptor; if (filterDescriptor == null) { final LookupDescriptorProviders lookupDescriptorProviders = lookupDataSourceFactory.getLookupDescriptorProviders(); filterDescriptor = this._filterDescriptor = InOutCostsViewFilterHelper.createFilterDescrip...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\invoice\match_inout_costs\InOutCostsViewFactory.java
1
请完成以下Java代码
public static class Zustelldatum { @XmlElement(name = "Datum", required = true) protected String datum; @XmlElement(name = "UhrzeitVon") protected String uhrzeitVon; @XmlElement(name = "UhrzeitBis") protected String uhrzeitBis; /** * Gets the value of t...
return uhrzeitVon; } /** * Sets the value of the uhrzeitVon property. * * @param value * allowed object is * {@link String } * */ public void setUhrzeitVon(String value) { this.uhrzeitVon = value; }...
repos\metasfresh-new_dawn_uat\backend\de.metas.shipper.gateway.go\src\main\java-xjc\de\metas\shipper\gateway\go\schema\Sendung.java
1
请完成以下Java代码
public class PreUndeployInvocationStep extends DeploymentOperationStep { private static final String CALLBACK_NAME = "@PreUndeploy"; private final static ContainerIntegrationLogger LOG = ProcessEngineLogger.CONTAINER_INTEGRATION_LOGGER; public String getName() { return "Invoking @PreUndeploy"; } publi...
try { // perform the actual invocation preUndeployMethod.invoke(processApplication, injections); } catch (IllegalArgumentException e) { throw LOG.exceptionWhileInvokingPaLifecycleCallback(CALLBACK_NAME, paName, e); } catch (IllegalAccessException e) { throw LOG.exceptionWhileInvo...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\container\impl\deployment\PreUndeployInvocationStep.java
1
请完成以下Java代码
public int getDD_OrderLine_ID() { return get_ValueAsInt(COLUMNNAME_DD_OrderLine_ID); } @Override public void setMD_Cockpit_DDOrder_Detail_ID (final int MD_Cockpit_DDOrder_Detail_ID) { if (MD_Cockpit_DDOrder_Detail_ID < 1) set_ValueNoCheck (COLUMNNAME_MD_Cockpit_DDOrder_Detail_ID, null); else set_Va...
{ if (M_Warehouse_ID < 1) set_Value (COLUMNNAME_M_Warehouse_ID, null); else set_Value (COLUMNNAME_M_Warehouse_ID, M_Warehouse_ID); } @Override public int getM_Warehouse_ID() { return get_ValueAsInt(COLUMNNAME_M_Warehouse_ID); } @Override public void setQtyPending (final BigDecimal QtyPending) {...
repos\metasfresh-new_dawn_uat\backend\de.metas.material\cockpit\src\main\java-gen\de\metas\material\cockpit\model\X_MD_Cockpit_DDOrder_Detail.java
1
请完成以下Java代码
public String getCantonlev() { return cantonlev; } public void setCantonlev(String cantonlev) { this.cantonlev = cantonlev; } public String getTaxorgcode() { return taxorgcode; } public void setTaxorgcode(String taxorgcode) { this.taxorgcode = taxorgcode; }...
public String getQrcantonid() { return qrcantonid; } public void setQrcantonid(String qrcantonid) { this.qrcantonid = qrcantonid; } public String getDeclare() { return declare; } public void setDeclare(String declare) { this.declare = declare; } public...
repos\SpringBootBucket-master\springboot-batch\src\main\java\com\xncoding\trans\modules\canton\Canton.java
1
请完成以下Java代码
public class DelegatingServiceInstance implements ServiceInstance { final ServiceInstance delegate; private String overrideScheme; public DelegatingServiceInstance(ServiceInstance delegate, String overrideScheme) { this.delegate = delegate; this.overrideScheme = overrideScheme; } @Override public String g...
return delegate.getUri(); } @Override public Map<String, String> getMetadata() { return delegate.getMetadata(); } @Override public String getScheme() { String scheme = delegate.getScheme(); if (scheme != null) { return scheme; } return this.overrideScheme; } }
repos\spring-cloud-gateway-main\spring-cloud-gateway-server-webflux\src\main\java\org\springframework\cloud\gateway\support\DelegatingServiceInstance.java
1
请完成以下Java代码
default void setMessageConverter(MessageConverter converter) { // NOSONAR } /** * Used by the container factory to check if this endpoint supports the * preferred way for a container factory to pass a message converter * to the endpoint's adapter. If null is returned, the factory will * fall back to the le...
*/ default @Nullable AcknowledgeMode getAckMode() { return null; } /** * Return a {@link ReplyPostProcessor} to post process a reply message before it is * sent. * @return the post processor. * @since 2.2.5 */ default @Nullable ReplyPostProcessor getReplyPostProcessor() { return null; } /** * Ge...
repos\spring-amqp-main\spring-rabbit\src\main\java\org\springframework\amqp\rabbit\listener\RabbitListenerEndpoint.java
1
请完成以下Java代码
public void setRemote_Org_ID (int Remote_Org_ID) { if (Remote_Org_ID < 1) set_ValueNoCheck (COLUMNNAME_Remote_Org_ID, null); else set_ValueNoCheck (COLUMNNAME_Remote_Org_ID, Integer.valueOf(Remote_Org_ID)); } /** Get Remote Organization. @return Remote Organization to be used to replicate / synchroniz...
/** Set Suffix. @param Suffix Suffix after the number */ public void setSuffix (String Suffix) { set_Value (COLUMNNAME_Suffix, Suffix); } /** Get Suffix. @return Suffix after the number */ public String getSuffix () { return (String)get_Value(COLUMNNAME_Suffix); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_Replication.java
1
请在Spring Boot框架中完成以下Java代码
public class JCasBinFilter implements Filter { private static final Logger LOG = LoggerFactory.getLogger(JCasBinFilter.class); private final Enforcer enforcer; private final UserAccessService userAccessService; public JCasBinFilter(Enforcer enforcer, UserAccessService userAccessService) { thi...
} else { LOG.error("session is not authorized: {} {} {} {}", sessionId, user, method, path); HttpServletResponse httpServletResponse = (HttpServletResponse)response; httpServletResponse.setStatus(HttpStatus.FORBIDDEN.value()); } } else { ...
repos\spring-examples-java-17\spring-jcasbin\src\main\java\itx\examples\springboot\security\config\JCasBinFilter.java
2
请完成以下Java代码
protected boolean beforeSave(boolean newRecord) { if (newRecord && getParent().isComplete()) { throw new AdempiereException("@ParentComplete@ @M_RequisitionLine_ID@"); } if (getLine() == 0) { String sql = "SELECT COALESCE(MAX(Line),0)+10 FROM M_RequisitionLine WHERE M_Requisition_ID=?"; int line = ...
} // afterSave @Override protected boolean afterDelete(boolean success) { if (!success) return success; updateHeader(); return true; } // afterDelete private void updateHeader() { String sql = "UPDATE M_Requisition r" + " SET TotalLines=" + "(SELECT COALESCE(SUM(LineNetAmt),0) FROM M_Requis...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java-legacy\org\compiere\model\MRequisitionLine.java
1
请完成以下Java代码
public String toString () { StringBuffer sb = new StringBuffer ("MAchievement["); sb.append (get_ID()).append ("-").append (getName()).append ("]"); return sb.toString (); } // toString /** * Before Save * @param newRecord new * @return true */ @Override protected boolean beforeSave (boolean newRe...
* @return success */ @Override protected boolean afterDelete (boolean success) { if (success) updateAchievementGoals(); return success; } // afterDelete /** * Update Goals with Achievement */ private void updateAchievementGoals() { MMeasure measure = MMeasure.get (getCtx(), getPA_Measure_ID()); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java-legacy\org\compiere\model\MAchievement.java
1
请完成以下Java代码
public ProductId getProductId() { return aggregationKey.getProductId(); } public AttributeSetInstanceId getAttributeSetInstanceId() { return aggregationKey.getAttributeSetInstanceId(); } public Quantity getQtyToDeliver() { return qtyToDeliver; } void setQtyToDeliver(final Quantity qtyToDeliver) { t...
.stream() .map(PurchaseCandidate::getId) .collect(ImmutableList.toImmutableList()); } public Set<OrderAndLineId> getSalesOrderAndLineIds() { return ImmutableSet.copyOf(salesOrderAndLineIds); } public void calculateAndSetQtyToDeliver() { if (purchaseCandidates.isEmpty()) { return; } final Q...
repos\metasfresh-new_dawn_uat\backend\de.metas.purchasecandidate.base\src\main\java\de\metas\purchasecandidate\purchaseordercreation\localorder\PurchaseCandidateAggregate.java
1
请完成以下Java代码
public void setAD_Org_Mapping_ID (final int AD_Org_Mapping_ID) { if (AD_Org_Mapping_ID < 1) set_Value (COLUMNNAME_AD_Org_Mapping_ID, null); else set_Value (COLUMNNAME_AD_Org_Mapping_ID, AD_Org_Mapping_ID); } @Override public int getAD_Org_Mapping_ID() { return get_ValueAsInt(COLUMNNAME_AD_Org_Mappi...
@Override public void setDate_OrgChange (final java.sql.Timestamp Date_OrgChange) { set_Value (COLUMNNAME_Date_OrgChange, Date_OrgChange); } @Override public java.sql.Timestamp getDate_OrgChange() { return get_ValueAsTimestamp(COLUMNNAME_Date_OrgChange); } @Override public void setIsCloseInvoiceCandidat...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_OrgChange_History.java
1
请完成以下Java代码
public void setName (java.lang.String Name) { set_Value (COLUMNNAME_Name, Name); } /** Get Name. @return Alphanumeric identifier of the entity */ @Override public java.lang.String getName () { return (java.lang.String)get_Value(COLUMNNAME_Name); } /** Set Verarbeiten. @param Processing Verarbeiten...
*/ @Override public java.lang.String getVersion () { return (java.lang.String)get_Value(COLUMNNAME_Version); } /** Set WebUIServletListener Class. @param WebUIServletListenerClass Optional class to execute custom code on WebUI startup; A declared class needs to implement IWebUIServletListener */ @Over...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_EntityType.java
1
请完成以下Java代码
public ProcessEngineException unsupportedConcurrencyException(String scopeExecutionId, String className) { return new ProcessEngineException(exceptionMessage( "032", "Execution '{}' with execution behavior of class '{}' cannot have concurrency.", scopeExecutionId, className )); } pu...
logDebug( "040", "End concurrent execution in event subprocess"); } public ProcessEngineException missingDelegateVariableMappingParentClassException(String className, String delegateVarMapping) { return new ProcessEngineException( exceptionMessage("041", "Class '{}' doesn't implement '{}'.", clas...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\bpmn\behavior\BpmnBehaviorLogger.java
1
请在Spring Boot框架中完成以下Java代码
public class BPartnerLocationId implements RepoIdAware { int repoId; @NonNull BPartnerId bpartnerId; public static BPartnerLocationId ofRepoId(@NonNull final BPartnerId bpartnerId, final int bpartnerLocationId) { return new BPartnerLocationId(bpartnerId, bpartnerLocationId); } public static BPartnerLocation...
@Jacksonized @Builder private BPartnerLocationId(@NonNull final BPartnerId bpartnerId, final int repoId) { this.repoId = Check.assumeGreaterThanZero(repoId, "bpartnerLocationId"); this.bpartnerId = bpartnerId; } public static int toRepoId(@Nullable final BPartnerLocationId bpLocationId) { return bpLocation...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\bpartner\BPartnerLocationId.java
2
请在Spring Boot框架中完成以下Java代码
public boolean isCachable() { return true; } @Override public boolean isAbleToStore(Object value) { if (value == null) { return true; } return DateTime.class.isAssignableFrom(value.getClass()); } @Override public Object getValue(ValueFields valueFiel...
if (value != null) { if (valueFields.getTaskId() != null) { JodaDeprecationLogger.LOGGER.warn( "Using Joda-Time DateTime has been deprecated and will be removed in a future version. Task Variable {} in task {} was a Joda-Time DateTime. ", value...
repos\flowable-engine-main\modules\flowable-variable-service\src\main\java\org\flowable\variable\service\impl\types\JodaDateTimeType.java
2
请在Spring Boot框架中完成以下Java代码
protected void startAsyncJobAcquisitionForTenant(String tenantId) { asyncJobAcquisitionThreads.get(tenantId).start(); } protected void startResetExpiredJobsForTenant(String tenantId) { resetExpiredJobsThreads.get(tenantId).start(); } @Override protected void stopJobAcquisitionThrea...
} try { asyncJobAcquisitionThreads.get(tenantId).join(); } catch (InterruptedException e) { LOGGER.warn("Interrupted while waiting for the timer job acquisition thread to terminate", e); } try { resetExpiredJobsThreads.get(tenantId).join(); }...
repos\flowable-engine-main\modules\flowable-job-service\src\main\java\org\flowable\job\service\impl\asyncexecutor\multitenant\SharedExecutorServiceAsyncExecutor.java
2
请在Spring Boot框架中完成以下Java代码
public List<EventSubscription> executeList(CommandContext commandContext) { return eventSubscriptionServiceConfiguration.getEventSubscriptionEntityManager().findEventSubscriptionsByQueryCriteria(this); } // getters ////////////////////////////////////////// @Override public String getId() { ...
public Date getCreatedBefore() { return createdBefore; } public Date getCreatedAfter() { return createdAfter; } public String getTenantId() { return tenantId; } public Collection<String> getTenantIds() { return tenantIds; } public boolean isWithoutTena...
repos\flowable-engine-main\modules\flowable-eventsubscription-service\src\main\java\org\flowable\eventsubscription\service\impl\EventSubscriptionQueryImpl.java
2
请完成以下Java代码
public void paint (Graphics2D g2D, Rectangle bounds, boolean isView, boolean isCopy) { Env.setContext(m_ctx, CONTEXT_PAGE, m_pageInfo); // log.trace( "PrintContext", CONTEXT_PAGE + "=" + m_pageInfo); // StringBuffer sb = new StringBuffer(); if (m_pageCount != 1) // set to "Page 1 of 2" sb.append(Msg.getMs...
retValue = element.getDrillAcross (relativePoint, m_pageNo); } return retValue; } // getDrillAcross /** * set Background Image * @param image */ public void setBackgroundImage(Image image) { m_image = image; } /** * get Background Image * @return */ public Image getBackgroundImage() { re...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\print\layout\Page.java
1
请完成以下Java代码
public void start(LogLevel logLevel) { start(logLevel, Collections.emptyList()); } @Override public void start(LogLevel logLevel, List<String> arguments) { this.cli.run(new DockerCliCommand.ComposeStart(logLevel, arguments)); } @Override public void stop(Duration timeout) { stop(timeout, Collections.empty...
result.add(new DefaultRunningService(this.hostname, dockerComposeFile, psResponse, inspectResponse)); } return Collections.unmodifiableList(result); } private Map<String, DockerCliInspectResponse> inspect(List<DockerCliComposePsResponse> runningPsResponses) { List<String> ids = runningPsResponses.stream().map(...
repos\spring-boot-4.0.1\core\spring-boot-docker-compose\src\main\java\org\springframework\boot\docker\compose\core\DefaultDockerCompose.java
1
请完成以下Java代码
default DocumentPath getDocumentPath() { return getDocument().getDocumentPath(); } /** * Sets initial value / last saved value. * * This method is also: * <ul> * <li>updating the field value (see {@link #setValue(Object, IDocumentChangesCollector)} * <li>updating the validStatus * </ul> */ void ...
LookupValuesPage getLookupValuesForQuery(String query); Optional<LookupValue> getLookupValueById(@NonNull RepoIdAware id); ICalloutField asCalloutField(); /** @return field's valid state; never return null */ @Override DocumentValidStatus getValidStatus(); /** * Note: it's not clear why it is enough to only...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\model\IDocumentField.java
1
请在Spring Boot框架中完成以下Java代码
public Access setup() { return matcher(PayloadExchangeMatchers.setup()); } /** * Matches if * {@link org.springframework.security.rsocket.api.PayloadExchangeType#isRequest()} * is true, else not a match * @return the Access to set up the authorization rule. */ public Access anyRequest() { re...
public AuthorizePayloadsSpec authenticated() { return access(AuthenticatedReactiveAuthorizationManager.authenticated()); } public AuthorizePayloadsSpec hasAuthority(String authority) { return access(AuthorityReactiveAuthorizationManager.hasAuthority(authority)); } public AuthorizePayloadsSpec hasR...
repos\spring-security-main\config\src\main\java\org\springframework\security\config\annotation\rsocket\RSocketSecurity.java
2
请完成以下Java代码
public void setName (String Name) { 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 KeyNam...
public void setPA_Hierarchy_ID (int PA_Hierarchy_ID) { if (PA_Hierarchy_ID < 1) set_ValueNoCheck (COLUMNNAME_PA_Hierarchy_ID, null); else set_ValueNoCheck (COLUMNNAME_PA_Hierarchy_ID, Integer.valueOf(PA_Hierarchy_ID)); } /** Get Reporting Hierarchy. @return Optional Reporting Hierarchy - If not select...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_PA_Hierarchy.java
1
请完成以下Java代码
public Method getFunction(int index) { return functions[index]; } /** * Test if given index is bound to a function. * This method performs an index check. * @param index identifier index * @return <code>true</code> if the given index is bound to a function */ public boolean...
@Override public boolean equals(Object obj) { if (obj instanceof Bindings) { Bindings other = (Bindings) obj; return ( Arrays.equals(functions, other.functions) && Arrays.equals(variables, other.variables) && converter.equals(other.conv...
repos\Activiti-develop\activiti-core-common\activiti-juel-jakarta\src\main\java\org\activiti\core\el\juel\tree\Bindings.java
1
请完成以下Java代码
public void deleteChildRecords(@NonNull final I_DataEntry_Tab dataEntryTabRecord) { Services.get(IQueryBL.class) .createQueryBuilder(I_DataEntry_SubTab.class) .addEqualsFilter(I_DataEntry_SubTab.COLUMN_DataEntry_Tab_ID, dataEntryTabRecord.getDataEntry_Tab_ID()) .create() .delete(); } @CalloutMetho...
} dataEntryTabRecord.setSeqNo(maxSeqNo(dataEntryTabRecord) + 10); } private int maxSeqNo(@NonNull final I_DataEntry_Tab dataEntryTabRecord) { return Services .get(IQueryBL.class) .createQueryBuilder(I_DataEntry_Tab.class) .addOnlyActiveRecordsFilter() .addEqualsFilter(I_DataEntry_Tab.COLUMN_Data...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\dataentry\layout\interceptor\DataEntry_Tab.java
1
请完成以下Java代码
public class BaseEntity implements Serializable { @CreatedBy @Column(name = "create_by", updatable = false) @ApiModelProperty(value = "创建人", hidden = true) private String createBy; @LastModifiedBy @Column(name = "update_by") @ApiModelProperty(value = "更新人", hidden = true) private Strin...
private Timestamp updateTime; /* 分组校验 */ public @interface Create {} /* 分组校验 */ public @interface Update {} @Override public String toString() { ToStringBuilder builder = new ToStringBuilder(this); Field[] fields = this.getClass().getDeclaredFields(); try { ...
repos\eladmin-master\eladmin-common\src\main\java\me\zhengjie\base\BaseEntity.java
1
请在Spring Boot框架中完成以下Java代码
public final class MongoMetricsAutoConfiguration { @Configuration(proxyBeanMethods = false) @ConditionalOnClass(MongoMetricsCommandListener.class) @ConditionalOnBooleanProperty(name = "management.metrics.mongodb.command.enabled", matchIfMissing = true) static class MongoCommandMetricsConfiguration { @Bean @Co...
MongoConnectionPoolTagsProvider mongoConnectionPoolTagsProvider) { return new MongoMetricsConnectionPoolListener(meterRegistry, mongoConnectionPoolTagsProvider); } @Bean @ConditionalOnMissingBean MongoConnectionPoolTagsProvider mongoConnectionPoolTagsProvider() { return new DefaultMongoConnectionPoolTags...
repos\spring-boot-4.0.1\module\spring-boot-mongodb\src\main\java\org\springframework\boot\mongodb\autoconfigure\metrics\MongoMetricsAutoConfiguration.java
2
请完成以下Java代码
private void handleEvent(@NonNull final SumUpTransactionStatusChangedEvent event) { fireLocalListeners(event); } private void fireLocalListeners(final @NonNull SumUpTransactionStatusChangedEvent event) { try (final IAutoCloseable ignored = Env.switchContext(newTemporaryCtx(event))) { statusChangedListener...
fireLocalAndRemoteListenersAfterTrxCommit(SumUpTransactionStatusChangedEvent.ofNewTransaction(trx)); } public void fireStatusChangedIfNeeded( @NonNull final SumUpTransaction trx, @NonNull final SumUpTransaction trxPrev) { if (!isForceSendingChangeEvents() && hasChanges(trx, trxPrev)) { return; } f...
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.sumup\src\main\java\de\metas\payment\sumup\SumUpEventsDispatcher.java
1
请完成以下Java代码
protected ColumnVisibilityAction createColumnVisibilityAction(final TableColumn column) { ColumnVisibilityAction action = super.createColumnVisibilityAction(column); if (action != null && !canControlColumn(column)) { // NOTE: instead of just disabling it, better hide it at all //action.setEnabled(false); ...
{ return false; } final TableColumnExt columnExt = (TableColumnExt)column; final Object disableColumnControlObj = columnExt.getClientProperty(PROPERTY_DisableColumnControl); if (DisplayType.toBooleanNonNull(disableColumnControlObj, false)) { return false; } return true; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java\org\compiere\swing\table\AnnotatedColumnControlButton.java
1
请完成以下Java代码
public DocumentFilterList getFilters() {return DocumentFilterList.ofNullable(getRowsData().getFilter());} @Override protected OIViewData getRowsData() {return OIViewData.cast(super.getRowsData());} @Override public ViewHeaderProperties getHeaderProperties() {return getRowsData().getHeaderProperties();} public v...
{ return getRowsData().hasSelectedRows(); } public void clearUserInputAndResetFilter() { final OIViewData rowsData = getRowsData(); rowsData.clearUserInput(); rowsData.clearFilter(); invalidateAll(); } public OIRowUserInputParts getUserInput() {return getRowsData().getUserInput();} }
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.webui\src\main\java\de\metas\acct\gljournal_sap\select_open_items\OIView.java
1
请完成以下Java代码
public void removeAllItems() { toolbar.removeAll(); } public void addFavorite(final MTreeNode node) { if (node2item.get(node) != null) { // already added return; } final FavoriteItem item = new FavoriteItem(this, node); item.addMouseListener(itemMouseListener); item.addActionListener(itemActio...
return node2item.isEmpty(); } public void removeItem(final FavoriteItem item) { Check.assumeNotNull(item, "item not null"); final MTreeNode node = item.getNode(); final JComponent itemComp = item.getComponent(); node2item.remove(node); component2item.remove(itemComp); node.setOnBar(false); toolbar.r...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\grid\tree\FavoritesGroup.java
1
请完成以下Java代码
public void setValueAt(final Object value, final int rowIndex, final int columnIndex) { final IUserQueryRestriction row = getRow(rowIndex); if (INDEX_JOIN == columnIndex) { final Join join = (Join)value; row.setJoin(join); } else if (INDEX_COLUMNNAME == columnIndex) { final IUserQueryField searchF...
if (rowsToSet != null) { rows.addAll(rowsToSet); } fireTableDataChanged(); } public List<IUserQueryRestriction> getRows() { return new ArrayList<>(rows); } private final void addRow(final IUserQueryRestriction rowToAdd) { rows.add(rowToAdd); final int rowIndex = rows.size() - 1; fireTableRows...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\apps\search\FindAdvancedSearchTableModel.java
1
请在Spring Boot框架中完成以下Java代码
public class ArithmeticClientImpl { private HttpClient httpClient; public ArithmeticClientImpl(@Client("/") HttpClient httpClient) { this.httpClient = httpClient; } public String sum(float number1, float number2) { HttpRequest<String> req = HttpRequest.GET("/math/sum/" + number1 + "/" ...
return Single.fromPublisher(httpClient.retrieve(req)) .blockingGet(); } public String divide(float number1, float number2) { HttpRequest<String> req = HttpRequest.GET("/math/divide/" + number1 + "/" + number2); return Single.fromPublisher(httpClient.retrieve(req)) ...
repos\tutorials-master\microservices-modules\micronaut\src\main\java\com\baeldung\micronaut\vs\springboot\client\ArithmeticClientImpl.java
2
请完成以下Java代码
public void setStatus (String Status) { set_Value (COLUMNNAME_Status, Status); } /** Get Status. @return Status */ @Override public String getStatus () { return (String)get_Value(COLUMNNAME_Status); } /** Type AD_Reference_ID=540166 */ public static final int TYPE_AD_Reference_ID=540166; /** Box =...
set_Value (COLUMNNAME_Type, Type); } /** Get Art. @return Art */ @Override public String getType () { return (String)get_Value(COLUMNNAME_Type); } /** Set Gewicht. @param Weight Gewicht eines Produktes */ @Override public void setWeight (BigDecimal Weight) { set_Value (COLUMNNAME_Weight, We...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java-gen\org\compiere\model\X_M_PackagingTreeItem.java
1
请完成以下Java代码
public class TaxDeclarationDAO implements ITaxDeclarationDAO { @Override public void deleteTaxDeclarationLinesAndAccts(final I_C_TaxDeclaration taxDeclaration) { // NOTE: first delete the _Accts because there could be some dependencies to lines deleteTaxDeclarationAccts(taxDeclaration); deleteTaxDeclarationLin...
@Override public int retrieveLastLineNoOfTaxDeclarationLine(final I_C_TaxDeclaration taxDeclaration) { return Services.get(IQueryBL.class) .createQueryBuilder(I_C_TaxDeclarationLine.class, taxDeclaration) .addEqualsFilter(I_C_TaxDeclarationLine.COLUMNNAME_C_TaxDeclaration_ID, taxDeclaration.getC_TaxDeclarat...
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java\de\metas\acct\tax\impl\TaxDeclarationDAO.java
1
请完成以下Java代码
public boolean isNew() { return isNew; } @Override public void setNew(boolean isNew) { this.isNew = isNew; } @Override public String getDerivedFrom() { return null; } @Override public String getDerivedFromRoot() {
return null; } @Override public String getEngineVersion() { return null; } // common methods ////////////////////////////////////////////////////////// @Override public String toString() { return "CmmnDeploymentEntity[id=" + id + ", name=" + name + "]"; } }
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\persistence\entity\CmmnDeploymentEntityImpl.java
1
请完成以下Java代码
public ScheduledFuture<?> scheduleAtFixedRate(Runnable task, long period) { ScheduledFuture<?> future = super.scheduleAtFixedRate(task, period); ScheduledMethodRunnable runnable = (ScheduledMethodRunnable) task; scheduledTasks.put(runnable.getTarget(), future); return f...
} }) .build(); } @Bean public ItemWriter<Book> writer() { return items -> { logger.debug("writer..." + items.size()); for (Book item : items) { logger.debug(item.toString()); } }; } public AtomicInt...
repos\tutorials-master\spring-batch\src\main\java\com\baeldung\batchscheduler\SpringBatchScheduler.java
1
请在Spring Boot框架中完成以下Java代码
private List<CandidateQtyDetails> getByCandidateId(@NonNull final CandidateId candidateId) { return query.createQueryBuilder(I_MD_Candidate_QtyDetails.class) .addEqualsFilter(I_MD_Candidate_QtyDetails.COLUMNNAME_MD_Candidate_ID, candidateId) .stream() .map(this::fromDB) .collect(Collectors.toList());...
.collect(Collectors.toList()); saveAll(qtyDetails); } private void deleteByCandidateId(@NonNull final CandidateId candidateId) { query.createQueryBuilder(I_MD_Candidate_QtyDetails.class) .addEqualsFilter(I_MD_Candidate_QtyDetails.COLUMNNAME_MD_Candidate_ID, candidateId) .create() .delete(); } pri...
repos\metasfresh-new_dawn_uat\backend\de.metas.material\dispo-commons\src\main\java\de\metas\material\dispo\commons\repository\CandidateQtyDetailsRepository.java
2
请完成以下Java代码
public String getContextExtractorDelegateExpression() { return contextExtractorDelegateExpression; } public void setContextExtractorDelegateExpression(String contextExtractorDelegateExpression) { this.contextExtractorDelegateExpression = contextExtractorDelegateExpression; } public Str...
public void setPipelineDelegateExpression(String pipelineDelegateExpression) { this.pipelineDelegateExpression = pipelineDelegateExpression; } public ChannelEventKeyDetection getChannelEventKeyDetection() { return channelEventKeyDetection; } public void setChannelEventKeyDetection(Chan...
repos\flowable-engine-main\modules\flowable-event-registry-model\src\main\java\org\flowable\eventregistry\model\InboundChannelModel.java
1
请完成以下Java代码
public Map<String, String> getDescriptionTrls() { return descriptionTrls; } private void setDescription(final String adLanguage, final String descriptionTrl) { Check.assumeNotEmpty(adLanguage, "adLanguage is not empty"); if(descriptionTrl == null) { return; } if(descriptionTrls == null) { ...
private void setIsSOTrx(final boolean isSOTrx) { this._isSOTrx = isSOTrx; } public boolean isSOTrx() { return _isSOTrx; } public int getAD_Color_ID() { return AD_Color_ID; } public int getAD_Image_ID() { return AD_Image_ID; } public int getWinWidth() { return WinWidth; } public int ge...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\GridWindowVO.java
1
请完成以下Java代码
public Set<String> getActive() { return this.active; } public void setActive(Set<String> active) { this.active = active; } } /** * Skip options. */ public static class Skip { /** * Whether to skip in tests. */ private boolean inTests = true; public boolean isInTests() { return thi...
public enum Wait { /** * Always perform readiness checks. */ ALWAYS, /** * Never perform readiness checks. */ NEVER, /** * Only perform readiness checks if docker was started with lifecycle * management. */ ONLY_IF_STARTED } /** * TCP properties. */ public ...
repos\spring-boot-4.0.1\core\spring-boot-docker-compose\src\main\java\org\springframework\boot\docker\compose\lifecycle\DockerComposeProperties.java
1
请完成以下Java代码
public EventSubscriptionQuery includeEventSubscriptionsWithoutTenantId() { this.includeEventSubscriptionsWithoutTenantId = true; return this; } public EventSubscriptionQueryImpl eventType(String eventType) { ensureNotNull("event type", eventType); this.eventType = eventType; return this; } ...
checkQueryOk(); return commandContext .getEventSubscriptionManager() .findEventSubscriptionsByQueryCriteria(this,page); } //getters ////////////////////////////////////////// public String getEventSubscriptionId() { return eventSubscriptionId; } public String getEventName() { return...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\EventSubscriptionQueryImpl.java
1
请在Spring Boot框架中完成以下Java代码
public class Role { @Id //Slight increase in performance over GenerationType.IDENTITY @GeneratedValue(strategy = GenerationType.AUTO) @Column(name = "role_id", updatable = false, nullable = false) private long role_id; @Column(name = "role", nullable = false) private String role; /** ...
} public String getRole() { return role; } public void setRole(String role) { this.role = role; } public Set<User> getUsers() { return users; } public void setUsers(Set<User> users) { this.users = users; } }
repos\tutorials-master\spring-security-modules\spring-security-web-sockets\src\main\java\com\baeldung\springsecuredsockets\domain\Role.java
2
请在Spring Boot框架中完成以下Java代码
public class DocumentSalesRepDescriptorService { private static final String MSG_CUSTOMER_NEEDS_SALES_PARTNER = "de.metas.contracts.commission.MissingSalesPartner"; private final IBPartnerDAO bpartnerDAO = Services.get(IBPartnerDAO.class); public void updateFromCustomer(@NonNull final DocumentSalesRepDescriptor do...
salesPartnerCode, ImmutableSet.of(documentSalesRepDescriptor.getOrgId(), OrgId.ANY)); documentSalesRepDescriptor.setSalesRep(salesPartnerId.map(Beneficiary::of).orElse(null)); } public void updateFromSalesRep(@NonNull final DocumentSalesRepDescriptor documentSalesRepDescriptor) { if (documentSalesRepDescri...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\commission\salesrep\DocumentSalesRepDescriptorService.java
2
请完成以下Java代码
protected ExposableServletEndpoint createEndpoint(Object endpointBean, EndpointId id, Access defaultAccess, Collection<Operation> operations) { String rootPath = PathMapper.getRootPath(this.endpointPathMappers, id); return new DiscoveredServletEndpoint(this, endpointBean, id, rootPath, defaultAccess); } @Over...
@Override protected boolean isInvocable(ExposableServletEndpoint endpoint) { return true; } static class ServletEndpointDiscovererRuntimeHints implements RuntimeHintsRegistrar { @Override public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader) { hints.reflection().registerType(Ser...
repos\spring-boot-4.0.1\module\spring-boot-actuator\src\main\java\org\springframework\boot\actuate\endpoint\web\annotation\ServletEndpointDiscoverer.java
1
请在Spring Boot框架中完成以下Java代码
public void setProductName(String productName) { this.productName = productName == null ? null : productName.trim(); } public String getUserNo() { return userNo; } public void setUserNo(String userNo) { this.userNo = userNo == null ? null : userNo.trim(); } public Stri...
} public String getFundIntoTypeDesc() { return FundInfoTypeEnum.getEnum(this.getFundIntoType()).getDesc(); } public String getSecurityRating() { return securityRating; } public void setSecurityRating(String securityRating) { this.securityRating = securityRating; } ...
repos\roncoo-pay-master\roncoo-pay-service\src\main\java\com\roncoo\pay\user\entity\RpUserPayConfig.java
2
请完成以下Spring Boot application配置
management: endpoints: # Actuator HTTP 配置项,对应 WebEndpointProperties 配置类 web: exposure: include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。 spring: application: name: demo-appli
cation # 应用名 eureka: client: service-url: defaultZone: http://127.0.0.1:8761/eureka
repos\SpringBoot-Labs-master\lab-35\lab-35-admin-02-demo-application\src\main\resources\application.yaml
2
请完成以下Java代码
public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public Strin...
return createBy; } public void setCreateBy(String createBy) { this.createBy = createBy; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public String getUpdateBy() { retu...
repos\springBoot-master\springboot-swagger-ui\src\main\java\com\abel\example\bean\User.java
1
请完成以下Java代码
public Collection<SecurPharmProduct> getProductsByHuIds(@NonNull final Collection<HuId> huIds) { if (huIds.isEmpty()) { return ImmutableList.of(); } final ImmutableSet<SecurPharmProductId> ids = queryBL .createQueryBuilder(I_M_Securpharm_Productdata_Result.class) .addInArrayFilter(I_M_Securpharm_Pr...
.productCodeType(ProductCodeType.ofCode(record.getProductCodeType())) // .lot(record.getLotNumber()) .serialNumber(record.getSerialNumber()) // .expirationDate(JsonExpirationDate.ofLocalDate(TimeUtil.asLocalDate(record.getExpirationDate()))) // .activeStatus(JsonProductPackageState.ofYesNoSt...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma.securpharm\src\main\java\de\metas\vertical\pharma\securpharm\product\SecurPharmProductRepository.java
1
请完成以下Java代码
public void setA_Purchase_Option (boolean A_Purchase_Option) { set_Value (COLUMNNAME_A_Purchase_Option, Boolean.valueOf(A_Purchase_Option)); } /** Get Purchase Option. @return Purchase Option */ public boolean isA_Purchase_Option () { Object oo = get_Value(COLUMNNAME_A_Purchase_Option); if (oo != null)...
if (bd == null) return Env.ZERO; return bd; } /** Set Business Partner . @param C_BPartner_ID Identifies a Business Partner */ 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, In...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_A_Asset_Info_Fin.java
1
请完成以下Java代码
public String getReferenceIdentifier(ModelElementInstance referenceSourceElement) { return referenceSourceAttribute.getValue(referenceSourceElement); } protected void setReferenceIdentifier(ModelElementInstance referenceSourceElement, String referenceIdentifier) { referenceSourceAttribute.setValue(referenc...
return referenceSourceAttribute.getOwningElementType(); } protected void updateReference(ModelElementInstance referenceSourceElement, String oldIdentifier, String newIdentifier) { String referencingAttributeValue = getReferenceIdentifier(referenceSourceElement); if(oldIdentifier != null && oldIdentifier.eq...
repos\camunda-bpm-platform-master\model-api\xml-model\src\main\java\org\camunda\bpm\model\xml\impl\type\reference\AttributeReferenceImpl.java
1
请在Spring Boot框架中完成以下Java代码
public static Map<String, Object> getCertificates(String mchId, String merchantSecret) { logger.info("官方微信--获取平台证书"); SortedMap<String, Object> paramMap = new TreeMap<>(); paramMap.put("mch_id", mchId); paramMap.put("nonce_str", createNonceStr()); paramMap.put("sign_type", "HMAC-...
public static String aesgcmDecrypt(String aad, String iv, String cipherText, String APIv3Secret) throws Exception { final Cipher cipher = Cipher.getInstance("AES/GCM/NoPadding", "SunJCE"); SecretKeySpec key = new SecretKeySpec(APIv3Secret.getBytes(), "AES"); GCMParameterSpec spec = new GCMParame...
repos\roncoo-pay-master\roncoo-pay-service\src\main\java\com\roncoo\pay\banklink\utils\weixin\WxCommonUtil.java
2
请完成以下Java代码
protected List<String> getReferenceIdentifiers(ModelElementInstance referenceSourceElement) { String referenceIdentifiers = getReferenceIdentifier(referenceSourceElement); return StringUtil.splitListBySeparator(referenceIdentifiers, separator); } protected void setReferenceIdentifiers(ModelElementInstance ...
referenceIdentifiers.remove(oldIdentifier); referenceIdentifiers.add(index, newIdentifier); setReferenceIdentifiers(referenceSourceElement, referenceIdentifiers); } } @Override public void referencedElementRemoved(ModelElementInstance referenceTargetElement, Object referenceIdentifier) { for ...
repos\camunda-bpm-platform-master\model-api\xml-model\src\main\java\org\camunda\bpm\model\xml\impl\type\reference\IdsElementReferenceCollectionImpl.java
1
请完成以下Java代码
public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } public String getContentId() { return contentId; } public void setContentId(String contentId) { this.contentId = contentId; } public ByteArrayEntity getContent() ...
public void setUserId(String userId) { this.userId = userId; } public String getUserId() { return userId; } public Date getTime() { return time; } public void setTime(Date time) { this.time = time; } }
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\persistence\entity\AttachmentEntityImpl.java
1
请完成以下Java代码
public T findOne(final long id) { return (T) getCurrentSession().get(clazz, id); } @Override public List<T> findAll() { return getCurrentSession().createQuery("from " + clazz.getName()).getResultList(); } @Override public void create(final T entity) { Preconditions.chec...
} @Override public void delete(final T entity) { Preconditions.checkNotNull(entity); getCurrentSession().delete(entity); } @Override public void deleteById(final long entityId) { final T entity = findOne(entityId); Preconditions.checkState(entity != null); d...
repos\tutorials-master\persistence-modules\hibernate-mapping\src\main\java\com\baeldung\hibernate\manytomany\dao\common\AbstractHibernateDao.java
1
请完成以下Java代码
public int hashCode() { return Objects.hash(this.requiredFactor, this.reason); } @Override public String toString() { return "RequiredFactorError{" + "requiredFactor=" + this.requiredFactor + ", reason=" + this.reason + '}'; } public static RequiredFactorError createMissing(RequiredFactor requiredFactor) { ...
* @author Rob Winch * @since 7.0 */ private enum Reason { /** * The authority was missing. * @see #isMissing() */ MISSING, /** * The authority was considered expired. * @see #isExpired() */ EXPIRED } }
repos\spring-security-main\core\src\main\java\org\springframework\security\authorization\RequiredFactorError.java
1
请完成以下Java代码
public void setIsSold (final boolean IsSold) { set_Value (COLUMNNAME_IsSold, IsSold); } @Override public boolean isSold() { return get_ValueAsBoolean(COLUMNNAME_IsSold); } @Override public void setM_HU_PI_Item_Product (final @Nullable java.lang.String M_HU_PI_Item_Product) { set_Value (COLUMNNAME_M_HU...
@Override public void setProductValue (final @Nullable java.lang.String ProductValue) { set_Value (COLUMNNAME_ProductValue, ProductValue); } @Override public java.lang.String getProductValue() { return get_ValueAsString(COLUMNNAME_ProductValue); } @Override public void setQtyAvailable (final @Nullable B...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java-gen\de\metas\handlingunits\model\X_RV_HU_Quantities.java
1
请完成以下Java代码
public void setIsHtml (boolean IsHtml) { set_Value (COLUMNNAME_IsHtml, Boolean.valueOf(IsHtml)); } /** Get HTML. @return Text has HTML tags */ public boolean isHtml () { Object oo = get_Value(COLUMNNAME_IsHtml); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValu...
/** Get Mail Text 3. @return Optional third text part used for Mail message */ public String getMailText3 () { return (String)get_Value(COLUMNNAME_MailText3); } /** Set Name. @param Name Alphanumeric identifier of the entity */ public void setName (String Name) { set_Value (COLUMNNAME_Name, Nam...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_R_MailText.java
1
请完成以下Java代码
public static <T> boolean elementIsNotContainedInList(T element, Collection<T> values) { if (element != null && values != null) { return !values.contains(element); } else { return false; } } /** * Checks if the element is contained within the list of values. If the element, or the li...
return elementIsContainedInList(element, Arrays.asList(values)); } else { return false; } } /** * Returns any element if obj1.compareTo(obj2) == 0 */ public static <T extends Comparable<T>> T min(T obj1, T obj2) { return obj1.compareTo(obj2) <= 0 ? obj1 : obj2; } /** * Returns...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\util\CompareUtil.java
1
请完成以下Java代码
public void setEnabledByCaptureSequence(final LocationCaptureSequence captureSequence) { final boolean enabled = captureSequence.hasPart(partName); setEnabledByCaptureSequence(enabled); } private void setEnabledByCaptureSequence(final boolean enabledByCaptureSequence) { if (this.enabledByCaptureSequen...
{ label.setText(labelText); } public JLabel getLabel() { return label; } public JComponent getField() { return field; } } } // VLocationDialog
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\grid\ed\VLocationDialog.java
1
请完成以下Java代码
public de.metas.vertical.pharma.vendor.gateway.msv3.model.I_MSV3_FaultInfo getMSV3_FaultInfo() throws RuntimeException { return get_ValueAsPO(COLUMNNAME_MSV3_FaultInfo_ID, de.metas.vertical.pharma.vendor.gateway.msv3.model.I_MSV3_FaultInfo.class); } @Override public void setMSV3_FaultInfo(de.metas.vertical.pharm...
set_Value (COLUMNNAME_MSV3_FaultInfo_ID, null); else set_Value (COLUMNNAME_MSV3_FaultInfo_ID, Integer.valueOf(MSV3_FaultInfo_ID)); } /** Get MSV3_FaultInfo. @return MSV3_FaultInfo */ @Override public int getMSV3_FaultInfo_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_MSV3_FaultInfo_ID); if (ii...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma.vendor.gateway.msv3\src\main\java-gen\de\metas\vertical\pharma\vendor\gateway\msv3\model\X_MSV3_Bestellung_Transaction.java
1