航海日志 hhrz.org hhrz.net chq.name

  • 增大字号
  • 默认文字大小
  • 减小字号

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

E-mail 打印 PDF
用户评价: / 0
好 
kettle升级到2.5.0,与2.3.1版比较相关API的发生了一些变化......

kettle2.3.1升级到2.5.0后 相关API的变化
use kettle API under version 2.5.0

作者:陈海青(joson chen)

网站:www.chq.name

日期:2007.05.13

 

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


1:需引入新的jar包:commons-vfs-1.0.jar

   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 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.

最后更新于: 2007-05-16 09:32