public void addClassExtensionKeys(Collection exts) { _delegate.addClassExtensionKeys(exts); }
public void addFieldExtensionKeys(Collection exts) { _delegate.addFieldExtensionKeys(exts); }
public void clear() { _delegate.clear(); }
if (repos != null) { MetaDataFactory factory = repos.getMetaDataFactory(); factory.getDefaults().setIgnoreNonPersistent(false); factory.setStoreMode(MetaDataFactory.STORE_VERBOSE); tool.setRepository(repos); getMetaDataFactory().newClassArgParser(); cap.setClassLoader(loader); Class[] classes;
/** * Returned the query result mapping with the given name. */ private QueryResultMapping getQueryResultMappingInternal(Class<?> cls, String name, ClassLoader envLoader) { if (name == null) return null; // check cache Object key = getQueryResultKey(cls, name); QueryResultMapping res = _results.get(key); if (res != null) return res; // get metadata for class, which will find results in metadata file if (cls != null && getMetaData(cls, envLoader, false) != null) { res = _results.get(key); if (res != null) return res; } if ((getSourceMode() & MODE_QUERY) == 0) return null; if (cls == null) cls = getMetaDataFactory() .getResultSetMappingScope(name, envLoader); // not in cache; load getMetaDataFactory().load(cls, MODE_META | MODE_MAPPING, envLoader); return _results.get(key); }
public void setSchema(String schema) { // If the schema name is empty, check to see if a system // level default exists and if so use it. if (schema == null || "".equals(schema)){ String tmp = getRepository().getMetaDataFactory().getDefaults().getDefaultSchema(); schema = (tmp != null ? tmp : ""); } this._schema = schema; }
/** * The repository to use to hold metadata. */ public MetaDataRepository getRepository() { if (_repos == null) { _repos = newRepository(); _repos.setResolve(MODE_MAPPING, false); MetaDataFactory factory = _repos.getMetaDataFactory(); factory.getDefaults().setIgnoreNonPersistent(false); factory.setStoreMode(MetaDataFactory.STORE_VERBOSE); } return _repos; }
/** * Return the set of configured persistent classes, or null if the user * did not configure any. * * @param devpath if true, search for metadata files in directories * in the classpath if no classes are configured explicitly * @param envLoader the class loader to use, or null for default */ public synchronized Set getPersistentTypeNames(boolean devpath, ClassLoader envLoader) { return _factory.getPersistentTypeNames(devpath, envLoader); }
/** * The I/O used to load metadata. */ public void setMetaDataFactory(MetaDataFactory factory) { factory.setRepository(this); _factory = factory; }
public boolean drop(Class[] cls, int mode, ClassLoader envLoader) { return _delegate.drop(cls, mode, envLoader); }
public void load(Class cls, int mode, ClassLoader envLoader) { _delegate.load(cls, mode, envLoader); }
public ClassArgParser newClassArgParser() { return _delegate.newClassArgParser(); }
public Class getResultSetMappingScope(String resultSetMappingName, ClassLoader loader) { return _delegate.getResultSetMappingScope(resultSetMappingName, loader); }
if (repos != null) { MetaDataFactory factory = repos.getMetaDataFactory(); factory.getDefaults().setIgnoreNonPersistent(false); factory.setStoreMode(MetaDataFactory.STORE_VERBOSE); tool.setRepository(repos); getMetaDataFactory().newClassArgParser(); cap.setClassLoader(loader); Class[] classes;
/** * Returned the query result mapping with the given name. */ private QueryResultMapping getQueryResultMappingInternal(Class cls, String name, ClassLoader envLoader) { if (name == null) return null; // check cache Object key = getQueryResultKey(cls, name); QueryResultMapping res = (QueryResultMapping) _results.get(key); if (res != null) return res; // get metadata for class, which will find results in metadata file if (cls != null && getMetaData(cls, envLoader, false) != null) { res = (QueryResultMapping) _results.get(key); if (res != null) return res; } if ((getSourceMode() & MODE_QUERY) == 0) return null; if (cls == null) cls = getMetaDataFactory() .getResultSetMappingScope(name, envLoader); // not in cache; load getMetaDataFactory().load(cls, MODE_META | MODE_MAPPING, envLoader); return (QueryResultMapping) _results.get(key); }
public void setSchema(String schema) { // If the schema name is empty, check to see if a system // level default exists and if so use it. if (schema == null || "".equals(schema)){ String tmp = getRepository().getMetaDataFactory().getDefaults().getDefaultSchema(); schema = (tmp != null ? tmp : ""); } this._schema = schema; }
/** * The repository to use to hold metadata. */ public MetaDataRepository getRepository() { if (_repos == null) { _repos = newRepository(); _repos.setResolve(MODE_MAPPING, false); MetaDataFactory factory = _repos.getMetaDataFactory(); factory.getDefaults().setIgnoreNonPersistent(false); factory.setStoreMode(MetaDataFactory.STORE_VERBOSE); } return _repos; }
public Set getPersistentTypeNames(boolean classpath, ClassLoader envLoader) { return _delegate.getPersistentTypeNames(classpath, envLoader); }
/** * The I/O used to load metadata. */ public void setMetaDataFactory(MetaDataFactory factory) { factory.setRepository(this); _factory = factory; }
public boolean drop(Class[] cls, int mode, ClassLoader envLoader) { return _delegate.drop(cls, mode, envLoader); }