如何在使用ODI SDK创建界面时将预先存在的黄色界面的临时目标数据存储区分配为源表?
对于一个简单的源表,代码将如下: OdiDataStore SourceDS =((IOdiDataStoreFinder)odiInstance.getTransactionalEntityManager()。getFinder(OdiDataStore.class))。findByName(table_Name,model_Name);
我尝试将接口作为OdiInterface对象并在其上使用getTargetDataStore()或getUnderlyingTable(),但它不起作用。
答案 0 :(得分:0)
使用OdiInterface对象或目标数据存储区都可以使用InterfaceActionAddSourceDatastore的实例。 第4个构造函数中的第3个是临时数据存储区作为源的兴趣。
InterfaceActionAddSourceDataStore(OdiInterface.TargetDataStore pDataStore, DataSet pDataSet, IAliasComputer pAliasComputer, IClauseImporter pClauseImporter, IAutoMappingComputer pAutoMappingComputer)
InterfaceActionAddSourceDataStore(OdiInterface pInterface, DataSet pDataSet, IAliasComputer pAliasComputer, IClauseImporter pClauseImporter, IAutoMappingComputer pAutoMappingComputer)
performAction方法实际上进行了更改。