instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
public class FileEncodingApplicationListener implements ApplicationListener<ApplicationEnvironmentPreparedEvent>, Ordered { private static final Log logger = LogFactory.getLog(FileEncodingApplicationListener.class); @Override public int getOrder() { return Ordered.LOWEST_PRECEDENCE; } @Override public void...
if (encoding != null && !desired.equalsIgnoreCase(encoding)) { if (logger.isErrorEnabled()) { logger.error("System property 'file.encoding' is currently '" + encoding + "'. It should be '" + desired + "' (as defined in 'spring.mandatoryFileEncoding')."); logger.error("Environment variable LANG is '" + ...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\context\FileEncodingApplicationListener.java
1
请完成以下Java代码
public class ShipmentScheduleAndJobSchedulesCollection implements Iterable<ShipmentScheduleAndJobSchedules> { public static final ShipmentScheduleAndJobSchedulesCollection EMPTY = new ShipmentScheduleAndJobSchedulesCollection(ImmutableList.of()); private final ImmutableList<ShipmentScheduleAndJobSchedules> list; p...
.flatMap(schedule -> schedule.getJobScheduleIds().stream()) .collect(ImmutableSet.toImmutableSet()); } public ImmutableSet<ShipmentScheduleId> getShipmentScheduleIdsWithoutJobSchedules() { return getShipmentScheduleIds(schedule -> !schedule.hasJobSchedules()); } public ImmutableSet<ShipmentScheduleId> getS...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\shipmentschedule\api\ShipmentScheduleAndJobSchedulesCollection.java
1
请完成以下Java代码
public boolean isWithoutTenantId() { return withoutTenantId; } public String getName() { return name; } public String getNameLike() { return nameLike; } public void setName(String name) { this.name = name; } public void setNameLike(String nameLike) { ...
} public String getStartedBy() { return startedBy; } public void setStartedBy(String startedBy) { this.startedBy = startedBy; } public List<String> getInvolvedGroups() { return involvedGroups; } public void setInvolvedGroups(List<String> involvedGroups) { ...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\ExecutionQueryImpl.java
1
请完成以下Java代码
public <S> S getService(ObjectName name) { return (S) servicesByName.get(name); } /** * get the service value for a specific service by name or null if no such * Service exists. * */ public <S> S getServiceValue(ObjectName name) { PlatformService<S> service = getService(name); if(service ...
Set<String> serviceNames = getServiceNames(type); List<S> res = new ArrayList<S>(); for (String serviceName : serviceNames) { PlatformService<S> BpmPlatformService = (PlatformService<S>) servicesByName.get(getObjectName(serviceName)); if (BpmPlatformService != null) { res.add(BpmPlatformSer...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\container\impl\jmx\MBeanServiceContainer.java
1
请完成以下Java代码
public int getCM_ChatType_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_CM_ChatType_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Self-Service. @param IsSelfService This is a Self-Service entry or this entry can be changed via Self-Service */ public void setIsSelfService (b...
/** Get Self-Service. @return This is a Self-Service entry or this entry can be changed via Self-Service */ public boolean isSelfService () { Object oo = get_Value(COLUMNNAME_IsSelfService); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_CM_ChatTypeUpdate.java
1
请完成以下Java代码
private ImmutableList<ShipmentScheduleAvailableStockDetail> getStockDetailsMatching(@NonNull final StockDataQuery query) { return stockDetails .stream() .filter(stockDetail -> matching(query, stockDetail)) .collect(ImmutableList.toImmutableList()); } private static boolean matching(final StockDataQuer...
if (!queryWarehouseIds.isEmpty() && !queryWarehouseIds.contains(stockDetail.getWarehouseId())) { return false; } // // Attributes final boolean queryMatchesAll = query.getStorageAttributesKey().isAll(); final boolean queryMatchesStockDetail = AttributesKey.equals(query.getStorageAttributesKey(), stockDe...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\org\adempiere\inout\util\ShipmentScheduleQtyOnHandStorage.java
1
请完成以下Java代码
public WindowId getWindowId() { throw new UnsupportedOperationException("windowId not available"); } @Override public void put(@NonNull final IView view) { views.put(view.getViewId(), view); } @Nullable @Override public IView getByIdOrNull(@NonNull final ViewId viewId) { return views.getIfPresent(view...
@Override public void invalidateView(final ViewId viewId) { final IView view = getByIdOrNull(viewId); if (view == null) { return; } view.invalidateAll(); ViewChangesCollector.getCurrentOrAutoflush() .collectFullyChanged(view); } @Override public Stream<IView> streamAllViews() { return view...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\view\DefaultViewsRepositoryStorage.java
1
请完成以下Java代码
protected boolean doAppend(List<InstanceEvent> events) { if (events.isEmpty()) { return true; } InstanceId id = events.get(0).getInstance(); if (!events.stream().allMatch((event) -> event.getInstance().equals(id))) { throw new IllegalArgumentException("'events' must only refer to the same instance."); ...
} private void compact(List<InstanceEvent> events) { BinaryOperator<InstanceEvent> latestEvent = (e1, e2) -> (e1.getVersion() > e2.getVersion()) ? e1 : e2; Map<Class<?>, Optional<InstanceEvent>> latestPerType = events.stream() .collect(groupingBy(InstanceEvent::getClass, reducing(latestEvent))); events.remov...
repos\spring-boot-admin-master\spring-boot-admin-server\src\main\java\de\codecentric\boot\admin\server\eventstore\ConcurrentMapEventStore.java
1
请完成以下Java代码
public Optional<UserId> resolveUserExternalIdentifier(@NonNull final OrgId orgId, @NonNull final ExternalIdentifier externalIdentifier) { if (ExternalIdentifier.Type.METASFRESH_ID.equals(externalIdentifier.getType())) { return Optional.of(UserId.ofRepoId(externalIdentifier.asMetasfreshId().getValue())); } e...
public Incoterms getIncoterms(@NonNull final JsonOLCandCreateRequest request, @NonNull final OrgId orgId, @NonNull final BPartnerId bPartnerId) { final Incoterms incoterms; if(request.getIncotermsValue() != null) { incoterms = incotermsRepository.getByValue(request.getIncotermsValue(), org...
repos\metasfresh-new_dawn_uat\backend\de.metas.business.rest-api-impl\src\main\java\de\metas\rest_api\v2\bpartner\BPartnerMasterdataProvider.java
1
请完成以下Java代码
public Object getParameterValue(final int index, final boolean returnValueTo) { final Object field; if (returnValueTo) { field = getParameterToComponent(index); } else { field = getParameterComponent(index); } if (field instanceof CEditor) { final CEditor editor = (CEditor)field; return ...
} else { throw new AdempiereException("Component type not supported - " + field); } } /** * Method called when one of the parameter fields changed */ protected void onFieldChanged() { // parent.executeQuery(); we don't want to query each time, because we might block the search } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java\org\compiere\apps\search\AbstractInfoQueryCriteriaGeneral.java
1
请完成以下Java代码
public ITranslatableString getSingleProductNameOrEmpty() { ProductId productId = null; ITranslatableString productName = TranslatableStrings.empty(); for (final PickingJobLine line : lines) { if (productId == null) { productId = line.getProductId(); } else if (!ProductId.equals(productId, line....
qtyToPick = qtyToPick.add(lineQtyToPick); } else { // found different UOMs return null; } } return qtyToPick; } @NonNull public ImmutableSet<HuId> getPickedHuIds(@Nullable final PickingJobLineId lineId) { return lineId != null ? getLineById(lineId).getPickedHUIds() : getAllPicked...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\picking\job\model\PickingJob.java
1
请在Spring Boot框架中完成以下Java代码
public class SysRolePermissionServiceImpl extends ServiceImpl<SysRolePermissionMapper, SysRolePermission> implements ISysRolePermissionService { @Override public void saveRolePermission(String roleId, String permissionIds) { String ip = ""; try { //获取request HttpServletRequest request = SpringContextUtils....
this.saveBatch(list); } List<String> delete = getDiff(permissionIds,lastPermissionIds); if(delete!=null && delete.size()>0) { for (String permissionId : delete) { this.remove(new QueryWrapper<SysRolePermission>().lambda().eq(SysRolePermission::getRoleId, roleId).eq(SysRolePermission::getPermissionId, pe...
repos\JeecgBoot-main\jeecg-boot\jeecg-module-system\jeecg-system-biz\src\main\java\org\jeecg\modules\system\service\impl\SysRolePermissionServiceImpl.java
2
请完成以下Java代码
private void updateTabFieldColumns(Properties ctx, I_AD_Tab tab, String trxName) { final String tableName = Services.get(IADTableDAO.class).retrieveTableName(tab.getAD_Table_ID()); final List<I_AD_Field> fields = new Query(ctx, I_AD_Field.Table_Name, I_AD_Field.COLUMNNAME_AD_Tab_ID + "=?", trxName) .setParamet...
log.info("Updated AD_Column_ID for field " + field.getName()); } else { log.info("Deleting field " + field.getName()); InterfaceWrapperHelper.getPO(field).deleteEx(true); // TODO: use POWrapper.delete } } } @Override public String docValidate(PO po, int timing) { return null; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\appdict\validation\model\validator\ApplicationDictionary.java
1
请完成以下Java代码
public static void analyzeGCRoots() { LOGGER.info("Analyzing GC Roots:"); Collection<GCRoot> gcRoots = heap.getGCRoots(); if (gcRoots == null) { LOGGER.error("No GC Roots found"); return; } LOGGER.info("Total GC Roots: " + gcRoots.size()); int th...
LOGGER.info(" Size: " + instance.getSize() + " bytes"); } } LOGGER.info("\nGC Root Summary:"); LOGGER.info(" Thread Objects: " + threadObj); LOGGER.info(" JNI Global References: " + jniGlobal); LOGGER.info(" JNI Local References: " + jniLocal); LOGGER.i...
repos\tutorials-master\core-java-modules\core-java-perf-2\src\main\java\com\baeldung\netbeanprofiler\SolApp.java
1
请完成以下Java代码
protected SpringSecurityLdapTemplate getLdapTemplate() { return this.ldapTemplate; } /** * Returns the attribute name of the LDAP attribute that will be mapped to the role * name Method available so that classes extending this can override * @return the attribute name used for role mapping * @see #setGroup...
*/ protected final String getRolePrefix() { return this.rolePrefix; } /** * Returns true if role names are converted to uppercase Method available so that * classes extending this can override * @return true if role names are converted to uppercase. * @see #setConvertToUpperCase(boolean) */ protected f...
repos\spring-security-main\ldap\src\main\java\org\springframework\security\ldap\userdetails\DefaultLdapAuthoritiesPopulator.java
1
请完成以下Spring Boot application配置
logging: level: .: error org.springframework: ERROR com.mkyong: ERROR spring: profiles: active: "dev" main: banner-mode: "off" server: email: default@mkyong.com --- spring: profiles: dev server: email: dev@mkyong.com cluster: - ip: 127.0.0.1 path: /dev1 - ip: 127.0.0....
es: prod server: email: prod@mkyong.com cluster: - ip: 192.168.0.1 path: /app1 - ip: 192.168.0.2 path: /app2 - ip: 192.168.0.3 path: /app3
repos\spring-boot-master\profile-yaml\src\main\resources\application.yml
2
请完成以下Java代码
public void parseTask(Element taskElement, ScopeImpl scope, ActivityImpl activity) { addExecutionListener(activity); } @Override public void parseTransaction(Element transactionElement, ScopeImpl scope, ActivityImpl activity) { addExecutionListener(activity); } private void addExecutionListener(fina...
private void addTaskListener(TaskDefinition taskDefinition) { if (taskListener != null) { for (String event : TASK_EVENTS) { if (skippable) { taskDefinition.addTaskListener(event, taskListener); } else { taskDefinition.addBuiltInTaskListener(event, taskListener); } ...
repos\camunda-bpm-platform-master\spring-boot-starter\starter\src\main\java\org\camunda\bpm\spring\boot\starter\event\PublishDelegateParseListener.java
1
请完成以下Java代码
public String asString() { return "messaging.operation"; } }, /** * Messaging destination name. */ MESSAGING_DESTINATION_NAME { @Override @NonNull public String asString() { return "messaging.destination.name"; } }, /** * Messaging destination kind. */ MESSAGING_DESTI...
* */ public static class DefaultKafkaTemplateObservationConvention implements KafkaTemplateObservationConvention { /** * A singleton instance of the convention. */ public static final DefaultKafkaTemplateObservationConvention INSTANCE = new DefaultKafkaTemplateObservationConvention(); @Override p...
repos\spring-kafka-main\spring-kafka\src\main\java\org\springframework\kafka\support\micrometer\KafkaTemplateObservation.java
1
请完成以下Java代码
public String getSummary() { return "@M_Locator_ID@:" + locator.getValue() + " - " + (rawMaterialsWarehouse == null ? "?" : rawMaterialsWarehouse.getName()) + ", @M_Product_ID@:" + attributeSetInstanceAware.getM_Product().getName() + ", @Qty@:" + qty + " " + uom.getUOMSymbol(); } public boolean isValid() ...
loadIfNeeded(); return rawMaterialsWarehouse; } public I_M_Locator getRawMaterialsLocator() { loadIfNeeded(); return rawMaterialsLocator; } public OrgId getOrgId() { loadIfNeeded(); return orgId; } public BPartnerLocationId getOrgBPLocationId() { loadIfNeeded(); return orgBPLocationId; } pu...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing\src\main\java\de\metas\distribution\ddorder\process\RawMaterialsReturnDDOrderLineCandidate.java
1
请在Spring Boot框架中完成以下Java代码
private void deleteLineCandidates( @NonNull final PPOrderDeletedEvent event, @NonNull final Candidate headerCandidate) { final List<PPOrderLine> ppOrderLines = event.getPpOrder().getLines(); final boolean simulated = headerCandidate.isSimulated(); for (final PPOrderLine ppOrderLine : ppOrderLines) { ...
.businessCase(CandidateBusinessCase.PRODUCTION) .productionDetailsQuery(productionDetailsQuery) .simulatedQueryQualifier(simulatedQueryQualifier) .groupId(null) .build(); return candidateRepositoryRetrieval.retrieveLatestMatchOrNull(lineCandidateQuery); } @NonNull private CandidatesQuery createPr...
repos\metasfresh-new_dawn_uat\backend\de.metas.material\dispo-service\src\main\java\de\metas\material\dispo\service\event\handler\pporder\PPOrderDeletedHandler.java
2
请完成以下Java代码
public java.lang.String getName() { return get_ValueAsString(COLUMNNAME_Name); } @Override public void setPaymentReference (final @Nullable java.lang.String PaymentReference) { set_Value (COLUMNNAME_PaymentReference, PaymentReference); } @Override public java.lang.String getPaymentReference() { return ...
else set_Value (COLUMNNAME_Record_ID, Record_ID); } @Override public int getRecord_ID() { return get_ValueAsInt(COLUMNNAME_Record_ID); } @Override public void setRegionName (final @Nullable java.lang.String RegionName) { set_Value (COLUMNNAME_RegionName, RegionName); } @Override public java.lang.St...
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.revolut\src\main\java-gen\de\metas\payment\revolut\model\X_Revolut_Payment_Export.java
1
请完成以下Java代码
public class DefaultPropertyDetector implements EncryptablePropertyDetector { private String prefix = "ENC("; private String suffix = ")"; /** * <p>Constructor for DefaultPropertyDetector.</p> */ public DefaultPropertyDetector() { } /** * <p>Constructor for DefaultPropertyDetec...
/** {@inheritDoc} */ @Override public boolean isEncrypted(String property) { if (property == null) { return false; } final String trimmedValue = property.trim(); return (trimmedValue.startsWith(prefix) && trimmedValue.endsWith(suffix)); } /** ...
repos\jasypt-spring-boot-master\jasypt-spring-boot\src\main\java\com\ulisesbocchio\jasyptspringboot\detector\DefaultPropertyDetector.java
1
请完成以下Java代码
private static PickingJobReferenceList ofList(final List<PickingJobReference> list) { return !list.isEmpty() ? new PickingJobReferenceList(list) : EMPTY; } public static Collector<PickingJobReference, ?, PickingJobReferenceList> collect() { return GuavaCollectors.collectUsingListAccumulator(PickingJobReference...
{ return list.stream() .map(PickingJobReference::getScheduleIds) .filter(Objects::nonNull) .flatMap(ShipmentScheduleAndJobScheduleIdSet::stream) .collect(ShipmentScheduleAndJobScheduleIdSet.collect()); } public Set<ProductId> getProductIds() { return list.stream() .flatMap(job -> job.getProd...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\picking\job\model\PickingJobReferenceList.java
1
请完成以下Java代码
public void addTabSwitchingSupport(JComponent c) { if(c instanceof JTable) { ((JTable)c).getSelectionModel().addListSelectionListener(this); return; } else if( //c instanceof org.compiere.grid.ed.VEditor || c instanceof JTextComponent || //c instanceof ItemSelectable || c ...
l.addActionListener(this); //l.addKeyListener(new MovementAdapter()); return; } } class MovementAdapter extends KeyAdapter { public void keyPressed(KeyEvent event) { // look for tab keys if(event.getKeyCode() == KeyEvent.VK_TAB || e...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\apps\TabSwitcher.java
1
请完成以下Java代码
public class IfPartImpl extends CmmnElementImpl implements IfPart { protected static AttributeReference<CaseFileItem> contextRefAttribute; // cmmn 1.1 protected static ChildElement<ConditionExpression> conditionChild; public IfPartImpl(ModelTypeInstanceContext instanceContext) { super(instanceContext); ...
.extendsType(CmmnElement.class) .instanceProvider(new ModelTypeInstanceProvider<IfPart>() { public IfPart newInstance(ModelTypeInstanceContext instanceContext) { return new IfPartImpl(instanceContext); } }); contextRefAttribute = typeBuilder.stringAttribute(CMMN_ATTR...
repos\camunda-bpm-platform-master\model-api\cmmn-model\src\main\java\org\camunda\bpm\model\cmmn\impl\instance\IfPartImpl.java
1
请完成以下Java代码
public int getRevisionNext() { return revision + 1; } public int getRevision() { return revision; } public void setRevision(int revision) { this.revision = revision; } public boolean isInserted() { return isInserted; } public void setInserted(boolean i...
public boolean isUpdated() { return isUpdated; } public void setUpdated(boolean isUpdated) { this.isUpdated = isUpdated; } public boolean isDeleted() { return isDeleted; } public void setDeleted(boolean isDeleted) { this.isDeleted = isDeleted; } }
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\persistence\entity\AbstractEntity.java
1
请完成以下Java代码
private ImmutableSet<ResourceId> getSelectedResourceIds() { final IView view = getView(); return getSelectedRowIdsAsSet() .stream() .map(view::getTableRecordReferenceOrNull) .filter(Objects::nonNull) .map(recordRef -> ResourceId.ofRepoId(recordRef.getRecord_ID())) .collect(ImmutableSet.toImmut...
if (rowIds.isEmpty()) { return ImmutableSet.of(); } else if (rowIds.isAll()) { rowIdsEffective = view.streamByIds(DocumentIdsSelection.ALL) .map(IViewRow::getId) .collect(ImmutableSet.toImmutableSet()); } else { rowIdsEffective = rowIds.toSet(); } return rowIdsEffective; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\resource\process\S_Resource_PrintQRCodes.java
1
请在Spring Boot框架中完成以下Java代码
public boolean isIgnoreTaskAssignee() { return ignoreTaskAssignee; } public void setIgnoreTaskAssignee(boolean ignoreTaskAssignee) { this.ignoreTaskAssignee = ignoreTaskAssignee; } public String getRootScopeId() { return rootScopeId; } public void setRootScopeId(String...
return parentScopeId; } public void setParentScopeId(String parentScopeId) { this.parentScopeId = parentScopeId; } public Set<String> getScopeIds() { return scopeIds; } public void setScopeIds(Set<String> scopeIds) { this.scopeIds = scopeIds; } }
repos\flowable-engine-main\modules\flowable-rest\src\main\java\org\flowable\rest\service\api\history\HistoricTaskInstanceQueryRequest.java
2
请完成以下Java代码
public Set<String> getParameters(@Nullable final String contextTableName) { return PARAMETERS; } @Override public boolean accept(@Nullable final IValidationContext evalCtx, @Nullable final NamePair item) { final PaySelectionTrxType trxType = extractPaySelectionTrxType(evalCtx); if (trxType == null) { r...
} @Nullable private static PaySelectionTrxType extractPaySelectionTrxType(@Nullable final IValidationContext evalCtx) { if (!isContextAvailable(evalCtx)) { return null; } final String code = evalCtx.get_ValueAsString(PARAM_PaySelectionTrxType); if (Check.isBlank(code)) { return null; } retur...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.base\src\main\java\de\metas\banking\payment\PaySelectionModeByPaySelectionTrxTypeValRule.java
1
请完成以下Java代码
public void measureCollectionsSortBestCase(BestCaseBenchmarkState state) { List<Integer> sortedList = new ArrayList<>(state.sortedList); Collections.sort(sortedList); } @Benchmark public void measureCollectionsSortAverageWorstCase(AverageWorstCaseBenchmarkState state) { List<Integer...
} } } @State(Scope.Benchmark) public static class AverageWorstCaseBenchmarkState { List<Integer> unsortedList; @Setup(Level.Trial) public void setUp() { unsortedList = new ArrayList<>(); for (int i = 1000000; i > 0; i--) { unsortedLis...
repos\tutorials-master\core-java-modules\core-java-collections-5\src\main\java\com\baeldung\collectionssortcomplexity\CollectionsSortTimeComplexityJMH.java
1
请完成以下Java代码
public XhtmlFrameSetDocument appendTitle(Element value) { title.addElement(value); return(this); } /** Append to the title element for this XhtmlFrameSetDocument container. @param value adds to the value between the title tags */ public XhtmlFrameSetDocumen...
public void output(PrintWriter out) { // XhtmlFrameSetDocument is just a convient wrapper for html call html.output html.output(out); } /** Override the toString() method so that it prints something meaningful. */ public final String toString() { if ( ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\tools\src\main\java-legacy\org\apache\ecs\XhtmlFrameSetDocument.java
1
请完成以下Java代码
public String getActivityId() { return activityId; } public String getActivityName() { return activityName; } public String getActivityType() { return activityType; } public Set<String> getActivityTypes() { return activityTypes; } public String getAssi...
public Date getStartedBefore() { return startedBefore; } public Date getFinishedAfter() { return finishedAfter; } public Date getFinishedBefore() { return finishedBefore; } public List<String> getTenantIds() { return tenantIds; } public Lis...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\HistoricActivityInstanceQueryImpl.java
1
请完成以下Java代码
public void setMappingRule (final @Nullable java.lang.String MappingRule) { set_Value (COLUMNNAME_MappingRule, MappingRule); } @Override public java.lang.String getMappingRule() { return get_ValueAsString(COLUMNNAME_MappingRule); } @Override public void setMappingRuleValue (final @Nullable java.lang.Stri...
public void setM_Shipper_Mapping_Config_ID (final int M_Shipper_Mapping_Config_ID) { if (M_Shipper_Mapping_Config_ID < 1) set_ValueNoCheck (COLUMNNAME_M_Shipper_Mapping_Config_ID, null); else set_ValueNoCheck (COLUMNNAME_M_Shipper_Mapping_Config_ID, M_Shipper_Mapping_Config_ID); } @Override public int ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_Shipper_Mapping_Config.java
1
请完成以下Java代码
public class Book { private Integer bookId; private String title; private String author; public Book() {} public Book(Integer bookId, String title, String author) { this.bookId = bookId; this.title = title; this.author = author; } @Override public boolean equal...
} public Integer getBookId() { return bookId; } public void setBookId(Integer bookId) { this.bookId = bookId; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getAuthor() { ...
repos\tutorials-master\jackson-modules\jackson-conversions\src\main\java\com\baeldung\jackson\tocollection\Book.java
1
请完成以下Java代码
public void postConstruct() { startThread(); } private void startThread() { final Thread thread = new Thread(this::processEventsLoop); thread.setDaemon(true); thread.setName("BusinessRuleEventsProcessor"); thread.start(); logger.info("Started {}", thread); } private void processEventsLoop() { whi...
try { ruleService.processEvents(getRetrieveBatchSize()); } catch (final Exception ex) { logger.warn("Failed to process. Ignored.", ex); } } } private void sleep() throws InterruptedException { final Duration pollInterval = getPollInterval(); logger.debug("Sleeping {}", pollInterval); ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\business_rule\server\BusinessRuleEventProcessorWatcher.java
1
请完成以下Java代码
public BPartnerPrintFormatMap getBPartnerPrintFormats(final BPartnerId bpartnerId) { return bpartnerBL.getPrintFormats(bpartnerId); } @NonNull public DefaultPrintFormats getDefaultPrintFormats(@NonNull final ClientId clientId) { return defaultPrintFormatsRepository.getByClientId(clientId); } @NonNull publ...
} public PrintCopies getDocumentCopies( @Nullable final I_C_DocType docType, @Nullable final BPPrintFormatQuery bpPrintFormatQuery) { final BPPrintFormat bpPrintFormat = bpPrintFormatQuery == null ? null : bPartnerPrintFormatRepository.getByQuery(bpPrintFormatQuery); if(bpPrintFormat == null) { retur...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\report\DocumentReportAdvisorUtil.java
1
请完成以下Java代码
public ResponseEntity<List<DictDto>> queryAllDict(){ return new ResponseEntity<>(dictService.queryAll(new DictQueryCriteria()),HttpStatus.OK); } @ApiOperation("查询字典") @GetMapping @PreAuthorize("@el.check('dict:list')") public ResponseEntity<PageResult<DictDto>> queryDict(DictQueryCriteria r...
} @Log("修改字典") @ApiOperation("修改字典") @PutMapping @PreAuthorize("@el.check('dict:edit')") public ResponseEntity<Object> updateDict(@Validated(Dict.Update.class) @RequestBody Dict resources){ dictService.update(resources); return new ResponseEntity<>(HttpStatus.NO_CONTENT); } ...
repos\eladmin-master\eladmin-system\src\main\java\me\zhengjie\modules\system\rest\DictController.java
1
请完成以下Java代码
public class AuthenticationTrustResolverImpl implements AuthenticationTrustResolver { private Class<? extends Authentication> anonymousClass = AnonymousAuthenticationToken.class; private Class<? extends Authentication> rememberMeClass = RememberMeAuthenticationToken.class; Class<? extends Authentication> getAnony...
if ((this.rememberMeClass == null) || (authentication == null)) { return false; } return this.rememberMeClass.isAssignableFrom(authentication.getClass()); } public void setAnonymousClass(Class<? extends Authentication> anonymousClass) { this.anonymousClass = anonymousClass; } public void setRememberMeCla...
repos\spring-security-main\core\src\main\java\org\springframework\security\authentication\AuthenticationTrustResolverImpl.java
1
请在Spring Boot框架中完成以下Java代码
public TaskBuilder category(String category) { this.category = category; return this; } @Override public TaskBuilder parentTaskId(String parentTaskId) { this.parentTaskId = parentTaskId; return this; } @Override public TaskBuilder tenantId(String tenantId) { ...
} @Override public String getTaskDefinitionId() { return taskDefinitionId; } @Override public String getTaskDefinitionKey() { return taskDefinitionKey; } @Override public Date getDueDate() { return dueDate; } @Override public String getCategory() {...
repos\flowable-engine-main\modules\flowable-task-service\src\main\java\org\flowable\task\service\impl\BaseTaskBuilderImpl.java
2
请在Spring Boot框架中完成以下Java代码
protected SecurityFilterChain filterChain(HttpSecurity http) throws Exception { http.authorizeHttpRequests((authorizeRequests) -> authorizeRequests.anyRequest().permitAll()) .csrf((csrf) -> csrf.csrfTokenRepository(CookieCsrfTokenRepository.withHttpOnlyFalse()) .csrfTokenRepository(CookieCsrfTokenRepository...
http.authorizeHttpRequests((authorizeRequests) -> authorizeRequests .requestMatchers(PathPatternRequestMatcher.withDefaults().matcher(this.adminServer.path("/assets/**"))) .permitAll() .requestMatchers(PathPatternRequestMatcher.withDefaults().matcher(this.adminServer.path("/login"))) .permitAll() .a...
repos\spring-boot-admin-master\spring-boot-admin-samples\spring-boot-admin-sample-hazelcast\src\main\java\de\codecentric\boot\admin\sample\SpringBootAdminHazelcastApplication.java
2
请完成以下Java代码
private @Nullable String resolveSendTo(String value) { BeanExpressionContext beanExpressionContext = getBeanExpressionContext(); if (beanExpressionContext != null) { String resolvedValue = beanExpressionContext.getBeanFactory().resolveEmbeddedValue(value); BeanExpressionResolver resolverToUse = getResolver();...
* @param bean the bean. * @param method the method. * @param returnExceptions true to return exceptions. * @param errorHandler the error handler. * @param batchingStrategy the batching strategy for batch listeners. * @return the adapter. */ MessagingMessageListenerAdapter getAdapter(boolean batch, @...
repos\spring-amqp-main\spring-rabbit\src\main\java\org\springframework\amqp\rabbit\listener\MethodRabbitListenerEndpoint.java
1
请完成以下Spring Boot application配置
# swagger-ui custom path springdoc.swagger-ui.path=/swagger-ui.html management.endpoints.enabled-by-default=false management.endpoint.info.enabled=false server.port=8081 # If you want to use Orkes Playground, then change the server url to https://play.orkes.io/api/ # Obtain key and secret by logging into # and navigati...
and generate key/secret conductor.security.client.key-id=CHANGE_ME conductor.security.client.secret=CHANGE_ME conductor.server.url=https://play.orkes.io/api/
repos\tutorials-master\microservices-modules\event-driven-microservice\src\main\resources\application.properties
2
请完成以下Java代码
public String getDescription () { return (String)get_Value(COLUMNNAME_Description); } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; /** Set Entity Type. @param EntityType Dictionary Entity Type; Determines ownership and synchronization */ public void set...
*/ 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 Ke...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_Image.java
1
请完成以下Java代码
public void setLabelFormatType (String LabelFormatType) { set_Value (COLUMNNAME_LabelFormatType, LabelFormatType); } /** Get Label Format Type. @return Label Format Type */ public String getLabelFormatType () { return (String)get_Value(COLUMNNAME_LabelFormatType); } /** Set Name. @param Name Al...
/** Get Record ID/ColumnName @return ID/ColumnName pair */ public KeyNamePair getKeyNamePair() { return new KeyNamePair(get_ID(), String.valueOf(getSeqNo())); } /** Set X Position. @param XPosition Absolute X (horizontal) position in 1/72 of an inch */ public void setXPosit...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_PrintLabelLine.java
1
请完成以下Java代码
public SecurityInfo getByOscoreIdentity(OscoreIdentity oscoreIdentity) { return null; } @Override public void put(TbLwM2MSecurityInfo tbSecurityInfo) throws NonUniqueSecurityInfoException { writeLock.lock(); try { String identity = null; if (tbSecurityInfo.ge...
@Override public void remove(String endpoint) { writeLock.lock(); try { TbLwM2MSecurityInfo securityInfo = securityByEp.remove(endpoint); if (securityInfo != null && securityInfo.getSecurityInfo() != null && securityInfo.getSecurityInfo().getPskIdentity() != null) { ...
repos\thingsboard-master\common\transport\lwm2m\src\main\java\org\thingsboard\server\transport\lwm2m\server\store\TbInMemorySecurityStore.java
1
请在Spring Boot框架中完成以下Java代码
public BatchPartQuery scopeType(String scopeType) { if (scopeType == null) { throw new FlowableIllegalArgumentException("scopeType is null"); } this.scopeType = scopeType; return this; } @Override public BatchPartQuery tenantId(String tenantId) { if (tena...
} public String getSearchKey() { return searchKey; } public String getSearchKey2() { return searchKey2; } public String getBatchType() { return batchType; } public String getBatchSearchKey() { return batchSearchKey; } public String getBatchSearchK...
repos\flowable-engine-main\modules\flowable-batch-service\src\main\java\org\flowable\batch\service\impl\BatchPartQueryImpl.java
2
请完成以下Java代码
public String getObscuredValue (String clearValue) { setClearValue(clearValue); return getObscuredValue(); } // getObscuredValue /** * Get Obscured Value * @return Returns the obscuredValue. */ public String getObscuredValue () { if (m_obscuredValue != null) return m_obscuredValue; if (m_clearVal...
else if (i >= length-clearEnd) sb.append(c); else { if (!alpha && !Character.isDigit(c)) sb.append(c); else sb.append('*'); } } m_obscuredValue = sb.toString(); return m_obscuredValue; } // getObscuredValue /*******************************************************************...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\Obscure.java
1
请完成以下Java代码
public boolean retainAll(Collection<?> c) { return pipeList.retainAll(c); } @Override public void clear() { pipeList.clear(); } @Override public boolean equals(Object o) { return pipeList.equals(o); } @Override public int hashCode() { ...
return pipeList.remove(index); } @Override public int indexOf(Object o) { return pipeList.indexOf(o); } @Override public int lastIndexOf(Object o) { return pipeList.lastIndexOf(o); } @Override public ListIterator<Pipe<M, M>> listIterator() { ret...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\tokenizer\pipe\Pipeline.java
1
请完成以下Java代码
public List<Pair<Integer, Integer>> commonPrefixSearch(byte[] key, int offset, int maxResults) { ArrayList<Pair<Integer, Integer>> result = new ArrayList<Pair<Integer, Integer>>(); i...
return result; } /** * 大小 * * @return */ public int size() { return _array.length; } private static final int UNIT_SIZE = 4; // sizeof(int) private int[] _array; }
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\collection\dartsclone\DoubleArray.java
1
请完成以下Java代码
public ProcessInstanceBuilder transientVariable(String variableName, Object value) { if (this.transientVariables == null) { this.transientVariables = new HashMap<String, Object>(); } this.transientVariables.put(variableName, value); return this; } @Override publi...
return processDefinitionKey; } public String getMessageName() { return messageName; } public String getProcessInstanceName() { return processInstanceName; } public String getBusinessKey() { return businessKey; } public String getLinkedProcessInstanceId() { ...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\runtime\ProcessInstanceBuilderImpl.java
1
请完成以下Java代码
private static Document extractTextFromPptx(InputStream inputStream) throws IOException { try (XMLSlideShow ppt = new XMLSlideShow(inputStream)) { StringBuilder text = new StringBuilder(); for (XSLFSlide slide : ppt.getSlides()) { text.append("Slide ").append(slide.getSli...
text.append("Slide ").append(slide.getSlideNumber()).append(":\n"); for (List<HSLFTextParagraph> shapes : slide.getTextParagraphs()) { text.append(HSLFTextParagraph.getText(shapes)).append("\n"); } text.append("\n"); } return Do...
repos\JeecgBoot-main\jeecg-boot\jeecg-boot-module\jeecg-boot-module-airag\src\main\java\org\jeecg\modules\airag\llm\document\TikaDocumentParser.java
1
请在Spring Boot框架中完成以下Java代码
protected boolean scheduleShortRunningWork(Runnable runnable) { EnhancedQueueExecutor EnhancedQueueExecutor = managedQueueSupplier.get(); try { EnhancedQueueExecutor.execute(runnable); return true; } catch (Exception e) { // we must be able to schedule this log.log(Level.WARNING,...
try { EnhancedQueueExecutor.execute(runnable); } catch (RejectedExecutionException e) { rejected = true; } catch (Exception e) { // if it fails for some other reason, log a warning message long now = System.currentTimeMillis(); // only log every 60 seconds to prevent log flooding ...
repos\camunda-bpm-platform-master\distro\wildfly\subsystem\src\main\java\org\camunda\bpm\container\impl\jboss\service\MscExecutorService.java
2
请完成以下Java代码
public void setM_HU_Item_ID (final int M_HU_Item_ID) { if (M_HU_Item_ID < 1) set_ValueNoCheck (COLUMNNAME_M_HU_Item_ID, null); else set_ValueNoCheck (COLUMNNAME_M_HU_Item_ID, M_HU_Item_ID); } @Override public int getM_HU_Item_ID() { return get_ValueAsInt(COLUMNNAME_M_HU_Item_ID); } @Override pu...
public int getM_Product_ID() { return get_ValueAsInt(COLUMNNAME_M_Product_ID); } @Override public void setQty (final BigDecimal Qty) { set_Value (COLUMNNAME_Qty, Qty); } @Override public BigDecimal getQty() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_Qty); return bd != null ? bd : BigD...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java-gen\de\metas\handlingunits\model\X_M_HU_Item_Storage.java
1
请完成以下Java代码
private IAllocationSource createAllocationSource(final I_M_ShipmentSchedule schedule) { final ShipmentScheduleQtyPickedProductStorage shipmentScheduleQtyPickedStorage = new ShipmentScheduleQtyPickedProductStorage(schedule); return new GenericAllocationSourceDestination(shipmentScheduleQtyPickedStorage, schedule); ...
ShipmentSchedulesCUsToTUsAggregator.builder() .huShipmentScheduleBL(huShipmentScheduleBL) .shipmentScheduleAllocDAO(shipmentScheduleAllocDAO) .handlingUnitsBL(handlingUnitsBL) // .shipmentScheduleIds(shipmentScheduleIds) // .build().execute(); } @NonNull public Set<InOutLineId> retrieveI...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\shipmentschedule\api\ShipmentScheduleWithHUService.java
1
请完成以下Java代码
public String toString() { return getClass().getName() + " [headerValue=" + this.headerValue + "]"; } /** * Represents the directive values expected by the {@link ClearSiteDataHeaderWriter}. */ public enum Directive { CACHE("cache"), COOKIES("cookies"), STORAGE("storage"), EXECUTION_CONTEXTS("exec...
} private static final class SecureRequestMatcher implements RequestMatcher { @Override public boolean matches(HttpServletRequest request) { return request.isSecure(); } @Override public String toString() { return "Is Secure"; } } }
repos\spring-security-main\web\src\main\java\org\springframework\security\web\header\writers\ClearSiteDataHeaderWriter.java
1
请完成以下Java代码
public class NewPlatformVersionTrigger implements NotificationRuleTrigger { @Serial private static final long serialVersionUID = 3298785969736390092L; private final UpdateMessage updateInfo; @Override public NotificationRuleTriggerType getType() { return NotificationRuleTriggerType.NEW_PL...
@Override public EntityId getOriginatorEntityId() { return TenantId.SYS_TENANT_ID; } @Override public DeduplicationStrategy getDeduplicationStrategy() { return DeduplicationStrategy.ALL; } @Override public String getDeduplicationKey() { return String.join(":", Noti...
repos\thingsboard-master\common\data\src\main\java\org\thingsboard\server\common\data\notification\rule\trigger\NewPlatformVersionTrigger.java
1
请在Spring Boot框架中完成以下Java代码
public class Comment { @Id @GeneratedValue(strategy = GenerationType.AUTO) private long id; private String description; private Date date; public void setId(long id) { this.id = id; } public void setDescription(String description) { this.description = description; ...
public void setDate(Date total) { this.date = total; } public long getId() { return id; } public String getDescription() { return description; } public Date getDate() { return date; } }
repos\tutorials-master\persistence-modules\spring-data-jpa-repo-4\src\main\java\com\baeldung\spring\data\persistence\unidirectionalcascadingdelete\Comment.java
2
请完成以下Java代码
private Optional<I_C_Order> getOrderByExternalId(@NonNull final OrderQuery orderQuery) { final OrgId orgId = assumeNotNull(orderQuery.getOrgId(), "Param query needs to have a non-null orgId; query={}", orderQuery); final ExternalId externalId = assumeNotNull(orderQuery.getExternalId(), "Param query needs to have a...
{ queryBuilder.addEqualsFilter(I_C_Order.COLUMNNAME_ExternalSystem_ID, externalSystemId); } return queryBuilder .create() .firstOnlyOptional(); } public List<I_C_Order> getByQueryFilter(final IQueryFilter<I_C_Order> queryFilter) { return queryBL.createQueryBuilder(I_C_Order.class) .filter(quer...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\order\impl\AbstractOrderDAO.java
1
请完成以下Java代码
public HashcodeBuilder appendHashcode(final int hashcodeToAppend) { hashcode = prime * hashcode + hashcodeToAppend; return this; } public HashcodeBuilder append(Map<?, ?> map, boolean handleEmptyMapAsNull) { if (handleEmptyMapAsNull && (map == null || map.isEmpty())) { return append((Object)null); } ...
* Sames as {@link #toHashcode()} because: * <ul> * <li>we want to avoid bugs like calling this method instead of {@link #toHashcode()} * <li>the real hash code of this object does not matter * </ul> * * @deprecated Please use {@link #toHashcode()}. This method is present here, just to avoid some mistakes. ...
repos\metasfresh-new_dawn_uat\backend\de.metas.util\src\main\java\org\adempiere\util\lang\HashcodeBuilder.java
1
请完成以下Java代码
public Collection<? extends GrantedAuthority> mapAuthorities(Collection<? extends GrantedAuthority> authorities) { var identityProviderProperties = oAuth2Properties.getIdentityProvider(); var groupNameAttribute = identityProviderProperties.getGroupNameAttribute(); Set<GrantedAuthority> mappedAuthorities = n...
var grantedAuthorities = Arrays.stream(groupsAttribute.split(groupNameDelimiter)) .map(SimpleGrantedAuthority::new) .collect(Collectors.toSet()); mappedAuthorities.addAll(grantedAuthorities); } else { logger.error("Could not map granted authorities, unsupported gr...
repos\camunda-bpm-platform-master\spring-boot-starter\starter-security\src\main\java\org\camunda\bpm\spring\boot\starter\security\oauth2\impl\OAuth2GrantedAuthoritiesMapper.java
1
请完成以下Java代码
public void onBeforeElementDelete(@NonNull final I_AD_UI_Element uiElement) { final IQueryBL queryBL = Services.get(IQueryBL.class); queryBL.createQueryBuilder(I_AD_UI_ElementField.class) .addEqualsFilter(I_AD_UI_ElementField.COLUMN_AD_UI_Element_ID, uiElement.getAD_UI_Element_ID()) .create() .delete(); } ...
final AdElementId fieldElementId = getFieldElementId(field); final I_AD_Element fieldElement = Services.get(IADElementDAO.class).getById(fieldElementId.getRepoId()); uiElement.setName(fieldElement.getName()); uiElement.setDescription(fieldElement.getDescription()); uiElement.setHelp(fieldElement.getHelp()); }...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\ui\model\interceptor\AD_UI_Element.java
1
请完成以下Java代码
public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Mod...
sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string wi...
repos\tutorials-master\spring-swagger-codegen-modules\spring-openapi-generator-api-client\src\main\java\com\baeldung\petstore\client\model\ModelApiResponse.java
1
请完成以下Java代码
public class RestException extends ExternalTaskClientException { protected Integer httpStatusCode; protected String type; protected Integer code; public RestException(String message, String type, Integer code) { super(message); this.type = type; this.code = code; } public RestException(String...
/** * @return the exception type from the Engine's REST API. */ public String getType() { return getCause() == null ? type : ((RestException) getCause()).getType(); } public void setType(String type) { this.type = type; } /** * @return the exception error code from the Engine's REST API. ...
repos\camunda-bpm-platform-master\clients\java\client\src\main\java\org\camunda\bpm\client\exception\RestException.java
1
请完成以下Java代码
public int getReadCount() { return readCount; } public void setReadCount(int readCount) { this.readCount = readCount; } public String getContent() { return content; } public void setContent(String content) { this.content = content; } public int getLikeCount() { return likeCount; } public void s...
return url; } public void setUrl(String url) { this.url = url; } public String getUrlMd5() { return urlMd5; } public void setUrlMd5(String urlMd5) { this.urlMd5 = urlMd5; } @Override public String toString() { return "Blog{" + "title='" + title + '\'' + ", publishDate=" + publishDate + ", readCount...
repos\spring-boot-quick-master\quick-vw-crawler\src\main\java\com\crawler\vw\entity\Blog.java
1
请完成以下Java代码
public String getProcessDefinitionId() { return processDefinitionId; } public Map<String, Object> getCorrelationProcessInstanceVariables() { return correlationProcessInstanceVariables; } public Map<String, Object> getCorrelationLocalVariables() { return correlationLocalVariables; } public Map...
return isExclusiveCorrelation; } public String getTenantId() { return tenantId; } public boolean isTenantIdSet() { return isTenantIdSet; } public boolean isExecutionsOnly() { return executionsOnly; } }
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\MessageCorrelationBuilderImpl.java
1
请完成以下Java代码
public static HUConsolidationJobReference ofJob(@NonNull final HUConsolidationJob job) { return builder() .bpartnerLocationId(job.getShipToBPLocationId()) .pickingSlotIds(job.getPickingSlotIds()) .countHUs(null) .startedJobId(job.getId()) .build(); } public Params toParams() { return Params...
final int countHUsNew = optionalCountHUs.getAsInt(); if (this.countHUs == null || this.countHUs != countHUsNew) { return toBuilder().countHUs(countHUsNew).build(); } else { return this; } } else { return this; } } }
repos\metasfresh-new_dawn_uat\backend\de.metas.hu_consolidation.mobile\src\main\java\de\metas\hu_consolidation\mobile\job\HUConsolidationJobReference.java
1
请完成以下Java代码
public int compare(Object o1, Object o2) { if (!(o1 instanceof MAssignmentSlot && o2 instanceof MAssignmentSlot)) throw new ClassCastException ("MAssignmentSlot.compare arguments not MAssignmentSlot"); MAssignmentSlot s1 = (MAssignmentSlot)o1; MAssignmentSlot s2 = (MAssignmentSlot)o2; // Start Date int ...
* @see java.lang.Object#equals(java.lang.Object) * @see java.lang.Object#hashCode() */ public boolean equals(Object obj) { if (obj instanceof MAssignmentSlot) { MAssignmentSlot cmp = (MAssignmentSlot)obj; if (m_startTime.equals(cmp.getStartTime()) && m_endTime.equals(cmp.getEndTime()) && m_s...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\MAssignmentSlot.java
1
请完成以下Java代码
private Optional<MqttMessage> processConvertFromGatewayAttributeResponseMsg(MqttDeviceAwareSessionContext ctx, String deviceName, TransportProtos.GetAttributeResponseMsg responseMsg) throws AdaptorException { if (!StringUtils.isEmpty(responseMsg.getError())) { throw new AdaptorException(responseMsg....
private static String validatePayload(UUID sessionId, ByteBuf payloadData, boolean isEmptyPayloadAllowed) throws AdaptorException { String payload = payloadData.toString(UTF8); if (payload == null) { log.debug("[{}] Payload is empty!", sessionId); if (!isEmptyPayloadAllowed) { ...
repos\thingsboard-master\common\transport\mqtt\src\main\java\org\thingsboard\server\transport\mqtt\adaptors\JsonMqttAdaptor.java
1
请在Spring Boot框架中完成以下Java代码
public void configureClientInboundChannel(final ChannelRegistration registration) { registration.interceptors(new LoggingChannelInterceptor()); // NOTE: atm we don't care if the inbound messages arrived in the right order // When and If we would care we would restrict the taskExecutor()'s corePoolSize to ONE. ...
public void afterSendCompletion(final @NonNull Message<?> message, final @NonNull MessageChannel channel, final boolean sent, final Exception ex) { if (!sent) { logger.warn("Failed sending: message={}, channel={}, sent={}", message, channel, sent, ex); } } @Override public void afterReceiveComplet...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\serverRoot\de.metas.adempiere.adempiere.serverRoot.base\src\main\java\de\metas\server\config\WebsocketConfig.java
2
请完成以下Java代码
public TableRecordReference getFirstRecord() { return getRecords().get(0); } } // // // // // public enum ViewOpenTarget { IncludedView, ModalOverlay, NewBrowserTab } @Immutable @JsonAutoDetect(fieldVisibility = Visibility.ANY, getterVisibility = Visibility.NONE, isGetterVisibility = Visibility.N...
{ @JsonProperty("code") String code; @lombok.Builder @JsonCreator private DisplayQRCode(@JsonProperty("code") @NonNull final String code) { this.code = code; } } @JsonAutoDetect(fieldVisibility = Visibility.ANY, getterVisibility = Visibility.NONE, isGetterVisibility = Visibility.NONE, setterVisibil...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\process\ProcessExecutionResult.java
1
请完成以下Java代码
public List<EventSubscriptionQueryValue> getEventSubscriptions() { return eventSubscriptions; } public void setEventSubscriptions(List<EventSubscriptionQueryValue> eventSubscriptions) { this.eventSubscriptions = eventSubscriptions; } public String getTenantId() { return tenantI...
} public boolean isOnlyChildExecutions() { return onlyChildExecutions; } public boolean isOnlyProcessInstanceExecutions() { return onlyProcessInstanceExecutions; } public boolean isOnlySubProcessExecutions() { return onlySubProcessExecutions; } public Date getStar...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\ProcessInstanceQueryImpl.java
1
请完成以下Java代码
public Result processWorkPackage(@NonNull final I_C_Queue_WorkPackage workPackage, @NonNull final String localTrxName) { final List<OLCandId> candidateIds = queueDAO.retrieveItems(workPackage, I_C_OLCand.class, localTrxName) .stream() .map(I_C_OLCand::getC_OLCand_ID) .map(OLCandId::ofRepoId) .collect...
final OLCandProcessorDescriptor olCandProcessorDescriptor = olCandProcessorRepo.getById(olCandProcessorId); try { olCandBL.process(IOLCandBL.OLCandProcessRequest.builder() .processor(olCandProcessorDescriptor) .selectionId(enqueuedSelection) .asyncBatchId(AsyncBatchId.ofRepoIdOrNull(workPackage.g...
repos\metasfresh-new_dawn_uat\backend\de.metas.salescandidate.base\src\main\java\de\metas\ordercandidate\api\async\C_OLCandToOrderWorkpackageProcessor.java
1
请完成以下Java代码
public void afterCommit() { transactionListener.execute(commandContext); } } ); } else if (transactionState.equals(TransactionState.ROLLINGBACK)) { TransactionSynchronizationManager.registerSynchronization( new T...
public void flush() {} public void beforeCommit(boolean readOnly) {} public void beforeCompletion() {} public void afterCommit() {} public void afterCompletion(int status) {} @Override public int getOrder() { return transactionSynchronizationAdapterOrder;...
repos\Activiti-develop\activiti-core\activiti-spring\src\main\java\org\activiti\spring\SpringTransactionContext.java
1
请在Spring Boot框架中完成以下Java代码
public class Metasfresh { @ManagedOperation public String[] getActiveTrxNames() { return Services.get(ITrxManager.class) .getActiveTransactionsList() .stream() .map((trx) -> trx.getTrxName()) .toArray((size) -> new String[size]); } @ManagedOperation public String getStrackTrace(String trxName)...
{ LogManager.setLevel(levelName); } @ManagedOperation public String getLogLevel() { final Level level = LogManager.getLevel(); return level == null ? null : level.toString(); } @ManagedOperation public void runFinalization() { System.runFinalization(); } @ManagedOperation public void resetLocalCac...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\jmx\Metasfresh.java
2
请完成以下Java代码
public class TouristData { private String region; private String country; private String year; private String series; private Double value; private String footnotes; private String source; public String getRegion() { return region; } public void setRegion(String region...
} public void setValue(Double value) { this.value = value; } public String getFootnotes() { return footnotes; } public void setFootnotes(String footnotes) { this.footnotes = footnotes; } public String getSource() { return source; } public void set...
repos\tutorials-master\apache-spark\src\main\java\com\baeldung\differences\dataframe\dataset\rdd\TouristData.java
1
请完成以下Java代码
public class DeleteBatchCmd implements Command<Void> { protected boolean cascadeToHistory; protected String batchId; public DeleteBatchCmd(String batchId, boolean cascadeToHistory) { this.batchId = batchId; this.cascadeToHistory = cascadeToHistory; } @Override public Void execute(CommandContext c...
} protected void checkAccess(CommandContext commandContext, BatchEntity batch) { for(CommandChecker checker : commandContext.getProcessEngineConfiguration().getCommandCheckers()) { checker.checkDeleteBatch(batch); } } protected void writeUserOperationLog(CommandContext commandContext, String tenan...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\batch\DeleteBatchCmd.java
1
请完成以下Java代码
public static int getRepetitionCounter(PlanItemInstanceEntity repeatingPlanItemInstanceEntity) { Integer counter = (Integer) repeatingPlanItemInstanceEntity.getVariableLocal(getCounterVariable(repeatingPlanItemInstanceEntity)); if (counter == null) { return 0; } else { re...
localVariables.put(repetitionRule.getElementVariableName(), item); } if (repetitionRule.hasElementIndexVariable()) { localVariables.put(repetitionRule.getElementIndexVariableName(), index); } PlanItemInstanceEntity childPlanItemInstanceEntity = PlanItemInstanceUtil.copyAndIn...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\util\PlanItemInstanceUtil.java
1
请完成以下Java代码
public List<DataAssociation> getDataInputAssociations() { return dataInputAssociations; } public void setDataInputAssociations(List<DataAssociation> dataInputAssociations) { this.dataInputAssociations = dataInputAssociations; } public List<DataAssociation> getDataOutputAssociations() {...
} dataInputAssociations = new ArrayList<DataAssociation>(); if (otherActivity.getDataInputAssociations() != null && !otherActivity.getDataInputAssociations().isEmpty()) { for (DataAssociation association : otherActivity.getDataInputAssociations()) { dataInputAssociations.add...
repos\Activiti-develop\activiti-core\activiti-bpmn-model\src\main\java\org\activiti\bpmn\model\Activity.java
1
请完成以下Spring Boot application配置
spring: application: name: product-service server: port: '8080' priceClient: baseUrl: http://price-service:8081 management: tracing: sampling: probabilit
y: '1.0' otlp: tracing: endpoint: http://collector:4318/v1/traces
repos\tutorials-master\spring-boot-modules\spring-boot-open-telemetry\spring-boot-open-telemetry1\src\main\resources\application.yml
2
请完成以下Java代码
public int getAD_Issue_ID() { return get_ValueAsInt(COLUMNNAME_AD_Issue_ID); } @Override public void setAD_Table_ID (final int AD_Table_ID) { if (AD_Table_ID < 1) set_Value (COLUMNNAME_AD_Table_ID, null); else set_Value (COLUMNNAME_AD_Table_ID, AD_Table_ID); } @Override public int getAD_Table_I...
{ return get_ValueAsInt(COLUMNNAME_Record_ID); } @Override public void setTrxName (final @Nullable java.lang.String TrxName) { set_Value (COLUMNNAME_TrxName, TrxName); } @Override public java.lang.String getTrxName() { return get_ValueAsString(COLUMNNAME_TrxName); } /** * Type AD_Reference_ID=541...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_API_Request_Audit_Log.java
1
请完成以下Java代码
protected <T extends AppPlugin> CharSequence createPluginPackagesStr(String appName, String applicationPath, String contextPath) { final List<T> plugins = getPlugins(appName)...
String definition = String.format(pluginDependencyFormat, appName, pluginId, appName, pluginId); builder.append(definition); } return "[" + builder.toString() + "]"; } @SuppressWarnings("unchecked") protected <T extends AppPlugin> List<T> getPlugins(String appName) { if (COCKPIT_APP_NAME.equa...
repos\camunda-bpm-platform-master\webapps\assembly\src\main\java\org\camunda\bpm\webapp\impl\engine\ProcessEnginesFilter.java
1
请完成以下Java代码
public MailTextBuilder record(final Object record) { _record = record; invalidateCache(); return this; } public MailTextBuilder recordAndUpdateBPartnerAndContact(final Object record) { record(record); if (record != null) { updateBPartnerAndContactFromRecord(record); } return this; } privat...
final Integer userIdObj = InterfaceWrapperHelper.getValueOrNull(record, "AD_User_ID"); if (!(userIdObj instanceof Integer)) { return null; } final int userRepoId = userIdObj.intValue(); return UserId.ofRepoIdOrNull(userRepoId); } private Object getRecord() { return _record; } public MailTextBuild...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\email\templates\MailTextBuilder.java
1
请完成以下Java代码
public List<I_C_ProjectTask> getTasks() { return Services.get(IQueryBL.class).createQueryBuilder(I_C_ProjectTask.class) .addEqualsFilter(I_C_ProjectTask.COLUMNNAME_C_ProjectPhase_ID, getC_ProjectPhase_ID()) .orderBy(I_C_ProjectTask.COLUMNNAME_SeqNo) .create() .list(); } /** * @return number of t...
InterfaceWrapperHelper.getPO(fromTask), InterfaceWrapperHelper.getPO(toTask), getAD_Client_ID(), getAD_Org_ID()); toTask.setC_ProjectPhase_ID(getC_ProjectPhase_ID()); InterfaceWrapperHelper.save(toTask); count++; } } if (fromTasks.size() != count) log.warn("Count difference - Pro...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java-legacy\org\compiere\model\MProjectPhase.java
1
请在Spring Boot框架中完成以下Java代码
protected Mono<StatusInfo> convertStatusInfo(ClientResponse response) { boolean hasCompatibleContentType = response.headers() .contentType() .filter((mt) -> mt.isCompatibleWith(MediaType.APPLICATION_JSON) || this.apiMediaTypeHandler.isApiMediaType(mt)) .isPresent(); StatusInfo statusInfoFromStatus = ...
details.put("error", Objects.requireNonNull(HttpStatus.resolve(httpStatus.value())).getReasonPhrase()); if (body.get("details") instanceof Map) { details.putAll((Map<? extends String, ?>) body.get("details")); } else { details.putAll(body); } return StatusInfo.ofDown(details); } protected Mono<Status...
repos\spring-boot-admin-master\spring-boot-admin-server\src\main\java\de\codecentric\boot\admin\server\services\StatusUpdater.java
2
请完成以下Java代码
public static void closeQuietly(OutputStream os) { try { if (os != null) os.close(); } catch (IOException ignored) { } } public static void closeQuietly(Writer w) { try { if (w != null) w.close(); } ...
/** * 数组分割 * * @param from 源 * @param to 目标 * @param <T> 类型 * @return 目标 */ public static <T> T[] shrink(T[] from, T[] to) { assert to.length <= from.length; System.arraycopy(from, 0, to, 0, to.length); return to; } }
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\mining\word2vec\Utility.java
1
请完成以下Java代码
public void setChunkUUID (final @Nullable java.lang.String ChunkUUID) { set_Value (COLUMNNAME_ChunkUUID, ChunkUUID); } @Override public java.lang.String getChunkUUID() { return get_ValueAsString(COLUMNNAME_ChunkUUID); } @Override public de.metas.inoutcandidate.model.I_M_ShipmentSchedule getM_ShipmentSche...
{ set_ValueFromPO(COLUMNNAME_M_ShipmentSchedule_ID, de.metas.inoutcandidate.model.I_M_ShipmentSchedule.class, M_ShipmentSchedule); } @Override public void setM_ShipmentSchedule_ID (final int M_ShipmentSchedule_ID) { if (M_ShipmentSchedule_ID < 1) set_Value (COLUMNNAME_M_ShipmentSchedule_ID, null); else ...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java-gen\de\metas\inoutcandidate\model\X_M_ShipmentSchedule_Recompute.java
1
请完成以下Java代码
private static boolean withinTheRangeOf(int c, int min, int max) { return c >= min && c <= max; } private void validateRedirectUris() { if (CollectionUtils.isEmpty(this.redirectUris)) { return; } for (String redirectUri : this.redirectUris) { Assert.isTrue(validateRedirectUri(redirectUri), ...
Assert.isTrue(validateRedirectUri(postLogoutRedirectUri), "post_logout_redirect_uri \"" + postLogoutRedirectUri + "\" is not a valid post logout redirect URI or contains fragment"); } } private static boolean validateRedirectUri(String redirectUri) { try { URI validRedirectUri = new URI(redirectUri...
repos\spring-security-main\oauth2\oauth2-authorization-server\src\main\java\org\springframework\security\oauth2\server\authorization\client\RegisteredClient.java
1
请完成以下Java代码
public void setDescription (java.lang.String Description) { set_Value (COLUMNNAME_Description, Description); } @Override public java.lang.String getDescription() { return (java.lang.String)get_Value(COLUMNNAME_Description); } @Override public void setM_CommodityNumber_ID (int M_CommodityNumber_ID) { i...
} @Override public int getSeqNo() { return get_ValueAsInt(COLUMNNAME_SeqNo); } @Override public void setValue (java.lang.String Value) { set_Value (COLUMNNAME_Value, Value); } @Override public java.lang.String getValue() { return (java.lang.String)get_Value(COLUMNNAME_Value); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\de\metas\fresh\model\X_M_CommodityNumber.java
1
请完成以下Java代码
protected String encodeNonNullPassword(String rawPassword) { byte[] salt = new byte[this.saltLength]; this.secureRandom.nextBytes(salt); Hash hash = Password.hash(rawPassword).addSalt(salt).with(this.balloonHashingFunction); String encodedSalt = Base64.getEncoder().encodeToString(salt); String encodedHash = ...
} catch (IllegalArgumentException ex) { // Invalid Base64 encoding return false; } } @Override protected boolean upgradeEncodingNonNull(String encodedPassword) { // For now, we'll return false to maintain existing behavior // This could be enhanced in the future to check if the encoding parameters /...
repos\spring-security-main\crypto\src\main\java\org\springframework\security\crypto\password4j\BalloonHashingPassword4jPasswordEncoder.java
1
请完成以下Java代码
public static Field makeAccessible(Field field) { ReflectionUtils.makeAccessible(field); return field; } /** * Makes the {@link Method} accessible. * * @param method {@link Method} to make accessible; must not be {@literal null}. * @return the given {@link Method}. * @see java.lang.reflect.Method *...
return value; } /** * Resolves the {@link Object invocation target} for the given {@link Method}. * * If the {@link Method} is {@link Modifier#STATIC} then {@literal null} is returned, * otherwise {@link Object target} will be returned. * * @param <T> {@link Class type} of the {@link Object target}. * ...
repos\spring-boot-data-geode-main\spring-geode-project\spring-geode\src\main\java\org\springframework\geode\core\util\ObjectUtils.java
1
请完成以下Java代码
public int getPartitionSize() { final Integer ii = (Integer)get_Value(COLUMNNAME_PartitionSize); if (ii == null) { return 0; } return ii.intValue(); } /** * Set Name der DB-Tabelle. * * @param TableName Name der DB-Tabelle */ @Override
public void setTableName(final java.lang.String TableName) { set_ValueNoCheck(COLUMNNAME_TableName, TableName); } /** * Get Name der DB-Tabelle. * * @return Name der DB-Tabelle */ @Override public java.lang.String getTableName() { return (java.lang.String)get_Value(COLUMNNAME_TableName); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.dlm\base\src\main\java-gen\de\metas\dlm\model\X_DLM_Partition_Size_Per_Table_V.java
1
请完成以下Java代码
class C_BPartner { @ModelChange(timings = { ModelValidator.TYPE_AFTER_NEW, ModelValidator.TYPE_AFTER_CHANGE }, ifColumnsChanged = I_C_Doc_Outbound_Log.COLUMNNAME_IsInvoiceEmailEnabled) public void updateFlag(final I_C_BPartner bpartner) { final Properties ctx = InterfaceWrapperHelper.getCtx(bpartner); final or...
{ return; } // // update outbound log accordingly which will trigger a validator <code>C_Doc_Outbound_Log</code> which will create the notification // update only for invoices final int AD_Table_ID = Services.get(IADTableDAO.class).retrieveTableId(I_C_Invoice.Table_Name); if (AD_Table_ID == docExchange.g...
repos\metasfresh-new_dawn_uat\backend\de.metas.document.archive\de.metas.document.archive.base\src\main\java\de\metas\document\archive\interceptor\C_BPartner.java
1
请完成以下Java代码
public ExecutionTreeNode getTreeNode(String executionId) { return getTreeNode(executionId, root); } protected ExecutionTreeNode getTreeNode(String executionId, ExecutionTreeNode currentNode) { if (currentNode.getExecutionEntity().getId().equals(executionId)) { return currentNode; ...
return new ExecutionTreeBfsIterator(this.getRoot()); } /** * Uses an {@link ExecutionTreeBfsIterator}, but returns the leafs first (so flipped order of BFS) */ public ExecutionTreeBfsIterator leafsFirstIterator() { return new ExecutionTreeBfsIterator(this.getRoot(), true); } @Ove...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\debug\ExecutionTree.java
1
请在Spring Boot框架中完成以下Java代码
public String getTenantId() { return tenantId; } public Collection<String> getTenantIds() { return tenantIds; } public boolean isWithoutTenantId() { return withoutTenantId; } public String getConfiguration() { return configuration; } public Collection<...
public boolean isWithoutConfiguration() { return withoutConfiguration; } public List<EventSubscriptionQueryImpl> getOrQueryObjects() { return orQueryObjects; } public EventSubscriptionQueryImpl getCurrentOrQueryObject() { return currentOrQueryObject; } public boolean i...
repos\flowable-engine-main\modules\flowable-eventsubscription-service\src\main\java\org\flowable\eventsubscription\service\impl\EventSubscriptionQueryImpl.java
2
请完成以下Java代码
static ITranslatableString formatDateValue(@Nullable final java.util.Date valueDate) { return valueDate != null ? TranslatableStrings.date(valueDate) : TranslatableStrings.anyLanguage("-"); } static ITranslatableString formatDateValue(@Nullable final LocalDate valueDate) { return valueDate != null ...
return; } description.append(SEPARATOR); } private void appendProductAttributes(final TranslatableStringBuilder description) { final boolean isInstanceAttribute = false; for (final Attribute attribute : attributesRepo.retrieveAttributes(attributeSetId, isInstanceAttribute)) { appendSeparator(descripti...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\org\adempiere\mm\attributes\api\impl\ASIDescriptionBuilderCommand.java
1
请完成以下Java代码
private static class ColorDocumentFieldValueLoader implements DocumentFieldValueLoader { @NonNull String sqlColumnName; @Override @Nullable public Object retrieveFieldValue( @NonNull final ResultSet rs, final boolean isDisplayColumnAvailable_NOTUSED, final String adLanguage_NOTUSED, final Look...
return null; } final IColorRepository colorRepository = Services.get(IColorRepository.class); final MFColor color = colorRepository.getColorById(adColorId); if (color == null) { return null; } final Color awtColor = color.toFlatColor().getFlatColor(); return ColorValue.ofRGB(awtColor.getRe...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\descriptor\sql\DocumentFieldValueLoaders.java
1
请完成以下Java代码
public Scripts continueOnError(boolean continueOnError) { this.continueOnError = continueOnError; return this; } public boolean isContinueOnError() { return this.continueOnError; } public Scripts separator(String separator) { this.separator = separator; return this; } public String getSepa...
return this.separator; } public Scripts encoding(@Nullable Charset encoding) { this.encoding = encoding; return this; } public @Nullable Charset getEncoding() { return this.encoding; } } }
repos\spring-boot-4.0.1\module\spring-boot-sql\src\main\java\org\springframework\boot\sql\init\AbstractScriptDatabaseInitializer.java
1
请在Spring Boot框架中完成以下Java代码
public class JwtTokenProvider { /** * THIS IS NOT A SECURE PRACTICE! For simplicity, we are storing a static key here. Ideally, in a * microservices environment, this key would be kept on a config-server. */ @Value("${security.jwt.token.secret-key:secret-key}") private String secretKey; @Value("${security.j...
return Jwts.parser().setSigningKey(secretKey).parseClaimsJws(token).getBody().getSubject(); } public String resolveToken(HttpServletRequest req) { String bearerToken = req.getHeader("Authorization"); if (bearerToken != null && bearerToken.startsWith("Bearer ")) { return bearerToken.substring(7, bearerToken.le...
repos\spring-boot-quick-master\quick-jwt\src\main\java\com\quick\jwt\security\JwtTokenProvider.java
2
请完成以下Java代码
public Integer getProductCount() { return productCount; } public void setProductCount(Integer productCount) { this.productCount = productCount; } public String getProductUnit() { return productUnit; } public void setProductUnit(String productUnit) { this.produc...
} public void setDescription(String description) { this.description = description; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); ...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\PmsProductCategory.java
1
请完成以下Java代码
public void setOnDelete (final boolean OnDelete) { set_Value (COLUMNNAME_OnDelete, OnDelete); } @Override public boolean isOnDelete() { return get_ValueAsBoolean(COLUMNNAME_OnDelete); } @Override public void setOnNew (final boolean OnNew) { set_Value (COLUMNNAME_OnNew, OnNew); } @Override public b...
@Override public int getSource_Table_ID() { return get_ValueAsInt(COLUMNNAME_Source_Table_ID); } @Override public void setTargetRecordMappingSQL (final java.lang.String TargetRecordMappingSQL) { set_Value (COLUMNNAME_TargetRecordMappingSQL, TargetRecordMappingSQL); } @Override public java.lang.String ge...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_BusinessRule_Trigger.java
1