本文整理汇总了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();
}
示例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();
}
示例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);
}
示例4: getProviderUtil
import javax.persistence.spi.ProviderUtil; //导入依赖的package包/类
@Override
public ProviderUtil getProviderUtil() {
throw new UnsupportedOperationException("Not implemented");
}
示例5: getProviderUtil
import javax.persistence.spi.ProviderUtil; //导入依赖的package包/类
@Override
public ProviderUtil getProviderUtil() {
return null;
}
示例6: getProviderUtil
import javax.persistence.spi.ProviderUtil; //导入依赖的package包/类
@Override
public ProviderUtil getProviderUtil() {
return delegate.getProviderUtil();
}
示例7: getProviderUtil
import javax.persistence.spi.ProviderUtil; //导入依赖的package包/类
@Override
public ProviderUtil getProviderUtil() {
return this;
}
示例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();
}
示例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));
}
示例11: getProviderUtil
import javax.persistence.spi.ProviderUtil; //导入依赖的package包/类
@Override
public ProviderUtil getProviderUtil() {
return null;
}
示例12: getProviderUtil
import javax.persistence.spi.ProviderUtil; //导入依赖的package包/类
@Override
public ProviderUtil getProviderUtil() {
return EmptyProviderUtil.INSTANCE;
}
示例13: getProviderUtil
import javax.persistence.spi.ProviderUtil; //导入依赖的package包/类
public ProviderUtil getProviderUtil() {
return null;
}
示例14: getProviderUtil
import javax.persistence.spi.ProviderUtil; //导入依赖的package包/类
public ProviderUtil getProviderUtil() {
return _persistenceProvider.getProviderUtil();
}
示例15: getProviderUtil
import javax.persistence.spi.ProviderUtil; //导入依赖的package包/类
@Override
public ProviderUtil getProviderUtil() {
return provider.getProviderUtil();
}