/** * Return the implementation for the given facade and store. * * @param facadeType the facade interface * @param storeType the store's * {@link org.apache.openjpa.kernel.StoreManager} type, or null for generic * @param implType the registered implementor */ public Class getImplementation(Class facadeType, Class storeType) { // traverse store type hierarchy to store manager to find most specific // store avaialble Class impl; for (; storeType != null && storeType != StoreManager.class; storeType = storeType.getSuperclass()) { impl = (Class) _impls.get(new Key(facadeType, storeType)); if (impl != null) return impl; } return (Class) _impls.get(facadeType); }
/** * Return the implementation for the given facade and store. * * @param facadeType the facade interface * @param storeType the store's * {@link org.apache.openjpa.kernel.StoreManager} type, or null for generic * @param implType the registered implementor */ public Class getImplementation(Class facadeType, Class storeType) { // traverse store type hierarchy to store manager to find most specific // store avaialble Class impl; for (; storeType != null && storeType != StoreManager.class; storeType = storeType.getSuperclass()) { impl = (Class) _impls.get(new Key(facadeType, storeType)); if (impl != null) return impl; } return (Class) _impls.get(facadeType); }
/** * Return the implementation for the given facade and store. * * @param facadeType the facade interface * @param storeType the store's * {@link org.apache.openjpa.kernel.StoreManager} type, or null for generic * @param implType the registered implementor */ public Class getImplementation(Class facadeType, Class storeType) { // traverse store type hierarchy to store manager to find most specific // store avaialble Class impl; for (; storeType != null && storeType != StoreManager.class; storeType = storeType.getSuperclass()) { impl = (Class) _impls.get(new Key(facadeType, storeType)); if (impl != null) return impl; } return (Class) _impls.get(facadeType); }
/** * Return the implementation for the given facade and store. * * @param facadeType the facade interface * @param storeType the store's * {@link org.apache.openjpa.kernel.StoreManager} type, or null for generic * @param implType the registered implementor */ public Class getImplementation(Class facadeType, Class storeType) { // traverse store type hierarchy to store manager to find most specific // store avaialble Class impl; for (; storeType != null && storeType != StoreManager.class; storeType = storeType.getSuperclass()) { impl = (Class) _impls.get(new Key(facadeType, storeType)); if (impl != null) return impl; } return (Class) _impls.get(facadeType); }
/** * Return the implementation for the given facade and store. * * @param facadeType the facade interface * @param storeType the store's * {@link org.apache.openjpa.kernel.StoreManager} type, or null for generic * @param implType the registered implementor */ public Class getImplementation(Class facadeType, Class storeType) { // traverse store type hierarchy to store manager to find most specific // store avaialble Class impl; for (; storeType != null && storeType != StoreManager.class; storeType = storeType.getSuperclass()) { impl = (Class) _impls.get(new Key(facadeType, storeType)); if (impl != null) return impl; } return (Class) _impls.get(facadeType); }
/** * Register a facade implementation. * * @param facadeType the facade interface * @param storeType the store's * {@link org.apache.openjpa.kernel.StoreManager} type, or null for generic * @param implType the class implementing the facade */ public void registerImplementation(Class facadeType, Class storeType, Class implType) { Object key = (storeType == null) ? (Object) facadeType : new Key(facadeType, storeType); _impls.put(key, implType); }
/** * Register a facade implementation. * * @param facadeType the facade interface * @param storeType the store's * {@link org.apache.openjpa.kernel.StoreManager} type, or null for generic * @param implType the class implementing the facade */ public void registerImplementation(Class facadeType, Class storeType, Class implType) { Object key = (storeType == null) ? (Object) facadeType : new Key(facadeType, storeType); _impls.put(key, implType); }
/** * Register a facade implementation. * * @param facadeType the facade interface * @param storeType the store's * {@link org.apache.openjpa.kernel.StoreManager} type, or null for generic * @param implType the class implementing the facade */ public void registerImplementation(Class facadeType, Class storeType, Class implType) { Object key = (storeType == null) ? (Object) facadeType : new Key(facadeType, storeType); _impls.put(key, implType); }
/** * Register a facade implementation. * * @param facadeType the facade interface * @param storeType the store's * {@link org.apache.openjpa.kernel.StoreManager} type, or null for generic * @param implType the class implementing the facade */ public void registerImplementation(Class facadeType, Class storeType, Class implType) { Object key = (storeType == null) ? (Object) facadeType : new Key(facadeType, storeType); _impls.put(key, implType); }
/** * Register a facade implementation. * * @param facadeType the facade interface * @param storeType the store's * {@link org.apache.openjpa.kernel.StoreManager} type, or null for generic * @param implType the class implementing the facade */ public void registerImplementation(Class facadeType, Class storeType, Class implType) { Object key = (storeType == null) ? (Object) facadeType : new Key(facadeType, storeType); _impls.put(key, implType); }