RDBMSStoreData schemaDataOption = (RDBMSStoreData)optionsIter.next();
ClassMetaData cmd = (ClassMetaData)schemaDataOption.getMetaData();
QueryExpression qs = storeMgr.getDatastoreAdapter().newQueryStatement(schemaDataOption.getDatastoreContainerObject(), om.getClassLoaderResolver());
String classname = StringUtils.leftAlignedPaddedString(schemaDataOption.getName(), metadata_id_len);
qs.selectScalarExpression(new MetaDataStringLiteral(qs,classname));
// LEFT OUTER JOIN to all direct subclasses
Iterator subclass_iter = storeMgr.getSubClassesForClass(schemaDataOption.getName(),false, om.getClassLoaderResolver()).iterator();
int subclasses_seq_id = 0;
while (subclass_iter.hasNext())