/** * Return the query result mapping for the given name. */ public QueryResultMapping getQueryResultMapping(Class<?> cls, String name, ClassLoader loader, boolean mustExist) { QueryResultMapping res; if (_locking) { synchronized (this) { res = getQueryResultMappingInternal(cls, name, loader); } } else { res = getQueryResultMappingInternal(cls, name, loader); } if (res == null && mustExist) throw new MetaDataException(_loc.get("no-query-res", cls, name)); return res; }
/** * Return the query result mapping for the given name. */ public QueryResultMapping getQueryResultMapping(Class<?> cls, String name, ClassLoader loader, boolean mustExist) { QueryResultMapping res = null; if (_locking) { synchronized (this) { res = getQueryResultMappingInternal(cls, name, loader); } } else { res = getQueryResultMappingInternal(cls, name, loader); } if (res == null && mustExist) throw new MetaDataException(_loc.get("no-query-res", cls, name)); return res; }
/** * Return the query result mapping for the given name. */ public QueryResultMapping getQueryResultMapping(Class<?> cls, String name, ClassLoader loader, boolean mustExist) { QueryResultMapping res = null; if (_locking) { synchronized (this) { res = getQueryResultMappingInternal(cls, name, loader); } } else { res = getQueryResultMappingInternal(cls, name, loader); } if (res == null && mustExist) throw new MetaDataException(_loc.get("no-query-res", cls, name)); return res; }
/** * Return the query result mapping for the given name. */ public QueryResultMapping getQueryResultMapping(Class<?> cls, String name, ClassLoader loader, boolean mustExist) { QueryResultMapping res; if (_locking) { synchronized (this) { res = getQueryResultMappingInternal(cls, name, loader); } } else { res = getQueryResultMappingInternal(cls, name, loader); } if (res == null && mustExist) throw new MetaDataException(_loc.get("no-query-res", cls, name)); return res; }
/** * Return the query result mapping for the given name. */ public synchronized QueryResultMapping getQueryResultMapping(Class cls, String name, ClassLoader envLoader, boolean mustExist) { QueryResultMapping res = getQueryResultMappingInternal(cls, name, envLoader); if (res == null && mustExist) throw new MetaDataException(_loc.get("no-query-res", cls, name)); return res; }