首页 \ 问答 \ 从单个Spring Batch ItemReader插入和更新(Insert & Update from single Spring Batch ItemReader)

从单个Spring Batch ItemReader插入和更新(Insert & Update from single Spring Batch ItemReader)

我的过程将数据转换为SCD2模式 。 因此,源数据中的任何更新最终都会更新dimension表中的end_dateactive_ind并插入新记录。

我在ItemReader实现中配置了SQL,该实现标识了源数据中已更改的记录。

我需要有关如何将数据路由到2个编写器的帮助/建议,1个用于更新和插入?


My process transforms the data into SCD2 pattern. Thus, any update in the source data culminates into updating the end_date & active_ind in the dimension table and inserting a new record.

I have configured the SQL in an ItemReader implementation which identifies the records which got changed in the source data.

I need help/suggestion on how to route the data to 2 writers, 1 each for update & insert?


原文:https://stackoverflow.com/questions/43838257
更新时间:2023-12-09 16:12

最满意答案

根据插件文档 ,可以在plugins配置文件中更改fontsize:

~/.config/geany/plugins/multiterm/multiterm.conf

您还可以调整背景和字体颜色。

来自档案的样本:

[shell=default]

# This will be the tabs default tab label and won't change unless
# track_title is set to true.
name=Default Shell

# This is the command to fork in the VTE, leave blank for default shell
command=sh

# Make the tab's label track the VTE title
track_title=true

# Background color, foreground color and font for the VTE
bg_color=#ffffff
fg_color=#000000
font=Monospace 44

According to plugin documentation the fontsize can be changed in plugins config file:

~/.config/geany/plugins/multiterm/multiterm.conf

You can tweak also background and font color.

sample from file:

[shell=default]

# This will be the tabs default tab label and won't change unless
# track_title is set to true.
name=Default Shell

# This is the command to fork in the VTE, leave blank for default shell
command=sh

# Make the tab's label track the VTE title
track_title=true

# Background color, foreground color and font for the VTE
bg_color=#ffffff
fg_color=#000000
font=Monospace 44

相关问答

更多
  • 不,但请继续阅读! 这是很旧的功能请求 由erg在星期二,12/27/2011 - 16:05提交。 原则上,Gvedit可以支持任何字体,但目前没有用户可以设置的机制。 暗示有没有办法,但即便如此,我发现了一种有用的解决方法,我每天必须使用GraphViz编辑器进行交互。 如果我在一个较大的字体中仅粘贴一些来自Microsoft Word的文本(例如),GraphViz中的控件就可以实现这一点。 然后我可以继续输入该字体。 例: 我推测这是可行的,因为GraphViz中的“文本控件”支持RTF格式。 无论 ...
  • 我不认为Geany能够做到这一点。 但是PyCharm是Python的一个更好的IDE,它知道你的代码的所有内容,并且具有智能代码完成,动态错误检查和快速修复,简单的项目导航等等。 还有一个免费版本可供下载 ,其中包含一个普通程序员可能需要的更多功能。 From what I have been able to find, this is beyond what Geany can do. I asked how to get Geany to do this and I am not looking fo ...
  • 这是我们想出来的,这也是在这个答案中找到的,也是这个答案 (我会引用): 转到首选项 → 常规 → 外观 → 颜色和字体 ,展开“基本”文件夹,然后选择“文本字体”,并将其更改为任何您喜欢的尺寸。 很简单 This is what we figured out, and this is also found in this answer and also this answer (I'll quote): Go to Preferences → General → Appearance → Colors a ...
  • 对于Xcode 4.1 还是一个巨大的痛苦。 糟糕的UI设计(但我的心态看起来并不符合软件工程师的心态,使100多个字符变量和方法名称,足够抱怨) 我将修改当前版本的上一篇文章。 关闭您在Xcode中打开的任何项目(否则,当项目打开时,Font窗口将无法访问。) 转到XCode>首选项>字体和颜色 从“主题”框中选择要修改的主题(或选择要修改的主题,然后单击主题列表底部的“+”按钮,首先将其克隆为备份,因为没有撤消选项) 在源代码编辑器框中,您可以设置字体类型的列表:纯文本注释文档注释。 。 。 从源编辑器 ...
  • 您可以创建一个名为filetypes.Text.conf并在其中放置: [settings] extension=txt 然后将其添加到filetype_extensions.conf [Extensions]部分,如: ... Text=*.txt;*.text; etc... ... 该手册包含有关自定义文件类型的更多详细信息。 You could create a file named like filetypes.Text.conf and inside of it put: [settings ...
  • 转至Tools >> Configuration Files >> filetypes.common 找到这个词current_line ,然后将第三个参数的那一行改为false : current_line=0x000000;0xf0f0f0;false; Go to Tools >> Configuration Files >> filetypes.common Find this word current_line, then change that line on the third parame ...
  • 您可以通过调整添加更多 number_ft_menu_items=0 number_non_ft_menu_items=0 number_exec_menu_items=0 对于number_non_ft_menu_items,默认值为0 =默认设置= 4。 您可以通过配置文件设置这些(不要使用Geany打开它,因为它将在关闭期间被覆盖)或编辑 - >首选项 - >各种。 请查看手册了解详情。 You can add more by adjusting number_ft_menu_items=0 num ...
  • 您缺少调试器编译所需的libvte。 来自汽车* AC_DEFUN([GP_CHECK_DEBUGGER], [ GP_ARG_DISABLE([Debugger], [auto]) GP_CHECK_PLUGIN_GTK2_ONLY([Debugger]) GP_CHECK_PLUGIN_DEPS([debugger], [VTE], [vte >= 0.24]) AC_CHECK_HEADERS([util.h pty.h ...
  • 根据插件文档 ,可以在plugins配置文件中更改fontsize: ~/.config/geany/plugins/multiterm/multiterm.conf 您还可以调整背景和字体颜色。 来自档案的样本: [shell=default] # This will be the tabs default tab label and won't change unless # track_title is set to true. name=Default Shell # This is the c ...
  • 您可以检查消息输出。 搜索后,只需选中“消息”选项卡。 You can check message output. After searching just check "Messages" tab.

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。