/** * If the reference object is mapped thru one to one mapping and the object derives its primary key value * from this relationship then remote value holder has a primary key row for. */ protected boolean canDoCacheCheck() { if ((getMapping() == null) || (getQuery() == null)) { return false; } return (getTargetObjectPrimaryKeys() != null) && (!getTargetObjectPrimaryKeys().isEmpty()) && getMapping().isOneToOneMapping() && (!getQuery().shouldRefreshIdentityMapResult()) && (!getQuery().shouldRefreshRemoteIdentityMapResult()) && (getQuery().shouldMaintainCache()); }
/** * If the reference object is mapped thru one to one mapping and the object derives its primary key value * from this relationship then remote value holder has a primary key row for. */ protected boolean canDoCacheCheck() { if ((getMapping() == null) || (getQuery() == null)) { return false; } return (getTargetObjectPrimaryKeys() != null) && getMapping().isOneToOneMapping() && (!getQuery().shouldRefreshIdentityMapResult()) && (!getQuery().shouldRefreshRemoteIdentityMapResult()) && (getQuery().shouldMaintainCache()); }
/** * If the reference object is mapped thru one to one mapping and the object derives its primary key value * from this relationship then remote value holder has a primary key row for. */ protected boolean canDoCacheCheck() { if ((getMapping() == null) || (getQuery() == null)) { return false; } return (getTargetObjectPrimaryKeys() != null) && getMapping().isOneToOneMapping() && (!getQuery().shouldRefreshIdentityMapResult()) && (!getQuery().shouldRefreshRemoteIdentityMapResult()) && (getQuery().shouldMaintainCache()); }
if ((query == null) || (query.shouldRefreshRemoteIdentityMapResult()) || getDescriptor(clientSideDomainObject).shouldAlwaysRefreshCacheOnRemote()) { MergeManager mergeManager = new MergeManager(this); mergeManager.refreshRemoteObject();
if ((query == null) || (query.shouldRefreshRemoteIdentityMapResult()) || getDescriptor(clientSideDomainObject).shouldAlwaysRefreshCacheOnRemote()) { MergeManager mergeManager = new MergeManager(this); mergeManager.refreshRemoteObject();
if ((query == null) || (query.shouldRefreshRemoteIdentityMapResult()) || getDescriptor(clientSideDomainObject).shouldAlwaysRefreshCacheOnRemote()) { MergeManager mergeManager = new MergeManager(this); mergeManager.refreshRemoteObject();
if (readQuery.shouldRefreshRemoteIdentityMapResult()) { method.addLine(queryIdentifier + ".setShouldRefreshRemoteIdentityMapResult(" + String.valueOf(readQuery.shouldRefreshRemoteIdentityMapResult()) + ");");
if (readQuery.shouldRefreshRemoteIdentityMapResult()) { method.addLine(queryIdentifier + ".setShouldRefreshRemoteIdentityMapResult(" + String.valueOf(readQuery.shouldRefreshRemoteIdentityMapResult()) + ");");
if (readQuery.shouldRefreshRemoteIdentityMapResult()) { method.addLine(queryIdentifier + ".setShouldRefreshRemoteIdentityMapResult(" + String.valueOf(readQuery.shouldRefreshRemoteIdentityMapResult()) + ");");