instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
private static IPricingResult calculatePricingResult(@NonNull final org.compiere.model.I_M_InOutLine fromInOutLine) { final IInOutBL inOutBL = Services.get(IInOutBL.class); return inOutBL.getProductPrice(fromInOutLine); } @Nullable public static PriceAndTax calculatePriceAndTaxAndUpdate( @NonNull final I_C_...
icRecord.setC_Tax_ID(Tax.C_TAX_ID_NO_TAX_FOUND); // make sure that we will be able to save the icRecord } setError(icRecord, e); return null; } } private static void setError( @NonNull final I_C_Invoice_Candidate ic, @NonNull final Exception ex) { logger.debug("Set IsInDispute=true, because an ...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\inout\invoicecandidate\M_InOutLine_Handler.java
1
请完成以下Java代码
public void deleteAll() { getDbEntityManager().delete(MeterLogEntity.class, DELETE_ALL_METER, null); } public void deleteByTimestampAndReporter(Date timestamp, String reporter) { Map<String, Object> parameters = new HashMap<>(); if (timestamp != null) { parameters.put("milliseconds", timestamp.ge...
if (minuteTo - minuteFrom + 1 < 60) { parameters.put("minuteFrom", minuteFrom); parameters.put("minuteTo", minuteTo); } parameters.put("batchSize", batchSize); return getDbEntityManager() .deletePreserveOrder(TaskMeterLogEntity.class, DELETE_TASK_METER_BY_REMOVAL_TIME, new ListQue...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\MeterLogManager.java
1
请完成以下Java代码
public Long getId() { return id; } /** * @param id the id to set */ public void setId(Long id) { this.id = id; } /** * @return the name */ public String getName() { return name; } /** * @param name the name to set */ public voi...
if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; CarMaker other = (CarMaker) obj; if (id == null) { if (other.id != null) return false; } else if (!id.equal...
repos\tutorials-master\apache-olingo\src\main\java\com\baeldung\examples\olingo2\domain\CarMaker.java
1
请完成以下Java代码
Mono<Void> delete(String sessionId) { String sessionIndexesKey = getSessionIndexesKey(sessionId); return this.sessionRedisOperations.opsForSet() .members(sessionIndexesKey) .flatMap((indexKey) -> removeSessionFromIndex((String) indexKey, sessionId)) .then(this.sessionRedisOperations.delete(sessionIndexesKe...
private void updateIndexKeyPrefix() { this.indexKeyPrefix = this.namespace + "sessions:index:"; } private String getSessionIndexesKey(String sessionId) { return this.namespace + "sessions:" + sessionId + ":idx"; } private String getIndexKey(String indexName, String indexValue) { return this.indexKeyPrefix +...
repos\spring-session-main\spring-session-data-redis\src\main\java\org\springframework\session\data\redis\ReactiveRedisSessionIndexer.java
1
请在Spring Boot框架中完成以下Java代码
public abstract class SlicePagingRepositoryImplementation<T> { public static final String NULL_ENTITY = "Entity cannot be null"; public static final String NULL_PAGEABLE = "Pageable cannot be null"; @Autowired private EntityManager entityManager; private final Class<T> entityClass; publi...
private Slice<T> findAll(Pageable pageable, Class<T> entityClass) { final String sql = "SELECT e FROM " + entityClass.getSimpleName() + " e"; TypedQuery<T> query = entityManager.createQuery(sql, entityClass); return this.readSlice(query, pageable); } private Slice<T> readSlice(final T...
repos\Hibernate-SpringBoot-master\HibernateSpringBootSliceAllSimpleSql\src\main\java\com\bookstore\repository\impl\SlicePagingRepositoryImplementation.java
2
请完成以下Java代码
public void setWithoutTenantId(Boolean withoutTenantId) { this.withoutTenantId = withoutTenantId; } @CamundaQueryParam(value="suspended", converter = BooleanConverter.class) public void setSuspended(Boolean suspended) { this.suspended = suspended; } @CamundaQueryParam(value="createdBy") public voi...
query.suspended(); } if (FALSE.equals(suspended)) { query.active(); } if (userId != null) { query.createdBy(userId); } if (startedBefore != null) { query.startedBefore(startedBefore); } if (startedAfter != null) { query.startedAfter(startedAfter); } if (TR...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\batch\BatchStatisticsQueryDto.java
1
请完成以下Java代码
public void beforeSave(final I_C_RfQ rfq) { final IRfQWorkDatesAware workDatesAware = InterfaceWrapperHelper.create(rfq, IRfQWorkDatesAware.class); RfQWorkDatesUtil.updateWorkDates(workDatesAware); } @CalloutMethod(columnNames = I_C_RfQ.COLUMNNAME_DateWorkStart, skipIfCopying = true) public void onDateWorkStar...
} @CalloutMethod(columnNames = I_C_RfQ.COLUMNNAME_C_RfQ_Topic_ID, skipIfCopying = true) public void onC_RfQTopic(final I_C_RfQ rfq) { final I_C_RfQ_Topic rfqTopic = rfq.getC_RfQ_Topic(); if (rfqTopic == null) { return; } final String rfqTypeDefault = rfqTopic.getRfQType(); if (rfqTypeDefault != null...
repos\metasfresh-new_dawn_uat\backend\de.metas.rfq\src\main\java\de\metas\rfq\model\interceptor\C_RfQ.java
1
请完成以下Java代码
public Integer getHelpCount() { return helpCount; } public void setHelpCount(Integer helpCount) { this.helpCount = helpCount; } public Integer getShowStatus() { return showStatus; } public void setShowStatus(Integer showStatus) { this.showStatus = showStatus; ...
StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", name=").append(name); sb.append(", icon=").append(icon); sb.append(", helpCount=")....
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\CmsHelpCategory.java
1
请完成以下Java代码
public boolean isGenerateComments() { return true; } @Override public I_AD_Migration getMigration(String key) { final Properties ctx = Env.getCtx(); final Integer migrationId = migrationsMap.get(key); if (migrationId == null || migrationId <= 0) { return null; } I_AD_Migration migration = migra...
// Trying to reload migration = Services.get(IMigrationDAO.class).retrieveMigrationOrNull(ctx, migrationId); if (migration != null) { putMigration(key, migration); return migration; } return migration; } @Override public void putMigration(String key, I_AD_Migration migration) { migrationsMap.put...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\migration\logger\impl\SessionMigrationLoggerContext.java
1
请在Spring Boot框架中完成以下Java代码
class ReflectionWrapper { private final Class<?> type; private final Object instance; ReflectionWrapper(String type, Object instance) { this.type = findClass(instance.getClass().getClassLoader(), type); this.instance = this.type.cast(instance); } protected final Object getInstance() { return this.instanc...
protected static Class<?> findClass(ClassLoader classLoader, String name) { try { return Class.forName(name, false, classLoader); } catch (ClassNotFoundException ex) { throw new IllegalStateException(ex); } } protected static Method findMethod(Class<?> type, String name, Class<?>... parameterTypes) { ...
repos\spring-boot-4.0.1\configuration-metadata\spring-boot-configuration-processor\src\main\java\org\springframework\boot\configurationprocessor\fieldvalues\javac\ReflectionWrapper.java
2
请完成以下Java代码
public boolean isRemitTo() { return get_ValueAsBoolean(COLUMNNAME_IsRemitTo); } @Override public void setIsShipTo (final boolean IsShipTo) { set_Value (COLUMNNAME_IsShipTo, IsShipTo); } @Override public boolean isShipTo() { return get_ValueAsBoolean(COLUMNNAME_IsShipTo); } @Override public void s...
/** Main Producer = MP */ public static final String ROLE_MainProducer = "MP"; /** Hostpital = HO */ public static final String ROLE_Hostpital = "HO"; /** Physician Doctor = PD */ public static final String ROLE_PhysicianDoctor = "PD"; /** General Practitioner = GP */ public static final String ROLE_GeneralPrac...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_BP_Relation.java
1
请在Spring Boot框架中完成以下Java代码
private I_AD_User getConfiguredESUser() { final UserId configuredUserId = UserId.ofRepoId(resolveAuthRelatedSysConfig(SYS_CONFIG_EXTERNAL_SYSTEM_AD_USER_ID)); return userDAO.getById(configuredUserId); } @NonNull private Integer resolveAuthRelatedSysConfig(@NonNull final String sysConfig) { final String sys...
} @NonNull private static JsonExternalSystemMessage buildJsonExternalSystemMessage(@NonNull final String authToken) throws JsonProcessingException { final JsonExternalSystemMessagePayload payload = JsonExternalSystemMessagePayload.builder() .authToken(authToken) .build(); return JsonExternalSystemMessa...
repos\metasfresh-new_dawn_uat\backend\de.metas.externalsystem\src\main\java\de\metas\externalsystem\externalservice\authorization\ExternalSystemAuthorizationService.java
2
请完成以下Java代码
public void setCustomer_Group_ID (final int Customer_Group_ID) { if (Customer_Group_ID < 1) set_Value (COLUMNNAME_Customer_Group_ID, null); else set_Value (COLUMNNAME_Customer_Group_ID, Customer_Group_ID); } @Override public int getCustomer_Group_ID() { return get_ValueAsInt(COLUMNNAME_Customer_Gro...
} @Override public void setPercentOfBasePoints (final BigDecimal PercentOfBasePoints) { set_Value (COLUMNNAME_PercentOfBasePoints, PercentOfBasePoints); } @Override public BigDecimal getPercentOfBasePoints() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_PercentOfBasePoints); return bd != null...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java-gen\de\metas\contracts\commission\model\X_C_CommissionSettingsLine.java
1
请完成以下Java代码
protected void writeHeaders() { if (isDisableOnResponseCommitted()) { return; } HeaderWriterFilter.this.writeHeaders(this.request, getHttpResponse()); } private HttpServletResponse getHttpResponse() { return (HttpServletResponse) getResponse(); } } static class HeaderWriterRequest extends Htt...
private final HeaderWriterResponse response; HeaderWriterRequestDispatcher(RequestDispatcher delegate, HeaderWriterResponse response) { this.delegate = delegate; this.response = response; } @Override public void forward(ServletRequest request, ServletResponse response) throws ServletException, IOExcepti...
repos\spring-security-main\web\src\main\java\org\springframework\security\web\header\HeaderWriterFilter.java
1
请完成以下Java代码
public Signal newInstance(ModelTypeInstanceContext instanceContext) { return new SignalImpl(instanceContext); } }); nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME) .build(); structureRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_STRUCTURE_REF) ....
} public void setName(String name) { nameAttribute.setValue(this, name); } public ItemDefinition getStructure() { return structureRefAttribute.getReferenceTargetElement(this); } public void setStructure(ItemDefinition structure) { structureRefAttribute.setReferenceTargetElement(this, structure)...
repos\camunda-bpm-platform-master\model-api\bpmn-model\src\main\java\org\camunda\bpm\model\bpmn\impl\instance\SignalImpl.java
1
请完成以下Java代码
public class TaskImpl extends ActivityImpl implements Task { /** camunda extensions */ protected static Attribute<Boolean> camundaAsyncAttribute; public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Task.class, BPMN_ELEMENT_TASK) ...
*/ @Deprecated public boolean isCamundaAsync() { return camundaAsyncAttribute.getValue(this); } /** * @deprecated use setCamundaAsyncBefore(isCamundaAsyncBefore) instead. */ @Deprecated public void setCamundaAsync(boolean isCamundaAsync) { camundaAsyncAttribute.setValue(this, isCamundaAsync);...
repos\camunda-bpm-platform-master\model-api\bpmn-model\src\main\java\org\camunda\bpm\model\bpmn\impl\instance\TaskImpl.java
1
请完成以下Java代码
private String forwarded(URI uri, @Nullable String hostHeader) { if (StringUtils.hasText(hostHeader)) { return "host=" + hostHeader; } if ("http".equals(uri.getScheme())) { return "host=" + uri.getHost(); } return String.format("host=%s;proto=%s", uri.getHost(), uri.getScheme()); } private @Nullable ...
BindingResult result = (BindingResult) bindingContext.getModel().asMap().get(key); Object target = result.getTarget(); if (target != null) { return Mono.just(target); } } } return null; } protected static class BodyGrabber { public Publisher<Object> body(@RequestBody Publisher<Object> body...
repos\spring-cloud-gateway-main\spring-cloud-gateway-proxyexchange-webflux\src\main\java\org\springframework\cloud\gateway\webflux\ProxyExchange.java
1
请完成以下Java代码
private Step step() throws Exception { return stepBuilderFactory.get("step") .<TestData, TestData>chunk(2) .reader(simpleReader) .writer(fileItemWriter()) .build(); } private FlatFileItemWriter<TestData> fileItemWriter() throws Exception {...
LineAggregator<TestData> aggregator = item -> { try { ObjectMapper mapper = new ObjectMapper(); return mapper.writeValueAsString(item); } catch (JsonProcessingException e) { e.printStackTrace(); } return ""; }; ...
repos\SpringAll-master\69.spring-batch-itemwriter\src\main\java\cc\mrbird\batch\job\FileItemWriterDemo.java
1
请在Spring Boot框架中完成以下Java代码
public final class SupplierClientRegistrationRepository implements ClientRegistrationRepository, Iterable<ClientRegistration> { private final Supplier<? extends ClientRegistrationRepository> repositorySupplier; /** * Constructs an {@code SupplierClientRegistrationRepository} using the provided * parameters. ...
public ClientRegistration findByRegistrationId(String registrationId) { Assert.hasText(registrationId, "registrationId cannot be empty"); return this.repositorySupplier.get().findByRegistrationId(registrationId); } /** * Returns an {@code Iterator} of {@link ClientRegistration}. * @return an {@code Iterator<...
repos\spring-security-main\oauth2\oauth2-client\src\main\java\org\springframework\security\oauth2\client\registration\SupplierClientRegistrationRepository.java
2
请在Spring Boot框架中完成以下Java代码
private ProductionDetail createProductionDetailForPPOrder( @NonNull final PPOrderCreatedEvent ppOrderEvent) { final PPOrder ppOrder = ppOrderEvent.getPpOrder(); return ProductionDetail.builder() .advised(Flag.FALSE_DONT_UPDATE) .pickDirectlyIfFeasible(Flag.of(ppOrderEvent.isDirectlyPickIfFeasible())) ...
} final DemandDetailsQuery demandDetailsQuery = DemandDetailsQuery. ofShipmentScheduleId(ppOrderData.getShipmentScheduleId()); final MaterialDescriptorQuery materialDescriptorQuery = MaterialDescriptorQuery.builder() .productId(ppOrderData.getProductDescriptor().getProductId()) .warehouseId(ppOrderDat...
repos\metasfresh-new_dawn_uat\backend\de.metas.material\dispo-service\src\main\java\de\metas\material\dispo\service\event\handler\pporder\PPOrderCreatedHandler.java
2
请在Spring Boot框架中完成以下Java代码
private static class ForecastHeaderKey { public static final String IMPORT_ORDER_BY = I_I_Forecast.COLUMNNAME_Name + ',' + I_I_Forecast.COLUMNNAME_DatePromised + ',' + I_I_Forecast.COLUMNNAME_BPValue + ',' + I_I_Forecast.COLUMNNAME_WarehouseValue + ',' + I_I_Forecast.COLUMNNAME_PriceList + ',' + ...
{ return ForecastHeaderKey.builder() .name(StringUtils.trimBlankToOptional(importRecord.getName()).orElseThrow(() -> new FillMandatoryException("Name"))) .warehouseId(WarehouseId.ofRepoId(importRecord.getM_Warehouse_ID())) .priceListId(PriceListId.ofRepoIdOrNull(importRecord.getM_PriceList_ID())) ...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\mforecast\impexp\ForecastImportProcess.java
2
请在Spring Boot框架中完成以下Java代码
public int hashCode() { return Objects.hash(_id, firstName, lastName, email, timestamp); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Users {\n"); sb.append(" _id: ").append(toIndentedString(_id)).append("\n"); sb.append(" firstNa...
sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); ...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\alberta\alberta-patient-api\src\main\java\io\swagger\client\model\Users.java
2
请在Spring Boot框架中完成以下Java代码
public class CompositeItemProcessorDemo { @Autowired private JobBuilderFactory jobBuilderFactory; @Autowired private StepBuilderFactory stepBuilderFactory; @Autowired private ListItemReader<TestData> simpleReader; @Autowired private TestDataFilterItemProcessor testDataFilterItemProcesso...
.reader(simpleReader) .processor(compositeItemProcessor()) .writer(list -> list.forEach(System.out::println)) .build(); } // CompositeItemProcessor组合多种中间处理器 private CompositeItemProcessor<TestData, TestData> compositeItemProcessor() { CompositeItemPro...
repos\SpringAll-master\70.spring-batch-itemprocessor\src\main\java\cc\mrbird\batch\entity\job\CompositeItemProcessorDemo.java
2
请完成以下Java代码
public org.compiere.model.I_M_InventoryLine getM_InventoryLine() { return get_ValueAsPO(COLUMNNAME_M_InventoryLine_ID, org.compiere.model.I_M_InventoryLine.class); } @Override public void setM_InventoryLine(org.compiere.model.I_M_InventoryLine M_InventoryLine) { set_ValueFromPO(COLUMNNAME_M_InventoryLine_ID, ...
Integer ii = (Integer)get_Value(COLUMNNAME_M_InventoryLineMA_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Bewegungs-Menge. @param MovementQty Quantity of a product moved. */ @Override public void setMovementQty (java.math.BigDecimal MovementQty) { set_Value (COLUMNNAME_Movement...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_InventoryLineMA.java
1
请完成以下Java代码
public void setDataEntry_SubTab_ID (int DataEntry_SubTab_ID) { if (DataEntry_SubTab_ID < 1) set_ValueNoCheck (COLUMNNAME_DataEntry_SubTab_ID, null); else set_ValueNoCheck (COLUMNNAME_DataEntry_SubTab_ID, Integer.valueOf(DataEntry_SubTab_ID)); } /** Get Unterregister. @return Unterregister */ @Overr...
{ if (Record_ID < 0) set_ValueNoCheck (COLUMNNAME_Record_ID, null); else set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); } /** Get Datensatz-ID. @return Direct internal record ID */ @Override public int getRecord_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_Record_ID...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\de\metas\dataentry\model\X_DataEntry_Record.java
1
请完成以下Java代码
private WarehouseId findPickingWarehouseId(@NonNull final I_C_Order order) { if (!order.isSOTrx()) { return null; } final BPartnerId bpartnerId = BPartnerId.ofRepoIdOrNull(order.getC_BPartner_ID()); if (bpartnerId == null) { return null; } final IBPartnerDAO bpartnersRepo = Services.get(IBPartn...
final WarehouseId customerWarehouseId = WarehouseId.ofRepoIdOrNull(bp.getM_Warehouse_ID()); if (customerWarehouseId != null && isPickingWarehouse(customerWarehouseId)) { return customerWarehouseId; } // if order is a purchase order, return null return null; } private boolean isPickingWarehouse(final Wa...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\org\adempiere\warehouse\spi\impl\WarehouseAdvisor.java
1
请完成以下Java代码
public class DictionaryUtil { /** * 给某个字典排序 * @param path * @return */ public static boolean sortDictionary(String path) { try { BufferedReader br = new BufferedReader(new InputStreamReader(IOUtil.newInputStream(path), "UTF-8")); TreeMap<String, St...
} br.close(); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(IOUtil.newOutputStream(path), "UTF-8")); for (Map.Entry<String, String> entry : map.entrySet()) { bw.write(entry.getValue()); bw.newLine(); } ...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\corpus\util\DictionaryUtil.java
1
请完成以下Java代码
public void doStop() { // nothing } class DispatchStartMessageDeployedEvents implements Command<Void> { private final List<StartMessageDeployedEvent> messageDeployedEvents; public DispatchStartMessageDeployedEvents(List<StartMessageDeployedEvent> messageDeployedEvents) { t...
this.processDefinitionId = processDefinitionId; } public List<MessageEventSubscriptionEntity> execute(CommandContext commandContext) { return new EventSubscriptionQueryImpl(commandContext) .eventType(MESSAGE) .configuration(processDefinitionId) ...
repos\Activiti-develop\activiti-core\activiti-spring-boot-starter\src\main\java\org\activiti\spring\StartMessageDeployedEventProducer.java
1
请在Spring Boot框架中完成以下Java代码
public @Nullable String getProtocolHeader() { return this.protocolHeader; } public void setProtocolHeader(@Nullable String protocolHeader) { this.protocolHeader = protocolHeader; } public String getProtocolHeaderHttpsValue() { return this.protocolHeaderHttpsValue; } public String getHostHeader()...
} /** * When to use APR. */ public enum UseApr { /** * Always use APR and fail if it's not available. */ ALWAYS, /** * Use APR if it is available. */ WHEN_AVAILABLE, /** * Never use APR. */ NEVER } }
repos\spring-boot-4.0.1\module\spring-boot-tomcat\src\main\java\org\springframework\boot\tomcat\autoconfigure\TomcatServerProperties.java
2
请完成以下Java代码
private static String unsignedDivide(String a, String b) { validateUnsignedBinaryString(a); validateUnsignedBinaryString(b); if (compareBinaryStrings(b, a) > 0) { return "0"; } // Remove leading zeros a = a.replaceFirst("^0+(?!$)", ""); b = b...
if (s.startsWith("+") || s.startsWith("-")) { return s.substring(1); } return s; } private static boolean isPositive(String s) { if (s == null || s.isEmpty()) { throw new IllegalArgumentException("String cannot be null or empty"); } char firs...
repos\tutorials-master\core-java-modules\core-java-numbers-8\src\main\java\com\baeldung\arbitrarylengthbinaryintegers\BinaryStringOperations.java
1
请完成以下Java代码
public java.lang.String getHostKey() { return (java.lang.String)get_Value(COLUMNNAME_HostKey); } /** * Status AD_Reference_ID=540384 * Reference name: C_Print_Job_Instructions_Status */ public static final int STATUS_AD_Reference_ID=540384; /** Pending = P */ public static final String STATUS_Pending =...
/** Error = E */ public static final String STATUS_Error = "E"; @Override public void setStatus (java.lang.String Status) { set_Value (COLUMNNAME_Status, Status); } @Override public java.lang.String getStatus() { return (java.lang.String)get_Value(COLUMNNAME_Status); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.printing\de.metas.printing.base\src\main\java-gen\de\metas\printing\model\X_C_Print_Job_Instructions.java
1
请完成以下Java代码
public boolean isEmpty() {return selectionId == null && (ids == null || ids.isEmpty());} public boolean isDatabaseSelection() { return selectionId != null; } public interface CaseMapper { void empty(); void fixedSet(@NonNull ImmutableSet<InvoiceCandidateId> ids); void selectionId(@NonNull PInstanceId s...
public void apply(@NonNull final CaseMapper mapper) { if (selectionId != null) { mapper.selectionId(selectionId); } else if (ids != null && !ids.isEmpty()) { mapper.fixedSet(ids); } else { mapper.empty(); } } }
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\invoicecandidate\api\InvoiceCandidateIdsSelection.java
1
请完成以下Java代码
public int getAD_Column_ID() { return AD_Column_ID; } /** * Get AD_Image_ID * @return image */ public int getAD_Image_ID() { return AD_Image_ID; } /** * Get AD_Color_ID * @return color */ public int getAD_Color_ID() { return AD_Color_ID; } /** * Get PA_Goal_ID * @return goal */ pu...
rs.close(); pstmt.close(); } catch (SQLException e) { log.error("MWorkbench.initDesktopWorkbenches", e); return false; } return true; } // initDesktopWorkbenches /** * Get Window Count * @return no of windows */ public int getWindowCount() { return m_workbenches.size(); } // get...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\MDesktop.java
1
请在Spring Boot框架中完成以下Java代码
public void run() { deferredResult.setErrorResult( ResponseEntity.status(HttpStatus.REQUEST_TIMEOUT).body("Request timeout occurred.")); } }); ForkJoinPool.commonPool().submit(() -> { LOG.info("Processing in separate thread"); try { Thread.sleep(600l); deferredResult.setResult(ResponseEnt...
public DeferredResult<ResponseEntity<?>> handleAsyncFailedRequest(Model model) { DeferredResult<ResponseEntity<?>> deferredResult = new DeferredResult<>(); ForkJoinPool.commonPool().submit(() -> { try { // Exception occurred in processing throw new Exception(); } catch (Exception e) { LOG.info("Re...
repos\tutorials-master\spring-web-modules\spring-rest-http-2\src\main\java\com\baeldung\deffered\controllers\DeferredResultController.java
2
请在Spring Boot框架中完成以下Java代码
public class MonthsUntilExpiryAttributeStorageListener implements IAttributeStorageListener { @PostConstruct public void postConstruct() { Services.get(IAttributeStorageFactoryService.class).addAttributeStorageListener(this); } @Override public void onAttributeValueChanged( @NonNull final IAttributeValueCon...
final AttributeCode attributeCode = attributeValue.getAttributeCode(); final boolean relevantAttributeHasChanged = AttributeConstants.ATTR_BestBeforeDate.equals(attributeCode); if (!relevantAttributeHasChanged) { return; } final LocalDate today = SystemTime.asLocalDate(); final OptionalInt monthsUntilEx...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\expiry\MonthsUntilExpiryAttributeStorageListener.java
2
请完成以下Java代码
public LookupValuesList getParameterLookupValues(final String parameterName) { return parametersDocument.getFieldLookupValues(parameterName); } @Override public LookupValuesPage getParameterLookupValuesForQuery(final String parameterName, final String query) { return parametersDocument.getFieldLookupValuesFor...
catch (final Throwable ex) { throw AdempiereException.wrapIfNeeded(ex); } } private ResultAction processResultAction(final ResultAction resultAction, final IViewsRepository viewRepos) { if (resultAction == null) { return null; } if (resultAction instanceof CreateAndOpenIncludedViewAction) { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\process\view\ViewActionInstance.java
1
请完成以下Java代码
public class IdmEngineFactoryBean implements FactoryBean<IdmEngine>, DisposableBean, ApplicationContextAware { protected IdmEngineConfiguration idmEngineConfiguration; protected ApplicationContext applicationContext; protected IdmEngine idmEngine; @Override public void destroy() throws Exception ...
@Override public Class<IdmEngine> getObjectType() { return IdmEngine.class; } @Override public boolean isSingleton() { return true; } public IdmEngineConfiguration getIdmEngineConfiguration() { return idmEngineConfiguration; } public void setIdmEngineConfigurat...
repos\flowable-engine-main\modules\flowable-idm-spring\src\main\java\org\flowable\idm\spring\IdmEngineFactoryBean.java
1
请完成以下Java代码
public SoftwareType getPackage() { return _package; } /** * Sets the value of the package property. * * @param value * allowed object is * {@link SoftwareType } * */ public void setPackage(SoftwareType value) { this._package = value; } ...
public SoftwareType getGenerator() { return generator; } /** * Sets the value of the generator property. * * @param value * allowed object is * {@link SoftwareType } * */ public void setGenerator(SoftwareType value) { this.generator = value; ...
repos\metasfresh-new_dawn_uat\backend\vertical-healthcare_ch\forum_datenaustausch_ch.invoice_440_request\src\main\java-xjc\de\metas\vertical\healthcare_ch\forum_datenaustausch_ch\invoice_440\request\PrologType.java
1
请在Spring Boot框架中完成以下Java代码
static class StandaloneEngineConfiguration extends BaseEngineConfigurationWithConfigurers<SpringCmmnEngineConfiguration> { @Bean public CmmnEngineFactoryBean cmmnEngine(SpringCmmnEngineConfiguration cmmnEngineConfiguration) { CmmnEngineFactoryBean factory = new CmmnEngineFactoryBean(); ...
@Bean public CmmnManagementService cmmnManagementService(CmmnEngine cmmnEngine) { return cmmnEngine.getCmmnManagementService(); } @Bean public CmmnRepositoryService cmmnRepositoryService(CmmnEngine cmmnEngine) { return cmmnEngine.getCmmnRepositoryService(); } @Bean public C...
repos\flowable-engine-main\modules\flowable-spring-boot\flowable-spring-boot-starters\flowable-spring-boot-autoconfigure\src\main\java\org\flowable\spring\boot\cmmn\CmmnEngineServicesAutoConfiguration.java
2
请完成以下Java代码
private int getWindowNo() { return getAPanel().getWindowNo(); } public Builder setIncludedTab(boolean includedTab) { this.includedTab = includedTab; return this; } private boolean isIncludedTab() { return includedTab; } private boolean isGridModeOnly() { return getGridTab().isG...
} private MFColor getBackgroundColor() { // use Window level background color return getGridWindow().getColor(); } private AppsAction getIgnoreAction() { return getAPanel().getIgnoreAction(); } private int getTabIndex() { return getGridTab().getTabNo(); } private boolean isLazy...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\grid\GridController.java
1
请完成以下Java代码
public GraphFrame getGraphFrameUserRelationship() throws IOException { Path temp = Files.createTempDirectory("sparkGraphFrames"); SparkSession session = SparkSession.builder() .appName("SparkGraphFrameSample") .config("spark.sql.warehouse.dir", temp.toString()) .spark...
return relationships; } private List<User> loadUsers() { User john = new User(1L, "John"); User martin = new User(2L, "Martin"); User peter = new User(3L, "Peter"); User alicia = new User(4L, "Alicia"); List<User> users = new ArrayList<>(); users.add(new User(1...
repos\tutorials-master\apache-spark\src\main\java\com\baeldung\graphframes\GraphLoader.java
1
请完成以下Java代码
public String toString() { return "NOT " + filter; } @Override public boolean accept(T model) { return !filter.accept(model); } @Override public String getSql() { final ISqlQueryFilter sqlFilter = ISqlQueryFilter.cast(filter); return "NOT (" + sqlFilter.getSql() + ")";
} @Override public List<Object> getSqlParams(final Properties ctx) { final ISqlQueryFilter sqlFilter = ISqlQueryFilter.cast(filter); return sqlFilter.getSqlParams(ctx); } @VisibleForTesting public IQueryFilter<T> getFilter() { return filter; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\dao\impl\NotQueryFilter.java
1
请完成以下Java代码
public void report(TenantId tenantId, CustomerId customerId, ApiUsageRecordKey key) { report(tenantId, customerId, key, 1); } private void report(ApiUsageRecordKey key, long value, ReportLevel... levels) { ConcurrentMap<ReportLevel, AtomicLong> statsForKey = stats.get(key); for (ReportL...
return new ReportLevel(tenantId, customerId); } public ParentEntity getParentEntity() { return new ParentEntity(tenantId, customerId); } } @Data private static class ParentEntity { private final TenantId tenantId; private final CustomerId customerId; ...
repos\thingsboard-master\common\queue\src\main\java\org\thingsboard\server\queue\usagestats\DefaultTbApiUsageReportClient.java
1
请完成以下Java代码
public String getDirection () { return (String)get_Value(COLUMNNAME_Direction); } /** Set Konnektor-Typ. @param ImpEx_ConnectorType_ID Konnektor-Typ */ public void setImpEx_ConnectorType_ID (int ImpEx_ConnectorType_ID) { if (ImpEx_ConnectorType_ID < 1) set_ValueNoCheck (COLUMNNAME_ImpEx_ConnectorType...
{ set_Value (COLUMNNAME_Name, Name); } /** Get Name. @return Alphanumeric identifier of the entity */ public String getName () { return (String)get_Value(COLUMNNAME_Name); } /** Get Record ID/ColumnName @return ID/ColumnName pair */ public KeyNamePair getKeyNamePair() { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java-gen\de\metas\impex\model\X_ImpEx_ConnectorType.java
1
请完成以下Java代码
public class SessionMigrationLoggerContext implements IMigrationLoggerContext { public static final String SYSCONFIG_Enabled = "org.adempiere.ad.migration.logger.MigrationLogger.Enabled"; public static final boolean SYSCONFIG_Enabled_Default = false; private final Map<String, Integer> migrationsMap = new HashMap<St...
} // We have the ID in out map, but cache expired, which means that maybe somebody deleted this record // Trying to reload migration = Services.get(IMigrationDAO.class).retrieveMigrationOrNull(ctx, migrationId); if (migration != null) { putMigration(key, migration); return migration; } return migr...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\migration\logger\impl\SessionMigrationLoggerContext.java
1
请完成以下Java代码
private void destroyEmptyHU(final I_M_HU emptyHU) { try { final boolean destroyed = handlingUnitsBL.destroyIfEmptyStorage(emptyHU); if (destroyed) { countDestroyed++; } else { countNotDestroyed++; } } catch (Exception e) { addLog("Failed destroying " + handlingUnitsBL.getDispl...
final IHUQueryBuilder huQueryBuilder = handlingUnitsDAO.createHUQueryBuilder() .setContext(getCtx(), ITrx.TRXNAME_None) .addOnlyInWarehouseId(WarehouseId.ofRepoId(p_M_Warehouse_ID)) // we don't want to deal with e.g. Shipped HUs .addHUStatusToInclude(X_M_HU.HUSTATUS_Active) .addHUStatusToInclude(X_...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\process\M_HU_DestroyEmptyHUs.java
1
请完成以下Java代码
public void addInsertsIntoTargetTable(final int count) { countInsertsIntoTargetTable.add(count); } public void addUpdatesIntoTargetTable(final int count) { countUpdatesIntoTargetTable.add(count); } public void actualImportError(@NonNull final ActualImportRecordsResult.Error error) { actualImpor...
public void set(final int value) { if (value < 0) { throw new AdempiereException("value shall NOT be negative: " + value); } this.value = value; this.unknownValue = false; } public void add(final int valueToAdd) { Check.assumeGreaterOrEqualToZero(valueToAdd, "valueToAdd"); set(this.val...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\impexp\processing\ImportProcessResult.java
1
请完成以下Java代码
public static MTree_NodeCMS[] getTree (Properties ctx, int AD_Tree_ID, String trxName) { ArrayList<MTree_NodeCMS> list = new ArrayList<MTree_NodeCMS>(); String sql = "SELECT * FROM AD_TreeNodeCMS WHERE AD_Tree_ID=? ORDER BY Node_ID"; PreparedStatement pstmt = null; try { pstmt = DB.prepareStatement (sql, ...
{ if (pstmt != null) pstmt.close (); pstmt = null; } catch (Exception e) { pstmt = null; } return retValue; } // get /** Static Logger */ private static Logger s_log = LogManager.getLogger(MTree_NodeCMS.class); /** * Load Constructor * @param ctx context * @param rs result set * @p...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\MTree_NodeCMS.java
1
请在Spring Boot框架中完成以下Java代码
public class BookstoreService { private final ReviewRepository reviewRepository; private final BookRepository bookRepository; private final ArticleRepository articleRepository; private final MagazineRepository magazineRepository; public BookstoreService(ReviewRepository reviewRepository, BookRepos...
reviewRepository.save(review); } // Calling this method will cause a javax.validation.ConstraintViolationException // 'A review can be associated with either a book, a magazine or an article' @Transactional public void persistReviewWrong() { Review review = new Review(); review...
repos\Hibernate-SpringBoot-master\HibernateSpringBootChooseOnlyOneAssociation\src\main\java\com\bookstore\service\BookstoreService.java
2
请完成以下Java代码
public class JarModeLibrary extends Library { /** * {@link JarModeLibrary} for layer tools. */ public static final JarModeLibrary TOOLS = new JarModeLibrary("spring-boot-jarmode-tools"); JarModeLibrary(String artifactId) { this(createCoordinates(artifactId)); } public JarModeLibrary(LibraryCoordinates coo...
jarName.append(".jar"); return jarName.toString(); } @Override public InputStream openStream() throws IOException { LibraryCoordinates coordinates = getCoordinates(); Assert.state(coordinates != null, "'coordinates' must not be null"); String path = "META-INF/jarmode/" + coordinates.getArtifactId() + ".jar"...
repos\spring-boot-4.0.1\loader\spring-boot-loader-tools\src\main\java\org\springframework\boot\loader\tools\JarModeLibrary.java
1
请完成以下Java代码
private void insertBPartnerExternalReferenceIfMissing( @NonNull final JsonSingleExternalReferenceCreateReq externalReferenceCreateReq, @NonNull final BPartnerComposite bpartnerComposite, @Nullable final String orgCode) { final BPartnerId bPartnerId = bpartnerComposite.getBpartner() != null && bpartnerCompos...
logger.warn("*** WARN in insertBPLocationExternalRefIfMissing: no metasfreshId was found for the externalId: {}! " + "If this happened, something went wrong while upserting the bPartnerLocations", locationExternalId); return null; }); }) .filter(Objects::nonNull) .forEach(createExte...
repos\metasfresh-new_dawn_uat\backend\de.metas.business.rest-api-impl\src\main\java\de\metas\rest_api\v1\bpartner\bpartnercomposite\jsonpersister\JsonPersisterService.java
1
请在Spring Boot框架中完成以下Java代码
public class MessageController { private final MessageService messageService; @Autowired public MessageController(MessageService messageService) { this.messageService = messageService; } @GetMapping("/messages") public ResponseEntity<Collection<MessageData>> getMessages() { re...
return ResponseEntity.of(messageService.get(id)); } @PostMapping("/messages/{message}") public ResponseEntity<MessageData> save(@PathVariable("message") String message) { MessageData msg = new MessageData(UUID.randomUUID().toString(), message); messageService.save(msg); return Respo...
repos\spring-examples-java-17\spring-redis\src\main\java\itx\examples\springboot\redis\controller\MessageController.java
2
请完成以下Java代码
public String toGlobalQRCodeJsonString() {return ResourceQRCodeJsonConverter.toGlobalQRCodeJsonString(this);} public static ResourceQRCode ofGlobalQRCode(final GlobalQRCode globalQRCode) {return ResourceQRCodeJsonConverter.fromGlobalQRCode(globalQRCode);} public static ResourceQRCode ofGlobalQRCodeJsonString(final ...
.build(); } public PrintableQRCode toPrintableQRCode() { return PrintableQRCode.builder() .qrCode(toGlobalQRCodeJsonString()) .bottomText(caption) .build(); } public static boolean isTypeMatching(@NonNull final GlobalQRCode globalQRCode) { return ResourceQRCodeJsonConverter.isTypeMatching(global...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\resource\qrcode\ResourceQRCode.java
1
请完成以下Spring Boot application配置
spring: application: name: listener-demo # Kafka 配置项,对应 KafkaProperties 配置类 kafka: bootstrap-servers: 127.0.0.1:9092 # 指定 Kafka Broker 地址,可以设置多个,以逗号分隔 server: port: 18080 # 随机端口,方便启动多个消费者 management: endpoints: # Actuator HTTP 配置项,对应 WebEndpoi
ntProperties 配置类 web: exposure: include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。
repos\SpringBoot-Labs-master\labx-19\labx-19-sc-bus-kafka-demo-listener-actuator\src\main\resources\application.yml
2
请完成以下Java代码
public ApiUsageState findTenantApiUsageState(TenantId tenantId) { log.trace("Executing findTenantUsageRecord, tenantId [{}]", tenantId); validateId(tenantId, id -> INCORRECT_TENANT_ID + id); return apiUsageStateDao.findTenantApiUsageState(tenantId.getId()); } @Override public ApiUsa...
} @Override public FluentFuture<Optional<HasId<?>>> findEntityAsync(TenantId tenantId, EntityId entityId) { return FluentFuture.from(apiUsageStateDao.findByIdAsync(tenantId, entityId.getId())) .transform(Optional::ofNullable, directExecutor()); } @Transactional @Override ...
repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\usagerecord\ApiUsageStateServiceImpl.java
1
请在Spring Boot框架中完成以下Java代码
public class OrderPayResultVo implements Serializable { /** 状态 **/ private String status = TradeStatusEnum.WAITING_PAYMENT.name(); /** 金额 **/ private BigDecimal orderPrice; /** 商户页面通知结果地址 **/ private String returnUrl; /** 产品名称 **/ private String productName; public String getSta...
public void setProductName(String productName) { this.productName = productName; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb...
repos\roncoo-pay-master\roncoo-pay-service\src\main\java\com\roncoo\pay\trade\vo\OrderPayResultVo.java
2
请完成以下Java代码
protected RuleNodeException getInactiveException() { return new RuleNodeException("Rule Node is not active! Failed to initialize.", ruleChainName, ruleNode); } private boolean isMyNodePartition() { return isMyNodePartition(this.ruleNode); } private boolean isMyNodePartition(RuleNode ru...
private void putToNodePartition(TbMsg source) { TbMsg tbMsg = TbMsg.newMsg(source, source.getQueueName(), source.getRuleChainId(), entityId); TopicPartitionInfo tpi = systemContext.resolve(ServiceType.TB_RULE_ENGINE, tbMsg.getQueueName(), tenantId, ruleNode.getId()); TransportProtos.ToRuleEngine...
repos\thingsboard-master\application\src\main\java\org\thingsboard\server\actors\ruleChain\RuleNodeActorMessageProcessor.java
1
请完成以下Java代码
public final Supplier<ScriptExecutor> createExecutorSupplier(final I_AD_Rule rule) { Check.assumeNotNull(rule, "Parameter rule is not null"); final String scriptEngineType = rule.getRuleType(); final String scriptEngineName = extractEngineNameFromRuleValue(rule.getValue()); return () -> createExecutor(script...
if (classname == null || classname.isEmpty()) { return Optional.empty(); } if (!classname.toLowerCase().startsWith(SCRIPT_PREFIX)) { return Optional.empty(); } final String ruleValue = classname.substring(SCRIPT_PREFIX.length()).trim(); return Optional.of(ruleValue); } private final ScriptEngin...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\script\ScriptEngineFactory.java
1
请在Spring Boot框架中完成以下Java代码
public String getOrderIp() { return orderIp; } public void setOrderIp(String orderIp) { this.orderIp = orderIp; } public String getOrderDate() { return orderDate; } public void setOrderDate(String orderDate) { this.orderDate = orderDate; } public Strin...
return payType; } public void setPayType(String payType) { this.payType = payType; } public String getAuthCode() { return authCode; } public void setAuthCode(String authCode) { this.authCode = authCode; } @Override public String toString() { return...
repos\roncoo-pay-master\roncoo-pay-service\src\main\java\com\roncoo\pay\trade\bo\F2FPayRequestBo.java
2
请完成以下Java代码
public void setInsertObjectIdentitySql(String insertObjectIdentity) { this.insertObjectIdentity = insertObjectIdentity; } public void setInsertSidSql(String insertSid) { this.insertSid = insertSid; } public void setClassPrimaryKeyQuery(String selectClassPrimaryKey) { this.selectClassPrimaryKey = selectClass...
@Override public void setAclClassIdSupported(boolean aclClassIdSupported) { super.setAclClassIdSupported(aclClassIdSupported); if (aclClassIdSupported) { // Change the default insert if it hasn't been overridden if (this.insertClass.equals(DEFAULT_INSERT_INTO_ACL_CLASS)) { this.insertClass = DEFAULT_INSE...
repos\spring-security-main\acl\src\main\java\org\springframework\security\acls\jdbc\JdbcMutableAclService.java
1
请在Spring Boot框架中完成以下Java代码
public @Nullable Duration getTimeToLive() { return this.timeToLive; } public void setTimeToLive(@Nullable Duration timeToLive) { this.timeToLive = timeToLive; } public boolean determineQosEnabled() { if (this.qosEnabled != null) { return this.qosEnabled; } return (getDeliveryMode() != null ...
public boolean isTransacted() { return this.transacted; } public void setTransacted(boolean transacted) { this.transacted = transacted; } } } public enum DeliveryMode { /** * Does not require that the message be logged to stable storage. This is the * lowest-overhead delivery mode but ...
repos\spring-boot-4.0.1\module\spring-boot-jms\src\main\java\org\springframework\boot\jms\autoconfigure\JmsProperties.java
2
请完成以下Java代码
public List<DocumentLayoutElementDescriptor> getElements() { return elements; } public static final class Builder { private ProcessId processId; private PanelLayoutType layoutType = PanelLayoutType.Panel; private ITranslatableString caption; private ITranslatableString description; private final List<...
public Builder addElement(final DocumentFieldDescriptor processParaDescriptor) { Check.assumeNotNull(processParaDescriptor, "Parameter processParaDescriptor is not null"); final DocumentLayoutElementDescriptor element = DocumentLayoutElementDescriptor.builder() .setCaption(processParaDescriptor.getCaption(...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\process\descriptor\ProcessLayout.java
1
请在Spring Boot框架中完成以下Java代码
public void removeFromFavorite(@RequestBody @NonNull final JsonRemoveProductsFromFavoriteRequest request) { final User user = loginService.getLoggedInUser(); for (final String productIdStr : request.getProductIds()) { final Product product = productSuppliesService.getProductById(Long.parseLong(productIdStr));...
return JsonProductToAddResponse.builder() .products(toJsonProductOrderedList(productsNotSelected, locale)) .moreProducts(toJsonProductOrderedList(productsNotContracted, locale)) .build(); } private static ArrayList<JsonProduct> toJsonProductOrderedList(@NonNull final List<Product> products, @NonNull fina...
repos\metasfresh-new_dawn_uat\misc\services\procurement-webui\procurement-webui-backend\src\main\java\de\metas\procurement\webui\rest\products\ProductsRestController.java
2
请完成以下Java代码
public ResponseEntity<byte[]> getImageById( @PathVariable("imageId") final int imageIdInt, @RequestParam(name = "maxWidth", required = false, defaultValue = "-1") final int maxWidth, @RequestParam(name = "maxHeight", required = false, defaultValue = "-1") final int maxHeight, @NonNull final WebRequest reque...
.body(adImage.getScaledImageData(maxWidth, maxHeight)); } private static String computeETag(@NonNull final Instant lastModified, int maxWidth, int maxHeight) { return lastModified + "_" + Math.max(maxWidth, 0) + "_" + Math.max(maxHeight, 0); } private ResponseEntity.BodyBuilder newResponse(final HttpStatus sta...
repos\metasfresh-new_dawn_uat\backend\de.metas.business.rest-api-impl\src\main\java\de\metas\rest_api\v2\image\ImageRestController.java
1
请完成以下Spring Boot application配置
server: port: 9090 security: oauth2: # OAuth2 Client 配置,对应 OAuth2ClientProperties 类 client: client-id: clientapp client-secret: 112233 # OAuth2 Resource 配置,对应 ResourceServerProperties 类 resource: token-info-uri: http://127.0.0.1:80
80/oauth/check_token # 获得 Token 信息的 URL # 访问令牌获取 URL,自定义的 access-token-uri: http://127.0.0.1:8080/oauth/token
repos\SpringBoot-Labs-master\lab-68-spring-security-oauth\lab-68-demo02-resource-server\src\main\resources\application.yml
2
请完成以下Java代码
public Optional<IDocumentLocationAdapter> getDocumentLocationAdapterIfHandled(final Object record) { return toDunningDoc(record).map(DunningDocDocumentLocationAdapterFactory::locationAdapter); } @Override public Optional<IDocumentBillLocationAdapter> getDocumentBillLocationAdapterIfHandled(final Object record) ...
@Override public Optional<IDocumentHandOverLocationAdapter> getDocumentHandOverLocationAdapter(final Object record) { return Optional.empty(); } private static Optional<I_C_DunningDoc> toDunningDoc(final Object record) { return InterfaceWrapperHelper.isInstanceOf(record, I_C_DunningDoc.class) ? Optional.o...
repos\metasfresh-new_dawn_uat\backend\de.metas.dunning\src\main\java\de\metas\dunning\api\impl\DunningDocDocumentLocationAdapterFactory.java
1
请完成以下Java代码
public HttpStatus getStatusCode() throws IOException { return status; } @Override public int getRawStatusCode() throws IOException { return status.value(); } @Override public String getStatusText() throws IOException { return status.getReasonPhrase(); } @Overri...
} public void setStatus(HttpStatus status) { this.status = status; } public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } }
repos\tutorials-master\spring-cloud-modules\spring-cloud-zuul-fallback\spring-cloud-zuul-fallback-api-gateway\src\main\java\com\baeldung\spring\cloud\apigateway\fallback\GatewayClientResponse.java
1
请完成以下Java代码
public LogicExpressionResult getReadonly() { return documentField.getReadonly(); } @Override public LogicExpressionResult getMandatory() { return documentField.getMandatory(); } @Override public LogicExpressionResult getDisplayed() { return documentField.getDisplayed(); }
@Override public DocumentValidStatus getValidStatus() { return documentField.getValidStatus(); } @Override public DeviceDescriptorsList getDevices() { return documentField.getDescriptor() .getDeviceDescriptorsProvider() .getDeviceDescriptors(); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\process\adprocess\DocumentFieldAsProcessInstanceParameter.java
1
请在Spring Boot框架中完成以下Java代码
public static ServiceName forProcessApplicationStartService(String moduleName) { return PROCESS_APPLICATION_MODULE.append(moduleName).append("START"); } /** * <p>Returns the name for a {@link ProcessApplicationDeploymentService} given * the name of the deployment unit and the name of the deployment.</p> ...
public static ServiceName forBpmPlatformPlugins() { return BPM_PLATFORM_PLUGINS; } /** * @return the {@link ServiceName} of the {@link ProcessApplicationStopService} */ public static ServiceName forProcessApplicationStopService(String moduleName) { return PROCESS_APPLICATION_MODULE.append(moduleNam...
repos\camunda-bpm-platform-master\distro\wildfly\subsystem\src\main\java\org\camunda\bpm\container\impl\jboss\service\ServiceNames.java
2
请完成以下Java代码
public int getM_BannedManufacturer_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_M_BannedManufacturer_ID); if (ii == null) return 0; return ii.intValue(); } @Override public org.compiere.model.I_C_BPartner getManufacturer() throws RuntimeException { return get_ValueAsPO(COLUMNNAME_Manufacturer_I...
*/ @Override public void setManufacturer_ID (int Manufacturer_ID) { if (Manufacturer_ID < 1) set_Value (COLUMNNAME_Manufacturer_ID, null); else set_Value (COLUMNNAME_Manufacturer_ID, Integer.valueOf(Manufacturer_ID)); } /** Get Hersteller. @return Hersteller des Produktes */ @Override public in...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_BannedManufacturer.java
1
请完成以下Java代码
public String getLastModifiedDate() { return lastModifiedDate; } public void setLastModifiedDate(String lastModifiedDate) { this.lastModifiedDate = lastModifiedDate; } public String getId() { return id; } public void setId(String id) { this.id = id; } ...
public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public String getVersion() { return version; } public void setVersion(String version) { this.version = version; } }
repos\Activiti-develop\activiti-core-common\activiti-project-model\src\main\java\org\activiti\core\common\project\model\ProjectManifest.java
1
请完成以下Java代码
protected boolean upgradeEncodingNonNull(String encodedPassword) { Matcher matcher = this.BCRYPT_PATTERN.matcher(encodedPassword); if (!matcher.matches()) { throw new IllegalArgumentException("Encoded password does not look like BCrypt: " + encodedPassword); } int strength = Integer.parseInt(matcher.group(2)...
$2B("$2b"); private final String version; BCryptVersion(String version) { this.version = version; } public String getVersion() { return this.version; } } }
repos\spring-security-main\crypto\src\main\java\org\springframework\security\crypto\bcrypt\BCryptPasswordEncoder.java
1
请在Spring Boot框架中完成以下Java代码
public class LocalResponseCacheAutoConfiguration { private static final Log LOGGER = LogFactory.getLog(LocalResponseCacheAutoConfiguration.class); private static final String RESPONSE_CACHE_NAME = "response-cache"; /* for testing */ static final String RESPONSE_CACHE_MANAGER_NAME = "gatewayCacheManager"; @Bean ...
} @ConditionalOnProperty(value = GatewayProperties.PREFIX + ".enabled", havingValue = "true", matchIfMissing = true) static class OnGatewayPropertyEnabled { } @ConditionalOnProperty(value = GatewayProperties.PREFIX + ".filter.local-response-cache.enabled", havingValue = "true") static class OnLocal...
repos\spring-cloud-gateway-main\spring-cloud-gateway-server-webflux\src\main\java\org\springframework\cloud\gateway\config\LocalResponseCacheAutoConfiguration.java
2
请完成以下Java代码
public void setRemittanceAmt_Currency_ID (final int RemittanceAmt_Currency_ID) { if (RemittanceAmt_Currency_ID < 1) set_Value (COLUMNNAME_RemittanceAmt_Currency_ID, null); else set_Value (COLUMNNAME_RemittanceAmt_Currency_ID, RemittanceAmt_Currency_ID); } @Override public int getRemittanceAmt_Currency_...
} @Override public void setServiceFeeInvoicedDate (final @Nullable java.sql.Timestamp ServiceFeeInvoicedDate) { set_Value (COLUMNNAME_ServiceFeeInvoicedDate, ServiceFeeInvoicedDate); } @Override public java.sql.Timestamp getServiceFeeInvoicedDate() { return get_ValueAsTimestamp(COLUMNNAME_ServiceFeeInvoic...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_RemittanceAdvice.java
1
请完成以下Java代码
public Integer getStoreId() { return (Integer) get(4); } // ------------------------------------------------------------------------- // Primary key information // ------------------------------------------------------------------------- @Override public Record1<Integer> key() { ...
super(Book.BOOK); } /** * Create a detached, initialised BookRecord */ public BookRecord(Integer id, Integer authorId, String title, String description, Integer storeId) { super(Book.BOOK); setId(id); setAuthorId(authorId); setTitle(title); setDescription(...
repos\tutorials-master\persistence-modules\jooq\src\main\java\com\baeldung\jooq\jointables\public_\tables\records\BookRecord.java
1
请完成以下Java代码
public class DevToolsPropertyDefaultsPostProcessor implements EnvironmentPostProcessor { private static final Log logger = DevToolsLogFactory.getLog(DevToolsPropertyDefaultsPostProcessor.class); private static final String ENABLED = "spring.devtools.add-properties"; private static final String WEB_LOGGING = "logg...
private boolean isRestarterInitialized() { try { Restarter restarter = Restarter.getInstance(); return (restarter != null && restarter.getInitialUrls() != null); } catch (Exception ex) { return false; } } private boolean isRemoteRestartEnabled(Environment environment) { return environment.contains...
repos\spring-boot-4.0.1\module\spring-boot-devtools\src\main\java\org\springframework\boot\devtools\env\DevToolsPropertyDefaultsPostProcessor.java
1
请完成以下Java代码
public void setDescription (String Description) { set_Value (COLUMNNAME_Description, Description); } /** Get Description. @return Optional short description of the record */ public String getDescription () { return (String)get_Value(COLUMNNAME_Description); } /** Set Comment/Help. @param Help Co...
@param JavaClass Java Class */ public void setJavaClass (String JavaClass) { set_Value (COLUMNNAME_JavaClass, JavaClass); } /** Get Java Class. @return Java Class */ public String getJavaClass () { return (String)get_Value(COLUMNNAME_JavaClass); } /** Set Name. @param Name Alphanumeric identif...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_IMP_Processor_Type.java
1
请完成以下Java代码
public static String join(Iterator<String> iterator) { StringBuilder builder = new StringBuilder(); while (iterator.hasNext()) { builder.append(iterator.next()); if (iterator.hasNext()) { builder.append(", "); } } return builder.toString(); } public abstract static class...
public StringIterator(Iterator<? extends T> iterator) { this.iterator = iterator; } public boolean hasNext() { return iterator.hasNext(); } public void remove() { iterator.remove(); } } }
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\util\StringUtil.java
1
请完成以下Java代码
public boolean supports(Class<?> targetType) { return Map.class.isAssignableFrom(targetType); } @SuppressWarnings("unchecked") @Override public String toCursor(Map<String, Object> keys) { return ((Encoder<Map<String, Object>>) this.encoder).encodeValue( keys, DefaultDataBufferFactory.sharedInstance, MAP_TY...
@SuppressWarnings("removal") private static final class Jackson2ObjectMapperCustomizer { static void customize(CodecConfigurer configurer) { com.fasterxml.jackson.databind.jsontype.PolymorphicTypeValidator validator = com.fasterxml.jackson.databind.jsontype.BasicPolymorphicTypeValidator.builder() .all...
repos\spring-graphql-main\spring-graphql\src\main\java\org\springframework\graphql\data\query\JsonKeysetCursorStrategy.java
1
请完成以下Java代码
public String getCustomPropertiesResolverImplementation() { return customPropertiesResolverImplementation; } public void setCustomPropertiesResolverImplementation(String customPropertiesResolverImplementation) { this.customPropertiesResolverImplementation = customPropertiesResolverImplementatio...
@Override public void setScriptInfo(ScriptInfo scriptInfo) { this.scriptInfo = scriptInfo; } @Override public FlowableListener clone() { FlowableListener clone = new FlowableListener(); clone.setValues(this); return clone; } public void setValues(FlowableListene...
repos\flowable-engine-main\modules\flowable-bpmn-model\src\main\java\org\flowable\bpmn\model\FlowableListener.java
1
请完成以下Java代码
private void expungeStaleEntries() { lock.lock(); try { expungeStaleEntriesAssumeSync(); } finally { lock.unlock(); } } /** * Called by {@link #expungeStaleEntries()}. This method should only be called from inside a lock. * */ @SuppressWarnings("unchecked") private final void expungeStal...
} else { return value; } } /** * Always compare by identity. * * @return true if it's the same instance. */ @Override public boolean equals(final Object obj) { if (this == obj) { return true; } return false; } @Override public int hashCode() { // NOTE: we ...
repos\metasfresh-new_dawn_uat\backend\de.metas.util\src\main\java\de\metas\util\WeakList.java
1
请完成以下Java代码
public String getProcessInstanceId() { return processInstanceId; } public void setProcessInstanceId(String processInstanceId) { this.processInstanceId = processInstanceId; } public String getType() { return type; } public void setType(String type) { this.type =...
public String getFullMessage() { return fullMessage; } public void setFullMessage(String fullMessage) { this.fullMessage = fullMessage; } public String getAction() { return action; } public void setAction(String action) { this.action = action; } }
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\persistence\entity\CommentEntityImpl.java
1
请在Spring Boot框架中完成以下Java代码
public void onSuccess(@Nullable ValidationResult result) { Futures.addCallback(attributesService.findAll(tenantId, entityId, AttributeScope.valueOf(scope)), callback, MoreExecutors.directExecutor()); } @Override public void onFailure(Throwable t) { ca...
public static Aggregation getAggregation(String agg) { return StringUtils.isEmpty(agg) ? DEFAULT_AGGREGATION : Aggregation.valueOf(agg); } private int getLimit(int limit) { return limit == 0 ? DEFAULT_LIMIT : limit; } private DefaultTenantProfileConfiguration getTenantProfileConfigurat...
repos\thingsboard-master\application\src\main\java\org\thingsboard\server\service\ws\DefaultWebSocketService.java
2
请完成以下Java代码
public Builder setAttemptCounter(MeterProvider<Counter> counter) { this.attemptCounter = counter; return this; } public Builder setSentMessageSizeDistribution(MeterProvider<DistributionSummary> distribution) { this.sentMessageSizeDistribution = distribution; ...
public Builder setClientAttemptDuration(MeterProvider<Timer> timer) { this.clientAttemptDuration = timer; return this; } public Builder setClientCallDuration(MeterProvider<Timer> timer) { this.clientCallDuration = timer; return this; } pu...
repos\grpc-spring-master\grpc-client-spring-boot-starter\src\main\java\net\devh\boot\grpc\client\metrics\MetricsClientMeters.java
1
请完成以下Java代码
public void setGrpId(String value) { this.grpId = value; } /** * Gets the value of the cpblties property. * * @return * possible object is * {@link PointOfInteractionCapabilities1 } * */ public PointOfInteractionCapabilities1 getCpblties() { ...
* Gets the value of the cmpnt 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 the cm...
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\PointOfInteraction1.java
1
请完成以下Java代码
public class GroupImpl extends ArtifactImpl implements Group { protected static AttributeReference<CategoryValue> categoryValueRefAttribute; public GroupImpl(ModelTypeInstanceContext instanceContext) { super(instanceContext); } public static void registerType(ModelBuilder modelBuilder) { final ModelE...
} @Override public CategoryValue getCategory() { return categoryValueRefAttribute.getReferenceTargetElement(this); } @Override public void setCategory(CategoryValue categoryValue) { categoryValueRefAttribute.setReferenceTargetElement(this, categoryValue); } @Override public BpmnEdge getDiagra...
repos\camunda-bpm-platform-master\model-api\bpmn-model\src\main\java\org\camunda\bpm\model\bpmn\impl\instance\GroupImpl.java
1
请完成以下Java代码
public void setAD_User_ID (final int AD_User_ID) { if (AD_User_ID < 0) set_ValueNoCheck (COLUMNNAME_AD_User_ID, null); else set_ValueNoCheck (COLUMNNAME_AD_User_ID, AD_User_ID); } @Override public int getAD_User_ID() { return get_ValueAsInt(COLUMNNAME_AD_User_ID); } /** * IsAllowIssuingAnyHU ...
} @Override public java.lang.String getIsScanResourceRequired() { return get_ValueAsString(COLUMNNAME_IsScanResourceRequired); } @Override public void setMobileUI_UserProfile_MFG_ID (final int MobileUI_UserProfile_MFG_ID) { if (MobileUI_UserProfile_MFG_ID < 1) set_ValueNoCheck (COLUMNNAME_MobileUI_Use...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_MobileUI_UserProfile_MFG.java
1
请完成以下Java代码
public class EmployeeCriteriaQueries { public List<Employee> getAllEmployees() { final Session session = HibernateUtil.getHibernateSession(); final CriteriaBuilder cb = session.getCriteriaBuilder(); final CriteriaQuery<Employee> cr = cb.createQuery(Employee.class); final Root<Employ...
final CriteriaQuery<Employee> cr = cb.createQuery(Employee.class); final Root<Employee> root = cr.from(Employee.class); cr.select(root) .where(cb.gt(root.get("salary"), 50000)); Query<Employee> query = session.createQuery(cr); final List<Employee> greaterThanEmployeeList = qu...
repos\tutorials-master\persistence-modules\hibernate-queries\src\main\java\com\baeldung\hibernate\criteria\view\EmployeeCriteriaQueries.java
1
请完成以下Java代码
public void execute(DelegateExecution execution) { ActivityExecution activityExecution = (ActivityExecution) execution; readFields(activityExecution); List<String> argList = new ArrayList<>(); argList.add(commandStr); if (arg1Str != null) argList.add(arg1Str); ...
Writer writer = new StringWriter(); char[] buffer = new char[1024]; try { Reader reader = new BufferedReader(new InputStreamReader(is, StandardCharsets.UTF_8)); int n; while ((n = reader.read(buffer)) != -1) { writer.write(buff...
repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\bpmn\behavior\ShellActivityBehavior.java
1
请完成以下Java代码
public static List<EngineInfo> getIdmEngineInfos() { return idmEngineInfos; } /** * Get initialization results. Only info will we available for form engines which were added in the {@link IdmEngines#init()}. No {@link EngineInfo} is available for engines which were registered * programmatical...
for (String idmEngineName : engines.keySet()) { IdmEngine idmEngine = engines.get(idmEngineName); try { idmEngine.close(); } catch (Exception e) { LOGGER.error("exception while closing {}", (idmEngineName == null ? "the default idm ...
repos\flowable-engine-main\modules\flowable-idm-engine\src\main\java\org\flowable\idm\engine\IdmEngines.java
1
请完成以下Java代码
protected ClassPathBeanDefinitionScanner newClassBeanDefinitionScanner(BeanDefinitionRegistry registry) { return new ClassPathBeanDefinitionScanner(registry, isUsingDefaultFilters(), getEnvironment()); } /** * Re-registers Singleton beans registered with the previous {@link ConfigurableListableBeanFactory BeanFa...
@Override protected void prepareRefresh() { this.beanFactory = (DefaultListableBeanFactory) SpringExtensions.safeGetValue(this::getBeanFactory); super.prepareRefresh(); } /** * @inheritDoc */ @Override public void register(Class<?>... componentClasses) { Arrays.stream(ArrayUtils.nullSafeArray(component...
repos\spring-boot-data-geode-main\spring-geode-project\spring-geode\src\main\java\org\springframework\geode\context\annotation\RefreshableAnnotationConfigApplicationContext.java
1
请在Spring Boot框架中完成以下Java代码
public class MainApplication { private final BookstoreService bookstoreService; public MainApplication(BookstoreService bookstoreService) { this.bookstoreService = bookstoreService; } public static void main(String[] args) { SpringApplication.run(MainApplication.class, args); } ...
// For MySQL5Dialect (MyISAM) stoare engine): row-level locking not supported // For MySQL5InnoDBDialect (InnoDB storage engine): row-level locking is aquired via FOR UPDATE // For MySQL8Dialect (InnoDB storage engine): row-level locking is aquired via FOR UPDATE NOWAIT // running th...
repos\Hibernate-SpringBoot-master\HibernateSpringBootPesimisticForceIncrement\src\main\java\com\bookstore\MainApplication.java
2
请完成以下Java代码
public void setEventDate (final @Nullable java.sql.Timestamp EventDate) { set_Value (COLUMNNAME_EventDate, EventDate); } @Override public java.sql.Timestamp getEventDate() { return get_ValueAsTimestamp(COLUMNNAME_EventDate); } /** * EventType AD_Reference_ID=540013 * Reference name: C_SubscriptionPro...
} @Override public BigDecimal getQty() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_Qty); return bd != null ? bd : BigDecimal.ZERO; } @Override public void setSeqNo (final int SeqNo) { set_Value (COLUMNNAME_SeqNo, SeqNo); } @Override public int getSeqNo() { return get_ValueAsInt(COLU...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java-gen\de\metas\contracts\model\X_C_SubscriptionProgress.java
1
请完成以下Java代码
protected Map<String, List<ExecutableScript>> getEnv(String language) { ProcessEngineConfigurationImpl config = Context.getProcessEngineConfiguration(); ProcessApplicationReference processApplication = Context.getCurrentProcessApplication(); Map<String, List<ExecutableScript>> result = null; if (config...
} return envScripts; } /** * Initializes the env scripts for a given language. * * @param language the language * @return the list of env scripts. Never null. */ protected List<ExecutableScript> initEnvForLanguage(String language) { List<ExecutableScript> scripts = new ArrayList<>(); ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\scripting\env\ScriptingEnvironment.java
1
请完成以下Java代码
public void setBeanResolver(BeanResolver beanResolver) { Assert.notNull(beanResolver, "beanResolver cannot be null"); this.beanResolver = beanResolver; } /** * Configure CurrentSecurityContext template resolution * <p> * By default, this value is <code>null</code>, which indicates that templates should *...
} /** * Obtain the specified {@link Annotation} on the specified {@link MethodParameter}. * @param parameter the {@link MethodParameter} to search for an {@link Annotation} * @return the {@link Annotation} that was found or null. */ private @Nullable CurrentSecurityContext findMethodAnnotation(MethodParamete...
repos\spring-security-main\web\src\main\java\org\springframework\security\web\method\annotation\CurrentSecurityContextArgumentResolver.java
1
请完成以下Java代码
public void setPP_Order(final org.eevolution.model.I_PP_Order PP_Order) { set_ValueFromPO(COLUMNNAME_PP_Order_ID, org.eevolution.model.I_PP_Order.class, PP_Order); } @Override public void setPP_Order_ID (final int PP_Order_ID) { if (PP_Order_ID < 1) set_ValueNoCheck (COLUMNNAME_PP_Order_ID, null); else ...
set_ValueFromPO(COLUMNNAME_SerialNo_Sequence_ID, org.compiere.model.I_AD_Sequence.class, SerialNo_Sequence); } @Override public void setSerialNo_Sequence_ID (final int SerialNo_Sequence_ID) { if (SerialNo_Sequence_ID < 1) set_Value (COLUMNNAME_SerialNo_Sequence_ID, null); else set_Value (COLUMNNAME_Ser...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\eevolution\model\X_PP_Order_BOM.java
1
请完成以下Java代码
private boolean isShowLoginDate() { final Properties ctx = getCtx(); // Make sure AD_Client_ID was not set if (Check.isEmpty(Env.getContext(ctx, Env.CTXNAME_AD_Client_ID), true)) { return false; } final boolean allowLoginDateOverride = m_login.isAllowLoginDateOverride(); if (allowLoginDateOverride) ...
private boolean disposed = false; @Override public void dispose() { super.dispose(); if (disposed) { // NOTE: for some reason this method is called twice on login, so we introduced disposed flag to prevent running the code twice return; } Env.clearWinContext(getCtx(), m_WindowNo); disposed = tru...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\apps\ALogin.java
1
请完成以下Java代码
public List<VariableListener<?>> getVariableListenersLocal(String eventName) { List<VariableListener<?>> listenerList = getVariableListeners().get(eventName); if (listenerList != null) { return listenerList; } return Collections.emptyList(); } public List<VariableListener<?>> getBuiltInVariab...
} else { listeners.add(index, listener); } } public void addVariableListener(String eventName, VariableListener<?> listener) { addVariableListener(eventName, listener, -1); } public void addVariableListener(String eventName, VariableListener<?> listener, int index) { addListenerToMap(variabl...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\core\model\CoreModelElement.java
1
请完成以下Java代码
public String getContractNumber() { return contractNumber; } /** * Sets the value of the contractNumber property. * * @param value * allowed object is * {@link String } * */ public void setContractNumber(String value) { this.contractNumber = ...
*/ public String getSsn() { return ssn; } /** * Sets the value of the ssn property. * * @param value * allowed object is * {@link String } * */ public void setSsn(String value) { this.ssn = value; } }
repos\metasfresh-new_dawn_uat\backend\vertical-healthcare_ch\forum_datenaustausch_ch.invoice_440_request\src\main\java-xjc\de\metas\vertical\healthcare_ch\forum_datenaustausch_ch\invoice_440\request\MvgLawType.java
1
请完成以下Java代码
public java.lang.String getMSV3_Pzn () { return (java.lang.String)get_Value(COLUMNNAME_MSV3_Pzn); } /** Set MSV3_VerfuegbarkeitsanfrageEinzelne_Artikel. @param MSV3_VerfuegbarkeitsanfrageEinzelne_Artikel_ID MSV3_VerfuegbarkeitsanfrageEinzelne_Artikel */ @Override public void setMSV3_VerfuegbarkeitsanfrageE...
public void setMSV3_VerfuegbarkeitsanfrageEinzelne(de.metas.vertical.pharma.vendor.gateway.msv3.model.I_MSV3_VerfuegbarkeitsanfrageEinzelne MSV3_VerfuegbarkeitsanfrageEinzelne) { set_ValueFromPO(COLUMNNAME_MSV3_VerfuegbarkeitsanfrageEinzelne_ID, de.metas.vertical.pharma.vendor.gateway.msv3.model.I_MSV3_Verfuegbarkei...
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_VerfuegbarkeitsanfrageEinzelne_Artikel.java
1