@Override public ProviderUtil getProviderUtil() { if (persistenceProvider == null) { return new EmptyProviderUtil(); } return persistenceProvider.getProviderUtil(); }
/** {@inheritDoc} */ @Override public ProviderUtil getProviderUtil() { // we suppose it is loaded later than createXXXEMF so we'll get the delegate if (delegate == null) { // delegate not yet loaded and perhaps will never be: // this method may be called, even without jpa impl to delegate, // for example, by hibernate validator via jpa api but without jpa impl // (issue 396, if loadOrGuessDelegate(null) was called here), // so return a dumb ProviderUtil in this case or if delegate not yet loaded return DUMMY_PROVIDER_UTIL; } return delegate.getProviderUtil(); }
/** * Test de JpaPersistence. */ @Test public void testJpaPersistence() { final PersistenceProvider jpaPersistence = getJpaPersistence(); final ProviderUtil providerUtil = jpaPersistence.getProviderUtil(); assertNotNull("getProviderUtil", providerUtil); // providerUtil == JpaPersistence.DUMMY_PROVIDER_UTIL providerUtil.isLoadedWithoutReference(null, null); providerUtil.isLoadedWithReference(null, null); providerUtil.isLoaded(null); }
@Override public ProviderUtil getProviderUtil() { throw new UnsupportedOperationException("Not implemented"); }
@Override public ProviderUtil getProviderUtil() { return null; }
@Override public ProviderUtil getProviderUtil() { return delegate.getProviderUtil(); }
@Override public ProviderUtil getProviderUtil() { return this; }
@Override public ProviderUtil getProviderUtil() { throw new UnsupportedOperationException(); }
@Override public ProviderUtil getProviderUtil() { return new EmptyProviderUtil(); }
@Test public void getProviderUtil() { Provider p = new Provider(); ProviderUtil pu = p.getProviderUtil(); Assert.assertEquals(LoadState.UNKNOWN, pu.isLoaded(null)); }
@Override public ProviderUtil getProviderUtil() { return EmptyProviderUtil.INSTANCE; }
public ProviderUtil getProviderUtil() { return null; }
public ProviderUtil getProviderUtil() { return _persistenceProvider.getProviderUtil(); }
@Override public ProviderUtil getProviderUtil() { return provider.getProviderUtil(); }
@Override public ProviderUtil getProviderUtil() { return pp.getProviderUtil(); }