{
DatastoreIdentifier subclassTableIdentifier = storeMgr.getIdentifierFactory().newIdentifier(IdentifierFactory.TABLE, "SUBCLASS" + (subclasses_seq_id++));
QueryExpression st = storeMgr.getDatastoreAdapter().newQueryStatement(subclassTable, subclassTableIdentifier, om.getClassLoaderResolver());
LogicSetExpression table_expr_sub = st.newTableExpression(subclassTable, subclassTableIdentifier);
JavaTypeMapping subMapping = subclassTable.getIDMapping();
st.select(subclassTableIdentifier, subMapping);
ScalarExpression subExpr = subMapping.newScalarExpression(qs, table_expr_sub);
ScalarExpression schExpr =
(((DatastoreClass)schemaDataOption.getDatastoreContainerObject()).getIDMapping()).newScalarExpression(
qs,qs.getMainTableExpression());