public Cache instantiateFullCache(MithraConfigurationManager.Config config) { Cache result; if (config.isParticipatingInTx()) { result = new FullNonDatedTransactionalCache(PersonFinder.getPrimaryKeyAttributes(), this, PersonFinder.getImmutableAttributes()); } else { result = new FullNonDatedCache(PersonFinder.getPrimaryKeyAttributes(), this, PersonFinder.getImmutableAttributes(), new NonTransactionalUnderlyingObjectGetter()); } initPortal(result, config); return result; }
public Cache instantiateFullCache(MithraConfigurationManager.Config config) { Cache result; if (config.isParticipatingInTx()) { result = new FullNonDatedTransactionalCache(PersonFinder.getPrimaryKeyAttributes(), this, PersonFinder.getImmutableAttributes()); } else { result = new FullNonDatedCache(PersonFinder.getPrimaryKeyAttributes(), this, PersonFinder.getImmutableAttributes(), new NonTransactionalUnderlyingObjectGetter()); } initPortal(result, config); return result; }
public Cache instantiatePartialCache(MithraConfigurationManager.Config config) { Cache result; if (config.isParticipatingInTx()) { result = new PartialNonDatedTransactionalCache(PersonFinder.getPrimaryKeyAttributes(), this, PersonFinder.getImmutableAttributes(), config.getCacheTimeToLive(), config.getRelationshipCacheTimeToLive()); } else { result = new PartialNonDatedCache(PersonFinder.getPrimaryKeyAttributes(), this, PersonFinder.getImmutableAttributes(), new NonTransactionalUnderlyingObjectGetter(), config.getCacheTimeToLive(), config.getRelationshipCacheTimeToLive()); } initPortal(result, config); return result; }
public Cache instantiatePartialCache(MithraConfigurationManager.Config config) { Cache result; if (config.isParticipatingInTx()) { result = new PartialNonDatedTransactionalCache(PersonFinder.getPrimaryKeyAttributes(), this, PersonFinder.getImmutableAttributes(), config.getCacheTimeToLive(), config.getRelationshipCacheTimeToLive()); } else { result = new PartialNonDatedCache(PersonFinder.getPrimaryKeyAttributes(), this, PersonFinder.getImmutableAttributes(), new NonTransactionalUnderlyingObjectGetter(), config.getCacheTimeToLive(), config.getRelationshipCacheTimeToLive()); } initPortal(result, config); return result; }