* holds the PersistenceConfig for the foreign Persistence Class.
*/
public QueryTable addQueryTable(TableElement tableElement,
ClassDesc persistenceConfig) {
ClassDesc _config = (persistenceConfig == null) ? this.config : persistenceConfig;
TableDesc tableDesc = _config.findTableDesc(tableElement);
if (tableDesc == null) {
if (tableElement != null) {
throw new JDOFatalInternalException(I18NHelper.getMessage(messages,
"core.configuration.classnotmappedtotable", // NOI18N
_config.getPersistenceCapableClass().getName(),
tableElement.getName().getName()));
} else {
throw new JDOFatalInternalException(I18NHelper.getMessage(messages,
"core.configuration.classnotmapped", // NOI18N
_config.getPersistenceCapableClass().getName()));
}
}
return addQueryTable(tableDesc);