/** * If the <code>Mapping</code> property is set, we check these defaults * before checking metadata factory defaults. */ public void setMappedMetaDataFactoryDefault(String metaAlias, String mappingAlias) { _mappedMetaFactoryDefaults = setAlias(metaAlias, mappingAlias, _mappedMetaFactoryDefaults); }
/** * Default setting for a given <code>MetaDataFactory</code> alias setting. * If a <code>MappingFactory</code> value is not supplied, we check these * defaults against the <code>MetaDataFactory</code> setting. If the * <code>MetaDataFactory</code> does not have a default, we assume it * handles both metadata and mapping factory. */ public void setMetaDataFactoryDefault(String metaAlias, String mappingAlias) { _metaFactoryDefaults = setAlias(metaAlias, mappingAlias, _metaFactoryDefaults); }
/** * Default setting for a given <code>MetaDataFactory</code> alias setting. * If a <code>MappingFactory</code> value is not supplied, we check these * defaults against the <code>MetaDataFactory</code> setting. If the * <code>MetaDataFactory</code> does not have a default, we assume it * handles both metadata and mapping factory. */ public void setMetaDataFactoryDefault(String metaAlias, String mappingAlias) { _metaFactoryDefaults = setAlias(metaAlias, mappingAlias, _metaFactoryDefaults); }
/** * If the <code>Mapping</code> property is set, we check these defaults * before checking metadata factory defaults. */ public void setMappedMetaDataFactoryDefault(String metaAlias, String mappingAlias) { _mappedMetaFactoryDefaults = setAlias(metaAlias, mappingAlias, _mappedMetaFactoryDefaults); }
/** * If the <code>Mapping</code> property is set, we check these defaults * before checking metadata factory defaults. */ public void setMappedMetaDataFactoryDefault(String metaAlias, String mappingAlias) { _mappedMetaFactoryDefaults = setAlias(metaAlias, mappingAlias, _mappedMetaFactoryDefaults); }
/** * If the <code>Mapping</code> property is set, we check these defaults * before checking metadata factory defaults. */ public void setMappedMetaDataFactoryDefault(String metaAlias, String mappingAlias) { _mappedMetaFactoryDefaults = setAlias(metaAlias, mappingAlias, _mappedMetaFactoryDefaults); }
/** * Default setting for a given <code>MetaDataFactory</code> alias setting. * If a <code>MappingFactory</code> value is not supplied, we check these * defaults against the <code>MetaDataFactory</code> setting. If the * <code>MetaDataFactory</code> does not have a default, we assume it * handles both metadata and mapping factory. */ public void setMetaDataFactoryDefault(String metaAlias, String mappingAlias) { _metaFactoryDefaults = setAlias(metaAlias, mappingAlias, _metaFactoryDefaults); }
/** * Default setting for a given <code>MetaDataFactory</code> alias setting. * If a <code>MappingFactory</code> value is not supplied, we check these * defaults against the <code>MetaDataFactory</code> setting. If the * <code>MetaDataFactory</code> does not have a default, we assume it * handles both metadata and mapping factory. */ public void setMetaDataFactoryDefault(String metaAlias, String mappingAlias) { _metaFactoryDefaults = setAlias(metaAlias, mappingAlias, _metaFactoryDefaults); }
/** * Default setting for a given <code>MetaDataFactory</code> alias setting. * If a <code>MappingFactory</code> value is not supplied, we check these * defaults against the <code>MetaDataFactory</code> setting. If the * <code>MetaDataFactory</code> does not have a default, we assume it * handles both metadata and mapping factory. */ public void setMetaDataFactoryDefault(String metaAlias, String mappingAlias) { _metaFactoryDefaults = setAlias(metaAlias, mappingAlias, _metaFactoryDefaults); }
/** * If the <code>Mapping</code> property is set, we check these defaults * before checking metadata factory defaults. */ public void setMappedMetaDataFactoryDefault(String metaAlias, String mappingAlias) { _mappedMetaFactoryDefaults = setAlias(metaAlias, mappingAlias, _mappedMetaFactoryDefaults); }
@Override public boolean beforeConfigurationLoad(Configuration c) { if (c instanceof OpenJPAConfiguration) { ((OpenJPAConfiguration) c).getStoreFacadeTypeRegistry(). registerImplementation(FetchPlan.class, JDBCStoreManager.class, JDBCFetchPlanImpl.class); } if (!(c instanceof JDBCConfigurationImpl)) return false; JDBCConfigurationImpl conf = (JDBCConfigurationImpl) c; String jpa = PersistenceProductDerivation.SPEC_JPA; String ejb = PersistenceProductDerivation.ALIAS_EJB; conf.metaFactoryPlugin.setAlias(ejb, PersistenceMappingFactory.class.getName()); conf.metaFactoryPlugin.setAlias(jpa, PersistenceMappingFactory.class.getName()); conf.mappingFactoryPlugin.setAlias(ejb, PersistenceMappingFactory.class.getName()); conf.mappingFactoryPlugin.setAlias(jpa, PersistenceMappingFactory.class.getName()); conf.mappingDefaultsPlugin.setAlias(ejb, PersistenceMappingDefaults.class.getName()); conf.mappingDefaultsPlugin.setAlias(jpa, PersistenceMappingDefaults.class.getName()); return true; }
@Override public boolean beforeConfigurationLoad(Configuration c) { if (c instanceof OpenJPAConfiguration) { ((OpenJPAConfiguration) c).getStoreFacadeTypeRegistry(). registerImplementation(FetchPlan.class, JDBCStoreManager.class, JDBCFetchPlanImpl.class); } if (!(c instanceof JDBCConfigurationImpl)) return false; JDBCConfigurationImpl conf = (JDBCConfigurationImpl) c; Specification jpa = PersistenceProductDerivation.SPEC_JPA; Specification ejb = PersistenceProductDerivation.ALIAS_EJB; conf.metaFactoryPlugin.setAlias(ejb.getName(), PersistenceMappingFactory.class.getName()); conf.metaFactoryPlugin.setAlias(jpa.getName(), PersistenceMappingFactory.class.getName()); conf.mappingFactoryPlugin.setAlias(ejb.getName(), PersistenceMappingFactory.class.getName()); conf.mappingFactoryPlugin.setAlias(jpa.getName(), PersistenceMappingFactory.class.getName()); conf.mappingDefaultsPlugin.setAlias(ejb.getName(), PersistenceMappingDefaults.class.getName()); conf.mappingDefaultsPlugin.setAlias(jpa.getName(), PersistenceMappingDefaults.class.getName()); conf.lockManagerPlugin.setAlias("mixed", "org.apache.openjpa.jdbc.kernel.MixedLockManager"); return true; }
@Override public boolean beforeConfigurationLoad(Configuration c) { if (c instanceof OpenJPAConfiguration) { ((OpenJPAConfiguration) c).getStoreFacadeTypeRegistry(). registerImplementation(FetchPlan.class, JDBCStoreManager.class, JDBCFetchPlanImpl.class); } if (!(c instanceof JDBCConfigurationImpl)) return false; JDBCConfigurationImpl conf = (JDBCConfigurationImpl) c; Specification jpa = PersistenceProductDerivation.SPEC_JPA; Specification ejb = PersistenceProductDerivation.ALIAS_EJB; conf.metaFactoryPlugin.setAlias(ejb.getName(), PersistenceMappingFactory.class.getName()); conf.metaFactoryPlugin.setAlias(jpa.getName(), PersistenceMappingFactory.class.getName()); conf.mappingFactoryPlugin.setAlias(ejb.getName(), PersistenceMappingFactory.class.getName()); conf.mappingFactoryPlugin.setAlias(jpa.getName(), PersistenceMappingFactory.class.getName()); conf.mappingDefaultsPlugin.setAlias(ejb.getName(), PersistenceMappingDefaults.class.getName()); conf.mappingDefaultsPlugin.setAlias(jpa.getName(), PersistenceMappingDefaults.class.getName()); conf.lockManagerPlugin.setAlias("mixed", "org.apache.openjpa.jdbc.kernel.MixedLockManager"); return true; }
@Override public boolean beforeConfigurationLoad(Configuration c) { if (c instanceof OpenJPAConfiguration) { ((OpenJPAConfiguration) c).getStoreFacadeTypeRegistry(). registerImplementation(FetchPlan.class, JDBCStoreManager.class, JDBCFetchPlanImpl.class); } if (!(c instanceof JDBCConfigurationImpl)) return false; JDBCConfigurationImpl conf = (JDBCConfigurationImpl) c; Specification jpa = PersistenceProductDerivation.SPEC_JPA; Specification ejb = PersistenceProductDerivation.ALIAS_EJB; conf.metaFactoryPlugin.setAlias(ejb.getName(), PersistenceMappingFactory.class.getName()); conf.metaFactoryPlugin.setAlias(jpa.getName(), PersistenceMappingFactory.class.getName()); conf.mappingFactoryPlugin.setAlias(ejb.getName(), PersistenceMappingFactory.class.getName()); conf.mappingFactoryPlugin.setAlias(jpa.getName(), PersistenceMappingFactory.class.getName()); conf.mappingDefaultsPlugin.setAlias(ejb.getName(), PersistenceMappingDefaults.class.getName()); conf.mappingDefaultsPlugin.setAlias(jpa.getName(), PersistenceMappingDefaults.class.getName()); conf.lockManagerPlugin.setAlias("mixed", "org.apache.openjpa.jdbc.kernel.MixedLockManager"); return true; }