kettle2.3.1升级到2.5.0后相关API的变化

来源:互联网 发布:mac输入法切换快捷键 编辑:程序博客网 时间:2024/05/22 06:35

kettle2.3.1升级到2.5.0后 相关API的变化

use kettle API under version 2.5.0

作者:陈海青(joson chen)
网站:http://www.chq.name/
日期:2007.05.13

版权声明:转载或引用本网版权所有之内容须注明“转自(或引自)chq.name (Junit fans)”字样,并标明本网站网址http://www.chq.name

should import the new jar:commons-vfs-1.0.jar
2:使用oracle数据库时,构造TransMeta时,可以使用SchemaName参数,而不必在表名加SchemaName,已由www.chq.name使用oracle9i进行了测试.
when fill in TransMeta ,should use the parameter SchemaName,in 2.3.1,use tablename =SchemaName . tablename ,tested by http://www.chq.name/ on oracle9i.
3:使用新的构造方法StepMeta(fromstepid, fromstepname,(StepMetaInterface) tii) 代替原来的StepMeta(log,fromstepid, fromstepname,(StepMetaInterface) tii)。因为参数logging已经是单实例的,不必再作为参数传送了。
use new constructor method StepMeta(fromstepid, fromstepname,(StepMetaInterface) tii),delete the parameter log,for deprecated The logging is now a singlton, use the constructor without it.
4:将TableInputMeta原来的方法 setDatabase(targetDBInfo) 替换为 setDatabaseMeta(targetDBInfo),这个替换很生硬,使用原来的方法直接显示"未定义的方法".
in class TableInputMeta,use method "setDatabaseMeta(targetDBInfo)" replace the old one ,setDatabase(targetDBInfo),otherwise, compiler will report : The method setDatabase(DatabaseMeta) is undefined for the type TableInputMeta.

1:需引入新的jar包:commons-vfs-1.0.jar
0 0
原创粉丝点击