public boolean isLoaded(Object entity, String attributeName) { LoadState state = PersistenceUtilHelper.isLoadedWithoutReference( entity, attributeName, cache ); if (state == LoadState.LOADED) { return true; } else if (state == LoadState.NOT_LOADED ) { return false; } else { return PersistenceUtilHelper.isLoadedWithReference( entity, attributeName, cache ) != LoadState.NOT_LOADED; } }
@Override public LoadState isLoadedWithoutReference(Object entity, String attributeName) { return LoadState.UNKNOWN; }
@Override public LoadState isLoadedWithReference(Object entity, String attributeName) { return LoadState.UNKNOWN; }
@Override public LoadState isLoaded(Object entity) { return LoadState.UNKNOWN; }
public boolean isLoaded(Object entity) { return PersistenceUtilHelper.isLoaded( entity ) != LoadState.NOT_LOADED; }
public LoadState isLoaded(Object entity) { return LoadState.UNKNOWN; }
public LoadState isLoadedWithReference(Object entity, String property) { return LoadState.UNKNOWN; }
public LoadState isLoadedWithoutReference(Object entity, String property) { return LoadState.UNKNOWN; }
@Test public void getProviderUtil() { Provider p = new Provider(); ProviderUtil pu = p.getProviderUtil(); Assert.assertEquals(LoadState.UNKNOWN, pu.isLoaded(null)); }