/** * PUBLIC: * This method returns <CODE>true</CODE> if the <CODE>ClassDescriptor</CODE> is configured to always remotely * refresh the cache if data is received from the database by any query in a {@link org.eclipse.persistence.sessions.remote.RemoteSession}. * Otherwise, it returns <CODE>false</CODE>. * * @see #setShouldAlwaysRefreshCacheOnRemote */ public boolean shouldAlwaysRefreshCacheOnRemote() { return getCachePolicy().shouldAlwaysRefreshCacheOnRemote(); }
/** * PUBLIC: * This method returns <CODE>true</CODE> if the <CODE>ClassDescriptor</CODE> is configured to always remotely * refresh the cache if data is received from the database by any query in a {@link org.eclipse.persistence.sessions.remote.RemoteSession}. * Otherwise, it returns <CODE>false</CODE>. * * @see #setShouldAlwaysRefreshCacheOnRemote */ public boolean shouldAlwaysRefreshCacheOnRemote() { return getCachePolicy().shouldAlwaysRefreshCacheOnRemote(); }
method.addLine("descriptor.alwaysRefreshCache();"); if (descriptor.getCachePolicy().shouldAlwaysRefreshCacheOnRemote()) { method.addLine("descriptor.alwaysRefreshCacheOnRemote();");
method.addLine("descriptor.alwaysRefreshCache();"); if (descriptor.getCachePolicy().shouldAlwaysRefreshCacheOnRemote()) { method.addLine("descriptor.alwaysRefreshCacheOnRemote();");