}
public QueryNode getVirtualPlan(final Object groupID) throws TeiidComponentException, QueryMetadataException {
ArgCheck.isInstanceOf(Table.class, groupID);
Table tableRecord = (Table) groupID;
if (!tableRecord.isVirtual()) {
throw new QueryMetadataException(QueryPlugin.Util.getString("TransformationMetadata.QueryPlan_could_not_be_found_for_physical_group__6")+tableRecord.getFullName()); //$NON-NLS-1$
}
String transQuery = tableRecord.getSelectTransformation();
QueryNode queryNode = new QueryNode(transQuery);
// get any bindings and add them onto the query node
List bindings = tableRecord.getBindings();
if(bindings != null) {
for(Iterator bindIter = bindings.iterator();bindIter.hasNext();) {
queryNode.addBinding((String)bindIter.next());
}
}