/** * Caches a copy of the configuration. The configuration is used to obtain * the logger and classloader. */ public void setConfiguration(Configuration conf) { _conf = (OpenJPAConfiguration) conf; _log = _conf.getLog(OpenJPAConfiguration.LOG_RUNTIME); }
/** * Caches a copy of the configuration. The configuration is used to obtain * the logger and classloader. */ public void setConfiguration(Configuration conf) { _conf = (OpenJPAConfiguration) conf; _log = _conf.getLog(OpenJPAConfiguration.LOG_RUNTIME); }
/** * Constructor; supply configuration. */ public AnnotationPersistenceMetaDataParser(OpenJPAConfiguration conf) { _conf = conf; _log = conf.getLog(OpenJPAConfiguration.LOG_METADATA); }
public void setRepository(MetaDataRepository repos) { this.repos = repos; if (repos != null) log = repos.getConfiguration().getLog (OpenJPAConfiguration.LOG_METADATA); }
public void setRepository(MetaDataRepository repos) { this.repos = repos; if (repos != null) log = repos.getConfiguration().getLog (OpenJPAConfiguration.LOG_METADATA); }
/** * @param factory The {@link BrokerFactory} for which cached metadata * should be built. * @param devpath Whether or not to scan the development environment paths * to find persistent types to store. */ public MetaDataCacheMaintenance(BrokerFactory factory, boolean devpath) { this.factory = factory; this.conf = factory.getConfiguration(); this.devpath = devpath; this.log = conf.getLog(OpenJPAConfiguration.LOG_TOOL); }
/** * @param factory The {@link BrokerFactory} for which cached metadata * should be built. * @param devpath Whether or not to scan the development environment paths * to find persistent types to store. */ public MetaDataCacheMaintenance(BrokerFactory factory, boolean devpath) { this.factory = factory; this.conf = factory.getConfiguration(); this.devpath = devpath; this.log = conf.getLog(OpenJPAConfiguration.LOG_TOOL); }
public void setRepository(MetaDataRepository repos) { this.repos = repos; if (repos != null) log = repos.getConfiguration().getLog (OpenJPAConfiguration.LOG_METADATA); }
/** * Constructor. Supply configuration. */ public XMLPersistenceMetaDataSerializer(OpenJPAConfiguration conf) { _conf = conf; setLog(conf.getLog(OpenJPAConfiguration.LOG_METADATA)); setMode(MODE_META | MODE_MAPPING | MODE_QUERY); }
/** * Constructor. Supply configuration. */ public XMLPersistenceMetaDataSerializer(OpenJPAConfiguration conf) { _conf = conf; setLog(conf.getLog(OpenJPAConfiguration.LOG_METADATA)); setMode(MODE_META | MODE_MAPPING | MODE_QUERY); }
/** * Constructor. Supply configuration. */ public AnnotationPersistenceMetaDataSerializer(OpenJPAConfiguration conf) { _conf = conf; setLog(conf.getLog(OpenJPAConfiguration.LOG_METADATA)); setMode(MetaDataModes.MODE_META | MetaDataModes.MODE_MAPPING | MetaDataModes.MODE_QUERY); }
/** * Constructor. Supply configuration. */ public XMLPersistenceMetaDataSerializer(OpenJPAConfiguration conf) { _conf = conf; setLog(conf.getLog(OpenJPAConfiguration.LOG_METADATA)); setMode(MODE_META | MODE_MAPPING | MODE_QUERY); }
public void setConfiguration(Configuration conf) { _conf = (OpenJPAConfiguration) conf; _log = _conf.getLog(OpenJPAConfiguration.LOG_METADATA); _filterRegisteredClasses = _conf.getCompatibilityInstance().getFilterPCRegistryClasses(); }
void trace(ClassMetaData meta, Localizer.Message message) { Log log = meta.getRepository().getConfiguration() .getLog(OpenJPAConfiguration.LOG_RUNTIME); log.trace(message.toString()); }
void trace(ClassMetaData meta, Localizer.Message message) { Log log = meta.getRepository().getConfiguration() .getLog(OpenJPAConfiguration.LOG_RUNTIME); log.trace(message.toString()); }
void trace(ClassMetaData meta, Localizer.Message message) { Log log = meta.getRepository().getConfiguration() .getLog(OpenJPAConfiguration.LOG_RUNTIME); log.trace(message.toString()); }
public void close() { Log log = _factory.getConfiguration().getLog(OpenJPAConfiguration.LOG_RUNTIME); if (log.isTraceEnabled()) { log.trace(this + ".close() invoked."); } _factory.close(); }
void warn(ClassMetaData meta, Localizer.Message message) { Log log = meta.getRepository().getConfiguration() .getLog(OpenJPAConfiguration.LOG_RUNTIME); log.warn(message.toString()); }
void error(ClassMetaData meta, Localizer.Message message) { Log log = meta.getRepository().getConfiguration() .getLog(OpenJPAConfiguration.LOG_RUNTIME); log.error(message.toString()); throw new UserException(message.toString()); }
void error(ClassMetaData meta, Localizer.Message message) { Log log = meta.getRepository().getConfiguration() .getLog(OpenJPAConfiguration.LOG_RUNTIME); log.error(message.toString()); throw new UserException(message.toString()); }