DatastoreClass st = (DatastoreClass)table;
boolean useInnerJoin = true;
if (st instanceof SecondaryDatastoreClass)
{
// Support join with any secondary table via outer join
JoinMetaData joinmd = ((SecondaryDatastoreClass)st).getJoinMetaData();
if (joinmd != null && joinmd.isOuter())
{
useInnerJoin = false;
}
}