instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
final class AnnotatedTablePopupMenu extends JPopupMenu { /** * */ private static final long serialVersionUID = 6618408337499167870L; private final WeakReference<JTable> tableRef; private final PopupMenuListener popupListener = new PopupMenuListenerAdapter() { @Override public void popupMenuWillBecomeVisi...
{ if (!(me instanceof AbstractButton)) { continue; } final AbstractButton button = (AbstractButton)me; final Action action = button.getAction(); if (action instanceof AnnotatedTableAction) { final AnnotatedTableAction tableAction = (AnnotatedTableAction)action; tableActions.add(tableA...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java\org\compiere\swing\table\AnnotatedTablePopupMenu.java
1
请完成以下Java代码
public int getPO_DiscountSchema_ID() { int ii = super.getPO_DiscountSchema_ID(); if (ii == 0) { ii = getBPGroup().getPO_DiscountSchema_ID(); } return ii; } // getPO_DiscountSchema_ID // metas public static int getDefaultContactId(final int cBPartnerId) { for (final I_AD_User user : Services.get(IB...
// Value/Name change if (success && !newRecord && (is_ValueChanged("Value") || is_ValueChanged("Name"))) { MAccount.updateValueDescription(getCtx(), "C_BPartner_ID=" + getC_BPartner_ID(), get_TrxName()); } return success; } // afterSave /** * Before Delete * * @return true */ @Override ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\MBPartner.java
1
请完成以下Java代码
public void setTelephone(String telephone) { this.telephone = telephone; } public List<Pet> getPets() { return this.pets; } public void addPet(Pet pet) { if (pet.isNew()) { getPets().add(pet); } } /** * Return the Pet with the given name, or null if none found for this Owner. * @param name to te...
.append("new", this.isNew()) .append("lastName", this.getLastName()) .append("firstName", this.getFirstName()) .append("address", this.address) .append("city", this.city) .append("telephone", this.telephone) .toString(); } /** * Adds the given {@link Visit} to the {@link Pet} with the given ident...
repos\spring-petclinic-main\src\main\java\org\springframework\samples\petclinic\owner\Owner.java
1
请在Spring Boot框架中完成以下Java代码
public class LoginVM { @NotNull @Size(min = 1, max = 50) private String username; @NotNull @Size(min = 4, max = 100) private String password; private boolean rememberMe; public String getUsername() { return username; } public void setUsername(String username) { ...
public void setPassword(String password) { this.password = password; } public boolean isRememberMe() { return rememberMe; } public void setRememberMe(boolean rememberMe) { this.rememberMe = rememberMe; } // prettier-ignore @Override public String toString() { ...
repos\tutorials-master\jhipster-8-modules\jhipster-8-microservice\gateway-app\src\main\java\com\gateway\web\rest\vm\LoginVM.java
2
请完成以下Java代码
public void setAD_PInstance_ID (final int AD_PInstance_ID) { if (AD_PInstance_ID < 1) set_Value (COLUMNNAME_AD_PInstance_ID, null); else set_Value (COLUMNNAME_AD_PInstance_ID, AD_PInstance_ID); } @Override public int getAD_PInstance_ID() { return get_ValueAsInt(COLUMNNAME_AD_PInstance_ID); } @Ov...
@Override public de.metas.inoutcandidate.model.I_M_ShipmentSchedule getM_ShipmentSchedule() { return get_ValueAsPO(COLUMNNAME_M_ShipmentSchedule_ID, de.metas.inoutcandidate.model.I_M_ShipmentSchedule.class); } @Override public void setM_ShipmentSchedule(final de.metas.inoutcandidate.model.I_M_ShipmentSchedule M...
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
请在Spring Boot框架中完成以下Java代码
public class GlobalProperties { //thread-pool , relax binding private int threadPool; private String email; public int getThreadPool() { return threadPool; } public void setThreadPool(int threadPool) { this.threadPool = threadPool; } public String getEmail() {
return email; } public void setEmail(String email) { this.email = email; } @Override public String toString() { return "GlobalProperties{" + "threadPool=" + threadPool + ", email='" + email + '\'' + '}'; } }
repos\spring-boot-master\yaml-simple\src\main\java\com\mkyong\config\GlobalProperties.java
2
请完成以下Java代码
public void setFieldExtensions(List<FieldExtension> fieldExtensions) { this.fieldExtensions = fieldExtensions; } public Object getInstance() { return instance; } public void setInstance(Object instance) { this.instance = instance; } @Override public ScriptInfo getS...
} @Override public abstract AbstractFlowableHttpHandler clone(); public void setValues(AbstractFlowableHttpHandler otherHandler) { super.setValues(otherHandler); setImplementation(otherHandler.getImplementation()); setImplementationType(otherHandler.getImplementationType()); ...
repos\flowable-engine-main\modules\flowable-bpmn-model\src\main\java\org\flowable\bpmn\model\AbstractFlowableHttpHandler.java
1
请完成以下Java代码
public int getM_Product_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Name. @param Name Alphanumeric identifier of the entity */ public void setName (String Name) { set_Value (COLUMNNAME_Name, Name); } /** Get Na...
*/ public void setValidFrom (Timestamp ValidFrom) { set_Value (COLUMNNAME_ValidFrom, ValidFrom); } /** Get Valid from. @return Valid from including this date (first day) */ public Timestamp getValidFrom () { return (Timestamp)get_Value(COLUMNNAME_ValidFrom); } /** Set Valid to. @param ValidTo V...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\eevolution\model\X_C_TaxDefinition.java
1
请完成以下Java代码
public void setMultiplier(Double multiplier) { this.multiplier = multiplier; } /** * Return the maximum delay for any retry attempt. * @return the maximum delay */ public Duration getMaxDelay() { return this.maxDelay; } /** * Specify the maximum delay for any retry attempt, limiting how far * {@lin...
* @see #DEFAULT_MAX_DELAY */ public void setMaxDelay(Duration maxDelay) { this.maxDelay = maxDelay; } /** * Set the factory to use to create the {@link RetryPolicy}, or {@code null} to use * the default. The function takes a {@link Builder RetryPolicy.Builder} initialized * with the state of this instance...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\retry\RetryPolicySettings.java
1
请完成以下Java代码
public class LinesReader implements Tasklet, StepExecutionListener { private final Logger logger = LoggerFactory.getLogger(LinesReader.class); private List<Line> lines; private FileUtils fu; @Override public void beforeStep(StepExecution stepExecution) { lines = new ArrayList<>(); ...
} return RepeatStatus.FINISHED; } @Override public ExitStatus afterStep(StepExecution stepExecution) { fu.closeReader(); stepExecution .getJobExecution() .getExecutionContext() .put("lines", this.lines); logger.debug("Lines Reader ended."); ...
repos\tutorials-master\spring-batch\src\main\java\com\baeldung\taskletsvschunks\tasklets\LinesReader.java
1
请完成以下Java代码
private void process() { if (segments.isEmpty()) { return; } final List<IShipmentScheduleSegment> segmentsCopy = new ArrayList<>(segments); segments.clear(); shipmentScheduleInvalidator.flagSegmentForRecompute(segmentsCopy); } public void addSegment(final IShipmentScheduleSegment segment) { if (...
{ return; } this.segments.add(segment); } public void addSegments(final Collection<IShipmentScheduleSegment> segments) { if (segments == null || segments.isEmpty()) { return; } this.segments.addAll(segments); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\inoutcandidate\invalidation\impl\ShipmentScheduleSegmentChangedProcessor.java
1
请在Spring Boot框架中完成以下Java代码
public class FlushOnSaveRepositoryImpl<T> implements FlushOnSaveRepository<T> { final @NonNull EntityManager entityManager; /* * (non-Javadoc) * @see example.springdata.jpa.compositions.FlushOnSaveRepository#save(java.lang.Object) */ @Transactional @Override public <S extends T> S save(S entity) { doSav...
@Override public <S extends T> Iterable<S> saveAll(Iterable<S> entities) { entities.forEach(this::doSave); entityManager.flush(); return entities; } @SuppressWarnings({ "unchecked", "rawtypes" }) private <S extends T> EntityInformation<Object, S> getEntityInformation(S entity) { var userClass = ClassUt...
repos\spring-data-examples-main\jpa\example\src\main\java\example\springdata\jpa\compositions\FlushOnSaveRepositoryImpl.java
2
请完成以下Java代码
public boolean isExpired() { return isExpired(Instant.now()); } boolean isExpired(Instant now) { if (this.maxInactiveInterval.isNegative()) { return false; } return now.minus(this.maxInactiveInterval).compareTo(this.lastAccessedTime) >= 0; } @Override @SuppressWarnings("unchecked") public <T> T getAt...
} /** * Sets the identifier for this {@link Session}. The id should be a secure random * generated value to prevent malicious users from guessing this value. The default is * a secure random generated identifier. * @param id the identifier for this session. */ public void setId(String id) { this.id = id;...
repos\spring-session-main\spring-session-core\src\main\java\org\springframework\session\MapSession.java
1
请完成以下Java代码
public class BizException extends RuntimeException { private static final long serialVersionUID = -5875371379845226068L; /** * 数据库操作,insert返回0 */ public static final BizException DB_INSERT_RESULT_0 = new BizException( 10040001, "数据库操作,insert返回0"); /** * 数据库操作,update返回0 ...
public BizException(int code, String msgFormat, Object... args) { super(String.format(msgFormat, args)); this.code = code; this.msg = String.format(msgFormat, args); } public BizException() { super(); } public BizException(String message, Throwable cause) { supe...
repos\roncoo-pay-master\roncoo-pay-common-core\src\main\java\com\roncoo\pay\common\core\exception\BizException.java
1
请完成以下Java代码
public void setM_InventoryLine(final org.compiere.model.I_M_InventoryLine M_InventoryLine) { set_ValueFromPO(COLUMNNAME_M_InventoryLine_ID, org.compiere.model.I_M_InventoryLine.class, M_InventoryLine); } @Override public void setM_InventoryLine_ID (final int M_InventoryLine_ID) { if (M_InventoryLine_ID < 1) ...
{ set_Value (COLUMNNAME_QtyCount, QtyCount); } @Override public BigDecimal getQtyCount() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_QtyCount); return bd != null ? bd : BigDecimal.ZERO; } @Override public void setQtyInternalUse (final @Nullable BigDecimal QtyInternalUse) { set_Value (COL...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java-gen\de\metas\handlingunits\model\X_M_InventoryLine_HU.java
1
请完成以下Java代码
public boolean unregisterJMX(final ObjectName jmxObjectName, final boolean failOnError) { if (jmxObjectName == null) { if (failOnError) { throw new JMXException("Invalid JMX ObjectName: " + jmxObjectName); } return false; } final MBeanServer mbs = ManagementFactory.getPlatformMBeanServer(); ...
mbs.unregisterMBean(jmxObjectName); success = true; } catch (Exception e) { if (failOnError) { throw new JMXException("Cannot unregister " + jmxObjectName, e); } success = false; } return success; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.util\src\main\java\org\adempiere\util\jmx\JMXRegistry.java
1
请完成以下Java代码
public void preStart() { log.info("Starting WordCounterActor {}", this); } @Override public Receive createReceive() { return receiveBuilder() .match(CountWords.class, r -> { try { log.info("Received CountWords message from " + getS...
private int countWordsFromLine(String line) throws Exception { if (line == null) { throw new IllegalArgumentException("The text to process can't be null!"); } int numberOfWords = 0; String[] words = line.split(" "); for (String possibleWord : words) { if...
repos\tutorials-master\akka-modules\akka-actors\src\main\java\com\baeldung\akkaactors\WordCounterActor.java
1
请完成以下Java代码
public float getUA() { return U / A; } public float getLA() { return L / A; } public float getDA() { return D / (A - sentenceCount); } @Override public String toString() { NumberFormat percentFormat = NumberFormat.getPercentInstance(); ...
sb.append(percentFormat.format(getUA())); sb.append('\t'); sb.append("LA: "); sb.append(percentFormat.format(getLA())); sb.append('\t'); sb.append("DA: "); sb.append(percentFormat.format(getDA())); sb.append('\t'); sb.append("sentences: "); sb.appe...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\corpus\dependency\CoNll\Evaluator.java
1
请在Spring Boot框架中完成以下Java代码
private JSONObject getItemHintValue(ItemHint.ValueHint value) throws Exception { JSONObject result = new JSONObject(); putHintValue(result, value.getValue()); result.putOpt("description", value.getDescription()); return result; } private JSONArray getItemHintProviders(ItemHint hint) throws Exception { JSON...
} return defaultValue; } private static final class ItemMetadataComparator implements Comparator<ItemMetadata> { private static final Comparator<ItemMetadata> GROUP = Comparator.comparing(ItemMetadata::getName) .thenComparing(ItemMetadata::getSourceType, Comparator.nullsFirst(Comparator.naturalOrder())); ...
repos\spring-boot-4.0.1\configuration-metadata\spring-boot-configuration-processor\src\main\java\org\springframework\boot\configurationprocessor\metadata\JsonConverter.java
2
请完成以下Java代码
public String getExtensionProperty(String propertyKey) { if(extensionProperties != null) { return extensionProperties.get(propertyKey); } return null; } @Override public String toString() { return "ExternalTaskImpl [" + "activityId=" + activityId + ", " + "activityInstanceId...
+ "processDefinitionKey=" + processDefinitionKey + ", " + "processDefinitionVersionTag=" + processDefinitionVersionTag + ", " + "processInstanceId=" + processInstanceId + ", " + "receivedVariableMap=" + receivedVariableMap + ", " + "retries=" + retries + ", " + "tenantId=" + tena...
repos\camunda-bpm-platform-master\clients\java\client\src\main\java\org\camunda\bpm\client\task\impl\ExternalTaskImpl.java
1
请完成以下Java代码
public String toString() { return "CommissionShareHandler"; } @NonNull private DocTypeId getDoctypeId(@NonNull final I_C_Commission_Share shareRecord) { final CommissionConstants.CommissionDocType commissionDocType = getCommissionDocType(shareRecord); return docTypeDAO.getDocTypeId( DocTypeQuery.builde...
if (!shareRecord.isSOTrx()) { // note that SOTrx is about the share record's settlement. // I.e. if the sales-rep receives money from the commission, then it's a purchase order trx return CommissionConstants.CommissionDocType.COMMISSION; } else if (shareRecord.getC_LicenseFeeSettingsLine_ID() > 0) { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\commission\invoicecandidate\CommissionShareHandler.java
1
请完成以下Java代码
public IUnlockCommand setRecordByTableRecordId(final int tableId, final int recordId) { _recordsToUnlock.setRecordByTableRecordId(tableId, recordId); return this; } @Override public IUnlockCommand setRecordByTableRecordId(final String tableName, final int recordId) { _recordsToUnlock.setRecordByTableRecordI...
{ return _recordsToUnlock.getSelection_AD_Table_ID(); } @Override public final PInstanceId getSelectionToUnlock_AD_PInstance_ID() { return _recordsToUnlock.getSelection_PInstanceId(); } @Override public final Iterator<TableRecordReference> getRecordsToUnlockIterator() { return _recordsToUnlock.getRecord...
repos\metasfresh-new_dawn_uat\backend\de.metas.async\src\main\java\de\metas\lock\api\impl\UnlockCommand.java
1
请完成以下Java代码
public void setCookieName(String cookieName) { Assert.hasLength(cookieName, "cookieName can't be null"); this.cookieName = cookieName; } /** * Sets the parameter name * @param parameterName The parameter name */ public void setParameterName(String parameterName) { Assert.hasLength(parameterName, "parame...
} private CsrfToken createCsrfToken() { return createCsrfToken(createNewToken()); } private CsrfToken createCsrfToken(String tokenValue) { return new DefaultCsrfToken(this.headerName, this.parameterName, tokenValue); } private String createNewToken() { return UUID.randomUUID().toString(); } private Str...
repos\spring-security-main\web\src\main\java\org\springframework\security\web\server\csrf\CookieServerCsrfTokenRepository.java
1
请完成以下Java代码
public class VariableNameDto { protected String name; protected boolean local; public VariableNameDto() { } public VariableNameDto(String name) { this.name = name; this.local = false; } public VariableNameDto(String name, boolean local) { this.name = name; this.local = local; }
public String getName() { return name; } public void setName(String name) { this.name = name; } public boolean isLocal() { return local; } public void setLocal(boolean local) { this.local = local; } }
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\runtime\VariableNameDto.java
1
请完成以下Java代码
private Map<Integer, InvoiceCandidateInfo> createCheckInfo(@NonNull final Iterable<I_C_Invoice_Candidate> candidates) { final ICNetAmtToInvoiceChecker totalNetAmtToInvoiceChecker = new ICNetAmtToInvoiceChecker() .setNetAmtToInvoiceExpected(totalNetAmtToInvoiceChecksum); final Map<Integer, InvoiceCandidateInfo...
{ changesInfo.append("@C_Tax_ID@: " + infoBeforeChange.getC_Tax_ID() + "->" + infoAfterChange.getC_Tax_ID()); hasChanges = true; } if (hasChanges) { Loggables.addLog(infoAfterChange.getC_Invoice_Candidate_ID() + ": " + changesInfo); } return !hasChanges; } public int getC_Invoice_Candi...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\invoicecandidate\api\impl\InvoiceCandidatesChangesChecker.java
1
请在Spring Boot框架中完成以下Java代码
public void setWeight(UnitType value) { this.weight = value; } /** * The number of boxes where the products of the given list line item are stored in. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getBoxes() { ...
} return this.countryOfOrigin; } /** * Gets the value of the confirmedCountryOfOrigin 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 JAX...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_ecosio_remadv\at\erpel\schemas\_1p0\documents\AdditionalInformationType.java
2
请完成以下Java代码
public static final class SessionDescriptor { private final String id; private final Set<String> attributeNames; private final Instant creationTime; private final Instant lastAccessedTime; private final long maxInactiveInterval; private final boolean expired; SessionDescriptor(Session session) { ...
} public Instant getCreationTime() { return this.creationTime; } public Instant getLastAccessedTime() { return this.lastAccessedTime; } public long getMaxInactiveInterval() { return this.maxInactiveInterval; } public boolean isExpired() { return this.expired; } } }
repos\spring-boot-4.0.1\module\spring-boot-session\src\main\java\org\springframework\boot\session\actuate\endpoint\SessionsDescriptor.java
1
请在Spring Boot框架中完成以下Java代码
protected void configureSpringEngine(SpringEngineConfiguration engineConfiguration, PlatformTransactionManager transactionManager) { engineConfiguration.setTransactionManager(transactionManager); } /** * Get the Object provided by the {@code availableProvider}, otherwise get a unique object from {...
* } * * public SpringAsyncExecutor processAsyncExecutor( * ObjectProvider&lt;TaskExecutor&gt; taskExecutor, * &#064;Process ObjectProvider&lt;TaskExecutor&gt; processTaskExecutor * ) { * TaskExecutor executor = getIfAvailable( * processT...
repos\flowable-engine-main\modules\flowable-spring-boot\flowable-spring-boot-starters\flowable-spring-boot-autoconfigure\src\main\java\org\flowable\spring\boot\AbstractSpringEngineAutoConfiguration.java
2
请完成以下Java代码
public Collection<InputDecisionParameter> getInputs() { return inputCollection.get(this); } public Collection<OutputDecisionParameter> getOutputs() { return outputCollection.get(this); } public static void registerType(ModelBuilder modelBuilder) { ModelElementTypeBuilder typeBuilder = modelBuilder...
nameAttribute = typeBuilder.stringAttribute(CMMN_ATTRIBUTE_NAME) .build(); implementationTypeAttribute = typeBuilder.stringAttribute(CMMN_ATTRIBUTE_IMPLEMENTATION_TYPE) .defaultValue("http://www.omg.org/spec/CMMN/DecisionType/Unspecified") .build(); SequenceBuilder sequenceBuilder = ty...
repos\camunda-bpm-platform-master\model-api\cmmn-model\src\main\java\org\camunda\bpm\model\cmmn\impl\instance\DecisionImpl.java
1
请完成以下Java代码
protected AcquiredJobs acquireJobs( JobAcquisitionContext context, JobAcquisitionStrategy acquisitionStrategy, ProcessEngineImpl currentProcessEngine) { CommandExecutor commandExecutor = currentProcessEngine.getProcessEngineConfiguration() .getCommandExecutorTxRequired(); int numJobsT...
acquiredJobs = new AcquiredJobs(numJobsToAcquire); } context.submitAcquiredJobs(currentProcessEngine.getName(), acquiredJobs); jobExecutor.logAcquiredJobs(currentProcessEngine, acquiredJobs.size()); jobExecutor.logAcquisitionFailureJobs(currentProcessEngine, acquiredJobs.getNumberOfJobsFailedToLock())...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\jobexecutor\SequentialJobAcquisitionRunnable.java
1
请完成以下Java代码
public ExpressionEvaluationException addExpression(final IExpression<?> expression) { if (expression == null) { return this; } expressions.add(expression); resetMessageBuilt(); return this; } public ExpressionEvaluationException setPartialEvaluatedExpression(final String partialEvaluatedExpression) ...
} if (!expressions.isEmpty()) { message.append("\nExpressions trace:"); for (final IExpression<?> expression : expressions) { message.append("\n * ").appendObj(expression); } } if (!Check.isEmpty(partialEvaluatedExpression)) { message.append("\nPartial evaluated expression: ").append(par...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\expression\exceptions\ExpressionEvaluationException.java
1
请完成以下Java代码
public String getGroupNameAttribute() { return groupNameAttribute; } public void setGroupNameAttribute(String groupNameAttribute) { this.groupNameAttribute = groupNameAttribute; } public String getGroupNameDelimiter() { return groupNameDelimiter; } public void setGroupNameDe...
public OAuth2SSOLogoutProperties getSsoLogout() { return ssoLogout; } public void setSsoLogout(OAuth2SSOLogoutProperties ssoLogout) { this.ssoLogout = ssoLogout; } public OAuth2IdentityProviderProperties getIdentityProvider() { return identityProvider; } public void setIdentityProvider(OAuth2...
repos\camunda-bpm-platform-master\spring-boot-starter\starter-security\src\main\java\org\camunda\bpm\spring\boot\starter\security\oauth2\OAuth2Properties.java
1
请完成以下Java代码
private static UserGroupUserAssignment toUserGroupUserAssignment(final I_AD_UserGroup_User_Assign record) { return UserGroupUserAssignment.builder() .userId(UserId.ofRepoId(record.getAD_User_ID())) .userGroupId(UserGroupId.ofRepoId(record.getAD_UserGroup_ID())) .validDates(extractValidDates(record)) ...
else { return Range.atMost(validTo); } } else { if (validTo == null) { return Range.atLeast(validFrom); } else { return Range.closed(validFrom, validTo); } } } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\user\UserGroupRepository.java
1
请完成以下Java代码
public @Nullable List<String> getDataLocations() { return this.dataLocations; } /** * Sets the locations of data (DML) scripts to apply to the database. By default, * initialization will fail if a location does not exist. To prevent a failure, a * location can be made optional by prefixing it with {@code opt...
*/ public void setSeparator(String separator) { this.separator = separator; } /** * Returns the encoding to use when reading the schema and data scripts. * @return the script encoding */ public @Nullable Charset getEncoding() { return this.encoding; } /** * Sets the encoding to use when reading the ...
repos\spring-boot-4.0.1\module\spring-boot-sql\src\main\java\org\springframework\boot\sql\init\DatabaseInitializationSettings.java
1
请完成以下Java代码
public void setBatchId(String batchId) { this.batchId = batchId; } @CamundaQueryParam("type") public void setType(String type) { this.type = type; } @CamundaQueryParam(value = "tenantIdIn", converter = StringListConverter.class) public void setTenantIdIn(List<String> tenantIds) { this.tenantId...
protected void applyFilters(BatchQuery query) { if (batchId != null) { query.batchId(batchId); } if (type != null) { query.type(type); } if (TRUE.equals(withoutTenantId)) { query.withoutTenantId(); } if (tenantIds != null && !tenantIds.isEmpty()) { query.tenantIdIn(te...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\batch\BatchQueryDto.java
1
请在Spring Boot框架中完成以下Java代码
public class MaterialNeedsPlannerRow { @Nullable WarehouseId warehouseId; @NonNull ProductId productId; @NonNull BigDecimal levelMin; @NonNull BigDecimal levelMax; @NonNull public static MaterialNeedsPlannerRow ofViewRow(@NonNull final IViewRow row) { return MaterialNeedsPlannerRow.builder() .warehouseId(...
} return getLevelMin().compareTo(BigDecimal.ZERO) > 0; } public ReplenishInfo toReplenishInfo() { if (warehouseId == null) { throw new FillMandatoryException(I_M_Material_Needs_Planner_V.COLUMNNAME_M_Warehouse_ID); } return ReplenishInfo.builder() .identifier(ReplenishInfo.Identifier.builder() ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\replenish\process\MaterialNeedsPlannerRow.java
2
请完成以下Java代码
public CmmnRuntimeService getCmmnRuntimeService() { return cmmnRuntimeService; } public void setCmmnRuntimeService(CmmnRuntimeService cmmnRuntimeService) { this.cmmnRuntimeService = cmmnRuntimeService; } @Override public DynamicCmmnService getDynamicCmmnService() { return d...
@Override public CmmnRepositoryService getCmmnRepositoryService() { return cmmnRepositoryService; } public void setCmmnRepositoryService(CmmnRepositoryService cmmnRepositoryService) { this.cmmnRepositoryService = cmmnRepositoryService; } @Override public CmmnHistoryService ...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\CmmnEngineImpl.java
1
请在Spring Boot框架中完成以下Java代码
public void registerAuthor() { Author a1 = new Author(); a1.setName("Quartis Young"); a1.setGenre("Anthology"); a1.setAge(34); Author a2 = new Author(); a2.setName("Mark Janel"); a2.setGenre("Anthology"); a2.setAge(23); Book b1 = new Book(); ...
authorRepository.save(a2); } @Transactional public void updateAuthor() { Author author = authorRepository.findByName("Mark Janel"); author.setAge(45); } @Transactional public void updateBooks() { Author author = authorRepository.findByName("Quartis Young"); Lis...
repos\Hibernate-SpringBoot-master\HibernateSpringBootAudit\src\main\java\com\bookstore\service\BookstoreService.java
2
请完成以下Java代码
public ProcessPreconditionsResolution checkPreconditionsApplicable() { if (getSelectedRowIds().size() <= 0) { return ProcessPreconditionsResolution.rejectBecauseNoSelection(); } if (!externalSystemConfigRepo.isAnyConfigActive(getExternalSystemType())) { return ProcessPreconditionsResolution.reject(); ...
getExportToHUExternalSystem().exportToExternalSystem(externalSystemChildConfigId, topLevelHURecordRef, getPinstanceId()); } return JavaProcess.MSG_OK; } protected abstract Set<I_M_HU> getHUsToExport(); protected abstract IExternalSystemChildConfigId getExternalSystemChildConfigId(); protected abstract Expor...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\handlingunits\process\M_HU_SyncTo_ExternalSystem.java
1
请完成以下Java代码
public void setHostname(String hostname) { this.hostname = hostname; } public Date getTimestamp() { return timestamp; } public void setTimestamp(Date timestamp) { this.timestamp = timestamp; } public Integer getPort() { return port; } public void setPo...
return machineInfo; } @Override public String toString() { return "MachineEntity{" + "id=" + id + ", gmtCreate=" + gmtCreate + ", gmtModified=" + gmtModified + ", app='" + app + '\'' + ", ip='" + ip + '\'' + ", hostname='" + ho...
repos\spring-boot-student-master\spring-boot-student-sentinel-dashboard\src\main\java\com\alibaba\csp\sentinel\dashboard\datasource\entity\MachineEntity.java
1
请完成以下Java代码
private PaySelectionLinesToUpdate getPaySelectionLinesToUpdate() { return _paySelectionLinesToUpdate.get(); } private PaySelectionLinesToUpdate retrievePaySelectionLinesToUpdate() { if (paySelectionLineIdsToUpdate.isEmpty()) { return new PaySelectionLinesToUpdate(ImmutableList.of()); } final List<I_C...
} else if (orderPaySchedId != null) { final I_C_PaySelectionLine old = byOrderPaySchedId.put(orderPaySchedId, line); Check.assumeNull(old, "Duplicate pay selection line for orderpay scheduele: {}, {}", line, old); } } } private Optional<I_C_PaySelectionLine> dequeueFor(@NonNull final PayS...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.base\src\main\java\de\metas\banking\payment\impl\PaySelectionUpdater.java
1
请在Spring Boot框架中完成以下Java代码
public class ArticleController { private final ArticleService articleService; public ArticleController(ArticleService articleService) { this.articleService = articleService; } @PostMapping public ArticleDto createArticle(@RequestBody ArticleDto dto) { var article = mapToEntity(dto...
} @GetMapping("{id}") public ResponseEntity<ArticleDto> readArticle(@PathVariable Long id) { var article = articleService.findById(id) .map(ArticleController::mapToDto); return ResponseEntity.of(article); } private static ArticleDto mapToDto(Article entity) { return...
repos\tutorials-master\patterns-modules\vertical-slice-architecture\src\main\java\com\baeldung\hexagonal\controller\ArticleController.java
2
请完成以下Java代码
public void setR_Project_Status_ID (final int R_Project_Status_ID) { if (R_Project_Status_ID < 1) set_Value (COLUMNNAME_R_Project_Status_ID, null); else set_Value (COLUMNNAME_R_Project_Status_ID, R_Project_Status_ID); } @Override public int getR_Project_Status_ID() { return get_ValueAsInt(COLUMNNAM...
@Override public void setstartdatetime (final @Nullable java.sql.Timestamp startdatetime) { set_Value (COLUMNNAME_startdatetime, startdatetime); } @Override public java.sql.Timestamp getstartdatetime() { return get_ValueAsTimestamp(COLUMNNAME_startdatetime); } @Override public void setValue (final java....
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_Project.java
1
请完成以下Java代码
private static <T> List<T> readChunkOrNull( @NonNull final PeekIterator<T> iterator, final int maxChunkSize, @Nullable final Function<T, Object> groupByKeyExtractor) { Object previousGroupKey = null; boolean isFirstItem = true; final List<T> list = new ArrayList<>(maxChunkSize); while (iterator.hasNe...
if (streams.length == 0) { return Stream.empty(); } else if (streams.length == 1) { return streams[0]; } else if (streams.length == 2) { return Stream.concat(streams[0], streams[1]); } else { Stream<T> result = streams[0]; for (int i = 1; i < streams.length; i++) { result = Str...
repos\metasfresh-new_dawn_uat\backend\de.metas.util\src\main\java\de\metas\util\StreamUtils.java
1
请完成以下Java代码
public class GetTasksPayload implements Payload { private String id; private String assigneeId; private List<String> groups; private String processInstanceId; private String parentTaskId; public GetTasksPayload() { this.id = UUID.randomUUID().toString(); } public GetTasksPaylo...
public void setGroups(List<String> groups) { this.groups = groups; } public String getProcessInstanceId() { return processInstanceId; } public void setProcessInstanceId(String processInstanceId) { this.processInstanceId = processInstanceId; } public String getParentTas...
repos\Activiti-develop\activiti-api\activiti-api-task-model\src\main\java\org\activiti\api\task\model\payloads\GetTasksPayload.java
1
请完成以下Java代码
public Saldo getAnfangsSaldo() { return anfangsSaldo; } public void setAnfangsSaldo(Saldo anfangsSaldo) { this.anfangsSaldo = anfangsSaldo; } public Saldo getSchlussSaldo() { return schlussSaldo; } public void setSchlussSaldo(Saldo schlussSaldo) { this.schlussSaldo = schlussSaldo; } public Saldo getAktu...
public void setAktuellValutenSaldo(Saldo aktuellValutenSaldo) { this.aktuellValutenSaldo = aktuellValutenSaldo; } public Saldo getZukunftValutenSaldo() { return zukunftValutenSaldo; } public void setZukunftValutenSaldo(Saldo zukunftValutenSaldo) { this.zukunftValutenSaldo = zukunftValutenSaldo; } public Lis...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.base\src\main\java\de\schaeffer\compiere\mt940\Bankstatement.java
1
请完成以下Java代码
protected org.compiere.model.POInfo initPO(final Properties ctx) { return org.compiere.model.POInfo.getPOInfo(Table_Name); } @Override public void setAD_Attachment_MultiRef_ID (final int AD_Attachment_MultiRef_ID) { if (AD_Attachment_MultiRef_ID < 1) set_ValueNoCheck (COLUMNNAME_AD_Attachment_MultiRef_ID,...
else set_Value (COLUMNNAME_AD_Table_ID, AD_Table_ID); } @Override public int getAD_Table_ID() { return get_ValueAsInt(COLUMNNAME_AD_Table_ID); } @Override public void setFileName_Override (final @Nullable java.lang.String FileName_Override) { set_Value (COLUMNNAME_FileName_Override, FileName_Override...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_Attachment_MultiRef.java
1
请完成以下Spring Boot application配置
spring.datasource.url=jdbc:mysql://localhost:3306/bookstoredb?createDatabaseIfNotExist=true spring.datasource.username=root spring.datasource.passw
ord=root spring.jpa.show-sql=true spring.jpa.open-in-view=false
repos\Hibernate-SpringBoot-master\HibernateSpringBootTablesMetadata\src\main\resources\application.properties
2
请在Spring Boot框架中完成以下Java代码
public BigDecimal getValue() { return value; } /** * Sets the value of the value property. * * @param value * allowed object is * {@link BigDecimal } * */ public void setValue(BigDecimal value) { ...
return date; } /** * Sets the value of the date property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setDate(XMLGregorianCalendar value) { this.date = value; ...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_ecosio_remadv\at\erpel\schemas\_1p0\documents\extensions\edifact\ORDERSListLineItemExtensionType.java
2
请在Spring Boot框架中完成以下Java代码
static class DefaultCodecsConfiguration { @Bean DefaultCodecCustomizer defaultCodecCustomizer(HttpCodecsProperties httpCodecProperties) { return new DefaultCodecCustomizer(httpCodecProperties.isLogRequestDetails(), httpCodecProperties.getMaxInMemorySize()); } static final class DefaultCodecCustomizer ...
public int getOrder() { return 0; } } } static class NoJacksonOrJackson2Preferred extends AnyNestedCondition { NoJacksonOrJackson2Preferred() { super(ConfigurationPhase.PARSE_CONFIGURATION); } @ConditionalOnMissingClass("tools.jackson.databind.json.JsonMapper") static class NoJackson { } ...
repos\spring-boot-4.0.1\module\spring-boot-http-codec\src\main\java\org\springframework\boot\http\codec\autoconfigure\CodecsAutoConfiguration.java
2
请完成以下Java代码
protected void initializeActivity(Case element, CmmnActivity activity, CmmnHandlerContext context) { CaseDefinitionEntity definition = (CaseDefinitionEntity) activity; Deployment deployment = context.getDeployment(); definition.setKey(element.getId()); definition.setName(element.getName()); defini...
definition.setCategory(category); } protected void validateAndSetHTTL(Case element, CaseDefinitionEntity definition, boolean skipEnforceTtl) { String caseDefinitionKey = definition.getKey(); Integer historyTimeToLive = HistoryTimeToLiveParser.create().parse(element, caseDefinitionKey, skipEnforceTtl); ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\cmmn\handler\CaseHandler.java
1
请在Spring Boot框架中完成以下Java代码
protected RedisConnectionFactory getRedisConnectionFactory() { return this.redisConnectionFactory; } @Autowired(required = false) @Qualifier("springSessionDefaultRedisSerializer") public void setDefaultRedisSerializer(RedisSerializer<Object> defaultRedisSerializer) { this.defaultRedisSerializer = defaultRedisS...
return this.sessionRepositoryCustomizers; } @Override public void setBeanClassLoader(ClassLoader classLoader) { this.classLoader = classLoader; } protected RedisTemplate<String, Object> createRedisTemplate() { RedisTemplate<String, Object> redisTemplate = new RedisTemplate<>(); redisTemplate.setKeySerializ...
repos\spring-session-main\spring-session-data-redis\src\main\java\org\springframework\session\data\redis\config\annotation\web\http\AbstractRedisHttpSessionConfiguration.java
2
请完成以下Java代码
public class ContactDetails2CH { @XmlElement(name = "Nm") protected String nm; @XmlElement(name = "Othr") protected String othr; /** * Gets the value of the nm property. * * @return * possible object is * {@link String } * */ public String getNm...
} /** * Gets the value of the othr property. * * @return * possible object is * {@link String } * */ public String getOthr() { return othr; } /** * Sets the value of the othr property. * * @param value * allowed object i...
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.sepa\schema-pain_001_01_03_ch_02\src\main\java-xjc\de\metas\payment\sepa\jaxb\sct\pain_001_001_03_ch_02\ContactDetails2CH.java
1
请在Spring Boot框架中完成以下Java代码
public class DistributedSystemIdConfiguration extends AbstractAnnotationConfigSupport implements ImportAware { private static final String GEMFIRE_DISTRIBUTED_SYSTEM_ID_PROPERTY = "distributed-system-id"; private Integer distributedSystemId; private final Logger logger = LoggerFactory.getLogger(getClass()); @Ov...
private int validateDistributedSystemId(int distributedSystemId) { Assert.isTrue(distributedSystemId >= -1 && distributedSystemId < 256, String.format("Distributed System ID [%d] must be between -1 and 255", distributedSystemId)); return distributedSystemId; } @Bean ClientCacheConfigurer clientCacheDistrib...
repos\spring-boot-data-geode-main\spring-geode-project\spring-geode\src\main\java\org\springframework\geode\config\annotation\DistributedSystemIdConfiguration.java
2
请完成以下Java代码
public void setCurrency(String value) { this.currency = value; } /** * Gets the value of the amount property. * * @return * possible object is * {@link String } * */ public BigDecimal getAmount() { return amount; } /** * Sets th...
* {@link String } * */ public void setAmountPrepaid(BigDecimal value) { this.amountPrepaid = value; } /** * Gets the value of the amountDue property. * * @return * possible object is * {@link String } * */ public BigDecimal get...
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\BalanceType.java
1
请完成以下Java代码
public void setW_Basket_ID (int W_Basket_ID) { if (W_Basket_ID < 1) set_ValueNoCheck (COLUMNNAME_W_Basket_ID, null); else set_ValueNoCheck (COLUMNNAME_W_Basket_ID, Integer.valueOf(W_Basket_ID)); } /** Get W_Basket_ID. @return Web Basket */ public int getW_Basket_ID () { Integer ii = (Integer)g...
public void setW_BasketLine_ID (int W_BasketLine_ID) { if (W_BasketLine_ID < 1) set_ValueNoCheck (COLUMNNAME_W_BasketLine_ID, null); else set_ValueNoCheck (COLUMNNAME_W_BasketLine_ID, Integer.valueOf(W_BasketLine_ID)); } /** Get Basket Line. @return Web Basket Line */ public int getW_BasketLine_ID...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_W_BasketLine.java
1
请完成以下Java代码
public static RecordsToAlwaysIncludeSql ofColumnNameAndRecordIds(@NonNull final String columnName, @NonNull final Collection<?> recordIds) { final InArrayQueryFilter<?> builder = new InArrayQueryFilter<>(columnName, recordIds) .setEmbedSqlParams(false); final SqlAndParams sqlAndParams = SqlAndParams.of(bui...
collection.stream() .filter(Objects::nonNull) .map(RecordsToAlwaysIncludeSql::toSqlAndParams) .collect(ImmutableSet.toImmutableSet())) .map(RecordsToAlwaysIncludeSql::new) .orElse(null); } } public SqlAndParams toSqlAndParams() { return sqlAndParams; } } }
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\document\filter\sql\FilterSql.java
1
请完成以下Java代码
public void changeJsonEngineConfiguration( @RequestParam(value = "failOnUnknownProperties", required = false) final Boolean failOnUnknownProperties) { if (failOnUnknownProperties != null) { sharedJsonObjectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, failOnUnknownProperties); } } ...
rs = pstmt.executeQuery(); while (rs.next()) { if (buffer.size() >= batchSize) { final Stopwatch stopwatch = Stopwatch.createStarted(); cacheMgt.reset(CacheInvalidateMultiRequest.of(buffer)); stopwatch.stop(); // logger.info("Sent a CacheInvalidateMultiRequest of {} events. So...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\debug\DebugRestController.java
1
请完成以下Java代码
public class SynchronizedHashMapWithRWLock { private static Map<String, String> syncHashMap = new HashMap<>(); private Logger logger = LoggerFactory.getLogger(SynchronizedHashMapWithRWLock.class); private final ReadWriteLock lock = new ReentrantReadWriteLock(); private final Lock readLock = lock.readL...
service.shutdown(); } private static class Reader implements Runnable { SynchronizedHashMapWithRWLock object; Reader(SynchronizedHashMapWithRWLock object) { this.object = object; } @Override public void run() { for (int i = 0; i < 10; i++) { ...
repos\tutorials-master\core-java-modules\core-java-concurrency-advanced\src\main\java\com\baeldung\concurrent\locks\SynchronizedHashMapWithRWLock.java
1
请在Spring Boot框架中完成以下Java代码
SecurityFilterChain filterChain(HttpSecurity httpSecurity) throws Exception { ExpressionUrlAuthorizationConfigurer<HttpSecurity>.ExpressionInterceptUrlRegistry registry = httpSecurity .authorizeRequests(); //不需要保护的资源路径允许访问 for (String url : ignoreUrlsConfig.getUrls()) { ...
.disable() .sessionManagement() .sessionCreationPolicy(SessionCreationPolicy.STATELESS) //自定义权限拒绝处理类 .and() .exceptionHandling() .accessDeniedHandler(restfulAccessDeniedHandler) .authenticationEntryPoint(rest...
repos\mall-master\mall-security\src\main\java\com\macro\mall\security\config\SecurityConfig.java
2
请完成以下Java代码
public OrderId getContractOrderId(@NonNull final I_C_Flatrate_Term term) { if (term.getC_OrderLine_Term_ID() <= 0) { return null; } final IOrderDAO orderRepo = Services.get(IOrderDAO.class); final de.metas.interfaces.I_C_OrderLine ol = orderRepo.getOrderLineById(term.getC_OrderLine_Term_ID()); if (ol =...
.create() .anyMatch(); } public void save(@NonNull final I_C_Order order) { InterfaceWrapperHelper.save(order); } public void setOrderContractStatusAndSave(@NonNull final I_C_Order order, @NonNull final String contractStatus) { order.setContractStatus(contractStatus); save(order); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java\de\metas\contracts\order\ContractOrderService.java
1
请完成以下Java代码
private List<BaseComponent> initComponentList(InjectComponents injectComponents) throws IllegalAccessException, InstantiationException { List<BaseComponent> componentList = Lists.newArrayList(); // 获取Components Class[] componentClassList = injectComponents.value(); if (componentClassLi...
return componentList; } /** * 获取需要扫描的包名 */ private String getPackage() { PackageScan packageScan = AnnotationUtil.getAnnotationValueByClass(this.getClass(), PackageScan.class); return packageScan.value(); } @Override public void setApplicationContext(ApplicationContex...
repos\SpringBoot-Dubbo-Docker-Jenkins-master\Gaoxi-Order\src\main\java\com\gaoxi\order\init\InitComponentList.java
1
请完成以下Java代码
private void closeGroupAndCollect(final GroupType group) { closeGroup(group); if (closedGroupsCollector != null) { closedGroupsCollector.add(group); } } /** * Close all groups from buffer. As a result, after this call the groups buffer will be empty. */ public final void closeAllGroups() { final ...
// Skip the excepted group if (group == exceptGroup) { continue; } closeGroupAndCollect(group); groups.remove(); } } /** * @return how many groups were created */ public final int getGroupsCount() { return _countGroups; } /** * @return how many items were added */ public final i...
repos\metasfresh-new_dawn_uat\backend\de.metas.util\src\main\java\de\metas\util\collections\MapReduceAggregator.java
1
请完成以下Java代码
protected void prepare () { p_HR_Payroll_ID = getRecord_ID(); } // prepare /** * Process * @return info * @throws Exception */ protected String doIt () throws Exception { int count = 0; for(MHRConcept concept : MHRConcept.getConcepts(p_HR_Payroll_ID, 0, 0, null)) { if(!existsPayrollConcept(con...
payrollConcept.saveEx(); count++; } } return "@Created@/@Updated@ #" + count; } // doIt private boolean existsPayrollConcept(int HR_Concept_ID) { final String whereClause = "HR_Payroll_ID=? AND HR_Concept_ID=?"; return new Query(getCtx(), MHRPayrollConcept.Table_Name, whereClause, get_TrxName()) ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.libero.liberoHR\src\main\java\org\eevolution\process\HRCreateConcept.java
1
请完成以下Java代码
public ArrayList<Pair<String, V>> commonPrefixSearch(String key, int offset, int maxResults) { byte[] keyBytes = key.getBytes(utf8); List<Pair<Integer, Integer>> pairList = commonPrefixSearch(keyBytes, offset, maxResults); ArrayList<Pair<String, V>> resultList = new ArrayList<Pair<String, V>...
@Override public void putAll(Map<? extends String, ? extends V> m) { throw new UnsupportedOperationException("双数组不支持增量式插入"); } @Override public void clear() { throw new UnsupportedOperationException("双数组不支持"); } @Override public Set<String> keySet() { th...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\collection\dartsclone\DartMap.java
1
请完成以下Java代码
public int retrieveDueDays( @NonNull final PaymentTermId paymentTermId, final Date dateInvoiced, final Date date) { return DB.getSQLValueEx(ITrx.TRXNAME_None, "SELECT paymentTermDueDays(?,?,?)", paymentTermId.getRepoId(), dateInvoiced, date); } @Override public Iterator<I_C_Dunning_Candidate_Invoice_v1>...
return queryBL.createQueryBuilder(I_C_Dunning.class, ctx, trxName) .addOnlyActiveRecordsFilter() .addOnlyContextClient(ctx) .addEqualsFilter(I_C_Dunning.COLUMNNAME_C_Dunning_ID, dunningLevel.getC_Dunning_ID()) // Dunning Level is for current assigned Dunning .andCollectChildren(I_C_Dunning_Candidate_In...
repos\metasfresh-new_dawn_uat\backend\de.metas.dunning\src\main\java\de\metas\dunning\invoice\api\impl\InvoiceSourceDAO.java
1
请完成以下Java代码
public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Long getMemberId() { return memberId; } public void setMemberId(Long memberId) { this.memberId = memberId; } public Date getCreateTime() { return createTime;...
public Integer getSourceType() { return sourceType; } public void setSourceType(Integer sourceType) { this.sourceType = sourceType; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.appen...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\UmsGrowthChangeHistory.java
1
请完成以下Java代码
public void setXPosition (final int XPosition) { set_Value (COLUMNNAME_XPosition, XPosition); } @Override public int getXPosition() { return get_ValueAsInt(COLUMNNAME_XPosition); } @Override public void setYield (final int Yield) { set_Value (COLUMNNAME_Yield, Yield); } @Override public int getYie...
return get_ValueAsInt(COLUMNNAME_Yield); } @Override public void setYPosition (final int YPosition) { set_Value (COLUMNNAME_YPosition, YPosition); } @Override public int getYPosition() { return get_ValueAsInt(COLUMNNAME_YPosition); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_WF_Node.java
1
请完成以下Java代码
public class X_ESR_PostFinanceUserNumber extends org.compiere.model.PO implements I_ESR_PostFinanceUserNumber, org.compiere.model.I_Persistent { private static final long serialVersionUID = 806167320L; /** Standard Constructor */ public X_ESR_PostFinanceUserNumber (final Properties ctx, final int ESR_PostFi...
public void setESR_PostFinanceUserNumber_ID (final int ESR_PostFinanceUserNumber_ID) { if (ESR_PostFinanceUserNumber_ID < 1) set_ValueNoCheck (COLUMNNAME_ESR_PostFinanceUserNumber_ID, null); else set_ValueNoCheck (COLUMNNAME_ESR_PostFinanceUserNumber_ID, ESR_PostFinanceUserNumber_ID); } @Override publi...
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.esr\src\main\java-gen\de\metas\payment\esr\model\X_ESR_PostFinanceUserNumber.java
1
请完成以下Java代码
public int[] addTwoVectorsWithMasks(int[] arr1, int[] arr2) { int[] finalResult = new int[arr1.length]; int i = 0; for (; i < SPECIES.loopBound(arr1.length); i += SPECIES.length()) { var mask = SPECIES.indexInRange(i, arr1.length); var v1 = IntVector.fromArray(SPECIES, ar...
var va = FloatVector.fromArray(PREFERRED_SPECIES, arr1, i); var vb = FloatVector.fromArray(PREFERRED_SPECIES, arr2, i); var vc = va.mul(va) .add(vb.mul(vb)) .sqrt(); vc.intoArray(finalResult, i); } // tail cleanup for (; i < arr1.l...
repos\tutorials-master\core-java-modules\core-java-19\src\main\java\com\baeldung\vectors\VectorAPIExamples.java
1
请完成以下Java代码
public static LocalDateTime fromTimeStamp(Long timeStamp) { return LocalDateTime.ofEpochSecond(timeStamp, 0, OffsetDateTime.now().getOffset()); } /** * LocalDateTime 转 Date * Jdk8 后 不推荐使用 {@link Date} Date * * @param localDateTime / * @return / */ public static Date to...
* @param localDateTime / * @return / */ public String localDateTimeFormatyMd(LocalDateTime localDateTime) { return DFY_MD.format(localDateTime); } /** * 字符串转 LocalDateTime ,字符串格式 yyyy-MM-dd * * @param localDateTime / * @return / */ public static LocalDateTime ...
repos\eladmin-master\eladmin-common\src\main\java\me\zhengjie\utils\DateUtil.java
1
请完成以下Java代码
public class ESProductDO { /** * ID 主键 */ @Id private Integer id; /** * SPU 名字 */ @Field(analyzer = FieldAnalyzer.IK_MAX_WORD, type = FieldType.Text) private String name; /** * 卖点 */ @Field(analyzer = FieldAnalyzer.IK_MAX_WORD, type = FieldType.Text) p...
public String getSellPoint() { return sellPoint; } public ESProductDO setSellPoint(String sellPoint) { this.sellPoint = sellPoint; return this; } public String getDescription() { return description; } public ESProductDO setDescription(String description) { ...
repos\SpringBoot-Labs-master\lab-15-spring-data-es\lab-15-spring-data-jest\src\main\java\cn\iocoder\springboot\lab15\springdatajest\dataobject\ESProductDO.java
1
请完成以下Java代码
public WFProcess getWFProcessById(final WFProcessId wfProcessId) { final Inventory inventory = jobService.getById(toInventoryId(wfProcessId)); return toWFProcess(inventory); } @Override public WFProcessHeaderProperties getHeaderProperties(final @NonNull WFProcess wfProcess) { final WarehousesLoadingCache wa...
: "") .build()) .build(); } @NonNull public static Inventory getInventory(final @NonNull WFProcess wfProcess) { return wfProcess.getDocumentAs(Inventory.class); } public static WFProcess mapJob(@NonNull final WFProcess wfProcess, @NonNull final UnaryOperator<Inventory> mapper) { final Inventory i...
repos\metasfresh-new_dawn_uat\backend\de.metas.inventory.mobileui\src\main\java\de\metas\inventory\mobileui\InventoryMobileApplication.java
1
请完成以下Java代码
private boolean deleteTourInstanceIfGenericAndNoDeliveryDays(final I_M_Tour_Instance tourInstance) { // Skip tour instances which are null or not already saved if (tourInstance == null) { return false; } if (tourInstance.getM_Tour_Instance_ID() <= 0) { return false; } // If it's not a generic to...
/** * Make sure that delivery date time max is updated when delivery date or buffer are changed */ @ModelChange (timings = ModelValidator.TYPE_BEFORE_CHANGE, ifColumnsChanged = {I_M_DeliveryDay.COLUMNNAME_DeliveryDate, I_M_DeliveryDay.COLUMNNAME_BufferHours}) public void changeDeliveryDateMax(final I_M_Delive...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\tourplanning\model\validator\M_DeliveryDay.java
1
请在Spring Boot框架中完成以下Java代码
public class ValueHint implements Serializable { private Object value; private String description; private String shortDescription; /** * Return the hint value. * @return the value */ public Object getValue() { return this.value; } public void setValue(Object value) { this.value = value; } /** ...
/** * A single-line, single-sentence description of this hint, if any. * @return the short description * @see #getDescription() */ public String getShortDescription() { return this.shortDescription; } public void setShortDescription(String shortDescription) { this.shortDescription = shortDescription; }...
repos\spring-boot-4.0.1\configuration-metadata\spring-boot-configuration-metadata\src\main\java\org\springframework\boot\configurationmetadata\ValueHint.java
2
请完成以下Java代码
protected String doIt() throws Exception { if (p_role_id == 0) { throw new Exception("No Role defined or cannot assign menus to System Administrator"); } String sqlStmt = "SELECT U_WebMenu_ID, IsActive FROM U_WebMenu"; PreparedStatement pstmt = null; ResultSet rs = null; try { pstmt = DB.p...
while (rs.next()) { int menuId = rs.getInt(1); boolean active = "Y".equals(rs.getString(2)); addUpdateRole(getCtx(), p_role_id, menuId, active, get_TrxName()); } } finally { DB.close(rs, pstmt); } return "Role updated successfully"; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\process\UpdateRoleMenu.java
1
请在Spring Boot框架中完成以下Java代码
SpanContext spanContext(ObjectProvider<Tracer> tracerProvider) { return new LazyTracingSpanContext(tracerProvider); } /** * Since the MeterRegistry can depend on the {@link Tracer} (Exemplars) and the * {@link Tracer} can depend on the MeterRegistry (recording metrics), this * {@link SpanContext} breaks the ...
@Override public boolean isCurrentSpanSampled() { Span currentSpan = currentSpan(); if (currentSpan == null) { return false; } Boolean sampled = currentSpan.context().sampled(); return sampled != null && sampled; } @Override public void markCurrentSpanAsExemplar() { } private @Nullable ...
repos\spring-boot-4.0.1\module\spring-boot-micrometer-tracing\src\main\java\org\springframework\boot\micrometer\tracing\autoconfigure\prometheus\PrometheusExemplarsAutoConfiguration.java
2
请在Spring Boot框架中完成以下Java代码
public String assignMenuUI(HttpServletRequest req, Model model, Long roleId) { PmsRole role = pmsRoleService.getDataById(roleId); if (role == null) { return operateError("无法获取角色信息", model); } // 普通操作员没有修改超级管理员角色的权限 if (OperatorTypeEnum.USER.name().equals(this.getPmsOp...
} /** * 得到角色和权限关联的ID字符串 * * @return */ private String getRolePermissionStr(String selectVal) throws Exception { String roleStr = selectVal; if (StringUtils.isNotBlank(roleStr) && roleStr.length() > 0) { roleStr = roleStr.substring(0, roleStr.length() - 1); ...
repos\roncoo-pay-master\roncoo-pay-web-boss\src\main\java\com\roncoo\pay\permission\controller\PmsRoleController.java
2
请完成以下Java代码
protected String doIt() throws Exception { final PInstanceId pinstanceId = getPinstanceId(); final EnqueuePPOrderCandidateRequest enqueuePPOrderCandidateRequest = EnqueuePPOrderCandidateRequest.builder() .adPInstanceId(pinstanceId) .ctx(Env.getCtx()) .isCompleteDocOverride(isDocComplete) .autoProc...
.createSelection(adPInstanceId); } protected IQueryBuilder<I_PP_Order_Candidate> createOCQueryBuilder() { final IQueryFilter<I_PP_Order_Candidate> userSelectionFilter = getProcessInfo().getQueryFilterOrElse(null); if (userSelectionFilter == null) { throw new AdempiereException("@NoSelection@"); } ret...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing\src\main\java\org\eevolution\productioncandidate\process\PP_Order_Candidate_EnqueueSelectionForOrdering.java
1
请完成以下Java代码
public BigDecimal getHuQtyCU() { return huQtyCU; } public ProductId getHuProductId() { return huProduct != null ? ProductId.ofRepoId(huProduct.getKeyAsInt()) : null; } @Override public ViewId getIncludedViewId() { return includedViewId; } public LocatorId getPickingSlotLocatorId() { return picking...
} final boolean hasOpenPickingForOrderId = getPickingOrderIdsForHUId(huId).contains(orderId); if (hasOpenPickingForOrderId) { return true; } if (isLU()) { return findRowMatching(row -> !row.isLU() && row.thereIsAnOpenPickingForOrderId(orderId)) .isPresent(); } return false; } @NonNull ...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\picking\pickingslot\PickingSlotRow.java
1
请完成以下Java代码
private HashMap<String, JSONIncludedTabInfo> getIncludedTabsInfo() { if (includedTabsInfoByTabId == null) { includedTabsInfoByTabId = new HashMap<>(); } return includedTabsInfoByTabId; } private JSONIncludedTabInfo getIncludedTabInfo(final DetailId tabId) { return getIncludedTabsInfo().computeIfAbsent...
tabIds.stream().map(this::getIncludedTabInfo).forEach(JSONIncludedTabInfo::markAllRowsStaled); } public void staleIncludedRows(@NonNull final DetailId tabId, @NonNull final DocumentIdsSelection rowIds) { getIncludedTabInfo(tabId).staleRows(rowIds); } void mergeFrom(@NonNull final JSONDocumentChangedWebSocketEv...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\events\JSONDocumentChangedWebSocketEvent.java
1
请在Spring Boot框架中完成以下Java代码
public class ProductsProposalRowAddRequest { @NonNull LookupValue product; @NonNull @Default ProductASIDescription asiDescription = ProductASIDescription.NONE; @Nullable AttributeSetInstanceId asiId; @NonNull Amount priceListPrice; @Nullable Integer lastShipmentDays;
@Nullable ProductPriceId copiedFromProductPriceId; @Nullable HUPIItemProductId packingMaterialId; @Nullable ITranslatableString packingDescription; public ProductId getProductId() { return getProduct().getIdAs(ProductId::ofRepoId); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\order\products_proposal\model\ProductsProposalRowAddRequest.java
2
请在Spring Boot框架中完成以下Java代码
public class ExternalSystemShopware6Config implements IExternalSystemChildConfig { @NonNull ExternalSystemShopware6ConfigId id; @NonNull ExternalSystemParentConfigId parentId; @NonNull String baseUrl; @NonNull String clientId; @NonNull String clientSecret; @NonNull List<ExternalSystemShopware6ConfigMapping>...
{ this.id = id; this.parentId = parentId; this.clientId = clientId; this.clientSecret = clientSecret; this.externalSystemShopware6ConfigMappingList = externalSystemShopware6ConfigMappingList; this.uomShopwareMappingList = uomShopwareMappingList; this.baseUrl = baseUrl; this.bPartnerLocationIdJSONPath = ...
repos\metasfresh-new_dawn_uat\backend\de.metas.externalsystem\src\main\java\de\metas\externalsystem\shopware6\ExternalSystemShopware6Config.java
2
请完成以下Java代码
public String getId() { return id; } public String getBusinessKey() { return businessKey; } public void setBusinessKey(String businessKey) { this.businessKey = businessKey; } public Set<String> getProcessDefinitionKeys() { return processDefinitionKeys; } ...
} public void setSuspendedOnly(boolean suspendedOnly) { this.suspendedOnly = suspendedOnly; } public boolean isActiveOnly() { return activeOnly; } public void setActiveOnly(boolean activeOnly) { this.activeOnly = activeOnly; } public String getParentProcessInstanc...
repos\Activiti-develop\activiti-api\activiti-api-process-model\src\main\java\org\activiti\api\process\model\payloads\GetProcessInstancesPayload.java
1
请完成以下Java代码
public void setWarehouseLocatorIdentifier (final @Nullable java.lang.String WarehouseLocatorIdentifier) { set_Value (COLUMNNAME_WarehouseLocatorIdentifier, WarehouseLocatorIdentifier); } @Override public java.lang.String getWarehouseLocatorIdentifier() { return get_ValueAsString(COLUMNNAME_WarehouseLocatorId...
{ set_Value (COLUMNNAME_Y, Y); } @Override public java.lang.String getY() { return get_ValueAsString(COLUMNNAME_Y); } @Override public void setZ (final @Nullable java.lang.String Z) { set_Value (COLUMNNAME_Z, Z); } @Override public java.lang.String getZ() { return get_ValueAsString(COLUMNNAME_Z...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_I_Inventory.java
1
请完成以下Java代码
public class FreeMarkerScriptEngine extends AbstractScriptEngine implements Compilable { protected ScriptEngineFactory scriptEngineFactory; protected Configuration configuration; public FreeMarkerScriptEngine() { this(null); } public FreeMarkerScriptEngine(ScriptEngineFactory scriptEngineFactory) { ...
} return scriptEngineFactory; } public void initConfiguration() { if (configuration == null) { synchronized (this) { if (configuration == null) { configuration = new Configuration(Configuration.VERSION_2_3_29); } } } } protected String getFilename(ScriptContex...
repos\camunda-bpm-platform-master\freemarker-template-engine\src\main\java\org\camunda\templateengines\FreeMarkerScriptEngine.java
1
请在Spring Boot框架中完成以下Java代码
public void setName(String name) { this.name = name; } public String getPhone() { return phone; } public void setPhone(String phone) { this.phone = phone; } public String getPostCode() { return postCode; }
public void setPostCode(String postCode) { this.postCode = postCode; } @Override public String toString() { return "LocationCreateReq{" + "location='" + location + '\'' + ", name='" + name + '\'' + ", phone='" + phone + '\'' + ...
repos\SpringBoot-Dubbo-Docker-Jenkins-master\Gaoxi-Common-Service-Facade\src\main\java\com\gaoxi\req\user\LocationCreateReq.java
2
请完成以下Java代码
public int getId() { return id; } public void setId(int id) { this.id = id; } public String getItemName() { return itemName; } public void setItemName(String itemName) { this.itemName = itemName; } public double getItemPrice() { return itemPric...
public void setItemType(ItemType itemType) { this.itemType = itemType; } public Date getCreatedOn() { return createdOn; } public void setCreatedOn(Date createdOn) { this.createdOn = createdOn; } @Override public boolean equals(Object o) { if (this == o) ret...
repos\tutorials-master\persistence-modules\hibernate-mapping-2\src\main\java\com\baeldung\hibernate\persistmaps\mapkey\Item.java
1
请完成以下Java代码
public I_R_Request getR_Request() throws RuntimeException { return (I_R_Request)MTable.get(getCtx(), I_R_Request.Table_Name) .getPO(getR_Request_ID(), get_TrxName()); } /** Set Request. @param R_Request_ID Request from a Business Partner or Prospect */ public void setR_Request_ID (int R_Request_ID) ...
return (String)get_Value(COLUMNNAME_SourceClassName); } /** Set Source Method. @param SourceMethodName Source Method Name */ public void setSourceMethodName (String SourceMethodName) { set_Value (COLUMNNAME_SourceMethodName, SourceMethodName); } /** Get Source Method. @return Source Method Name *...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_R_IssueKnown.java
1
请在Spring Boot框架中完成以下Java代码
public class Campaign implements DataRecord { String name; /** * the remote system's ID which we can use to sync with the campaign on the remote marketing tool */ String remoteId; @NonNull PlatformId platformId; /** * might be null, if the campaign wasn't stored yet */ CampaignId campaignId; @Builde...
public Campaign( @NonNull final String name, @Nullable final String remoteId, @NonNull final PlatformId platformId, @Nullable final CampaignId campaignId) { this.name = name; this.remoteId = StringUtils.trimBlankToNull(remoteId); this.platformId = platformId; this.campaignId = campaignId; } publ...
repos\metasfresh-new_dawn_uat\backend\de.metas.marketing\base\src\main\java\de\metas\marketing\base\model\Campaign.java
2
请完成以下Java代码
public Builder scope(String scope) { authority(new SimpleGrantedAuthority(AUTHORITIES_SCOPE_PREFIX + scope)); return this; } /** * Adds a {@link GrantedAuthority} to the collection of {@code authorities} in the * resulting {@link OAuth2AuthorizationConsent}. * @param authority the {@link GrantedAuth...
} /** * Validate the authorities and build the {@link OAuth2AuthorizationConsent}. * There must be at least one {@link GrantedAuthority}. * @return the {@link OAuth2AuthorizationConsent} */ public OAuth2AuthorizationConsent build() { Assert.notEmpty(this.authorities, "authorities cannot be empty"); ...
repos\spring-security-main\oauth2\oauth2-authorization-server\src\main\java\org\springframework\security\oauth2\server\authorization\OAuth2AuthorizationConsent.java
1
请完成以下Java代码
private void zoom() { if (m_WF_Window_ID == null) { m_WF_Window_ID = Services.get(IADTableDAO.class).retrieveWindowId(I_AD_Workflow.Table_Name).orElse(null); } if (m_WF_Window_ID == null) { throw new AdempiereException("@NotFound@ @AD_Window_ID@"); } MQuery query = null; if (workflowModel != nul...
frame = null; } // zoom /** * String Representation * * @return info */ @Override public String toString() { final StringBuilder sb = new StringBuilder("WFPanel["); if (workflowModel != null) { sb.append(workflowModel.getId().getRepoId()); } sb.append("]"); return sb.toString(); } //...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\org\compiere\apps\wf\WFPanel.java
1
请在Spring Boot框架中完成以下Java代码
Output cast(Output value, DataType dtype) { return g.opBuilder("Cast", "Cast", scope).addInput(value).setAttr("DstT", dtype).build().output(0); } Output decodeJpeg(Output contents, long channels) { return g.opBuilder("DecodeJpeg", "DecodeJpeg", scope) .addInput(c...
private final Graph g; } @PreDestroy public void close() { session.close(); } @Data @NoArgsConstructor @AllArgsConstructor public static class LabelWithProbability { private String label; private float probability; private long elapsed; } }
repos\springboot-demo-master\Tensorflow\src\main\java\com\et\tf\service\ClassifyImageService.java
2
请完成以下Java代码
public static List<WebSite> parse(String path) { List<WebSite> websites = new ArrayList<WebSite>(); WebSite website = null; XMLInputFactory xmlInputFactory = XMLInputFactory.newInstance(); try { XMLEventReader reader = xmlInputFactory.createXMLEventReader(new FileInputStream(...
website.setStatus(nextEvent.asCharacters() .getData()); break; } } if (nextEvent.isEndElement()) { EndElement endElement = nextEvent.asEndElement(); if (endElement.getName() ...
repos\tutorials-master\xml-modules\xml\src\main\java\com\baeldung\xml\stax\StaxParser.java
1
请完成以下Java代码
public KeyNamePair getKeyNamePair() { return new KeyNamePair(get_ID(), String.valueOf(getA_Asset_Info_Ins_ID())); } /** Set Insurance Premium. @param A_Ins_Premium Insurance Premium */ public void setA_Ins_Premium (BigDecimal A_Ins_Premium) { set_Value (COLUMNNAME_A_Ins_Premium, A_Ins_Premium...
return (Timestamp)get_Value(COLUMNNAME_A_Renewal_Date); } /** Set Replacement Costs. @param A_Replace_Cost Replacement Costs */ public void setA_Replace_Cost (BigDecimal A_Replace_Cost) { set_Value (COLUMNNAME_A_Replace_Cost, A_Replace_Cost); } /** Get Replacement Costs. @return Replacement Costs */ ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_A_Asset_Info_Ins.java
1
请完成以下Java代码
public class SysThirdAppConfig { /**编号*/ @TableId(type = IdType.ASSIGN_ID) @Schema(description = "编号") private String id; /**租户id*/ @Excel(name = "租户id", width = 15) @Schema(description = "租户id") private Integer tenantId; /**钉钉/企业微信第三方企业应用标识*/ @Excel(name = "钉钉/企业微信第三方企业应用标识",...
/**是否启用(0-否,1-是)*/ @Excel(name = "是否启用(0-否,1-是)", width = 15) @Schema(description = "是否启用(0-否,1-是)") private Integer status; /**创建日期*/ @Excel(name = "创建日期", width = 20, format = "yyyy-MM-dd HH:mm:ss") @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern="y...
repos\JeecgBoot-main\jeecg-boot\jeecg-module-system\jeecg-system-biz\src\main\java\org\jeecg\modules\system\entity\SysThirdAppConfig.java
1
请完成以下Java代码
public String getColumnName() { return I_C_ValidCombination.Table_Name + "." + I_C_ValidCombination.COLUMNNAME_C_ValidCombination_ID; } // getColumnName @Override public String getColumnNameNotFQ() { return I_C_ValidCombination.COLUMNNAME_C_ValidCombination_ID; } // getColumnName /** * Return data as...
.list(MAccount.class); for (final I_C_ValidCombination account : accounts) { list.add(new KeyNamePair(account.getC_ValidCombination_ID(), account.getCombination() + " - " + account.getDescription())); } // Sort & return return list; } // getData public int getC_ValidCombination_ID() { return C_Val...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\MAccountLookup.java
1
请完成以下Java代码
protected BeanManager getBeanManager() { return BeanManagerLookup.getBeanManager(); } protected javax.el.ELResolver getWrappedResolver() { BeanManager beanManager = getBeanManager(); javax.el.ELResolver resolver = beanManager.getELResolver(); return resolver; } @Override public Class< ? > ge...
} else { return null; } } @Override public boolean isReadOnly(ELContext context, Object base, Object property) { return getWrappedResolver().isReadOnly(wrapContext(context), base, property); } @Override public void setValue(ELContext context, Object base, Object property, Object value) { ...
repos\camunda-bpm-platform-master\engine-cdi\core\src\main\java\org\camunda\bpm\engine\cdi\impl\el\CdiResolver.java
1
请完成以下Java代码
public boolean isMatching(@NonNull final DataEntryTab tab) { return isMatching(tab.getInternalName()) || isMatching(tab.getCaption()); } public boolean isMatching(@NonNull final DataEntrySubTab subTab) { return isMatching(subTab.getInternalName()) || isMatching(subTab.getCaption()); } public boolean...
} if (isMatching(trl.getDefaultValue())) { return true; } for (final String adLanguage : trl.getAD_Languages()) { if (isMatching(trl.translate(adLanguage))) { return true; } } return false; } @VisibleForTesting boolean isMatching(final String name) { if (isAny()) { return tr...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\dataentry\data\impexp\NamePattern.java
1
请完成以下Java代码
public class ParserException extends DeviceException { /** * */ private static final long serialVersionUID = 6780262709879240414L; /** * Create a new exception. The parameters match the method parameters of {@link IParser#parse(ICmd, String, String, Class)}. * * @param cmd * @param stringToParse * @pa...
final String elementName, final Class<?> clazz, final Throwable cause) { super(buildMessage(cmd, stringToParse, elementName, clazz, cause), cause); } private static String buildMessage(final ICmd cmd, final String stringToParse, final String elementName, final Class<?> clazz, final Throwable cause) ...
repos\metasfresh-new_dawn_uat\backend\de.metas.device.scales\src\main\java\de\metas\device\scales\impl\ParserException.java
1