instruction string | input string | output string | source_file string | priority int64 |
|---|---|---|---|---|
请完成以下Java代码 | public class MinHeap {
HeapNode[] heapNodes;
public MinHeap(HeapNode heapNodes[]) {
this.heapNodes = heapNodes;
heapifyFromLastLeafsParent();
}
void heapifyFromLastLeafsParent() {
int lastLeafsParentIndex = getParentNodeIndex(heapNodes.length);
while (lastLeafsParentIn... | }
void heapifyFromRoot() {
heapify(0);
}
void swap(int i, int j) {
HeapNode temp = heapNodes[i];
heapNodes[i] = heapNodes[j];
heapNodes[j] = temp;
}
static int[] merge(int[][] array) {
HeapNode[] heapNodes = new HeapNode[array.length];
int resul... | repos\tutorials-master\algorithms-modules\algorithms-miscellaneous-6\src\main\java\com\baeldung\algorithms\minheapmerge\MinHeap.java | 1 |
请完成以下Java代码 | public void setDHL_ShipmentOrderRequest_ID (final int DHL_ShipmentOrderRequest_ID)
{
if (DHL_ShipmentOrderRequest_ID < 1)
set_Value (COLUMNNAME_DHL_ShipmentOrderRequest_ID, null);
else
set_Value (COLUMNNAME_DHL_ShipmentOrderRequest_ID, DHL_ShipmentOrderRequest_ID);
}
@Override
public int getDHL_Shipmen... | return get_ValueAsBoolean(COLUMNNAME_IsError);
}
@Override
public void setRequestMessage (final @Nullable java.lang.String RequestMessage)
{
set_Value (COLUMNNAME_RequestMessage, RequestMessage);
}
@Override
public java.lang.String getRequestMessage()
{
return get_ValueAsString(COLUMNNAME_RequestMessage)... | repos\metasfresh-new_dawn_uat\backend\de.metas.shipper.gateway.dhl\src\main\java-gen\de\metas\shipper\gateway\dhl\model\X_Dhl_ShipmentOrder_Log.java | 1 |
请完成以下Java代码 | public void setDiscountBaseAmt (final @Nullable BigDecimal DiscountBaseAmt)
{
set_ValueNoCheck (COLUMNNAME_DiscountBaseAmt, DiscountBaseAmt);
}
@Override
public BigDecimal getDiscountBaseAmt()
{
final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_DiscountBaseAmt);
return bd != null ? bd : BigDecimal.ZER... | @Override
public void setEDI_cctop_invoic_v_ID (final int EDI_cctop_invoic_v_ID)
{
if (EDI_cctop_invoic_v_ID < 1)
set_Value (COLUMNNAME_EDI_cctop_invoic_v_ID, null);
else
set_Value (COLUMNNAME_EDI_cctop_invoic_v_ID, EDI_cctop_invoic_v_ID);
}
@Override
public int getEDI_cctop_invoic_v_ID()
{
return... | repos\metasfresh-new_dawn_uat\backend\de.metas.edi\src\main\java-gen\de\metas\esb\edi\model\X_EDI_cctop_140_v.java | 1 |
请完成以下Java代码 | public String getAwardName() {
return awardName;
}
public void setAwardName(String awardName) {
this.awardName = awardName;
}
public String getAttendType() {
return attendType;
}
public void setAttendType(String attendType) {
this.attendType = attendType;
}... | sb.append(", id=").append(id);
sb.append(", categoryId=").append(categoryId);
sb.append(", name=").append(name);
sb.append(", createTime=").append(createTime);
sb.append(", startTime=").append(startTime);
sb.append(", endTime=").append(endTime);
sb.append(", attendCount="... | repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\CmsTopic.java | 1 |
请在Spring Boot框架中完成以下Java代码 | public Locale getLocale()
{
final Language language = getLanguage();
if (language != null)
{
return language.getLocale();
}
return Locale.getDefault();
}
public JXlsExporter setTemplateResourceName(final String templateResourceName)
{
this._templateResourceName = templateResourceName;
return this... | }
private ResourceBundle getResourceBundle()
{
if (_resourceBundle != null)
{
return _resourceBundle;
}
if (!Check.isEmpty(_templateResourceName, true))
{
String baseName = null;
try
{
final int dotIndex = _templateResourceName.lastIndexOf('.');
baseName = dotIndex <= 0 ? _templateReso... | repos\metasfresh-new_dawn_uat\backend\de.metas.report\metasfresh-report-service\src\main\java\de\metas\report\xls\engine\JXlsExporter.java | 2 |
请完成以下Java代码 | private Step step() throws Exception {
return stepBuilderFactory.get("step")
.<TestData, TestData>chunk(2)
.reader(dataSourceItemReader())
.writer(list -> list.forEach(System.out::println))
.build();
}
private ItemReader<TestData> dataSour... | reader.setRowMapper((resultSet, rowNum) -> {
TestData data = new TestData();
data.setId(resultSet.getInt(1));
data.setField1(resultSet.getString(2)); // 读取第一个字段,类型为String
data.setField2(resultSet.getString(3));
data.setField3(resultSet.getString(4));
... | repos\SpringAll-master\68.spring-batch-itemreader\src\main\java\cc\mrbird\batch\job\DataSourceItemReaderDemo.java | 1 |
请完成以下Java代码 | public ProcessPreconditionsResolution checkPreconditionsApplicable(final IProcessPreconditionsContext context)
{
if (context.isMoreThanOneSelected())
{
return ProcessPreconditionsResolution.reject();
}
final I_PP_Order ppOrder = ppOrderBL.getById(getPPOrderId(context.getSingleSelectedRecordId()));
retur... | return MSG_OK;
}
private PPOrderId getPPOrderId(int ppOrderId)
{
return PPOrderId.ofRepoId(ppOrderId);
}
private OrderLineId getOrderLienId()
{
return OrderLineId.ofRepoId(p_C_OrderLine_ID);
}
private void setC_OrderLine_ID(@NonNull final PPOrderId ppOrderId, @NonNull final OrderLineId orderLineId)
{
... | repos\metasfresh-new_dawn_uat\backend\de.metas.manufacturing\src\main\java\org\eevolution\process\PP_Order_SetC_OrderLine.java | 1 |
请完成以下Java代码 | public class VariableInstanceHistoryListener implements VariableInstanceLifecycleListener<VariableInstanceEntity> {
public static final VariableInstanceHistoryListener INSTANCE = new VariableInstanceHistoryListener();
@Override
public void onCreate(final VariableInstanceEntity variableInstance, final AbstractVa... | }
});
}
}
@Override
public void onUpdate(final VariableInstanceEntity variableInstance, final AbstractVariableScope sourceScope) {
if (getHistoryLevel().isHistoryEventProduced(HistoryEventTypes.VARIABLE_INSTANCE_UPDATE, variableInstance) && !variableInstance.isTransient()) {
HistoryEventProce... | repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\VariableInstanceHistoryListener.java | 1 |
请完成以下Java代码 | public void setParameter(PreparedStatement ps, int i, String parameter, JdbcType jdbcType) throws SQLException {
if (parameter == null) {
if (jdbcType == null) {
throw new TypeException("JDBC requires that the JdbcType must be specified for all nullable parameters.");
}
... | }
}
@Override
public void setNonNullParameter(PreparedStatement ps, int i, String parameter, JdbcType jdbcType) throws SQLException {
ps.setString(i, parameter);
}
@Override
public String getNullableResult(ResultSet rs, String columnName) throws SQLException {
return rs.getStri... | repos\flowable-engine-main\modules\flowable-engine-common\src\main\java\org\flowable\common\engine\impl\db\FlowableStringTypeHandler.java | 1 |
请完成以下Java代码 | private PickingSlotQueue getFromPickingSlotQueue()
{
PickingSlotQueue pickingSlotQueue = this._fromPickingSlotQueue;
if (pickingSlotQueue == null)
{
pickingSlotQueue = this._fromPickingSlotQueue = pickingSlotService.getPickingSlotQueue(fromPickingSlotId);
}
return pickingSlotQueue;
}
private void setCu... | }
private void consolidateFromTUs(@NonNull final List<I_M_HU> fromTUs)
{
if (fromTUs.isEmpty())
{
return;
}
getCurrentTarget().apply(new HUConsolidationTarget.CaseConsumer()
{
@Override
public void newLU(final HuPackingInstructionsId luPackingInstructionsId) {consolidate_FromTUs_ToNewLU(fromTUs, ... | repos\metasfresh-new_dawn_uat\backend\de.metas.hu_consolidation.mobile\src\main\java\de\metas\hu_consolidation\mobile\job\commands\consolidate\ConsolidateCommand.java | 1 |
请在Spring Boot框架中完成以下Java代码 | public ImmutableList<ApiAuditConfig> getActiveConfigsByOrgId(@NonNull final OrgId orgId)
{
return getMap().getActiveConfigsByOrgId(orgId);
}
public ImmutableList<ApiAuditConfig> getAllConfigsByOrgId(@NonNull final OrgId orgId)
{
return queryBL.createQueryBuilder(I_API_Audit_Config.class)
.addOnlyActiveReco... | @NonNull
private static ApiAuditConfig fromRecord(@NonNull final I_API_Audit_Config record)
{
return ApiAuditConfig.builder()
.apiAuditConfigId(ApiAuditConfigId.ofRepoId(record.getAPI_Audit_Config_ID()))
.active(record.isActive())
.orgId(OrgId.ofRepoId(record.getAD_Org_ID()))
.seqNo(record.getSeqNo(... | repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\audit\apirequest\config\ApiAuditConfigRepository.java | 2 |
请完成以下Java代码 | public boolean isNot() {
return not;
}
public void setNot(boolean not) {
this.not = not;
}
public boolean isNotAlphabetic() {
return notAlphabetic;
}
public void setNotAlphabetic(boolean notAlphabetic) {
this.notAlphabetic = notAlphabetic;
}
@Override
... | ", equalAlphabetic=" + equalAlphabetic +
", notEqual=" + notEqual +
", notEqualAlphabetic=" + notEqualAlphabetic +
", lessThan=" + lessThan +
", lessThanAlphabetic=" + lessThanAlphabetic +
", lessThanOrEqual=" + lessThanOrEqual +
... | repos\tutorials-master\spring-spel\src\main\java\com\baeldung\spring\spel\examples\SpelRelational.java | 1 |
请完成以下Java代码 | public UserQuery createUserQuery() {
return getIdmIdentityService().createUserQuery();
}
@Override
public NativeUserQuery createNativeUserQuery() {
return getIdmIdentityService().createNativeUserQuery();
}
@Override
public GroupQuery createGroupQuery() {
return getIdmId... | getIdmIdentityService().deleteUser(userId);
}
@Override
public void setUserPicture(String userId, Picture picture) {
getIdmIdentityService().setUserPicture(userId, picture);
}
public Picture getUserPicture(String userId) {
return getIdmIdentityService().getUserPicture(userId);
... | repos\flowable-engine-main\modules\flowable5-engine\src\main\java\org\activiti\engine\impl\IdentityServiceImpl.java | 1 |
请完成以下Java代码 | public int getFrequency ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_Frequency);
if (ii == null)
return 0;
return ii.intValue();
}
/** FrequencyType AD_Reference_ID=221 */
public static final int FREQUENCYTYPE_AD_Reference_ID=221;
/** Minute = M */
public static final String FREQUENCYTYPE_Minute = ... | }
/** Set Process Now.
@param Processing Process Now */
public void setProcessing (boolean Processing)
{
set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing));
}
/** Get Process Now.
@return Process Now */
public boolean isProcessing ()
{
Object oo = get_Value(COLUMNNAME_Processing);
if... | repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_AlertProcessor.java | 1 |
请完成以下Java代码 | private boolean qtyToDeliverCatchOverrideIsChanged()
{
final Optional<Boolean> nullValuechanged = isNullValuesChanged(qtyToDeliverCatchOverrideInitial, qtyToDeliverCatchOverride);
return nullValuechanged.orElseGet(() -> qtyToDeliverCatchOverrideInitial.compareTo(qtyToDeliverCatchOverride) != 0);
}
private stati... | if (isNull)
{
return Optional.of(false);
}
return Optional.of(true); // was null and is not null anymore
}
if (isNull)
{
return Optional.of(true); // was not null and is now
}
return Optional.empty(); // was not null and still is not null; will need to compare the current values
}
} | repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\shipment_candidates_editor\ShipmentCandidateRow.java | 1 |
请完成以下Java代码 | public final IQualityInspectionLineBuilder setPercentage(final BigDecimal percentage)
{
_percentage = percentage;
return this;
}
private BigDecimal getPercentage()
{
return _percentage;
}
@Override
public final IQualityInspectionLineBuilder setName(final String name)
{
_name = name;
return this;
}
... | @Override
public IQualityInspectionLineBuilder setHandlingUnitsInfo(final IHandlingUnitsInfo handlingUnitsInfo)
{
_handlingUnitsInfo = handlingUnitsInfo;
_handlingUnitsInfoSet = true;
return this;
}
private IHandlingUnitsInfo getHandlingUnitsInfoProjectedToSet()
{
if (_handlingUnitsInfoProjectedSet)
{
... | repos\metasfresh-new_dawn_uat\backend\de.metas.materialtracking\src\main\java\de\metas\materialtracking\qualityBasedInvoicing\impl\QualityInspectionLineBuilder.java | 1 |
请完成以下Java代码 | public void setFact_Acct_ID (int Fact_Acct_ID)
{
if (Fact_Acct_ID < 1)
set_ValueNoCheck (COLUMNNAME_Fact_Acct_ID, null);
else
set_ValueNoCheck (COLUMNNAME_Fact_Acct_ID, Integer.valueOf(Fact_Acct_ID));
}
/** Get Accounting Fact.
@return Accounting Fact */
public int getFact_Acct_ID ()
{
Integer ... | */
public KeyNamePair getKeyNamePair()
{
return new KeyNamePair(get_ID(), getName());
}
/** Set Quantity.
@param Qty
Quantity
*/
public void setQty (BigDecimal Qty)
{
set_ValueNoCheck (COLUMNNAME_Qty, Qty);
}
/** Get Quantity.
@return Quantity
*/
public BigDecimal getQty ()
... | repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_T_ReportStatement.java | 1 |
请完成以下Java代码 | public void setName(String name) {
this.name = name;
}
public String getGenre() {
return genre;
}
public void setGenre(String genre) {
this.genre = genre;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age; | }
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
@Override
public String toString() {
return "Author{" + "id=" + id + ", age=" + age
+ ", name=" + name + ", genre=" + genre + ", email=" + email + '... | repos\Hibernate-SpringBoot-master\HibernateSpringBootReferenceNaturalId\src\main\java\com\bookstore\entity\Author.java | 1 |
请在Spring Boot框架中完成以下Java代码 | public class DubboAutoConfiguration implements ApplicationContextAware, BeanDefinitionRegistryPostProcessor {
/**
* Creates {@link ServiceClassPostProcessor} Bean
*
* @param packagesToScan the packages to scan
* @return {@link ServiceClassPostProcessor}
*/
@ConditionalOnProperty(prefix... | removeBeanDefinition(registry, DubboLifecycleComponentApplicationListener.BEAN_NAME);
removeBeanDefinition(registry, DubboBootstrapApplicationListener.BEAN_NAME);
}
private void removeBeanDefinition(BeanDefinitionRegistry registry, String beanName) {
if (registry.containsBeanDefinition(beanName... | repos\dubbo-spring-boot-project-master\dubbo-spring-boot-compatible\autoconfigure\src\main\java\org\apache\dubbo\spring\boot\autoconfigure\DubboAutoConfiguration.java | 2 |
请完成以下Java代码 | public class PrintStack {
public static void givenStack_whenUsingToString_thenPrintStack() {
Stack<Integer> stack = new Stack<>();
stack.push(10);
stack.push(20);
stack.push(30);
System.out.print(stack.toString());
}
public static void givenStack_whenUsingForEach_th... | Iterator<Integer> iterator = stack.iterator();
while (iterator.hasNext()) {
System.out.print(iterator.next() + " ");
}
}
public static void givenStack_whenUsingListIteratorReverseOrder_thenPrintStack() {
Stack<Integer> stack = new Stack<>();
stack.push(10);
s... | repos\tutorials-master\core-java-modules\core-java-collections-7\src\main\java\com\baeldung\PrintStack.java | 1 |
请在Spring Boot框架中完成以下Java代码 | public static class V1 {
/**
* ID of the custom device that is exporting metrics to Dynatrace.
*/
private @Nullable String deviceId;
/**
* Group for exported metrics. Used to specify custom device group name in the
* Dynatrace UI.
*/
private @Nullable String group;
/**
* Technology type f... | /**
* Whether to fall back to the built-in micrometer instruments for Timer and
* DistributionSummary.
*/
private boolean useDynatraceSummaryInstruments = true;
/**
* Whether to export meter metadata (unit and description) to the Dynatrace
* backend.
*/
private boolean exportMeterMetadata = tru... | repos\spring-boot-4.0.1\module\spring-boot-micrometer-metrics\src\main\java\org\springframework\boot\micrometer\metrics\autoconfigure\export\dynatrace\DynatraceProperties.java | 2 |
请完成以下Java代码 | public java.lang.String getProxyPassword ()
{
return (java.lang.String)get_Value(COLUMNNAME_ProxyPassword);
}
/** Set Proxy port.
@param ProxyPort
Port of your proxy server
*/
@Override
public void setProxyPort (int ProxyPort)
{
set_Value (COLUMNNAME_ProxyPort, Integer.valueOf(ProxyPort));
}
/** ... | set_Value (COLUMNNAME_UserID, UserID);
}
/** Get User ID.
@return User ID or account number
*/
@Override
public java.lang.String getUserID ()
{
return (java.lang.String)get_Value(COLUMNNAME_UserID);
}
/** Set Vendor ID.
@param VendorID
Vendor ID for the Payment Processor
*/
@Override
public v... | repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_PaymentProcessor.java | 1 |
请完成以下Java代码 | public void setHelp (String Help)
{
set_Value (COLUMNNAME_Help, Help);
}
/** Get Comment/Help.
@return Comment or Hint
*/
public String getHelp ()
{
return (String)get_Value(COLUMNNAME_Help);
}
/** Set Name.
@param Name
Alphanumeric identifier of the entity
*/
public void setName (String Nam... | /** Get Search Key.
@return Search key for the record in the format required - must be unique
*/
public String getValue ()
{
return (String)get_Value(COLUMNNAME_Value);
}
/** Set Version.
@param Version
Version of the table definition
*/
public void setVersion (String Version)
{
set_Value (COLU... | repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_EXP_Format.java | 1 |
请完成以下Java代码 | public void setModeratorStatus (java.lang.String ModeratorStatus)
{
set_Value (COLUMNNAME_ModeratorStatus, ModeratorStatus);
}
/** Get Moderation Status.
@return Status of Moderation
*/
@Override
public java.lang.String getModeratorStatus ()
{
return (java.lang.String)get_Value(COLUMNNAME_ModeratorSta... | */
@Override
public void setSubject (java.lang.String Subject)
{
set_Value (COLUMNNAME_Subject, Subject);
}
/** Get Betreff.
@return Mail Betreff
*/
@Override
public java.lang.String getSubject ()
{
return (java.lang.String)get_Value(COLUMNNAME_Subject);
}
} | repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_CM_ChatEntry.java | 1 |
请完成以下Java代码 | public class ContainerPausingBackOffHandler implements BackOffHandler {
private final DefaultBackOffHandler defaultBackOffHandler = new DefaultBackOffHandler();
private final ListenerContainerPauseService pauser;
/**
* Create an instance with the provided {@link ListenerContainerPauseService}.
* @param pauser... | public void onNextBackOff(@Nullable MessageListenerContainer container, @Nullable Exception exception, long nextBackOff) {
if (container == null) {
this.defaultBackOffHandler.onNextBackOff(container, exception, nextBackOff); // NOSONAR
}
else {
this.pauser.pause(container, Duration.ofMillis(nextBackOff));
... | repos\spring-kafka-main\spring-kafka\src\main\java\org\springframework\kafka\listener\ContainerPausingBackOffHandler.java | 1 |
请完成以下Java代码 | public class UserDetail {
private String uid;
private String login;
private String password;
private List<String> roles = new ArrayList<>();
//...
UserDetail(String uid, String login, String password) {
this.uid = uid;
this.login = login;
this.password = password;
}
... | public String getLogin() {
return login;
}
public String getPassword() {
return password;
}
public List<String> getRoles() {
return roles;
}
public void addRole(String role) {
roles.add(role);
}
} | repos\tutorials-master\security-modules\java-ee-8-security-api\app-auth-custom-no-store\src\main\java\com\baeldung\javaee\security\UserDetail.java | 1 |
请完成以下Java代码 | public List<HistoricIdentityLink> execute(CommandContext commandContext) {
if (taskId != null) {
return getLinksForTask(commandContext);
} else {
return getLinksForProcessInstance(commandContext);
}
}
@SuppressWarnings({ "unchecked", "rawtypes" })
protected L... | identityLink.setTaskId(task.getId());
identityLink.setType(IdentityLinkType.ASSIGNEE);
identityLinks.add(identityLink);
}
if (task.getOwner() != null) {
HistoricIdentityLinkEntity identityLink = commandContext.getHistoricIdentityLinkEntityManager().create();
... | repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\cmd\GetHistoricIdentityLinksForTaskCmd.java | 1 |
请在Spring Boot框架中完成以下Java代码 | public String getCountryCode()
{
return countryCode;
}
public void setCountryCode(String countryCode)
{
this.countryCode = countryCode;
}
public Phone number(String number)
{
this.number = number;
return this;
}
/**
* The seller's primary phone number associated with the return address. When ... | }
@Override
public int hashCode()
{
return Objects.hash(countryCode, number);
}
@Override
public String toString()
{
StringBuilder sb = new StringBuilder();
sb.append("class Phone {\n");
sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n");
sb.append(" number: ").appen... | repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\de-metas-camel-ebay\ebay-api-client\src\main\java\de\metas\camel\externalsystems\ebay\api\model\Phone.java | 2 |
请完成以下Java代码 | public void setC_Print_Job_ID (int C_Print_Job_ID)
{
if (C_Print_Job_ID < 1)
set_Value (COLUMNNAME_C_Print_Job_ID, null);
else
set_Value (COLUMNNAME_C_Print_Job_ID, Integer.valueOf(C_Print_Job_ID));
}
@Override
public int getC_Print_Job_ID()
{
return get_ValueAsInt(COLUMNNAME_C_Print_Job_ID);
}
... | public void setGrandTotal (java.math.BigDecimal GrandTotal)
{
set_Value (COLUMNNAME_GrandTotal, GrandTotal);
}
@Override
public java.math.BigDecimal getGrandTotal()
{
BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_GrandTotal);
return bd != null ? bd : BigDecimal.ZERO;
}
@Override
public void setLastn... | repos\metasfresh-new_dawn_uat\backend\de.metas.printing\de.metas.printing.base\src\main\java-gen\de\metas\printing\model\X_RV_Printing_Bericht_List_Per_Print_Job.java | 1 |
请在Spring Boot框架中完成以下Java代码 | public Optional<AdWindowId> getNewBPartnerLocationWindowId()
{
return RecordWindowFinder.newInstance(I_C_BPartner_Location_QuickInput.Table_Name, customizedWindowInfoMapRepository)
.ignoreExcludeFromZoomTargetsFlag()
.findAdWindowId();
}
@Nullable
public BPartnerLocationId createBPartnerLocationFromTempl... | }
return BPartnerLocation.builder()
.locationType(BPartnerLocationType.builder()
.billTo(template.isBillTo())
.billToDefault(template.isBillToDefault())
.shipTo(template.isShipTo())
.shipToDefault(template.isShipToDefault())
.build())
.bpartnerName(template.getBPartnerName())
... | repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\bpartner\quick_input\service\BPartnerLocationQuickInputService.java | 2 |
请完成以下Java代码 | private List<I_M_Shipment_Declaration_Line> retrieveLineRecords(@NonNull final ShipmentDeclarationId shipmentDeclarationId)
{
return Services.get(IQueryBL.class)
.createQueryBuilder(I_M_Shipment_Declaration_Line.class)
.addEqualsFilter(I_M_Shipment_Declaration_Line.COLUMN_M_Shipment_Declaration_ID, shipmentD... | final Quantity quantity = line.getQuantity();
record.setQty(quantity.toBigDecimal());
record.setC_UOM_ID(quantity.getUOMId());
final ProductId productId = line.getProductId();
record.setM_Product_ID(productId.getRepoId());
record.setPackageSize(line.getPackageSize());
saveRecord(record);
line.setId(Sh... | repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\shipment\repo\ShipmentDeclarationRepository.java | 1 |
请完成以下Java代码 | private static WebClient getWebClient() {
WebClient.Builder webClientBuilder = WebClient.builder();
return webClientBuilder.build();
}
public static InputStream getResponseAsInputStream(WebClient client, String url) throws IOException, InterruptedException {
PipedOutputStream pipedOutp... | throw new RuntimeException(e);
} finally {
stream.close();
}
return String.valueOf(contentStringBuffer);
}
private static String readContent(InputStream stream) throws IOException {
StringBuffer contentStringBuffer = new StringBuffer();
byte[] tmp = new byte... | repos\tutorials-master\spring-reactive-modules\spring-reactive-3\src\main\java\com\baeldung\databuffer\DataBufferToInputStream.java | 1 |
请在Spring Boot框架中完成以下Java代码 | public void setQuotation_Order_ID (final int Quotation_Order_ID)
{
if (Quotation_Order_ID < 1)
set_Value (COLUMNNAME_Quotation_Order_ID, null);
else
set_Value (COLUMNNAME_Quotation_Order_ID, Quotation_Order_ID);
}
@Override
public int getQuotation_Order_ID()
{
return get_ValueAsInt(COLUMNNAME_Quota... | public static final String TYPE_RepairProductToReturn = "RPC";
/** RepairingConsumption = RP+ */
public static final String TYPE_RepairingConsumption = "RP+";
@Override
public void setType (final java.lang.String Type)
{
set_Value (COLUMNNAME_Type, Type);
}
@Override
public java.lang.String getType()
{
r... | repos\metasfresh-new_dawn_uat\backend\de.metas.servicerepair.base\src\main\java-gen\de\metas\servicerepair\repository\model\X_C_Project_Repair_CostCollector.java | 2 |
请完成以下Java代码 | public class Movie {
private String id;
private String title;
private String plot;
public String getPlot() {
return plot;
}
public void setPlot(String plot) {
this.plot = plot;
}
public String getId() {
return id;
}
public void setId(String id) {
... | return title;
}
public void setTitle(String title) {
this.title = title;
}
@Override
public String toString() {
return "Movie{" +
"id='" + id + '\'' +
", title='" + title + '\'' +
", plot='" + plot + '\'' +
'}';
}
} | repos\spring-data-examples-main\mongodb\fragment-spi\sample\src\main\java\com\example\data\mongodb\Movie.java | 1 |
请完成以下Java代码 | public void setPrefix (String Prefix)
{
set_Value (COLUMNNAME_Prefix, Prefix);
}
/** Get Prefix.
@return Prefix before the sequence number
*/
public String getPrefix ()
{
return (String)get_Value(COLUMNNAME_Prefix);
}
/** Set Start No.
@param StartNo
Starting number/position
*/
public void s... | Integer ii = (Integer)get_Value(COLUMNNAME_StartNo);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Suffix.
@param Suffix
Suffix after the number
*/
public void setSuffix (String Suffix)
{
set_Value (COLUMNNAME_Suffix, Suffix);
}
/** Get Suffix.
@return Suffix after the number
... | repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_LotCtl.java | 1 |
请完成以下Java代码 | public int getStatusCode() {
return statusCode;
}
public void setStatusCode(int statusCode) {
this.statusCode = statusCode;
}
public String getProtocol() {
return protocol;
}
public void setProtocol(String protocol) {
this.protocol = protocol;
}
public... | public void setHttpHeaders(HttpHeaders httpHeaders) {
this.httpHeaders = httpHeaders;
}
public String getBody() {
return body;
}
public void setBody(String body) {
this.body = body;
}
public byte[] getBodyBytes() {
return bodyBytes;
}
public void setBo... | repos\flowable-engine-main\modules\flowable-http-common\src\main\java\org\flowable\http\common\api\HttpResponse.java | 1 |
请在Spring Boot框架中完成以下Java代码 | public Result<?> queryPageList(OpenApiAuth openApiAuth, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) {
QueryWrapper<OpenApiAuth> queryWrapper = QueryGenerator.... | * 批量删除
*
* @param ids
* @return
*/
@DeleteMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
this.service.removeByIds(Arrays.asList(ids.split(",")));
return Result.ok("批量删除成功!");
}
/**
* 通过id查... | repos\JeecgBoot-main\jeecg-boot\jeecg-module-system\jeecg-system-biz\src\main\java\org\jeecg\modules\openapi\controller\OpenApiAuthController.java | 2 |
请在Spring Boot框架中完成以下Java代码 | public Session getSession() {
return this.session;
}
public static class Session {
/**
* Acknowledge mode used when creating sessions.
*/
private AcknowledgeMode acknowledgeMode = AcknowledgeMode.AUTO;
/**
* Whether to use transacted sessions.
*/
private boolean transacted;
pub... | * lowest-overhead delivery mode but can lead to lost of message if the broker
* goes down.
*/
NON_PERSISTENT(1),
/*
* Instructs the JMS provider to log the message to stable storage as part of the
* client's send operation.
*/
PERSISTENT(2);
private final int value;
DeliveryMode(int value) {... | repos\spring-boot-4.0.1\module\spring-boot-jms\src\main\java\org\springframework\boot\jms\autoconfigure\JmsProperties.java | 2 |
请完成以下Java代码 | public boolean isSetProcessInitiator() {
return StringUtils.isNotEmpty(getProcessInitiatorHeaderName());
}
public Map<String, Object> getReturnVarMap() {
return returnVarMap;
}
public void setReturnVarMap(Map<String, Object> returnVarMap) {
this.returnVarMap = returnVarMap;
... | this.processInitiatorHeaderName = processInitiatorHeaderName;
}
@Override
public boolean isLenientProperties() {
return true;
}
public long getTimeout() {
return timeout;
}
public int getTimeResolution() {
return timeResolution;
}
} | repos\flowable-engine-main\modules\flowable-camel\src\main\java\org\flowable\camel\FlowableEndpoint.java | 1 |
请完成以下Java代码 | public class Delivery {
private final String consumerTag;
private final Envelope envelope;
private final String queue;
private final AMQP.BasicProperties properties;
private final byte[] body;
public Delivery(String consumerTag, Envelope envelope, AMQP.BasicProperties properties, byte[] body, // NOSONAR
... | return this.envelope;
}
/**
* Retrieve the message properties.
* @return the message properties.
*/
public BasicProperties getProperties() {
return this.properties;
}
/**
* Retrieve the message body.
* @return the message body.
*/
public byte[] getBody() {
return this.body; // NOSONAR
}
/**
... | repos\spring-amqp-main\spring-rabbit\src\main\java\org\springframework\amqp\rabbit\support\Delivery.java | 1 |
请完成以下Java代码 | public final class NullInfoWindowGridRowBuilders implements IInfoWindowGridRowBuilders
{
public static final NullInfoWindowGridRowBuilders instance = new NullInfoWindowGridRowBuilders();
private NullInfoWindowGridRowBuilders()
{
super();
}
/**
* @return {@link NullGridTabRowBuilder} always
*/
@Override
p... | */
@Override
public Set<Integer> getRecordIds()
{
return Collections.emptySet();
}
/**
* @throws UnsupportedOperationException
*/
@Override
public void addGridTabRowBuilder(int recordId, IGridTabRowBuilder builder)
{
throw new UnsupportedOperationException("Not supported");
}
} | repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\compiere\apps\search\NullInfoWindowGridRowBuilders.java | 1 |
请完成以下Java代码 | public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public byte[] getBytes() {
return bytes;
}
public void setBytes(byte[] bytes) {
this.bytes = bytes;
}
public String getDeploymentId() {
return deplo... | public void setGenerated(boolean generated) {
this.generated = generated;
}
/**
* Indicated whether or not the resource has been generated while deploying rather than being actual part of the deployment.
*/
public boolean isGenerated() {
return generated;
}
// common meth... | repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\persistence\entity\ResourceEntityImpl.java | 1 |
请在Spring Boot框架中完成以下Java代码 | public @Nullable Resource getConfig() {
return this.config;
}
public void setConfig(@Nullable Resource config) {
this.config = config;
}
}
/**
* JCache (JSR-107) specific cache properties.
*/
public static class JCache {
/**
* The location of the configuration file to use to initialize the c... | /**
* Whether to use the key prefix when writing to Redis.
*/
private boolean useKeyPrefix = true;
/**
* Whether to enable cache statistics.
*/
private boolean enableStatistics;
public @Nullable Duration getTimeToLive() {
return this.timeToLive;
}
public void setTimeToLive(@Nullable Durati... | repos\spring-boot-4.0.1\module\spring-boot-cache\src\main\java\org\springframework\boot\cache\autoconfigure\CacheProperties.java | 2 |
请在Spring Boot框架中完成以下Java代码 | public void setBeanFactory(BeanFactory beanFactory) throws BeansException {
this.beanFactory = beanFactory;
}
@Override
public void setEnvironment(Environment environment) {
this.environment = environment;
}
/**
* An auto-configured {@link AnnotationRepositoryConfigurationSource}.
*/
private class AutoC... | super(metadata, annotation, resourceLoader, environment, registry, generator);
}
@Override
public Streamable<String> getBasePackages() {
return AbstractRepositoryConfigurationSourceSupport.this.getBasePackages();
}
@Override
public BootstrapMode getBootstrapMode() {
return AbstractRepositoryConfigur... | repos\spring-boot-4.0.1\core\spring-boot-autoconfigure\src\main\java\org\springframework\boot\autoconfigure\data\AbstractRepositoryConfigurationSourceSupport.java | 2 |
请完成以下Java代码 | public void extendLock(String taskId, long newDuration) {
ExtendLockRequestDto payload = new ExtendLockRequestDto(workerId, newDuration);
String resourcePath = EXTEND_LOCK_RESOURCE_PATH.replace("{id}", taskId);
String resourceUrl = getBaseUrl() + resourcePath;
engineInteraction.postRequest(resourceUrl,... | public String getBaseUrl() {
return urlResolver.getBaseUrl();
}
public String getWorkerId() {
return workerId;
}
public void setTypedValues(TypedValues typedValues) {
this.typedValues = typedValues;
}
public boolean isUsePriority() {
return usePriority;
}
} | repos\camunda-bpm-platform-master\clients\java\client\src\main\java\org\camunda\bpm\client\impl\EngineClient.java | 1 |
请完成以下Java代码 | public ResponseEntity<UserDetails> getUserInfo() {
JwtUserDto jwtUser = (JwtUserDto) SecurityUtils.getCurrentUser();
return ResponseEntity.ok(jwtUser);
}
@ApiOperation("获取验证码")
@AnonymousGetMapping(value = "/code")
public ResponseEntity<Object> getCode() {
// 获取运算的结果
Cap... | // 保存
redisUtils.set(uuid, captchaValue, captchaConfig.getExpiration(), TimeUnit.MINUTES);
// 验证码信息
Map<String, Object> imgResult = new HashMap<String, Object>(2) {{
put("img", captcha.toBase64());
put("uuid", uuid);
}};
return ResponseEntity.ok(imgResult)... | repos\eladmin-master\eladmin-system\src\main\java\me\zhengjie\modules\security\rest\AuthController.java | 1 |
请完成以下Java代码 | public boolean open(String file)
{
return true;
}
public boolean open(InputStream stream)
{
return true;
}
public void clear()
{
}
public int size()
{
return getMaxid_();
}
public int ysize()
{
return y_.size();
}
public i... | public void setUnigramTempls_(List<String> unigramTempls_)
{
this.unigramTempls_ = unigramTempls_;
}
public List<String> getBigramTempls_()
{
return bigramTempls_;
}
public void setBigramTempls_(List<String> bigramTempls_)
{
this.bigramTempls_ = bigramTempls_;
}... | repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\model\crf\crfpp\FeatureIndex.java | 1 |
请完成以下Java代码 | public boolean containsAll(Collection<?> c) {
return false;
}
@Override
public boolean addAll(Collection<? extends E> c) {
return false;
}
@Override
public boolean addAll(int index, Collection<? extends E> c) {
return false;
}
@Override
public boolean remov... | }
@Override
public void add(int index, E element) {
}
@Override
public E remove(int index) {
return null;
}
@Override
public int indexOf(Object o) {
return 0;
}
@Override
public int lastIndexOf(Object o) {
return 0;
}
@Override
public... | repos\tutorials-master\core-java-modules\core-java-collections-5\src\main\java\com\baeldung\customiterators\MyList.java | 1 |
请在Spring Boot框架中完成以下Java代码 | public CacheErrorHandler errorHandler() {
return new SimpleCacheErrorHandler() {
@Override
public void handleCacheGetError(RuntimeException exception, Cache cache, Object key) {
// 处理缓存读取错误
log.error("Cache Get Error: {}",exception.getMessage());
... | @Override
public byte[] serialize(T t) throws SerializationException
{
if (t == null) {
return new byte[0];
}
return JSON.toJSONString(t, JSONWriter.Feature.WriteClassName).getBytes(StandardCharsets.UTF_8);
}
@Override
public T... | repos\eladmin-master\eladmin-common\src\main\java\me\zhengjie\config\RedisConfiguration.java | 2 |
请完成以下Java代码 | public boolean isProcessed ()
{
Object oo = get_Value(COLUMNNAME_Processed);
if (oo != null)
{
if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set Verarbeiten.
@param Processing Verarbeiten */
@Override
public void setProce... | }
return false;
}
/** Set Ranking.
@param Ranking
Relative Rank Number
*/
@Override
public void setRanking (int Ranking)
{
set_Value (COLUMNNAME_Ranking, Integer.valueOf(Ranking));
}
/** Get Ranking.
@return Relative Rank Number
*/
@Override
public int getRanking ()
{
Integer ii = (Integ... | repos\metasfresh-new_dawn_uat\backend\de.metas.rfq\src\main\java-gen\de\metas\rfq\model\X_C_RfQResponse.java | 1 |
请完成以下Java代码 | public String toString() {
return loginName;
}
/**
* 重载hashCode,只计算loginName;
*/
@Override
public int hashCode() {
return Objects.hashCode(loginName);
}
/**
* 重载equals,只计算loginName;
*/
@Override
public boolean equals(Object obj) {
if (this ==... | if (getClass() != obj.getClass()) {
return false;
}
ShiroUser other = (ShiroUser) obj;
if (loginName == null) {
if (other.loginName != null) {
return false;
}
} else if (!loginName.equals(other.loginName)) {
return false;
... | repos\springBoot-master\springboot-shiro2\src\main\java\cn\abel\rest\shiro\ShiroUser.java | 1 |
请在Spring Boot框架中完成以下Java代码 | public class AdIssueId implements RepoIdAware
{
@JsonCreator
public static AdIssueId ofRepoId(final int repoId)
{
return new AdIssueId(repoId);
}
public static AdIssueId ofRepoIdOrNull(final int repoId)
{
return repoId > 0 ? ofRepoId(repoId) : null;
}
public static int toRepoId(@Nullable final AdIssueId i... | int repoId;
private AdIssueId(final int repoId)
{
this.repoId = Check.assumeGreaterThanZero(repoId, "AD_Issue_ID");
}
@Override
@JsonValue
public int getRepoId()
{
return repoId;
}
public static boolean equals(@Nullable final AdIssueId id1, @Nullable final AdIssueId id2) {return Objects.equals(id1, id2)... | repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\error\AdIssueId.java | 2 |
请完成以下Java代码 | public org.compiere.model.I_M_ForecastLine getM_ForecastLine()
{
return get_ValueAsPO(COLUMNNAME_M_ForecastLine_ID, org.compiere.model.I_M_ForecastLine.class);
}
@Override
public void setM_ForecastLine(org.compiere.model.I_M_ForecastLine M_ForecastLine)
{
set_ValueFromPO(COLUMNNAME_M_ForecastLine_ID, org.comp... | return get_ValueAsInt(COLUMNNAME_M_ShipmentSchedule_ID);
}
@Override
public void setPlannedQty (java.math.BigDecimal PlannedQty)
{
set_Value (COLUMNNAME_PlannedQty, PlannedQty);
}
@Override
public java.math.BigDecimal getPlannedQty()
{
BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_PlannedQty);
retur... | repos\metasfresh-new_dawn_uat\backend\de.metas.material\dispo-commons\src\main\java-gen\de\metas\material\dispo\model\X_MD_Candidate_Demand_Detail.java | 1 |
请在Spring Boot框架中完成以下Java代码 | public class CostTypeId implements RepoIdAware
{
@JsonCreator
public static CostTypeId ofRepoId(final int repoId)
{
return new CostTypeId(repoId);
}
public static CostTypeId ofRepoIdOrNull(final int repoId)
{
if (repoId <= 0)
{
return null;
}
else
{
return ofRepoId(repoId);
}
}
public stat... | return id != null ? id.getRepoId() : -1;
}
int repoId;
private CostTypeId(final int repoId)
{
this.repoId = Check.assumeGreaterThanZero(repoId, "M_CostType_ID");
}
@Override
@JsonValue
public int getRepoId()
{
return repoId;
}
public static boolean equals(final CostTypeId id1, final CostTypeId id2)
... | repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\costing\CostTypeId.java | 2 |
请完成以下Java代码 | public String getF_MEMO() {
return F_MEMO;
}
public void setF_MEMO(String f_MEMO) {
F_MEMO = f_MEMO;
}
public String getF_STATUS() {
return F_STATUS;
}
public void setF_STATUS(String f_STATUS) {
F_STATUS = f_STATUS;
}
public String getF_ISAUDIT() {
... | return F_AUDITTIME;
}
public void setF_AUDITTIME(String f_AUDITTIME) {
F_AUDITTIME = f_AUDITTIME;
}
public String getF_VERSION() {
return F_VERSION;
}
public void setF_VERSION(String f_VERSION) {
F_VERSION = f_VERSION;
}
public String getF_BUDGETCODE() {
... | repos\SpringBootBucket-master\springboot-batch\src\main\java\com\xncoding\trans\modules\common\vo\BscTollSpecialShare.java | 1 |
请完成以下Java代码 | private Mono<CompletedPart> uploadPart(UploadState uploadState, ByteBuffer buffer) {
final int partNumber = ++uploadState.partCounter;
log.info("[I218] uploadPart: partNumber={}, contentLength={}",partNumber, buffer.capacity());
CompletableFuture<UploadPartResponse> request = s3client.uploadPar... | * check result from an API call.
* @param result Result from an API call
*/
private static void checkResult(SdkResponse result) {
if (result.sdkHttpResponse() == null || !result.sdkHttpResponse().isSuccessful()) {
throw new UploadFailedException(result);
}
}
/... | repos\tutorials-master\aws-modules\aws-reactive\src\main\java\com\baeldung\aws\reactive\s3\UploadResource.java | 1 |
请完成以下Java代码 | public UUID getUuid() {
return id;
}
@Override
public void setUuid(UUID id) {
this.id = id;
}
@Override
public long getCreatedTime() {
return createdTime;
}
public void setCreatedTime(long createdTime) {
if (createdTime > 0) {
this.createdTi... | }
protected JsonNode toJson(Object value) {
if (value != null) {
return JacksonUtil.valueToTree(value);
} else {
return null;
}
}
protected <T> T fromJson(JsonNode json, Class<T> type) {
return JacksonUtil.convertValue(json, type);
}
protect... | repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\model\BaseSqlEntity.java | 1 |
请完成以下Java代码 | public List<String> getCamundaCandidateStarterUsersList() {
String candidateStarterUsers = camundaCandidateStarterUsersAttribute.getValue(this);
return StringUtil.splitCommaSeparatedList(candidateStarterUsers);
}
public void setCamundaCandidateStarterUsersList(List<String> camundaCandidateStarterUsersList)... | @Override
public String getCamundaHistoryTimeToLiveString() {
return camundaHistoryTimeToLiveAttribute.getValue(this);
}
@Override
public void setCamundaHistoryTimeToLiveString(String historyTimeToLive) {
if (historyTimeToLive == null) {
camundaHistoryTimeToLiveAttribute.removeAttribute(this);
... | repos\camunda-bpm-platform-master\model-api\bpmn-model\src\main\java\org\camunda\bpm\model\bpmn\impl\instance\ProcessImpl.java | 1 |
请完成以下Java代码 | public void notify(DelegateTask delegateTask) {
validateParameters();
ScriptingEngines scriptingEngines = CommandContextUtil.getCmmnEngineConfiguration().getScriptingEngines();
String language = Objects.toString(this.language.getValue(delegateTask), null);
if (language == null) {
... | if (script == null) {
throw new IllegalArgumentException("The field 'script' should be set on the TaskListener");
}
if (language == null) {
throw new IllegalArgumentException("The field 'language' should be set on the TaskListener");
}
}
public void setScript(Ex... | repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\listener\ScriptTypeTaskListener.java | 1 |
请完成以下Java代码 | public String getRandom() {
return random;
}
public void setRandom(String random) {
this.random = random;
}
}
public static class TopicPartition {
protected String topic;
protected Collection<String> partitions;
public String getTopic()... | public void setTopic(String topic) {
this.topic = topic;
}
public Collection<String> getPartitions() {
return partitions;
}
public void setPartitions(Collection<String> partitions) {
this.partitions = partitions;
}
}
} | repos\flowable-engine-main\modules\flowable-event-registry-model\src\main\java\org\flowable\eventregistry\model\KafkaInboundChannelModel.java | 1 |
请完成以下Java代码 | public class DetailedUserDto {
private Long id;
private String username;
private Set<String> permissions;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getUsername() {
return username;
}
public void setU... | public Set<String> getPermissions() {
return permissions;
}
public void setPermissions(Set<String> permissions) {
this.permissions = permissions;
}
public static DetailedUserDto fromEntity(BasicUser user) {
DetailedUserDto detailed = new DetailedUserDto();
detailed.setI... | repos\tutorials-master\persistence-modules\spring-data-jpa-enterprise\src\main\java\com\baeldung\osiv\web\DetailedUserDto.java | 1 |
请完成以下Java代码 | public String getId() {
return id;
}
public String getBusinessKey() {
return businessKey;
}
public String getCallActivityInstanceId() {
return callActivityInstanceId;
}
public String getCallActivityId() {
return callActivityId;
}
public String getProcessDefinitionId() {
return pr... | public String getProcessDefinitionKey() {
return processDefinitionKey;
}
public String getProcessDefinitionName() {
return processDefinitionName;
}
public List<IncidentStatisticsDto> getIncidents() {
return incidents;
}
public void setIncidents(List<IncidentStatisticsDto> incidents) {
thi... | repos\camunda-bpm-platform-master\webapps\assembly\src\main\java\org\camunda\bpm\cockpit\impl\plugin\base\dto\CalledProcessInstanceDto.java | 1 |
请完成以下Java代码 | public Object getPersistentState() {
// entity is not updatable
return TenantMembershipEntity.class;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public UserEntity getUser() {
return user;
}
public void setUser(UserEntity user) {
this.... | }
public String getUserId() {
if (user != null) {
return user.getId();
} else {
return null;
}
}
public String getGroupId() {
if (group != null) {
return group.getId();
} else {
return null;
}
}
public TenantEntity getTenant() {
return tenant;
}
publ... | repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\persistence\entity\TenantMembershipEntity.java | 1 |
请完成以下Java代码 | protected void performOutgoingBehavior(ActivityExecution execution,
boolean checkConditions) {
LOG.leavingActivity(execution.getActivity().getId());
String defaultSequenceFlow = (String) execution.getActivity().getProperty("default");
List<PvmTransition> transitionsToTake = new ArrayList<>();
... | } else {
LOG.missingOutgoingSequenceFlow(execution.getActivity().getId());
execution.end(true);
}
}
}
}
protected boolean isAncestorCompensationThrowing(ActivityExecution execution) {
ActivityExecution parent = execution.getParent();
while (parent != null) {
if (... | repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\bpmn\behavior\BpmnActivityBehavior.java | 1 |
请完成以下Java代码 | public void setupCallouts()
{
final IProgramaticCalloutProvider calloutProvider = Services.get(IProgramaticCalloutProvider.class);
calloutProvider.registerAnnotatedCallout(this);
}
@ModelChange(timings = {
ModelValidator.TYPE_BEFORE_NEW,
ModelValidator.TYPE_BEFORE_CHANGE
})
public void beforeSave_M_HU_P... | itemProduct.setIsInfiniteCapacity(true);
}
}
private void setUOMItemProduct(final I_M_HU_PI_Item_Product huPiItemProduct)
{
final ProductId productId = ProductId.ofRepoIdOrNull(huPiItemProduct.getM_Product_ID());
if (productId == null)
{
// nothing to do
return;
}
final UomId stockingUOMId = Serv... | repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\model\validator\M_HU_PI_Item_Product.java | 1 |
请完成以下Java代码 | public class DecisionRuleImpl extends DmnElementImpl implements DecisionRule {
protected static ChildElementCollection<InputEntry> inputEntryCollection;
protected static ChildElementCollection<OutputEntry> outputEntryCollection;
public DecisionRuleImpl(ModelTypeInstanceContext instanceContext) {
super(insta... | }
});
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
inputEntryCollection = sequenceBuilder.elementCollection(InputEntry.class)
.build();
outputEntryCollection = sequenceBuilder.elementCollection(OutputEntry.class)
.required()
.build();
typeBuilder.build();
}
} | repos\camunda-bpm-platform-master\model-api\dmn-model\src\main\java\org\camunda\bpm\model\dmn\impl\instance\DecisionRuleImpl.java | 1 |
请完成以下Java代码 | public class Plane {
private final String name;
private final String model;
public Plane(String name, String model) {
this.name = name;
this.model = model;
}
public String getName() {
return name;
}
public String getModel() {
return model;
} | @Override
public boolean equals(Object o) {
if (this == o)
return true;
if (o == null || getClass() != o.getClass())
return false;
Plane plane = (Plane) o;
return Objects.equals(name, plane.name) && Objects.equals(model, plane.model);
}
@Override
... | repos\tutorials-master\core-java-modules\core-java-arrays-operations-advanced-3\src\main\java\com\baeldung\arraycompare\Plane.java | 1 |
请完成以下Java代码 | public @Nullable Ssl getSsl() {
return this.ssl;
}
@Override
public void setSsl(@Nullable Ssl ssl) {
this.ssl = ssl;
}
/**
* Return the configured {@link SslBundles}.
* @return the {@link SslBundles} or {@code null}
* @since 3.2.0
*/
public @Nullable SslBundles getSslBundles() {
return this.sslBun... | return WebServerSslBundle.get(this.ssl, this.sslBundles);
}
protected final Map<String, SslBundle> getServerNameSslBundles() {
Assert.state(this.ssl != null, "'ssl' must not be null");
return this.ssl.getServerNameBundles()
.stream()
.collect(Collectors.toMap(ServerNameSslBundle::serverName, (serverNameSsl... | repos\spring-boot-4.0.1\module\spring-boot-web-server\src\main\java\org\springframework\boot\web\server\AbstractConfigurableWebServerFactory.java | 1 |
请完成以下Java代码 | public java.lang.String getTermDurationUnit()
{
return get_ValueAsString(COLUMNNAME_TermDurationUnit);
}
@Override
public void setTermOfNotice (final int TermOfNotice)
{
set_Value (COLUMNNAME_TermOfNotice, TermOfNotice);
}
@Override
public int getTermOfNotice()
{
return get_ValueAsInt(COLUMNNAME_Term... | public static final String TERMOFNOTICEUNIT_TagE = "day";
/** Jahr(e) = year */
public static final String TERMOFNOTICEUNIT_JahrE = "year";
@Override
public void setTermOfNoticeUnit (final java.lang.String TermOfNoticeUnit)
{
set_Value (COLUMNNAME_TermOfNoticeUnit, TermOfNoticeUnit);
}
@Override
public java.... | repos\metasfresh-new_dawn_uat\backend\de.metas.contracts\src\main\java-gen\de\metas\contracts\model\X_C_Flatrate_Transition.java | 1 |
请完成以下Java代码 | private static <T extends PickingJobFacet, R> ImmutableSet<R> extract(Set<PickingJobFacet> facets, Class<T> type, Function<T, R> mapper)
{
if (facets.isEmpty())
{
return ImmutableSet.of();
}
return facets.stream()
.map(facet -> facet.asTypeOrNull(type))
.filter(Objects::nonNull)
.map(fa... | && isMatching(handoverLocationIds, query.getHandoverLocationIds());
}
private static <T> boolean isMatching(final Set<T> values, final Set<T> requiredValues)
{
if (requiredValues.isEmpty())
{
return true;
}
return values.stream().anyMatch(requiredValues::contains);
}
public ImmutableSet<Pic... | repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\picking\job\model\facets\PickingJobFacetsAccumulator.java | 1 |
请完成以下Java代码 | public static InputStream fileAsStream(String filename) {
File classpathFile = getClasspathFile(filename);
return fileAsStream(classpathFile);
}
/**
* Returns the input stream of a file.
*
* @param file the File to load
* @return the file content as input stream
* @throws IoUtilException if ... | }
URL fileUrl = null;
if (classLoader != null) {
fileUrl = classLoader.getResource(filename);
}
if (fileUrl == null) {
// Try the current Thread context classloader
classLoader = Thread.currentThread().getContextClassLoader();
fileUrl = classLoader.getResource(filename);
... | repos\camunda-bpm-platform-master\commons\utils\src\main\java\org\camunda\commons\utils\IoUtil.java | 1 |
请在Spring Boot框架中完成以下Java代码 | ThymeleafReactiveViewResolver thymeleafViewResolver(ISpringWebFluxTemplateEngine templateEngine,
ThymeleafProperties properties) {
ThymeleafReactiveViewResolver resolver = new ThymeleafReactiveViewResolver();
resolver.setTemplateEngine(templateEngine);
mapProperties(properties, resolver);
mapReactivePro... | @ConditionalOnMissingBean
LayoutDialect layoutDialect() {
return new LayoutDialect();
}
}
@Configuration(proxyBeanMethods = false)
@ConditionalOnClass(DataAttributeDialect.class)
static class DataAttributeDialectConfiguration {
@Bean
@ConditionalOnMissingBean
DataAttributeDialect dialect() {
retu... | repos\spring-boot-4.0.1\module\spring-boot-thymeleaf\src\main\java\org\springframework\boot\thymeleaf\autoconfigure\ThymeleafAutoConfiguration.java | 2 |
请在Spring Boot框架中完成以下Java代码 | public class JacksonConfiguration {
/**
* Support for Java date and time API.
* @return the corresponding Jackson module.
*/
@Bean
public JavaTimeModule javaTimeModule() {
return new JavaTimeModule();
}
@Bean
public Jdk8Module jdk8TimeModule() {
return new Jdk8Mo... | */
@Bean
public AfterburnerModule afterburnerModule() {
return new AfterburnerModule();
}
/*
* Module for serialization/deserialization of RFC7807 Problem.
*/
@Bean
ProblemModule problemModule() {
return new ProblemModule();
}
/*
* Module for serializatio... | repos\tutorials-master\jhipster-6\bookstore-monolith\src\main\java\com\baeldung\jhipster6\config\JacksonConfiguration.java | 2 |
请完成以下Java代码 | public Object getPersistentState() {
return null; // Not updatable
}
@Override
public long getLogNumber() {
return logNumber;
}
@Override
public void setLogNumber(long logNumber) {
this.logNumber = logNumber;
}
@Override
public String getType() {
re... | @Override
public byte[] getData() {
return data;
}
@Override
public void setData(byte[] data) {
this.data = data;
}
@Override
public String getLockOwner() {
return lockOwner;
}
@Override
public void setLockOwner(String lockOwner) {
this.lockOwne... | repos\flowable-engine-main\modules\flowable-engine\src\main\java\org\flowable\engine\impl\persistence\entity\EventLogEntryEntityImpl.java | 1 |
请完成以下Java代码 | public void initEditor() {
editor.setDocument(document);
//undo = new UndoManager();
resetUndoManager();
document.addUndoableEditListener(undoHandler);
editor.scrollRectToVisible(new Rectangle(0,0,0,0));
editor.setCaretPosition(0);
}
public boolean isDocumentChanged() {
return undo.canUndo();
}
publ... | // new HTMLWriter(sw, editor.document).write();
String html = sw.toString();
return html;
}
catch (Exception e)
{
e.printStackTrace();
}
return null;
}
public HTMLDocument getDocument()
{
return this.document;
}
@Override
public void requestFocus()
{
this.editor.requestFocus();
}
... | repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\client\src\main\java-legacy\net\sf\memoranda\ui\htmleditor\HTMLEditor.java | 1 |
请在Spring Boot框架中完成以下Java代码 | private List<OAuth2AuthorizedClientProvider> getAdditionalAuthorizedClientProviders(
Collection<OAuth2AuthorizedClientProvider> authorizedClientProviders) {
List<OAuth2AuthorizedClientProvider> additionalAuthorizedClientProviders = new ArrayList<>(
authorizedClientProviders);
additionalAuthorizedClientPr... | private <T> String[] getBeanNamesForType(Class<T> beanClass) {
return BeanFactoryUtils.beanNamesForTypeIncludingAncestors(this.beanFactory, beanClass, true, true);
}
private <T> T getBeanOfType(ResolvableType resolvableType) {
ObjectProvider<T> objectProvider = this.beanFactory.getBeanProvider(resolvableType... | repos\spring-security-main\config\src\main\java\org\springframework\security\config\annotation\web\configuration\OAuth2ClientConfiguration.java | 2 |
请在Spring Boot框架中完成以下Java代码 | public String prefix() {
return "management.ganglia.metrics.export";
}
@Override
public @Nullable String get(String k) {
return null;
}
@Override
public boolean enabled() {
return obtain(GangliaProperties::isEnabled, GangliaConfig.super::enabled);
}
@Override
public Duration step() {
return obtain(G... | }
@Override
public int ttl() {
return obtain(GangliaProperties::getTimeToLive, GangliaConfig.super::ttl);
}
@Override
public String host() {
return obtain(GangliaProperties::getHost, GangliaConfig.super::host);
}
@Override
public int port() {
return obtain(GangliaProperties::getPort, GangliaConfig.supe... | repos\spring-boot-4.0.1\module\spring-boot-micrometer-metrics\src\main\java\org\springframework\boot\micrometer\metrics\autoconfigure\export\ganglia\GangliaPropertiesConfigAdapter.java | 2 |
请完成以下Java代码 | public java.lang.String getPostingType ()
{
return (java.lang.String)get_Value(COLUMNNAME_PostingType);
}
/** Set Menge.
@param Qty
Menge
*/
@Override
public void setQty (java.math.BigDecimal Qty)
{
set_ValueNoCheck (COLUMNNAME_Qty, Qty);
}
/** Get Menge.
@return Menge
*/
@Override
public ... | /** Set SubLine ID.
@param SubLine_ID
Transaction sub line ID (internal)
*/
@Override
public void setSubLine_ID (int SubLine_ID)
{
if (SubLine_ID < 1)
set_ValueNoCheck (COLUMNNAME_SubLine_ID, null);
else
set_ValueNoCheck (COLUMNNAME_SubLine_ID, Integer.valueOf(SubLine_ID));
}
/** Get SubLine I... | repos\metasfresh-new_dawn_uat\backend\de.metas.acct.base\src\main\java-gen\de\metas\acct\model\X_Fact_Acct_ActivityChangeRequest_Source_v.java | 1 |
请完成以下Java代码 | public class ContainerPartitionPausingBackOffManager implements KafkaConsumerBackoffManager {
private static final LogAccessor LOGGER = new LogAccessor(LogFactory.getLog(ContainerPartitionPausingBackOffManager.class));
private final ListenerContainerRegistry listenerContainerRegistry;
private final BackOffHandler... | MessageListenerContainer container = getListenerContainerFromContext(context);
container.pausePartition(topicPartition);
this.backOffHandler.onNextBackOff(container, topicPartition, backOffTime);
throw new KafkaBackoffException(String.format("Partition %s from topic %s is not ready for consumption, " +
"backi... | repos\spring-kafka-main\spring-kafka\src\main\java\org\springframework\kafka\listener\ContainerPartitionPausingBackOffManager.java | 1 |
请完成以下Java代码 | public boolean isGranting() {
return this.granting;
}
void setAuditFailure(boolean auditFailure) {
this.auditFailure = auditFailure;
}
void setAuditSuccess(boolean auditSuccess) {
this.auditSuccess = auditSuccess;
}
void setPermission(Permission permission) {
Assert.notNull(permission, "Permission requ... | @Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("AccessControlEntryImpl[");
sb.append("id: ").append(this.id).append("; ");
sb.append("granting: ").append(this.granting).append("; ");
sb.append("sid: ").append(this.sid).append("; ");
sb.append("permission: ").append(t... | repos\spring-security-main\acl\src\main\java\org\springframework\security\acls\domain\AccessControlEntryImpl.java | 1 |
请完成以下Java代码 | private Supplier<ICalloutInstance> supplyCalloutInstanceOrNull(final I_AD_ColumnCallout calloutDef)
{
if (calloutDef == null)
{
return null;
}
if (!calloutDef.isActive())
{
return null;
}
try
{
final String classname = calloutDef.getClassname();
Check.assumeNotEmpty(classname, "classname i... | return RuleCalloutInstance.supplier(ruleValue.get());
}
else
{
return MethodNameCalloutInstance.supplier(classname);
}
}
catch (final Exception e)
{
// We are just logging and discarding the error because there is nothing that we can do about it
// More, we want to load the other callouts an... | repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\callout\spi\impl\DefaultCalloutProvider.java | 1 |
请完成以下Java代码 | public class PostgresEdgeEventService extends BaseEdgeEventService {
private final EdgeEventDao edgeEventDao;
private final ApplicationEventPublisher eventPublisher;
private final Optional<EdgeStatsCounterService> statsCounterService;
private ExecutorService edgeEventExecutor;
@PostConstruct
... | @Override
public void onSuccess(Void result) {
statsCounterService.ifPresent(statsCounterService ->
statsCounterService.recordEvent(EdgeStatsKey.DOWNLINK_MSGS_ADDED, edgeEvent.getTenantId(), edgeEvent.getEdgeId(), 1));
eventPublisher.publishEvent(SaveE... | repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\edge\PostgresEdgeEventService.java | 1 |
请在Spring Boot框架中完成以下Java代码 | public String getRevision() {
return revision;
}
/**
* Sets the value of the revision property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRevision(String value) {
this.revision = value;
}
/**
* G... | *
*/
public String getConnectionType() {
return connectionType;
}
/**
* Sets the value of the connectionType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setConnectionType(String value) {
thi... | repos\metasfresh-new_dawn_uat\backend\de.metas.shipper.gateway.dpd\src\main\java-xjc\com\dpd\common\service\types\shipmentservice\_3\Printer.java | 2 |
请完成以下Java代码 | public String toString()
{
StringBuffer sb = new StringBuffer ("X_PA_Benchmark[")
.append(get_ID()).append("]");
return sb.toString();
}
/** AccumulationType AD_Reference_ID=370 */
public static final int ACCUMULATIONTYPE_AD_Reference_ID=370;
/** Average = A */
public static final Strin... | /** Get Comment/Help.
@return Comment or Hint
*/
public String getHelp ()
{
return (String)get_Value(COLUMNNAME_Help);
}
/** Set Name.
@param Name
Alphanumeric identifier of the entity
*/
public void setName (String Name)
{
set_Value (COLUMNNAME_Name, Name);
}
/** Get Name.
@return Alphanu... | repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_PA_Benchmark.java | 1 |
请完成以下Java代码 | public static JSONDocumentLayoutElementGroup of(
@NonNull final DocumentLayoutElementGroupDescriptor elementGroup,
@NonNull final JSONDocumentLayoutOptions jsonOpts)
{
return new JSONDocumentLayoutElementGroup(elementGroup, jsonOpts);
}
@Schema
@JsonProperty("type")
@JsonInclude(JsonInclude.Include.NON_NU... | private JSONDocumentLayoutElementGroup(
@NonNull final DocumentLayoutElementGroupDescriptor elementGroup,
@NonNull final JSONDocumentLayoutOptions jsonOpts)
{
this.type = JSONLayoutType.fromNullable(elementGroup.getLayoutType());
this.columnCount = elementGroup.getColumnCount();
this.internalName = element... | repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\window\datatypes\json\JSONDocumentLayoutElementGroup.java | 1 |
请在Spring Boot框架中完成以下Java代码 | public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
@ApiModelProperty(example = "Room")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@ApiModelProperty(example = "str... | }
public boolean isWritable() {
return writable;
}
public void setWritable(boolean writable) {
this.writable = writable;
}
public boolean isRequired() {
return required;
}
public void setRequired(boolean required) {
this.required = required;
}
pub... | repos\flowable-engine-main\modules\flowable-rest\src\main\java\org\flowable\rest\service\api\form\RestFormProperty.java | 2 |
请完成以下Java代码 | public Sentry getCurrentSentry() {
return currentSentry;
}
public void setCurrentSentry(Sentry currentSentry) {
this.currentSentry = currentSentry;
}
public SentryOnPart getCurrentSentryOnPart() {
return currentSentryOnPart;
}
public void setCurrentSentryOnPart(SentryO... | public List<Criterion> getEntryCriteria() {
return entryCriteria;
}
public List<Criterion> getExitCriteria() {
return exitCriteria;
}
public List<Sentry> getSentries() {
return sentries;
}
public List<SentryOnPart> getSentryOnParts() {
return sentryOnParts;
... | repos\flowable-engine-main\modules\flowable-cmmn-converter\src\main\java\org\flowable\cmmn\converter\ConversionHelper.java | 1 |
请完成以下Java代码 | public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getIsbn() {
return isbn;
}
public void ... | this.reviews = reviews;
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
return id ... | repos\Hibernate-SpringBoot-master\HibernateSpringBootPropertyExpressions\src\main\java\com\bookstore\entity\Book.java | 1 |
请完成以下Java代码 | public T walkUntil(ReferenceWalker.WalkCondition<T> condition) {
do {
for (TreeVisitor<T> collector : preVisitor) {
collector.visit(getCurrentElement());
}
currentElements.addAll(nextElements());
currentElements.remove(0);
for (TreeVisitor<T> collector : postVisitor) {
... | public interface WalkCondition<S> {
boolean isFulfilled(S element);
}
public static class NullCondition<S> implements ReferenceWalker.WalkCondition<S> {
public boolean isFulfilled(S element) {
return element == null;
}
public static <S> ReferenceWalker.WalkCondition<S> notNull() {
ret... | repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\tree\ReferenceWalker.java | 1 |
请完成以下Java代码 | private void fetchEntityDetailsToMsg(ContactBased<I> contactBased, ObjectNode messageData, TbMsgMetaData msgMetaData) {
String value = null;
for (var entityDetail : config.getDetailsList()) {
switch (entityDetail) {
case ID:
value = contactBased.getId().ge... | break;
case ZIP:
value = contactBased.getZip();
break;
case ADDITIONAL_INFO:
if (contactBased.getAdditionalInfo().hasNonNull("description")) {
value = contactBased.getAdditionalInfo().get("description").a... | repos\thingsboard-master\rule-engine\rule-engine-components\src\main\java\org\thingsboard\rule\engine\metadata\TbAbstractGetEntityDetailsNode.java | 1 |
请完成以下Java代码 | public void addComment(Comment comment) {
comments.add(comment);
}
public void deleteComment(Comment comment) {
comments.remove(comment);
}
public void setTitle(String title) {
this.title = title;
this.slug = toSlug(title);
}
public Optional<Comment> getComment... | private String toSlug(String title) {
return title.toLowerCase().replaceAll("[&|\\uFE30-\\uFFA0’”\\s?,.]+", "-");
}
public boolean hasTag(String tag) {
return tags.contains(tag);
}
public boolean isAuthor(String authorId) {
return this.authorId.equals(authorId);
}
publ... | repos\realworld-spring-webflux-master\src\main\java\com\realworld\springmongo\article\Article.java | 1 |
请完成以下Java代码 | public int getM_Material_Tracking_Report_Line_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_M_Material_Tracking_Report_Line_ID);
if (ii == null)
return 0;
return ii.intValue();
}
@Override
public org.compiere.model.I_M_Product getM_Product() throws RuntimeException
{
return get_ValueAsPO(COLUMNN... | /** Set Ausgelagerte Menge.
@param QtyIssued Ausgelagerte Menge */
@Override
public void setQtyIssued (java.math.BigDecimal QtyIssued)
{
set_Value (COLUMNNAME_QtyIssued, QtyIssued);
}
/** Get Ausgelagerte Menge.
@return Ausgelagerte Menge */
@Override
public java.math.BigDecimal getQtyIssued ()
{
... | repos\metasfresh-new_dawn_uat\backend\de.metas.materialtracking\src\main\java-gen\de\metas\materialtracking\ch\lagerkonf\model\X_M_Material_Tracking_Report_Line.java | 1 |
请完成以下Java代码 | public CamundaBpmRunAdministratorAuthorizationProperties getAdminAuth() {
return adminAuth;
}
public void setAdminAuth(CamundaBpmRunAdministratorAuthorizationProperties adminAuth) {
this.adminAuth = adminAuth;
}
public List<CamundaBpmRunProcessEnginePluginProperty> getProcessEnginePlugins() {
retu... | public CamundaBpmRunDeploymentProperties getDeployment() {
return deployment;
}
public void setDeployment(CamundaBpmRunDeploymentProperties deployment) {
this.deployment = deployment;
}
@Override
public String toString() {
return "CamundaBpmRunProperties [" +
"auth=" + auth +
",... | repos\camunda-bpm-platform-master\distro\run\core\src\main\java\org\camunda\bpm\run\property\CamundaBpmRunProperties.java | 1 |
请完成以下Java代码 | public boolean isProcessed ()
{
Object oo = get_Value(COLUMNNAME_Processed);
if (oo != null)
{
if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set Process Now.
@param Processing Process Now */
@Override
public void setProce... | if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set Transaction Code.
@param TransactionCode
The transaction code represents the search definition
*/
@Override
public void setTransactionCode (java.lang.String TransactionCode)
{
s... | repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.base\src\main\java-gen\de\metas\banking\model\X_I_Datev_Payment.java | 1 |
请完成以下Java代码 | public JsonCacheResetResponse resetForRecordId(@RequestParam("tableName") final String tableName, @RequestParam("recordId") final int recordId)
{
final JsonCacheResetResponse response = new JsonCacheResetResponse();
final long count = cacheMgt.reset(tableName, recordId);
response.addLog("Cleared " + count + " ca... | {
throw new AdempiereException("Cache of type " + cacheInterface.getClass().getSimpleName() + " is not supported");
}
}
@GetMapping("/byId/{cacheId}/reset")
public void resetCacheById(@PathVariable("cacheId") final String cacheIdStr)
{
assertAuth();
final long cacheId = Long.parseLong(cacheIdStr);
fina... | repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\cache\rest\CacheRestControllerTemplate.java | 1 |
请完成以下Java代码 | public static synchronized void destroy() {
if (isInitialized()) {
Map<String, DmnEngine> engines = new HashMap<>(dmnEngines);
dmnEngines = new HashMap<>();
for (String dmnEngineName : engines.keySet()) {
DmnEngine dmnEngine = engines.get(dmnEngineName);
... | dmnEngineInfosByResourceUrl.clear();
dmnEngineInfos.clear();
setInitialized(false);
}
}
public static boolean isInitialized() {
return isInitialized;
}
public static void setInitialized(boolean isInitialized) {
DmnEngines.isInitialized = isInitialized;
... | repos\flowable-engine-main\modules\flowable-dmn-engine\src\main\java\org\flowable\dmn\engine\DmnEngines.java | 1 |
请完成以下Java代码 | public String getTaskId() {
return taskId;
}
public String getErrorMessage() {
return errorMessage;
}
public String getTenantId() {
return tenantId;
}
public String getState() {
return state;
}
public Date getCreateTime() {
return createTime;
}
public Date getRemovalTime() {... | dto.processDefinitionId = historicVariableInstance.getProcessDefinitionId();
dto.processInstanceId = historicVariableInstance.getProcessInstanceId();
dto.executionId = historicVariableInstance.getExecutionId();
dto.activityInstanceId = historicVariableInstance.getActivityInstanceId();
dto.caseDefinition... | repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\history\HistoricVariableInstanceDto.java | 1 |
请完成以下Java代码 | public void updateEdiEnabled(final I_C_Order order)
{
final int orderInputDataSourceId = order.getAD_InputDataSource_ID();
if (orderInputDataSourceId <= 0)
{
// nothing to do
return;
}
final boolean isEdiEnabled = inputDataSourceBL.isEDIInputDataSource(orderInputDataSourceId);
if (isEdiEnabled)
{... | {
final I_C_BPartner partner = InterfaceWrapperHelper.create(order.getC_BPartner(), de.metas.edi.model.I_C_BPartner.class);
if (partner == null)
{
// nothing to do
return;
}
final boolean isEdiRecipient = partner.isEdiDesadvRecipient() || partner.isEdiInvoicRecipient();
// in case the partner was c... | repos\metasfresh-new_dawn_uat\backend\de.metas.edi\src\main\java\de\metas\edi\model\validator\C_Order.java | 1 |
请完成以下Java代码 | public static void removeDeviceByName(@NonNull final String deviceName)
{
staticState.removeDeviceByName(deviceName);
}
private static String getDeviceParamValue(final String deviceName, final String parameterName, final String defaultValue)
{
return defaultValue;
}
private static Set<String> getDeviceReque... | logger.info("addDevice: {} -> {}", existingDevice, device);
}
public synchronized @Nullable DeviceConfig removeDeviceByName(@NonNull final String deviceName)
{
final DeviceConfig existingDevice = devicesByName.remove(deviceName);
if (existingDevice != null)
{
existingDevice.getAssignedAttributeCodes... | repos\metasfresh-new_dawn_uat\backend\de.metas.device.adempiere\src\main\java\de\metas\device\dummy\DummyDeviceConfigPool.java | 1 |
请完成以下Java代码 | public void manageRecordInterceptors(@NonNull final I_ExternalSystem_Config_ScriptedExportConversion config)
{
final I_ExternalSystem_Config_ScriptedExportConversion oldRecord = InterfaceWrapperHelper.createOld(config, I_ExternalSystem_Config_ScriptedExportConversion.class);
final AdTableAndClientId oldTableAndCli... | externalSystemScriptedExportConversionService,
AdTableAndClientId.of(config.getAdTableId(), config.getClientId()));
externalSystemScriptedExportConversionInterceptorRegistry.registerInterceptor(interceptor);
}
private void registerInterceptor(@NonNull final I_ExternalSystem_Config_ScriptedExportConversion con... | repos\metasfresh-new_dawn_uat\backend\de.metas.externalsystem\src\main\java\de\metas\externalsystem\scriptedexportconversion\interceptor\ExternalSystem_Config_ScriptedExportConversion.java | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.