for (int j=0;j<pmd.getNoOfClasses();j++)
{
ClassMetaData cmd = pmd.getClass(j);
if (mmgr.hasMetaDataForClass(cmd.getFullClassName()))
{
throw new JDOUserException("Cannot redefine metadata for " + cmd.getFullClassName());
}
}
for (int j=0;j<pmd.getNoOfInterfaces();j++)
{
InterfaceMetaData imd = pmd.getInterface(j);
if (mmgr.hasMetaDataForClass(imd.getFullClassName()))
{
throw new JDOUserException("Cannot redefine metadata for " + imd.getFullClassName());
}
}
}
mmgr.loadUserMetaData(filemd, null);