当前位置: 首页>>代码示例>>Java>>正文


Java ProviderUtil类代码示例

本文整理汇总了Java中javax.persistence.spi.ProviderUtil的典型用法代码示例。如果您正苦于以下问题:Java ProviderUtil类的具体用法?Java ProviderUtil怎么用?Java ProviderUtil使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ProviderUtil类属于javax.persistence.spi包,在下文中一共展示了ProviderUtil类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getProviderUtil

import javax.persistence.spi.ProviderUtil; //导入依赖的package包/类
@Override
public ProviderUtil getProviderUtil() {
   if (persistenceProvider == null) {
      return new EmptyProviderUtil();
   }
   return persistenceProvider.getProviderUtil();
}
 
开发者ID:Wolfgang-Winter,项目名称:cibet,代码行数:8,代码来源:Provider.java

示例2: getProviderUtil

import javax.persistence.spi.ProviderUtil; //导入依赖的package包/类
/** {@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();
}
 
开发者ID:javamelody,项目名称:javamelody,代码行数:14,代码来源:JpaPersistence.java

示例3: testJpaPersistence

import javax.persistence.spi.ProviderUtil; //导入依赖的package包/类
/**
 * 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);
}
 
开发者ID:javamelody,项目名称:javamelody,代码行数:15,代码来源:TestJpa.java

示例4: getProviderUtil

import javax.persistence.spi.ProviderUtil; //导入依赖的package包/类
@Override
public ProviderUtil getProviderUtil() {
    throw new UnsupportedOperationException("Not implemented");
}
 
开发者ID:dajudge,项目名称:testee.fi,代码行数:5,代码来源:PlaygroundPersistenceProvider.java

示例5: getProviderUtil

import javax.persistence.spi.ProviderUtil; //导入依赖的package包/类
@Override
public ProviderUtil getProviderUtil() {
    return null;
}
 
开发者ID:dajudge,项目名称:testee.fi,代码行数:5,代码来源:JpaInjectionServicesTest.java

示例6: getProviderUtil

import javax.persistence.spi.ProviderUtil; //导入依赖的package包/类
@Override
public ProviderUtil getProviderUtil() {
    return delegate.getProviderUtil();
}
 
开发者ID:apache,项目名称:aries-jpa,代码行数:5,代码来源:EclipseLinkPersistenceProvider.java

示例7: getProviderUtil

import javax.persistence.spi.ProviderUtil; //导入依赖的package包/类
@Override
public ProviderUtil getProviderUtil() {
	return this;
}
 
开发者ID:apache,项目名称:aries-jpa,代码行数:5,代码来源:EMFBuilderServiceResolver.java

示例8: getProviderUtil

import javax.persistence.spi.ProviderUtil; //导入依赖的package包/类
@Override
public ProviderUtil getProviderUtil() {
	throw new UnsupportedOperationException();
}
 
开发者ID:langtianya,项目名称:spring4-understanding,代码行数:5,代码来源:LocalContainerEntityManagerFactoryBeanTests.java

示例9: getProviderUtil

import javax.persistence.spi.ProviderUtil; //导入依赖的package包/类
@Override
public ProviderUtil getProviderUtil() {
   return new EmptyProviderUtil();
}
 
开发者ID:Wolfgang-Winter,项目名称:cibet,代码行数:5,代码来源:JdbcBridgeProvider.java

示例10: getProviderUtil

import javax.persistence.spi.ProviderUtil; //导入依赖的package包/类
@Test
public void getProviderUtil() {
   Provider p = new Provider();
   ProviderUtil pu = p.getProviderUtil();
   Assert.assertEquals(LoadState.UNKNOWN, pu.isLoaded(null));
}
 
开发者ID:Wolfgang-Winter,项目名称:cibet,代码行数:7,代码来源:JpaTest.java

示例11: getProviderUtil

import javax.persistence.spi.ProviderUtil; //导入依赖的package包/类
@Override
public ProviderUtil getProviderUtil() {
   return null;
}
 
开发者ID:Wolfgang-Winter,项目名称:cibet,代码行数:5,代码来源:CibetTestPersistenceProvider.java

示例12: getProviderUtil

import javax.persistence.spi.ProviderUtil; //导入依赖的package包/类
@Override
public ProviderUtil getProviderUtil() {
    return EmptyProviderUtil.INSTANCE;
}
 
开发者ID:ArneLimburg,项目名称:jpasecurity,代码行数:5,代码来源:SecurePersistenceProvider.java

示例13: getProviderUtil

import javax.persistence.spi.ProviderUtil; //导入依赖的package包/类
public ProviderUtil getProviderUtil() {
    return null;
}
 
开发者ID:ArneLimburg,项目名称:jpasecurity,代码行数:4,代码来源:MockitoPersistenceProvider.java

示例14: getProviderUtil

import javax.persistence.spi.ProviderUtil; //导入依赖的package包/类
public ProviderUtil getProviderUtil() {
    return _persistenceProvider.getProviderUtil();
}
 
开发者ID:Gigaspaces,项目名称:xap-openspaces,代码行数:4,代码来源:OpenSpacesPersistenceProvider.java

示例15: getProviderUtil

import javax.persistence.spi.ProviderUtil; //导入依赖的package包/类
@Override
public ProviderUtil getProviderUtil() {
    return provider.getProviderUtil();
}
 
开发者ID:arievanwi,项目名称:osgi.ee,代码行数:5,代码来源:PersistenceProviderImpl.java


注:本文中的javax.persistence.spi.ProviderUtil类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。