javax.persistence.spi.ProviderUtil Java Examples

The following examples show how to use javax.persistence.spi.ProviderUtil. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JpaPersistence.java    From javamelody with Apache License 2.0 5 votes vote down vote up
/** {@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();
}
 
Example #2
Source File: TestJpa.java    From javamelody with Apache License 2.0 5 votes vote down vote up
/**
 * 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);
}
 
Example #3
Source File: LocalContainerEntityManagerFactoryBeanTests.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Override
public ProviderUtil getProviderUtil() {
	throw new UnsupportedOperationException();
}
 
Example #4
Source File: LocalEntityManagerFactoryBeanTests.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Override
public ProviderUtil getProviderUtil() {
	throw new UnsupportedOperationException();
}
 
Example #5
Source File: ReactivePersistenceProvider.java    From hibernate-reactive with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public ProviderUtil getProviderUtil() {
	return providerUtil;
}
 
Example #6
Source File: LocalContainerEntityManagerFactoryBeanTests.java    From java-technology-stack with MIT License 4 votes vote down vote up
@Override
public ProviderUtil getProviderUtil() {
	throw new UnsupportedOperationException();
}
 
Example #7
Source File: LocalEntityManagerFactoryBeanTests.java    From java-technology-stack with MIT License 4 votes vote down vote up
@Override
public ProviderUtil getProviderUtil() {
	throw new UnsupportedOperationException();
}
 
Example #8
Source File: FastBootHibernatePersistenceProvider.java    From quarkus with Apache License 2.0 4 votes vote down vote up
@Override
public ProviderUtil getProviderUtil() {
    return providerUtil;
}
 
Example #9
Source File: FastBootHibernateReactivePersistenceProvider.java    From quarkus with Apache License 2.0 4 votes vote down vote up
@Override
public ProviderUtil getProviderUtil() {
    return delegate.getProviderUtil();
}
 
Example #10
Source File: HibernatePersistenceProvider.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public ProviderUtil getProviderUtil() {
	return providerUtil;
}
 
Example #11
Source File: LocalContainerEntityManagerFactoryBeanTests.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
@Override
public ProviderUtil getProviderUtil() {
	throw new UnsupportedOperationException();
}
 
Example #12
Source File: LocalEntityManagerFactoryBeanTests.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
@Override
public ProviderUtil getProviderUtil() {
	throw new UnsupportedOperationException();
}
 
Example #13
Source File: JtaEntityManagerTest.java    From tomee with Apache License 2.0 4 votes vote down vote up
@Override
public ProviderUtil getProviderUtil() {
    return null;
}
 
Example #14
Source File: TestPersistenceProviderResolver.java    From deltaspike with Apache License 2.0 4 votes vote down vote up
@Override
public ProviderUtil getProviderUtil()
{
    return null;  
}