instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
public java.math.BigDecimal getDK_ParcelWidth () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DK_ParcelWidth); if (bd == null) return BigDecimal.ZERO; return bd; } /** Set Referenz. @param DK_Reference Referenz */ @Override public void setDK_Reference (java.lang.String DK_Reference) { set_...
@Override public void setLine (int Line) { set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); } /** Get Zeile Nr.. @return Einzelne Zeile in dem Dokument */ @Override public int getLine () { Integer ii = (Integer)get_Value(COLUMNNAME_Line); if (ii == null) return 0; return ii.intValue(); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.shipper.gateway.derkurier\src\main\java-gen\de\metas\shipper\gateway\derkurier\model\X_DerKurier_DeliveryOrderLine.java
1
请在Spring Boot框架中完成以下Java代码
public class WSOperation implements OperationImplementation { protected String id; protected String name; protected WSService service; public WSOperation(String id, String operationName, WSService service) { this.id = id; this.name = operationName; this.service = service; ...
return new Object[] {}; } } private Object[] safeSend(Object[] arguments, ConcurrentMap<QName, URL> overridenEndpointAddresses) throws Exception { Object[] results = null; results = this.service.getClient().send(this.name, arguments, overridenEndpointAddresses); if (results ==...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\webservice\WSOperation.java
2
请完成以下Java代码
public WebSocketGraphQlClient build() { setJsonCodecs( CodecDelegate.findJsonEncoder(this.codecConfigurer), CodecDelegate.findJsonDecoder(this.codecConfigurer)); WebSocketGraphQlTransport transport = new WebSocketGraphQlTransport( this.url, this.headers, this.webSocketClient, this.codecConfigurer, get...
} @Override public Mono<Void> start() { return this.transport.start(); } @Override public Mono<Void> stop() { return this.transport.stop(); } @Override public DefaultWebSocketGraphQlClientBuilder mutate() { DefaultWebSocketGraphQlClientBuilder builder = new DefaultWebSocketGraphQlClientBuild...
repos\spring-graphql-main\spring-graphql\src\main\java\org\springframework\graphql\client\DefaultWebSocketGraphQlClientBuilder.java
1
请完成以下Java代码
public int getVisitCount() { return visitCount; } public void setVisitCount(int visitCount) { this.visitCount = visitCount; } double getWinScore() { return winScore; } void setWinScore(double winScore) { this.winScore = winScore; } public List<State> g...
void incrementVisit() { this.visitCount++; } void addScore(double score) { if (this.winScore != Integer.MIN_VALUE) this.winScore += score; } void randomPlay() { List<Position> availablePositions = this.board.getEmptyPositions(); int totalPossibilities = avai...
repos\tutorials-master\algorithms-modules\algorithms-searching\src\main\java\com\baeldung\algorithms\mcts\montecarlo\State.java
1
请完成以下Java代码
public static void backIterable2(BinTreeNode<String> root, List<String> list) { Stack<BinTreeNode<String>> stack = new Stack<>(); BinTreeNode<String> prev = null, curr = root; while (curr != null || !stack.isEmpty()) { while (curr != null) { // 添加根节点 ...
if (p.right != null) { queue.addLast(p.right); } } } static class BinTreeNode<T> { /** * 数据 */ T data; /** * 左节点 */ BinTreeNode<T> left; /** * 右节点 */ BinTreeNode<T> right;...
repos\spring-boot-student-master\spring-boot-student-concurrent\src\main\java\com\xiaolyuh\BinTreeIterable.java
1
请完成以下Java代码
public Object aggregate(final I_M_Attribute ignored, final Object valueOld, final Object valueDelta) { final BigDecimal valueOldBD = coerceToBigDecimal(valueOld); final BigDecimal valueDeltaBD = coerceToBigDecimal(valueDelta); final BigDecimal valueNewBD = valueOldBD.add(valueDeltaBD); return valueNewBD; } ...
} else { try { convertedValue = new BigDecimal(value.toString()); } catch (final Exception e) { throw new AdempiereException("Could not create BigDecimal from object: " + value, e); } } return convertedValue; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\attribute\strategy\impl\SumAggregationStrategy.java
1
请完成以下Java代码
private I_M_ShipmentSchedule getM_ShipmentScheduleFromVHU(final I_M_HU_Trx_Line trxLine) { // // Get VHU Item from trxLine // If there is no VHU item on this transaction line, there is nothing to do final int vhuItemId = trxLine.getVHU_Item_ID(); if (vhuItemId <= 0) { return null; } // // Get VHU...
return huShipmentScheduleDAO.retrieveSchedsQtyPickedForVHUQuery(vhuFrom) .andCollect(de.metas.inoutcandidate.model.I_M_ShipmentSchedule_QtyPicked.COLUMN_M_ShipmentSchedule_ID) .create() .firstOnly(I_M_ShipmentSchedule.class); } /** * Move all assignments to shipment schedules, from given TU to it's new...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\shipmentschedule\api\impl\ShipmentScheduleHUTrxListener.java
1
请完成以下Java代码
public class SpinVariableSerializers { public static List<TypedValueSerializer<?>> createObjectValueSerializers(DataFormats dataFormats) { List<TypedValueSerializer<?>> serializers = new ArrayList<TypedValueSerializer<?>>(); Set<DataFormat<?>> availableDataFormats = dataFormats.getAllAvailableDataFormats();...
if(dataFormats.getDataFormatByName(DataFormats.JSON_DATAFORMAT_NAME) != null) { DataFormat<SpinJsonNode> jsonDataFormat = (DataFormat<SpinJsonNode>) dataFormats.getDataFormatByName(DataFormats.JSON_DATAFORMAT_NAME); serializers.add(new JsonValueSerializer(jsonDataFormat)); } if(dataFormats...
repos\camunda-bpm-platform-master\engine-plugins\spin-plugin\src\main\java\org\camunda\spin\plugin\impl\SpinVariableSerializers.java
1
请在Spring Boot框架中完成以下Java代码
public class OrderProperties { /** * 订单支付超时时长,单位:秒。 */ private Integer payTimeoutSeconds; /** * 订单创建频率,单位:秒 */ private Integer createFrequencySeconds; // /** // * 配置描述 // */ // private String desc; public Integer getPayTimeoutSeconds() { return payTimeou...
public OrderProperties setCreateFrequencySeconds(Integer createFrequencySeconds) { this.createFrequencySeconds = createFrequencySeconds; return this; } // public String getDesc() { // return desc; // } // // public OrderProperties setDesc(String desc) { // this.desc = desc; /...
repos\SpringBoot-Labs-master\lab-43\lab-43-demo\src\main\java\cn\iocoder\springboot\lab43\propertydemo\OrderProperties.java
2
请完成以下Java代码
public final class ModelColumnNameValue<T> { public static <ModelType> ModelColumnNameValue<ModelType> forColumn(@NonNull final ModelColumn<ModelType, ?> column) { return new ModelColumnNameValue<>(column.getColumnName()); } public static <ModelType> ModelColumnNameValue<ModelType> forColumnName(final String col...
private ModelColumnNameValue(final String columnName) { Check.assumeNotEmpty(columnName, "columnName not empty"); this.columnName = columnName; } /** * <b>Might return <code>null</code>!</b> * * @param model * @return */ public Object getValue(@NonNull final T model) { final String columnName = g...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\dao\impl\ModelColumnNameValue.java
1
请在Spring Boot框架中完成以下Java代码
public @Nullable Duration getFixedRate() { return this.fixedRate; } public void setFixedRate(@Nullable Duration fixedRate) { this.fixedRate = fixedRate; } public @Nullable Duration getInitialDelay() { return this.initialDelay; } public void setInitialDelay(@Nullable Duration initialDelay) { t...
private boolean defaultLoggingEnabled = true; /** * List of simple patterns to match against the names of Spring Integration * components. When matched, observation instrumentation will be performed for the * component. Please refer to the javadoc of the smartMatch method of Spring * Integration's Patter...
repos\spring-boot-4.0.1\module\spring-boot-integration\src\main\java\org\springframework\boot\integration\autoconfigure\IntegrationProperties.java
2
请在Spring Boot框架中完成以下Java代码
public class ApiResponseAuditRepository { private final IQueryBL queryBL = Services.get(IQueryBL.class); @NonNull public ApiResponseAudit save(@NonNull final ApiResponseAudit apiResponseAudit) { final I_API_Response_Audit record = InterfaceWrapperHelper.loadOrNew(apiResponseAudit.getApiResponseAuditId(), I_API_R...
return queryBL.createQueryBuilder(I_API_Response_Audit.class) .addEqualsFilter(I_API_Response_Audit.COLUMNNAME_API_Request_Audit_ID, apiRequestAuditId.getRepoId()) .orderByDescending(I_API_Response_Audit.COLUMN_API_Response_Audit_ID) .create() .firstOptional() .map(this::recordToResponseAudit); } ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\audit\apirequest\response\ApiResponseAuditRepository.java
2
请完成以下Java代码
public void collectAllowNew(final DocumentPath rootDocumentPath, final DetailId detailId, final LogicExpressionResult allowNew) { rootDocumentChanges(rootDocumentPath) .includedDetailInfo(detailId) .setAllowNew(allowNew); } @Override public void collectAllowDelete(final DocumentPath rootDocumentPath, fin...
final DocumentPath rootDocumentPath = documentPath.getRootDocumentPath(); final DetailId detailId = documentPath.getDetailId(); return documentChangesIfExists(rootDocumentPath) .flatMap(rootDocumentChanges -> rootDocumentChanges.includedDetailInfoIfExists(detailId)) .map(IncludedDetailInfo::isStale) .o...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\model\DocumentChangesCollector.java
1
请完成以下Java代码
public boolean isMoveToSubProcessInstance() { return moveToSubProcessInstance; } public void setMoveToSubProcessInstance(boolean moveToSubProcessInstance) { this.moveToSubProcessInstance = moveToSubProcessInstance; } public String getCallActivityId() { return callActivityId; ...
public Integer getCallActivitySubProcessVersion() { return callActivitySubProcessVersion; } public void setCallActivitySubProcessVersion(Integer callActivitySubProcessVersion) { this.callActivitySubProcessVersion = callActivitySubProcessVersion; } public Optional<String> getNewAssignee...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\runtime\MoveActivityIdContainer.java
1
请完成以下Java代码
public final class MethodNameCalloutInstance implements ICalloutInstance { public static Supplier<ICalloutInstance> supplier(final String methodNameFQ) { Check.assumeNotEmpty(methodNameFQ, "methodNameFQ not empty"); final String classname; final String methodName; final int methodStartIdx = methodNameFQ.las...
@Override public boolean equals(final Object obj) { if (this == obj) { return true; } final MethodNameCalloutInstance other = EqualsBuilder.getOther(this, obj); if (other == null) { return false; } return id.equals(other.id); } @Override public void execute(final ICalloutExecutor executor,...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\callout\api\impl\MethodNameCalloutInstance.java
1
请完成以下Java代码
public static void writeFileInRandomUsingFileChannel() { ByteBuffer buffer1 = ByteBuffer.wrap(data1); ByteBuffer buffer2 = ByteBuffer.wrap(data2); try (FileChannel fileChannel = FileChannel.open(Path.of("output.txt"), StandardOpenOption.WRITE, StandardOpenOption.CREATE)) { fileChanne...
ByteBuffer buffer2 = ByteBuffer.wrap(data2); Thread thread1 = new Thread(() -> writeToFileWithLock(outputFile, buffer1, 0)); Thread thread2 = new Thread(() -> writeToFileWithLock(outputFile, buffer2, 20)); thread1.start(); thread2.start(); } public static void performanceCompa...
repos\tutorials-master\core-java-modules\core-java-io-6\src\main\java\com\baeldung\fileoutputstreamvsfilechannel\FileOutputStreamVSFileChannel.java
1
请在Spring Boot框架中完成以下Java代码
class OnEnabledResourceChainCondition extends SpringBootCondition { private static final String WEBJAR_ASSET_LOCATOR = "org.webjars.WebJarAssetLocator"; private static final String WEBJAR_VERSION_LOCATOR = "org.webjars.WebJarVersionLocator"; @Override public ConditionOutcome getMatchOutcome(ConditionContext cont...
return ConditionOutcome.noMatch(message.didNotFind("class").items(WEBJAR_VERSION_LOCATOR)); } if (match) { return ConditionOutcome.match(message.because("enabled")); } return ConditionOutcome.noMatch(message.because("disabled")); } @Contract("_, _, !null -> !null") private @Nullable Boolean getEnabledPro...
repos\spring-boot-4.0.1\core\spring-boot-autoconfigure\src\main\java\org\springframework\boot\autoconfigure\web\OnEnabledResourceChainCondition.java
2
请完成以下Java代码
public synchronized ProcessInstanceResult getExecutionResult() { return lastExecutionResult; } @Override public Collection<IProcessInstanceParameter> getParameters() { return parameters.getFieldViews() .stream() .map(DocumentFieldAsProcessInstanceParameter::of) .collect(ImmutableList.toImmutableLi...
{ final IDocumentFieldView field = parameters.getFieldViewOrNull(PARAM_AD_Process_ID); if (field != null) { final int processId = field.getValueAsInt(0); if (processId > 0) { return AdProcessId.ofRepoId(processId); } } return null; } public boolean isPrintPreview() { final IDocumentField...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\handlingunits\report\HUReportProcessInstance.java
1
请完成以下Java代码
public boolean isLatest() { return latest; } public String getCategory() { return category; } public String getCategoryLike() { return categoryLike; } public String getResourceName() { return resourceName; } public String getResourceNameLike() { return resourceNameLike; } pu...
public boolean isNotStartableInTasklist() { return isNotStartableInTasklist; } public boolean isStartablePermissionCheck() { return startablePermissionCheck; } public void setProcessDefinitionCreatePermissionChecks(List<PermissionCheck> processDefinitionCreatePermissionChecks) { this.processDefini...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\ProcessDefinitionQueryImpl.java
1
请在Spring Boot框架中完成以下Java代码
public ExternalWorkerJobAcquireBuilder onlyBpmn() { if (ScopeTypes.CMMN.equals(scopeType)) { throw new FlowableIllegalArgumentException("Cannot combine onlyCmmn() with onlyBpmn() in the same query"); } if (scopeType != null) { throw new FlowableIllegalArgumentException("...
try { return commandExecutor.execute(new AcquireExternalWorkerJobsCmd(workerId, numberOfTasks, this, jobServiceConfiguration)); } catch (FlowableOptimisticLockingException ignored) { // Query for jobs until there is no FlowableOptimisticLockingException // It ...
repos\flowable-engine-main\modules\flowable-job-service\src\main\java\org\flowable\job\service\impl\ExternalWorkerJobAcquireBuilderImpl.java
2
请完成以下Java代码
public int getC_OLCandAggAndOrder_ID() { return get_ValueAsInt(COLUMNNAME_C_OLCandAggAndOrder_ID); } @Override public de.metas.ordercandidate.model.I_C_OLCandProcessor getC_OLCandProcessor() { return get_ValueAsPO(COLUMNNAME_C_OLCandProcessor_ID, de.metas.ordercandidate.model.I_C_OLCandProcessor.class); } ...
} @Override public java.lang.String getGranularity() { return get_ValueAsString(COLUMNNAME_Granularity); } @Override public void setGroupBy (final boolean GroupBy) { set_Value (COLUMNNAME_GroupBy, GroupBy); } @Override public boolean isGroupBy() { return get_ValueAsBoolean(COLUMNNAME_GroupBy); } ...
repos\metasfresh-new_dawn_uat\backend\de.metas.salescandidate.base\src\main\java-gen\de\metas\ordercandidate\model\X_C_OLCandAggAndOrder.java
1
请完成以下Java代码
public final class RabbitConstants { /** * 死性队列EXCHANGE名称 */ public static final String MQ_EXCHANGE_DEAD_QUEUE = "test-dead-queue-exchange"; /** * 死性队列名称 */ public static final String QUEUE_NAME_DEAD_QUEUE = "test-dead-queue"; /** * 死性队列路由名称 */ public static fina...
/** * 发放奖励EXCHANGE名称 */ public static final String MQ_EXCHANGE_SEND_AWARD = "test-send-award-exchange"; /** * 发放优惠券队列名称 */ public static final String QUEUE_NAME_SEND_COUPON = "test-send-coupon-queue"; /** * 发放优惠券路由key */ public static final String MQ_ROUTING_KEY_SEND_...
repos\spring-boot-student-master\spring-boot-student-rabbitmq\src\main\java\com\xiaolyuh\constants\RabbitConstants.java
1
请在Spring Boot框架中完成以下Java代码
public class ConditionsId implements RepoIdAware { int repoId; @JsonCreator public static ConditionsId ofRepoId(final int repoId) { return new ConditionsId(repoId); } @Nullable public static ConditionsId ofRepoIdOrNull(final int repoId) { return repoId > 0 ? ofRepoId(repoId) : null; } public static Opt...
} @Override @JsonValue public int getRepoId() { return repoId; } public static boolean equals(@Nullable final ConditionsId id1, @Nullable final ConditionsId id2) { return Objects.equals(id1, id2); } public static int toRepoId(@Nullable final ConditionsId id) { return id != null ? id.getRepoId() : -1; } ...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\contracts\ConditionsId.java
2
请完成以下Java代码
protected class QueryProcessInstancesCmd implements Command<List<ProcessInstanceDto>> { protected ProcessInstanceQueryDto queryParameter; protected Integer firstResult; protected Integer maxResults; public QueryProcessInstancesCmd(ProcessInstanceQueryDto queryParameter, Integer firstResult, Integer ma...
protected ProcessInstanceQueryDto queryParameter; public QueryProcessInstancesCountCmd(ProcessInstanceQueryDto queryParameter) { this.queryParameter = queryParameter; } @Override public CountResultDto execute(CommandContext commandContext) { injectEngineConfig(queryParameter); config...
repos\camunda-bpm-platform-master\webapps\assembly\src\main\java\org\camunda\bpm\cockpit\impl\plugin\resources\ProcessInstanceRestService.java
1
请完成以下Java代码
public class ActivitiProcessStartedEventImpl extends ActivitiEntityWithVariablesEventImpl implements ActivitiProcessStartedEvent { protected final String nestedProcessInstanceId; protected final String nestedProcessDefinitionId; protected final String linkedProcessInstanceId; protected final...
this.nestedProcessInstanceId = null; } } else { this.nestedProcessDefinitionId = null; this.nestedProcessInstanceId = null; } this.linkedProcessInstanceId = linkedProcessInstanceId; this.linkedProcessInstanceType = linkedProcessInstanceType; } ...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\delegate\event\impl\ActivitiProcessStartedEventImpl.java
1
请完成以下Java代码
public void setM_Picking_Job_ID (final int M_Picking_Job_ID) { if (M_Picking_Job_ID < 1) set_Value (COLUMNNAME_M_Picking_Job_ID, null); else set_Value (COLUMNNAME_M_Picking_Job_ID, M_Picking_Job_ID); } @Override public int getM_Picking_Job_ID() { return get_ValueAsInt(COLUMNNAME_M_Picking_Job_ID); ...
} @Override public int getM_Warehouse_ID() { return get_ValueAsInt(COLUMNNAME_M_Warehouse_ID); } @Override public void setPickingSlot (final java.lang.String PickingSlot) { set_Value (COLUMNNAME_PickingSlot, PickingSlot); } @Override public java.lang.String getPickingSlot() { return get_ValueAsStr...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java-gen\de\metas\picking\model\X_M_PickingSlot.java
1
请完成以下Java代码
public String getType() { return type; } public HistoricBatchQuery orderById() { return orderBy(HistoricBatchQueryProperty.ID); } public HistoricBatchQuery orderByStartTime() { return orderBy(HistoricBatchQueryProperty.START_TIME); } public HistoricBatchQuery orderByEndTime() { return ord...
} @Override public long executeCount(CommandContext commandContext) { checkQueryOk(); return commandContext .getHistoricBatchManager() .findBatchCountByQueryCriteria(this); } @Override public List<HistoricBatch> executeList(CommandContext commandContext, Page page) { checkQueryOk(); ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\batch\history\HistoricBatchQueryImpl.java
1
请完成以下Java代码
private IVendorInvoicingInfo getVendorInvoicingInfo() { Check.assumeNotNull(_vendorInvoicingInfo, "_vendorInvoicingInfo not null"); return _vendorInvoicingInfo; } /** * Creates {@link IPricingContext} for parameters set. * * Following informations will be set: * <ul> * <li>bill bpartner * <li>pricin...
/** * Updates the pricing context from original invoice candidate. Following informations will be set: * <ul> * <li>bill bpartner * <li>pricing system and price list * <li>currency * <li>IsSOTrx to <code>false</code> * <li>will NOT be set: product * </ul> * * @param pricingCtx */ private void upd...
repos\metasfresh-new_dawn_uat\backend\de.metas.materialtracking\src\main\java\de\metas\materialtracking\qualityBasedInvoicing\impl\PricingContextBuilder.java
1
请完成以下Java代码
public class BigIntegerRestVariableConverter implements RestVariableConverter { @Override public String getRestTypeName() { return "bigInteger"; } @Override public Class<?> getVariableType() { return BigInteger.class; } @Override public Object getVariableValue(EngineRe...
} @Override public void convertVariableValue(Object variableValue, EngineRestVariable result) { if (variableValue != null) { if (!(variableValue instanceof BigInteger)) { throw new FlowableIllegalArgumentException("Converter can only convert big integer values"); ...
repos\flowable-engine-main\modules\flowable-common-rest\src\main\java\org\flowable\common\rest\variable\BigIntegerRestVariableConverter.java
1
请在Spring Boot框架中完成以下Java代码
public class EmailAddress implements ContactAddress { @NonNull String value; @NonNull DeactivatedOnRemotePlatform deactivatedOnRemotePlatform; public static Optional<EmailAddress> cast(@Nullable final ContactAddress contactAddress) { return contactAddress instanceof EmailAddress ? Optional.of((EmailAddress)...
? ofString(emailAddress) : null; } public static EmailAddress of( @NonNull final String emailAddress, @NonNull final DeactivatedOnRemotePlatform deactivatedOnRemotePlatform) { return new EmailAddress(emailAddress, deactivatedOnRemotePlatform); } private EmailAddress( @NonNull final String value, ...
repos\metasfresh-new_dawn_uat\backend\de.metas.marketing\base\src\main\java\de\metas\marketing\base\model\EmailAddress.java
2
请完成以下Java代码
private List<RelatedProcessDescriptor> createAdditionalRelatedProcessDescriptors() { return ImmutableList.of( createProcessDescriptorForIssueReceiptWindow(de.metas.ui.web.pporder.process.WEBUI_PP_Order_Receipt.class), createProcessDescriptorForIssueReceiptWindow(de.metas.ui.web.handlingunits.process.WEBUI_M_...
} private RelatedProcessDescriptor createProcessDescriptorForIssueReceiptWindow(@NonNull final Class<?> processClass) { final AdProcessId processId = adProcessDAO.retrieveProcessIdByClass(processClass); return RelatedProcessDescriptor.builder() .processId(processId) .windowId(PPOrderConstants.AD_WINDOW_...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\pporder\PPOrderLinesViewFactory.java
1
请完成以下Java代码
final class QueueProcessorStatistics implements IMutableQueueProcessorStatistics { private long countAll; private long countProcessed; private long countErrors; private long countSkipped; private long queueSize; public QueueProcessorStatistics() { countAll = 0; countProcessed = 0; countErrors = 0; count...
public void incrementCountProcessed() { countProcessed++; } @Override public long getCountErrors() { return countErrors; } @Override public void incrementCountErrors() { countErrors++; } @Override public long getQueueSize() { return queueSize; } @Override public void incrementQueueSize() { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.async\src\main\java\de\metas\async\processor\impl\QueueProcessorStatistics.java
1
请完成以下Java代码
public final class TableCellNone implements TableCellEditor, TableCellRenderer { private Object m_value; // private String m_columnName; public TableCellNone(String columnName) { super(); // m_columnName = columnName; } @Override public Component getTableCellEditorComponent(JTable table, Object value, bo...
} @Override public boolean isCellEditable(EventObject anEvent) { return false; } @Override public void removeCellEditorListener(CellEditorListener l) { } @Override public boolean shouldSelectCell(EventObject anEvent) { return false; } @Override public boolean stopCellEditing() { return true; }...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\swing\TableCellNone.java
1
请完成以下Java代码
public class FlowableUser extends org.springframework.security.core.userdetails.User implements FlowableUserDetails { private static final long serialVersionUID = 1L; protected final User user; protected final List<Group> groups; public FlowableUser(User user, boolean active, List<? extends Group> g...
} @Override public User getUser() { return user; } @Override public List<Group> getGroups() { return groups; } @Override public void eraseCredentials() { super.eraseCredentials(); user.setPassword(null); } }
repos\flowable-engine-main\modules\flowable-spring-security\src\main\java\org\flowable\spring\security\FlowableUser.java
1
请完成以下Java代码
public void setPostingType (final java.lang.String PostingType) { set_Value (COLUMNNAME_PostingType, PostingType); } @Override public java.lang.String getPostingType() { return get_ValueAsString(COLUMNNAME_PostingType); } @Override public void setProcessed (final boolean Processed) { set_Value (COLUMN...
set_Value (COLUMNNAME_Reversal_ID, null); else set_Value (COLUMNNAME_Reversal_ID, Reversal_ID); } @Override public int getReversal_ID() { return get_ValueAsInt(COLUMNNAME_Reversal_ID); } @Override public void setSAP_GLJournal_ID (final int SAP_GLJournal_ID) { if (SAP_GLJournal_ID < 1) set_Value...
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java-gen\de\metas\acct\model\X_SAP_GLJournal.java
1
请完成以下Java代码
public class IntermediateCatchEventParseHandler extends AbstractFlowNodeBpmnParseHandler<IntermediateCatchEvent> { private static final Logger LOGGER = LoggerFactory.getLogger(IntermediateCatchEventParseHandler.class); @Override public Class<? extends BaseElement> getHandledType() { return Interme...
} else { if (eventDefinition instanceof TimerEventDefinition || eventDefinition instanceof SignalEventDefinition || eventDefinition instanceof MessageEventDefinition || eventDefinition instanceof ConditionalEventDefinition || ...
repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\bpmn\parser\handler\IntermediateCatchEventParseHandler.java
1
请完成以下Java代码
public String getContent() { return this.content; } public List<Comment> getComments() { return this.comments; } public User getAuthor() { return this.author; } public void setId(Long id) { this.id = id; } public void setContent(String content) { ...
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Post post = (Post) o; return Objects.equals(id, post.id); } @Override public int hashCode(...
repos\tutorials-master\persistence-modules\spring-boot-persistence-4\src\main\java\com\baeldung\listvsset\eager\list\fulldomain\Post.java
1
请完成以下Java代码
private DocumentFieldDescriptor.Builder createCreatedUpdatedInfoFieldDescriptor(@NonNull final DataEntryField dataEntryField) { final String fieldName = createInfoFieldName(dataEntryField); final boolean mandatory = false; final DocumentFieldDataBindingDescriptor dataBinding = DataEntryFieldBindingDescriptor ...
} private static DocumentFieldWidgetType ofFieldType(@NonNull final FieldType fieldType) { switch (fieldType) { case DATE: return DocumentFieldWidgetType.LocalDate; case LIST: return DocumentFieldWidgetType.List; case NUMBER: return DocumentFieldWidgetType.Number; case TEXT: return Do...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\dataentry\window\descriptor\factory\DataEntryTabLoader.java
1
请完成以下Java代码
public void onPP_Order_ID(final I_PP_Cost_Collector cc) { final I_PP_Order ppOrder = cc.getPP_Order(); if (ppOrder == null) { return; } costCollectorBL.updateCostCollectorFromOrder(cc, ppOrder); } @CalloutMethod(columnNames = I_PP_Cost_Collector.COLUMNNAME_PP_Order_Node_ID) public void onPP_Order_Nod...
/** * Calculates and sets DurationReal based on selected PP_Order_Node */ private void updateDurationReal(final I_PP_Cost_Collector cc) { final WorkingTime durationReal = computeWorkingTime(cc); if (durationReal == null) { return; } cc.setDurationReal(durationReal.toBigDecimalUsingActivityTimeUnit()...
repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing\src\main\java\org\eevolution\callout\PP_Cost_Collector.java
1
请完成以下Java代码
public File createReportFile(String extension) { if (Check.isEmpty(extension)) { throw new IllegalArgumentException("Parameter extension cannot be empty"); } String name = new SimpleDateFormat("yyyyMMddhhmm").format(new Timestamp(System.currentTimeMillis())) +"_"+StringUtils.stripDiacritics(getName()....
* @return true if success */ private boolean updateParent() { final String sql_count = "SELECT COUNT(*) FROM "+Table_Name+" r" +" WHERE r."+COLUMNNAME_AD_Alert_ID+"=a."+MAlert.COLUMNNAME_AD_Alert_ID +" AND r."+COLUMNNAME_IsValid+"='N'" +" AND r.IsActive='Y'" ; final String sql = "UPDATE ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\MAlertRule.java
1
请完成以下Java代码
public abstract class AbstractAuthorizedRestResource extends AbstractRestProcessEngineAware { protected final Resource resource; protected final String resourceId; public AbstractAuthorizedRestResource(String processEngineName, Resource resource, String resourceId, ObjectMapper objectMapper) { super(process...
} else { return authorizationService .isUserAuthorized(authentication.getUserId(), authentication.getGroupIds(), permission, resource, resourceId); } } protected boolean isAuthorized(Permission permission, Resource resource) { return isAuthorized(permission, resource, resourceId); } pro...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\impl\AbstractAuthorizedRestResource.java
1
请在Spring Boot框架中完成以下Java代码
public void setJdbcTemplate(JdbcTemplate jdbcTemplate) { this.jdbcTemplate = jdbcTemplate; } public List<Student> getStudentsOfAgeAndGender(Integer age, String gender) { String sql = "select student_id, student_name, age, gender, grade, state from student where age= ? and gender = ?"; O...
public Student getStudentOfStudentIDAndGrade(Integer studentID, Integer grade) { String sql = "select student_id, student_name, age, gender, grade, state from student where student_id = ? and grade = ?"; Object[] args = {studentID, grade}; return jdbcTemplate.queryForObject(sql, args, new Stude...
repos\tutorials-master\persistence-modules\spring-jdbc\src\main\java\com\baeldung\spring\jdbc\replacedeprecated\StudentDaoWithDeprecatedJdbcTemplateMethods.java
2
请完成以下Java代码
public boolean isPalindromeUsingStringBuffer(String text) { String clean = text.replaceAll("\\s+", "") .toLowerCase(); StringBuffer plain = new StringBuffer(clean); StringBuffer reverse = plain.reverse(); return (reverse.toString()).equals(clean); } public boolean is...
return IntStream.range(0, temp.length() / 2) .noneMatch(i -> temp.charAt(i) != temp.charAt(temp.length() - i - 1)); } boolean hasPalindromePermutation(String text) { long charsWithOddOccurrencesCount = text.chars() .boxed() .collect(Collectors.groupingBy(Function.ide...
repos\tutorials-master\core-java-modules\core-java-string-algorithms-2\src\main\java\com\baeldung\palindrom\Palindrome.java
1
请完成以下Java代码
public String docValidate(final PO po, final int timing) { // nothing to do return null; } @Override public String modelChange(final PO po, int type) { assert po instanceof MInvoiceLine : po; if (type == TYPE_BEFORE_CHANGE || type == TYPE_BEFORE_NEW) { final IInvoiceLineBL invoiceLineBL = Services....
return null; } void beforeDelete(final org.compiere.model.I_C_InvoiceLine invoiceLine) { final IInvoiceDAO invoiceDAO = Services.get(IInvoiceDAO.class); final InvoiceAndLineId invoiceAndLineId = InvoiceAndLineId.ofRepoId(invoiceLine.getC_Invoice_ID(), invoiceLine.getC_InvoiceLine_ID()); for (final I_C_Invoi...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\adempiere\modelvalidator\InvoiceLine.java
1
请完成以下Java代码
public void onRemoteSessionCloseCommand(UUID sessionId, SessionCloseNotificationProto sessionCloseNotification) { log.trace("[{}] Received the remote command to close the session: {}", sessionId, sessionCloseNotification.getMessage()); responseWriter.setResult(new ResponseEntity<>(HttpStatus.REQ...
responseWriter.setResult(new ResponseEntity<>("Device was deleted!", HttpStatus.FORBIDDEN)); } } private static MediaType parseMediaType(String contentType) { try { return MediaType.parseMediaType(contentType); } catch (Exception e) { return MediaType.APPLICATIO...
repos\thingsboard-master\common\transport\http\src\main\java\org\thingsboard\server\transport\http\DeviceApiController.java
1
请在Spring Boot框架中完成以下Java代码
protected void initProcessInstanceService(ProcessEngineConfigurationImpl processEngineConfiguration) { cmmnEngineConfiguration.setProcessInstanceService(new DefaultProcessInstanceService(processEngineConfiguration)); } protected void initCaseInstanceService(ProcessEngineConfigurationImpl processEng...
@Override protected List<Class<? extends Entity>> getEntityDeletionOrder() { return EntityDependencyOrder.DELETE_ORDER; } @Override protected CmmnEngine buildEngine() { if (cmmnEngineConfiguration == null) { throw new FlowableException("CmmnEngineConfiguration is required");...
repos\flowable-engine-main\modules\flowable-cmmn-engine-configurator\src\main\java\org\flowable\cmmn\engine\configurator\CmmnEngineConfigurator.java
2
请完成以下Java代码
public KeyNamePair getKeyNamePair() { return new KeyNamePair(get_ID(), getName()); } /** Set Response Text. @param ResponseText Request Response Text */ public void setResponseText (String ResponseText) { set_Value (COLUMNNAME_ResponseText, ResponseText); } /** Get Response Text. @re...
if (R_StandardResponse_ID < 1) set_ValueNoCheck (COLUMNNAME_R_StandardResponse_ID, null); else set_ValueNoCheck (COLUMNNAME_R_StandardResponse_ID, Integer.valueOf(R_StandardResponse_ID)); } /** Get Standard Response. @return Request Standard Response */ public int getR_StandardResponse_ID () { I...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_R_StandardResponse.java
1
请完成以下Java代码
public boolean hasKey(Object key) { Assert.notNull(key, "key cannot be null"); return this.context.containsKey(key); } /** * Returns the {@link RegisteredClient registered client}. * @return the {@link RegisteredClient} */ public RegisteredClient getRegisteredClient() { return get(RegisteredClient.class...
super(authentication); } /** * Sets the {@link RegisteredClient registered client}. * @param registeredClient the {@link RegisteredClient} * @return the {@link Builder} for further configuration */ public Builder registeredClient(RegisteredClient registeredClient) { return put(RegisteredClient.cla...
repos\spring-security-main\oauth2\oauth2-authorization-server\src\main\java\org\springframework\security\oauth2\server\authorization\oidc\authentication\OidcLogoutAuthenticationContext.java
1
请完成以下Java代码
public TbQueueProducer<TbProtoQueueMsg<ToHousekeeperServiceMsg>> getHousekeeperMsgProducer() { return toHousekeeper; } @Override public TbQueueProducer<TbProtoQueueMsg<ToEdgeMsg>> getTbEdgeMsgProducer() { return toEdge; } @Override public TbQueueProducer<TbProtoQueueMsg<ToEdgeN...
public TbQueueProducer<TbProtoQueueMsg<ToEdgeEventNotificationMsg>> getTbEdgeEventsMsgProducer() { return toEdgeEvents; } @Override public TbQueueProducer<TbProtoQueueMsg<TransportProtos.ToCalculatedFieldMsg>> getCalculatedFieldsMsgProducer() { return toCalculatedFields; } @Overrid...
repos\thingsboard-master\common\queue\src\main\java\org\thingsboard\server\queue\provider\TbCoreQueueProducerProvider.java
1
请完成以下Java代码
public int getLocal_Currency_ID() { return get_ValueAsInt(COLUMNNAME_Local_Currency_ID); } @Override public void setMatchKey (final @Nullable java.lang.String MatchKey) { set_Value (COLUMNNAME_MatchKey, MatchKey); } @Override public java.lang.String getMatchKey() { return get_ValueAsString(COLUMNNAME...
@Override public void setPostingSign (final java.lang.String PostingSign) { set_Value (COLUMNNAME_PostingSign, PostingSign); } @Override public java.lang.String getPostingSign() { return get_ValueAsString(COLUMNNAME_PostingSign); } @Override public void setUserElementString1 (final @Nullable java.lang.S...
repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java-gen\de\metas\acct\model\X_Fact_Acct_UserChange.java
1
请在Spring Boot框架中完成以下Java代码
public FaviconResourceResolver faviconResourceResolver() { return new FaviconResourceResolver(); } @Override public void addResourceHandlers(ResourceHandlerRegistry registry) { final String classpath = "classpath:" + properties.getWebapp().getWebjarClasspath(); WebappProperty webapp = properties.getW...
.addResourceLocations(classpath + "/") // add slash to get rid of the WARN log .resourceChain(true) .addResolver(faviconResourceResolver()); } @Override public void addViewControllers(ViewControllerRegistry registry) { WebappProperty webapp = properties.getWebapp(); if (webapp.isIndexRe...
repos\camunda-bpm-platform-master\spring-boot-starter\starter-webapp-core\src\main\java\org\camunda\bpm\spring\boot\starter\webapp\CamundaBpmWebappAutoConfiguration.java
2
请完成以下Java代码
protected POInfo initPO (Properties ctx) { POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName()); return poi; } public String toString() { StringBuffer sb = new StringBuffer ("X_C_Cycle[") .append(get_ID()).append("]"); return sb.toString(); } public I_C_Cur...
} /** Set Description. @param Description Optional short description of the record */ public void setDescription (String Description) { set_Value (COLUMNNAME_Description, Description); } /** Get Description. @return Optional short description of the record */ public String getDescription () { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_Cycle.java
1
请完成以下Java代码
public void setValue (Object value) { if (value == null) setText(""); else setText(value.toString()); } // setValue /** * Return Editor value * @return current value */ @Override public Object getValue() {
return new String(super.getPassword()); } // getValue /** * Return Display Value * @return displayed String value */ @Override public String getDisplay() { return new String(super.getPassword()); } // getDisplay }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\swing\CPassword.java
1
请完成以下Java代码
private RequestsCollector getRequestsCollector() { return trxManager.getThreadInheritedTrx(OnTrxMissingPolicy.Fail) // at this point we always run in trx .getPropertyAndProcessAfterCommit( RequestsCollector.class.getName(), RequestsCollector::new, this::enqueueNow); } private void enqueueNow...
this.requests.addAll(requests); } private void assertNotProcessed() { if (processed) { throw new AdempiereException("already processed: " + this); } } public synchronized List<ModelToIndexEnqueueRequest> getRequestsAndMarkedProcessed() { assertNotProcessed(); this.processed = true; r...
repos\metasfresh-new_dawn_uat\backend\de.metas.elasticsearch\src\main\java\de\metas\fulltextsearch\indexer\queue\ModelsToIndexQueueService.java
1
请完成以下Spring Boot application配置
server: port: 8082 servlet: context-path: /ui register-default-servlet: true session: cookie: name: UISESSION security: basic: enabled: false oauth2: client: clientId: SampleClientId clientSecret: secret accessTokenUri: http://localhost:8081/auth/oauth...
i: http://localhost:8081/auth/oauth/authorize resource: userInfoUri: http://localhost:8081/auth/user/me spring: thymeleaf: cache: false
repos\tutorials-master\spring-security-modules\spring-security-oauth2-sso\spring-security-sso-ui\src\main\resources\application.yml
2
请完成以下Java代码
public java.lang.String getCoordinates () { return (java.lang.String)get_Value(COLUMNNAME_Coordinates); } /** Set Locode. @param Locode Location code - UN/LOCODE */ @Override public void setLocode (java.lang.String Locode) { set_Value (COLUMNNAME_Locode, Locode); } /** Get Locode. @return Loca...
return (java.lang.String)get_Value(COLUMNNAME_Name); } /** Set PLZ. @param Postal Postal code */ @Override public void setPostal (java.lang.String Postal) { set_Value (COLUMNNAME_Postal, Postal); } /** Get PLZ. @return Postal code */ @Override public java.lang.String getPostal () { return ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_City.java
1
请完成以下Java代码
public Set<String> deleteByTenantId(TenantId tenantId) { return apiKeyRepository.deleteByTenantId(tenantId.getId()); } @Override public Set<String> deleteByUserId(TenantId tenantId, UserId userId) { return apiKeyRepository.deleteByUserId(tenantId.getId(), userId.getId()); } @Overri...
protected Class<ApiKeyEntity> getEntityClass() { return ApiKeyEntity.class; } @Override protected JpaRepository<ApiKeyEntity, UUID> getRepository() { return apiKeyRepository; } @Override public EntityType getEntityType() { return EntityType.API_KEY; } }
repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\sql\pat\JpaApiKeyDao.java
1
请完成以下Java代码
public Map<String, String> getExtensionProperties(){ return extensionProperties; } public static LockedExternalTaskDto fromLockedExternalTask(LockedExternalTask task) { LockedExternalTaskDto dto = new LockedExternalTaskDto(); dto.activityId = task.getActivityId(); dto.activityInstanceId = task.getA...
for (LockedExternalTask task : tasks) { dtos.add(LockedExternalTaskDto.fromLockedExternalTask(task)); } return dtos; } @Override public String toString() { return "LockedExternalTaskDto [activityId=" + activityId + ", activityInstanceId=" + activityInstanceId + ", error...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\externaltask\LockedExternalTaskDto.java
1
请完成以下Java代码
private static final class ApplicationResource extends FileSystemResource implements ContextResource { ApplicationResource(String path) { super(path); } ApplicationResource(Path path) { super(path); } @Override public String getPathWithinContext() { return getPath(); } } /** * {@link Res...
if (resource != null) { return resource; } } } Resource resource = this.resourceLoader.getResource(location); String filePath = getFilePath(location, resource); return (filePath != null) ? new ApplicationResource(filePath) : resource; } private @Nullable String getFilePath(String locatio...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\io\ApplicationResourceLoader.java
1
请完成以下Java代码
public void setResourceName(String resourceName) { this.resourceName = resourceName; } /** * @return the id of the resource if there * is only one {@link MissingAuthorizationDto}, {@code null} otherwise * * @deprecated Use {@link #getMissingAuthorizations()} to get the id of the resource * of th...
this.permissionName = permissionName; } public String getUserId() { return userId; } public void setUserId(String userId) { this.userId = userId; } /** * @return Disjunctive list of {@link MissingAuthorizationDto} from * which a user needs to have at least one for the authorization to pass ...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\AuthorizationExceptionDto.java
1
请完成以下Java代码
public class InventoryLine_HandlerDAO implements IInventoryLine_HandlerDAO { @Override public Iterator<I_M_InventoryLine> retrieveAllLinesWithoutIC(final Properties ctx, final int limit, final String trxName) { final IQueryBL queryBL = Services.get(IQueryBL.class); final ICompositeQueryFilter<I_M_InventoryLine...
} filters.addInSubQueryFilter(I_M_InventoryLine.COLUMNNAME_M_Inventory_ID, I_M_Inventory.COLUMNNAME_M_Inventory_ID, inventoryQueryBuilder.create()); } final IQueryBuilder<I_M_InventoryLine> queryBuilder = queryBL.createQueryBuilder(I_M_InventoryLine.class, ctx, trxName) .filter(filters) .filterByClient...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\invoicecandidate\spi\impl\InventoryLine_HandlerDAO.java
1
请完成以下Java代码
public String getProcessInstanceId() { return businessProcess.getProcessInstanceId(); } /** * Returns the currently associated execution or 'null' */ /* Makes the current Execution available for injection */ @Produces @Named public Execution getExecution() { return bus...
* Returns the currently associated {@link Task} or 'null' * * @throws FlowableCdiException * if no {@link Task} is associated. Use {@link BusinessProcess#isTaskAssociated()} to check whether an association exists. */ /* Makes the current Task available for injection */ @Produces...
repos\flowable-engine-main\modules\flowable-cdi\src\main\java\org\flowable\cdi\CurrentProcessInstance.java
1
请完成以下Java代码
class SpringEnvironmentPropertySource implements PropertySource { /** * System properties take precedence followed by properties in Log4j properties files. */ private static final int PRIORITY = -100; private volatile @Nullable Environment environment; @Override public int getPriority() { return PRIORITY;...
public @Nullable String getProperty(String key) { Environment environment = this.environment; return (environment != null) ? environment.getProperty(key) : null; } @Override public boolean containsProperty(String key) { Environment environment = this.environment; return environment != null && environment.co...
repos\spring-boot-4.0.1\core\spring-boot\src\main\java\org\springframework\boot\logging\log4j2\SpringEnvironmentPropertySource.java
1
请在Spring Boot框架中完成以下Java代码
String getId() { return this.id; } Issuer getIssuer() { return this.issuer; } byte[] getContent() { return this.content; } String getAlgorithm() { return this.algorithm; } byte[] getSignature() {
return this.signature; } boolean hasSignature() { return this.signature != null; } } } interface DecryptionConfigurer { void decrypt(XMLObject object); } }
repos\spring-security-main\saml2\saml2-service-provider\src\main\java\org\springframework\security\saml2\internal\OpenSamlOperations.java
2
请完成以下Java代码
protected List<Long> convertValuesToLong(List<TypedValue> typedValues) throws IllegalArgumentException { List<Long> longValues = new ArrayList<Long>(); for (TypedValue typedValue : typedValues) { if (ValueType.LONG.equals(typedValue.getType())) { longValues.add((Long) typedValue.getValue()); ...
protected List<Double> convertValuesToDouble(List<TypedValue> typedValues) throws IllegalArgumentException { List<Double> doubleValues = new ArrayList<Double>(); for (TypedValue typedValue : typedValues) { if (ValueType.DOUBLE.equals(typedValue.getType())) { doubleValues.add((Double) typedValue.g...
repos\camunda-bpm-platform-master\engine-dmn\engine\src\main\java\org\camunda\bpm\dmn\engine\impl\hitpolicy\AbstractCollectNumberHitPolicyHandler.java
1
请完成以下Java代码
public int getActivityInstanceState() { return activityInstanceState; } public boolean isCompleteScope() { return ActivityInstanceState.SCOPE_COMPLETE.getStateCode() == activityInstanceState; } public boolean isCanceled() { return ActivityInstanceState.CANCELED.getStateCode() == activityInstanceSt...
+ ", activityInstanceState=" + activityInstanceState + ", parentActivityInstanceId=" + parentActivityInstanceId + ", calledProcessInstanceId=" + calledProcessInstanceId + ", calledCaseInstanceId=" + calledCaseInstanceId + ", taskId=" + taskId + ", taskAssignee=" + ...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\history\event\HistoricActivityInstanceEventEntity.java
1
请完成以下Java代码
public class CopyingAHashMapToAnother { public Map<String, String> copyByIteration(Map<String, String> sourceMap, Map<String, String> targetMap) { for (Map.Entry<String, String> entry : sourceMap.entrySet()) { if (!targetMap.containsKey(entry.getKey())) { targetMap.put(entry.getK...
} return targetMap; } public Map<String, String> copyUsingPutIfAbsentForEach(Map<String, String> sourceMap, Map<String, String> targetMap) { sourceMap.forEach(targetMap::putIfAbsent); return targetMap; } public Map<String, String> copyUsingMapMerge(Map<String, String> sourceMap...
repos\tutorials-master\core-java-modules\core-java-collections-maps-6\src\main\java\com\baeldung\map\hashmapcopy\CopyingAHashMapToAnother.java
1
请完成以下Java代码
public void sendPrintPackageResponse(PrintPackage printPackage, PrintJobInstructionsConfirm response) { final int sessionId = getAD_Session_ID(); final PRTCPrintJobInstructionsConfirmType xmlRequest = converterPRTCPrintJobInstructionsConfirmType.createPRTADPrintPackageResponse(response, sessionId); sendXmlObject...
final JAXBElement<Object> jaxbElement = ObjectFactoryHelper.createJAXBElement(new ObjectFactory(), xmlObj); jaxbMarshaller.marshal(jaxbElement, document); return document; } private String createTransactionId() { final String transactionId = UUID.randomUUID().toString(); return transactionId; } @Overrid...
repos\metasfresh-new_dawn_uat\backend\de.metas.printing\de.metas.printing.embedded-client\src\main\java\de\metas\printing\client\endpoint\LoopbackPrintConnectionEndpoint.java
1
请完成以下Java代码
public void setPurchaseType (java.math.BigDecimal PurchaseType) { set_Value (COLUMNNAME_PurchaseType, PurchaseType); } /** Get Kaufstyp. @return Kaufstyp */ @Override public java.math.BigDecimal getPurchaseType () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PurchaseType); if (bd == null) { ...
{ BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_RequestPrice); if (bd == null) { return BigDecimal.ZERO; } return bd; } /** Set Preis per Überprüfung. @param RequestPrice Preis per Überprüfung */ @Override public void setRequestPrice (java.math.BigDecimal RequestPrice) { set_Value (COLUMNNAM...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.creditscore\creditpass\src\main\java-gen\de\metas\vertical\creditscore\creditpass\model\X_CS_Creditpass_Config_PaymentRule.java
1
请完成以下Java代码
public static class DocTypeQueryBuilder { public DocTypeQueryBuilder docBaseType(@NonNull final String docBaseType) { return docBaseType(DocBaseType.ofCode(docBaseType)); } public DocTypeQueryBuilder docBaseType(@NonNull final DocBaseType docBaseType) { this.docBaseType = docBaseType; return this; ...
return docSubType(DOCSUBTYPE_NONE); } public DocTypeQueryBuilder clientAndOrgId(@NonNull final ClientAndOrgId clientAndOrgId) { return clientAndOrgId(clientAndOrgId.getClientId(), clientAndOrgId.getOrgId()); } public DocTypeQueryBuilder clientAndOrgId(@NonNull final ClientId clientId, @NonNull final OrgI...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\document\DocTypeQuery.java
1
请完成以下Java代码
public String getArtifactId() { return this.artifactId; } /** * Sets the artifact id. * @param artifactId the artifact id */ public void setArtifactId(String artifactId) { this.artifactId = artifactId; } @Override public String getVersion() { return this.version; } /** * Sets the version. * @...
/** * Sets the application name. * @param applicationName the application name */ public void setApplicationName(String applicationName) { this.applicationName = applicationName; } @Override public String getPackageName() { if (StringUtils.hasText(this.packageName)) { return this.packageName; } if...
repos\initializr-main\initializr-generator\src\main\java\io\spring\initializr\generator\project\MutableProjectDescription.java
1
请在Spring Boot框架中完成以下Java代码
private CreditLimitType retrieveCreditLimitTypePOJO(final int C_CreditLimit_Type_ID) { final I_C_CreditLimit_Type type = queryBL .createQueryBuilder(I_C_CreditLimit_Type.class) .addOnlyActiveRecordsFilter() .addEqualsFilter(I_C_CreditLimit_Type.COLUMN_C_CreditLimit_Type_ID, C_CreditLimit_Type_ID) .cr...
} public Optional<I_C_BPartner_CreditLimit> retrieveCreditLimitByBPartnerId(final int bpartnerId, final int typeId) { return queryBL .createQueryBuilder(I_C_BPartner_CreditLimit.class) .addEqualsFilter(I_C_BPartner_CreditLimit.COLUMNNAME_C_BPartner_ID, bpartnerId) .addEqualsFilter(I_C_BPartner_CreditLi...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\bpartner\service\BPartnerCreditLimitRepository.java
2
请完成以下Java代码
public org.eevolution.model.I_PP_Product_BOMVersions getPP_Product_BOMVersions() { return get_ValueAsPO(COLUMNNAME_PP_Product_BOMVersions_ID, org.eevolution.model.I_PP_Product_BOMVersions.class); } @Override public void setPP_Product_BOMVersions(final org.eevolution.model.I_PP_Product_BOMVersions PP_Product_BOMV...
} @Override public int getPP_Product_Planning_ID() { return get_ValueAsInt(COLUMNNAME_PP_Product_Planning_ID); } @Override public void setQty (final @Nullable BigDecimal Qty) { set_ValueNoCheck (COLUMNNAME_Qty, Qty); } @Override public BigDecimal getQty() { final BigDecimal bd = get_ValueAsBigDeci...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_PP_Maturing_Candidates_v.java
1
请完成以下Java代码
public class ProblemImpl implements Problem { protected String message; protected int line; protected int column; protected String mainElementId; protected List<String> elementIds = new ArrayList<>(); public ProblemImpl(SAXParseException e) { concatenateErrorMessages(e); this.line = e.getLineNumbe...
} } } // getters @Override public String getMessage() { return message; } @Override public int getLine() { return line; } @Override public int getColumn() { return column; } @Override public String getMainElementId() { return mainElementId; } @Override public Li...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\xml\ProblemImpl.java
1
请完成以下Java代码
public static <T> T lookup(Class<T> clazz, boolean optional) { BeanManager bm = BeanManagerLookup.getBeanManager(); return lookup(clazz, bm, optional); } public static Object lookup(String name) { BeanManager bm = BeanManagerLookup.getBeanManager(); return lookup(name, bm); } @SuppressWarning...
releaseOnContextClose(creationalContext, bean); } return (T) bm.getReference(bean, type, creationalContext); } } private static boolean isDependentScoped(Bean<?> bean) { return Dependent.class.equals(bean.getScope()); } private static void releaseOnContextClose(CreationalContext<?> creat...
repos\camunda-bpm-platform-master\engine-cdi\core\src\main\java\org\camunda\bpm\engine\cdi\impl\util\ProgrammaticBeanLookup.java
1
请完成以下Java代码
public final Void execute(CommandContext commandContext) { ExternalWorkerJobEntity externalWorkerJob = resolveJob(commandContext); if (!ScopeTypes.CMMN.equals(externalWorkerJob.getScopeType())) { throw new FlowableException(externalWorkerJob + " is not cmmn scoped. This command can only han...
} CmmnEngineConfiguration cmmnEngineConfiguration = CommandContextUtil.getCmmnEngineConfiguration(commandContext); ExternalWorkerJobEntityManager externalWorkerJobEntityManager = cmmnEngineConfiguration.getJobServiceConfiguration().getExternalWorkerJobEntityManager(); ExternalWorkerJobEntity j...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\cmd\AbstractExternalWorkerJobCmd.java
1
请完成以下Java代码
public Object createValue(Class<?> type, String value) { Object v = null; try { Constructor<?> init = type.getDeclaredConstructor(String.class); v = init.newInstance(value); } catch (NoSuchMethodException e) ...
}; private static final List<ValueCreator> DEFAULT_VALUE_CREATORS = Arrays.asList(Args.FROM_STRING_CONSTRUCTOR, Args.ENUM_CREATOR); private static List<ValueCreator> valueCreators = new ArrayList<ValueCreator>(DEFAULT_VALUE_CREATORS); /** * Allows external extension of the valiue creators. * ...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\model\perceptron\cli\Args.java
1
请完成以下Java代码
public static TargetRecordAction of(@NonNull final String tableName, final int recordId) { return of(TableRecordReference.of(tableName, recordId)); } public static TargetRecordAction cast(final TargetAction targetAction) { return (TargetRecordAction)targetAction; } @NonNull @Builder.Default Optional...
@lombok.Value @lombok.Builder public static class TargetViewAction implements TargetAction { public static TargetViewAction cast(final TargetAction targetAction) { return (TargetViewAction)targetAction; } @Nullable AdWindowId adWindowId; @NonNull String viewId; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\notification\UserNotificationRequest.java
1
请完成以下Java代码
public String getName() { return name; } public void setName(String name) { this.name = name; } public String getPhone() { return phone; } public void setPhone(String phone) { this.phone = phone; } public String getProvince() { return province;...
public String getDetailAddress() { return detailAddress; } public void setDetailAddress(String detailAddress) { this.detailAddress = detailAddress; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); ...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\OmsCompanyAddress.java
1
请在Spring Boot框架中完成以下Java代码
public void updateAuthor1() { Author author = authorRepository.findById(1L).orElseThrow(); author.setAge(49); } // benefit of the global TransactionProfiler and local profiler @Transactional public void updateAuthor2() { TransactionSynchronizationManager.registerSynchronizatio...
} @Override public void beforeCompletion() { logger.info("Before completion (method) ..."); } @Override public void beforeCommit(boolean readOnly) { logger.info("Before commit (method) ..."); } }); ...
repos\Hibernate-SpringBoot-master\HibernateSpringBootTransactionCallback\src\main\java\com\bookstore\service\BookstoreService.java
2
请完成以下Java代码
public void setName (String Name) { set_Value (COLUMNNAME_Name, Name); } /** Get Name. @return Alphanumeric identifier of the entity */ public String getName () { return (String)get_Value(COLUMNNAME_Name); } /** Get Record ID/ColumnName @return ID/ColumnName pair */ public KeyNam...
public static final String POSKEYLAYOUTTYPE_Product = "P"; /** Set POS Key Layout Type. @param POSKeyLayoutType The type of Key Layout */ public void setPOSKeyLayoutType (String POSKeyLayoutType) { set_Value (COLUMNNAME_POSKeyLayoutType, POSKeyLayoutType); } /** Get POS Key Layout Type. @return The t...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_POSKeyLayout.java
1
请完成以下Java代码
public void setAD_User_SortPref_Line_ID (int AD_User_SortPref_Line_ID) { if (AD_User_SortPref_Line_ID < 1) set_ValueNoCheck (COLUMNNAME_AD_User_SortPref_Line_ID, null); else set_ValueNoCheck (COLUMNNAME_AD_User_SortPref_Line_ID, Integer.valueOf(AD_User_SortPref_Line_ID)); } /** Get Sortierbegriff pro Be...
set_ValueFromPO(COLUMNNAME_M_Product_ID, org.compiere.model.I_M_Product.class, M_Product); } /** Set Produkt. @param M_Product_ID Produkt, Leistung, Artikel */ @Override public void setM_Product_ID (int M_Product_ID) { if (M_Product_ID < 1) set_Value (COLUMNNAME_M_Product_ID, null); else set_V...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_User_SortPref_Line_Product.java
1
请完成以下Java代码
public <T extends Constraint> Optional<T> getConstraint(final Class<T> constraintType) { @SuppressWarnings("unchecked") final T constraint = (T)constraints.get(constraintType); return Optional.ofNullable(constraint); } public static final class Builder { private final LinkedHashMap<Class<? extends Constrai...
public Builder addConstraint(final Constraint constraint) { Check.assumeNotNull(constraint, "constraint not null"); constraints.put(constraint.getClass(), constraint); return this; } public Builder addConstraintIfNotEquals(final Constraint constraint, final Constraint constraintToExclude) { Check.a...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\security\permissions\Constraints.java
1
请完成以下Java代码
public class KryoRedisSerializer<T> implements RedisSerializer<T> { Logger logger = LoggerFactory.getLogger(KryoRedisSerializer.class); public static final byte[] EMPTY_BYTE_ARRAY = new byte[0]; private static final ThreadLocal<Kryo> kryos = ThreadLocal.withInitial(Kryo::new); private Class<T> clazz;...
public T deserialize(byte[] bytes) throws SerializationException { if (bytes == null || bytes.length <= 0) { return null; } Kryo kryo = kryos.get(); kryo.setReferences(false); kryo.register(clazz); try (Input input = new Input(bytes)) { return (T...
repos\spring-boot-student-master\spring-boot-student-cache-redis-caffeine\src\main\java\com\xiaolyuh\cache\redis\serializer\KryoRedisSerializer.java
1
请在Spring Boot框架中完成以下Java代码
class Movie { @Id @GeneratedValue private Long id; private String title; private String screenRoom; private Instant startTime; @ElementCollection @CollectionTable(name = "screen_room_free_seats", joinColumns = @JoinColumn(name = "room_id")) @Column(name = "seat_number") private...
} } static List<String> allSeats() { List<Integer> rows = IntStream.range(1, 20) .boxed() .toList(); return IntStream.rangeClosed('A', 'J') .mapToObj(c -> String.valueOf((char) c)) .flatMap(col -> rows.stream() .map(row -> col + r...
repos\tutorials-master\spring-boot-modules\spring-boot-libraries-3\src\main\java\com\baeldung\spring\modulith\cqrs\movie\Movie.java
2
请完成以下Java代码
public Integer getGrade() { return grade; } public void setGrade(Integer grade) { this.grade = grade; } public Double getCount() { return count; } public void setCount(Double count) { this.count = count; } public Integer getStrategy() { return ...
return gmtCreate; } public void setGmtCreate(Date gmtCreate) { this.gmtCreate = gmtCreate; } public Date getGmtModified() { return gmtModified; } public void setGmtModified(Date gmtModified) { this.gmtModified = gmtModified; } @Override public FlowRule toR...
repos\spring-boot-student-master\spring-boot-student-sentinel-dashboard\src\main\java\com\alibaba\csp\sentinel\dashboard\datasource\entity\rule\FlowRuleEntity.java
1
请完成以下Java代码
public final class NullComparator implements Comparator<Object>, Serializable { /** * */ private static final long serialVersionUID = 8769676939269341332L; @SuppressWarnings("rawtypes") private static final Comparator instance = new NullComparator(); public static <T> Comparator<T> getInstance() { @Suppre...
public static <T> boolean isNull(final Comparator<T> comparator) { return comparator == null || comparator == instance; } private NullComparator() { super(); } @Override public int compare(final Object o1, final Object o2) { return 0; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.util\src\main\java\org\adempiere\util\comparator\NullComparator.java
1
请完成以下Java代码
public int getM_AttributeSetInstance_ID() { return olCand.getM_AttributeSetInstance_ID(); } @Override public void setM_AttributeSetInstance_ID(final int M_AttributeSetInstance_ID) { olCand.setM_AttributeSetInstance_ID(M_AttributeSetInstance_ID); values.setM_AttributeSetInstance_ID(M_AttributeSetInstance_ID...
{ values.setQtyTU(qtyPacks); } @Override public int getC_BPartner_ID() { final BPartnerId bpartnerId = olCandEffectiveValuesBL.getBPartnerEffectiveId(olCand); return BPartnerId.toRepoId(bpartnerId); } @Override public void setC_BPartner_ID(final int partnerId) { olCand.setC_BPartner_Override_ID(partne...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\adempiere\gui\search\impl\OLCandHUPackingAware.java
1
请完成以下Java代码
public Criteria andModifyTimeBetween(Date value1, Date value2) { addCriterion("modify_time between", value1, value2, "modifyTime"); return (Criteria) this; } public Criteria andModifyTimeNotBetween(Date value1, Date value2) { addCriterion("modify_time not between", v...
} protected Criterion(String condition) { super(); this.condition = condition; this.typeHandler = null; this.noValue = true; } protected Criterion(String condition, Object value, String typeHandler) { super(); this.conditi...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\OmsOrderExample.java
1
请完成以下Java代码
public void setMSV3_Substitution_ID (int MSV3_Substitution_ID) { if (MSV3_Substitution_ID < 1) set_ValueNoCheck (COLUMNNAME_MSV3_Substitution_ID, null); else set_ValueNoCheck (COLUMNNAME_MSV3_Substitution_ID, Integer.valueOf(MSV3_Substitution_ID)); } /** Get Substitution. @return Substitution */ @O...
/** ReUndParallelImport = ReUndParallelImport */ public static final String MSV3_SUBSTITUTIONSGRUND_ReUndParallelImport = "ReUndParallelImport"; /** Vorschlag = Vorschlag */ public static final String MSV3_SUBSTITUTIONSGRUND_Vorschlag = "Vorschlag"; /** Set Substitutionsgrund. @param MSV3_Substitutionsgrund Subst...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma.vendor.gateway.msv3\src\main\java-gen\de\metas\vertical\pharma\vendor\gateway\msv3\model\X_MSV3_Substitution.java
1
请在Spring Boot框架中完成以下Java代码
public boolean equals(final Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final H120 other = (H120)obj; if (messageNo == null) { if (other.messageNo != null) { return false; } } el...
} if (text3 == null) { if (other.text3 != null) { return false; } } else if (!text3.equals(other.text3)) { return false; } if (text4 == null) { if (other.text4 != null) { return false; } } else if (!text4.equals(other.text4)) { return false; } if (text5 == null)...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java\de\metas\edi\esb\ordersimport\compudata\H120.java
2
请完成以下Java代码
public String getFormKey() { return formKey; } public String getExtraValue() { return extraValue; } public String getInvolvedUser() { return involvedUser; } public Collection<String> getInvolvedGroups() { return involvedGroups; } public String getTenantId(...
orQueryObject.ensureVariablesInitialized(); } } public List<PlanItemInstanceQueryImpl> getOrQueryObjects() { return orQueryObjects; } public List<List<String>> getSafeCaseInstanceIds() { return safeCaseInstanceIds; } public void setSafeCaseInstanceIds(List<List<String>...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\runtime\PlanItemInstanceQueryImpl.java
1
请完成以下Java代码
private void pointcut() { } @Before("pointcut()") public void before() { System.out.println("********** @Before 前置通知"); } @After("pointcut()") public void after() { System.out.println("******** @After 后置通知"); } @AfterReturning("pointcut()") public void afterReturni...
@AfterThrowing("pointcut()") public void afterThrowing() { System.out.println("******** @AfterThrowing 异常通知"); } @Around("pointcut()") public Object around(ProceedingJoinPoint proceedingJoinPoint) throws Throwable { Object result; System.out.println("环绕通知之前"); result = p...
repos\spring-boot-best-practice-master\spring-boot-aop\src\main\java\cn\javastack\springboot\aop\aspect\CalcAspect.java
1
请完成以下Java代码
public TenantQuery userMember(String userId) { ensureNotNull("user id", userId); this.userId = userId; return this; } public TenantQuery groupMember(String groupId) { ensureNotNull("group id", groupId); this.groupId = groupId; return this; } public TenantQuery includingGroupsOfUser(boo...
return name; } public String getNameLike() { return nameLike; } public String[] getIds() { return ids; } public String getUserId() { return userId; } public String getGroupId() { return groupId; } public boolean isIncludingGroups() { return includingGroups; } }
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\TenantQueryImpl.java
1
请完成以下Java代码
protected VariableInstanceQuery baseQuery() { return getEngine().getRuntimeService().createVariableInstanceQuery().variableId(getId()); } @Override protected Query<VariableInstanceQuery, VariableInstance> baseQueryForBinaryVariable() { return baseQuery().disableCustomObjectDeserialization(); } @Over...
} @Override protected TypedValue transformQueryResultIntoTypedValue(VariableInstance queryResult) { return queryResult.getTypedValue(); } @Override protected VariableInstanceDto transformToDto(VariableInstance queryResult) { return VariableInstanceDto.fromVariableInstance(queryResult); } @Overr...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\sub\runtime\impl\VariableInstanceResourceImpl.java
1
请在Spring Boot框架中完成以下Java代码
public String getTaskId() { return taskId; } public void setTaskId(String taskId) { this.taskId = taskId; } @ApiModelProperty(example = "null") public String getTaskUrl() { return taskUrl; } public void setTaskUrl(String taskUrl) { this.taskUrl = taskUrl; ...
@ApiModelProperty(example = "5") public String getCaseInstanceId() { return caseInstanceId; } public void setCaseInstanceId(String caseInstanceId) { this.caseInstanceId = caseInstanceId; } @ApiModelProperty(example = "http://localhost:8182/cmmn-history/historic-case-instances/5") ...
repos\flowable-engine-main\modules\flowable-cmmn-rest\src\main\java\org\flowable\cmmn\rest\service\api\history\task\HistoricIdentityLinkResponse.java
2
请在Spring Boot框架中完成以下Java代码
public Watch getWatch() { return this.watch; } public static class Watch { /** * File watching. */ private final File file = new File(); public File getFile() { return this.file; } public static class File { /** * Quiet period, after which changes are detected. */ ...
public Duration getQuietPeriod() { return this.quietPeriod; } public void setQuietPeriod(Duration quietPeriod) { this.quietPeriod = quietPeriod; } } } } }
repos\spring-boot-4.0.1\core\spring-boot-autoconfigure\src\main\java\org\springframework\boot\autoconfigure\ssl\SslProperties.java
2
请在Spring Boot框架中完成以下Java代码
public class KeyspaceRepository { private Session session; public KeyspaceRepository(Session session) { this.session = session; } /** * Method used to create any keyspace - schema. * * @param keyspaceName the name of the keyspaceName. * @param replicationStrategy the repli...
session.execute("USE " + keyspace); } /** * Method used to delete the specified schema. * It results in the immediate, irreversable removal of the keyspace, including all tables and data contained in the keyspace. * * @param keyspaceName the name of the keyspace to delete. */ publ...
repos\tutorials-master\persistence-modules\java-cassandra\src\main\java\com\baeldung\cassandra\java\client\repository\KeyspaceRepository.java
2
请在Spring Boot框架中完成以下Java代码
public @Nullable List<String> getDataLocations() { return this.dataLocations; } public void setDataLocations(@Nullable List<String> dataLocations) { this.dataLocations = dataLocations; } public String getPlatform() { return this.platform; } public void setPlatform(String platform) { this.platform = pla...
public boolean isContinueOnError() { return this.continueOnError; } public void setContinueOnError(boolean continueOnError) { this.continueOnError = continueOnError; } public String getSeparator() { return this.separator; } public void setSeparator(String separator) { this.separator = separator; } p...
repos\spring-boot-4.0.1\module\spring-boot-sql\src\main\java\org\springframework\boot\sql\autoconfigure\init\SqlInitializationProperties.java
2
请完成以下Java代码
public void setM_LU_HU_PI_ID (final int M_LU_HU_PI_ID) { if (M_LU_HU_PI_ID < 1) set_Value (COLUMNNAME_M_LU_HU_PI_ID, null); else set_Value (COLUMNNAME_M_LU_HU_PI_ID, M_LU_HU_PI_ID); } @Override public int getM_LU_HU_PI_ID() { return get_ValueAsInt(COLUMNNAME_M_LU_HU_PI_ID); } @Override public d...
public int getM_TU_HU_PI_ID() { return get_ValueAsInt(COLUMNNAME_M_TU_HU_PI_ID); } @Override public void setQtyCUsPerTU (final BigDecimal QtyCUsPerTU) { set_Value (COLUMNNAME_QtyCUsPerTU, QtyCUsPerTU); } @Override public BigDecimal getQtyCUsPerTU() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMN...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java-gen\de\metas\handlingunits\model\X_M_HU_LUTU_Configuration.java
1