问题
I am trying to generate Ikm with Derived table statement in source command. I can able to set source command but not able to check the check box "Derived table statement" as shown in picture below.
The code I was trying is
SqlGroupType pSqlGroupType = Expression.SqlGroupType.CONSTANT;//valueOf("SQLQUERY");
String exp="(<%=odiRef.getUserExit(“SQLQUERY”)%>)";
Expression pExpression= new Expression(exp, pCrossRefs, pSqlGroupType);
pSourceCommand.setExpression(pExpression);;
Collection<ProcedureOption> pGenerationConditions=null;
ob.addLine("SQLQUERY", pTargetCommand, pSourceCommand, pGenerationConditions);
OdiIKMLine pLine =null ;
ob.setDerivedSelectStatementLine(pLine);
来源:https://stackoverflow.com/questions/48096919/how-to-check-derived-table-statement-in-ikm-using-odi-sdk-in-odi-11g