Java 类javax.persistence.spi.ProviderUtil 实例源码

项目:cibet    文件:Provider.java   
@Override
public ProviderUtil getProviderUtil() {
   if (persistenceProvider == null) {
      return new EmptyProviderUtil();
   }
   return persistenceProvider.getProviderUtil();
}
项目:javamelody    文件:JpaPersistence.java   
/** {@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();
}
项目:javamelody    文件:TestJpa.java   
/**
 * 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);
}
项目:testee.fi    文件:PlaygroundPersistenceProvider.java   
@Override
public ProviderUtil getProviderUtil() {
    throw new UnsupportedOperationException("Not implemented");
}
项目:testee.fi    文件:JpaInjectionServicesTest.java   
@Override
public ProviderUtil getProviderUtil() {
    return null;
}
项目:aries-jpa    文件:EclipseLinkPersistenceProvider.java   
@Override
public ProviderUtil getProviderUtil() {
    return delegate.getProviderUtil();
}
项目:aries-jpa    文件:EMFBuilderServiceResolver.java   
@Override
public ProviderUtil getProviderUtil() {
    return this;
}
项目:aries-jpa    文件:EMFBuilderServiceResolver.java   
@Override
public ProviderUtil getProviderUtil() {
    return this;
}
项目:spring4-understanding    文件:LocalContainerEntityManagerFactoryBeanTests.java   
@Override
public ProviderUtil getProviderUtil() {
    throw new UnsupportedOperationException();
}
项目:spring4-understanding    文件:LocalEntityManagerFactoryBeanTests.java   
@Override
public ProviderUtil getProviderUtil() {
    throw new UnsupportedOperationException();
}
项目:cibet    文件:JdbcBridgeProvider.java   
@Override
public ProviderUtil getProviderUtil() {
   return new EmptyProviderUtil();
}
项目:cibet    文件:JpaTest.java   
@Test
public void getProviderUtil() {
   Provider p = new Provider();
   ProviderUtil pu = p.getProviderUtil();
   Assert.assertEquals(LoadState.UNKNOWN, pu.isLoaded(null));
}
项目:cibet    文件:CibetTestPersistenceProvider.java   
@Override
public ProviderUtil getProviderUtil() {
   return null;
}
项目:jpasecurity    文件:SecurePersistenceProvider.java   
@Override
public ProviderUtil getProviderUtil() {
    return EmptyProviderUtil.INSTANCE;
}
项目:jpasecurity    文件:MockitoPersistenceProvider.java   
public ProviderUtil getProviderUtil() {
    return null;
}
项目:xap-openspaces    文件:OpenSpacesPersistenceProvider.java   
public ProviderUtil getProviderUtil() {
    return _persistenceProvider.getProviderUtil();
}
项目:osgi.ee    文件:PersistenceProviderImpl.java   
@Override
public ProviderUtil getProviderUtil() {
    return provider.getProviderUtil();
}
项目:bundles    文件:DatanucleusWrapper.java   
@Override
public ProviderUtil getProviderUtil() {
    return pp.getProviderUtil();
}
项目:bundles    文件:EclipselinkBridge.java   
@Override
public ProviderUtil getProviderUtil() {
    return pp.getProviderUtil();
}
项目:bundles    文件:HibernateBridge.java   
@Override
public ProviderUtil getProviderUtil() {
    return pp.getProviderUtil();
}
项目:tomee    文件:JtaEntityManagerTest.java   
@Override
public ProviderUtil getProviderUtil() {
    return null;
}
项目:osgi-hibernate    文件:HibernatePersistenceProvider.java   
@Override
public ProviderUtil getProviderUtil() {
    return delegate.getProviderUtil();
}
项目:hightide    文件:HightidePersistenceProvider.java   
@Override
public ProviderUtil getProviderUtil() {
    return delegate.getProviderUtil();
}
项目:deltaspike    文件:TestPersistenceProviderResolver.java   
@Override
public ProviderUtil getProviderUtil()
{
    return null;  
}