public Cache instantiateFullCache(MithraConfigurationManager.Config config) { Cache result; if (config.isParticipatingInTx()) { result = new FullNonDatedTransactionalCache(ObjectSequenceFinder.getPrimaryKeyAttributes(), this, ObjectSequenceFinder.getImmutableAttributes()); } else { result = new FullNonDatedCache(ObjectSequenceFinder.getPrimaryKeyAttributes(), this, ObjectSequenceFinder.getImmutableAttributes(), new NonTransactionalUnderlyingObjectGetter()); } initPortal(result, config); return result; }
public Cache instantiateFullCache(MithraConfigurationManager.Config config) { Cache result; if (config.isParticipatingInTx()) { result = new FullNonDatedTransactionalCache(ObjectSequenceFinder.getPrimaryKeyAttributes(), this, ObjectSequenceFinder.getImmutableAttributes()); } else { result = new FullNonDatedCache(ObjectSequenceFinder.getPrimaryKeyAttributes(), this, ObjectSequenceFinder.getImmutableAttributes(), new NonTransactionalUnderlyingObjectGetter()); } initPortal(result, config); return result; }
public Cache instantiatePartialCache(MithraConfigurationManager.Config config) { Cache result; if (config.isParticipatingInTx()) { result = new PartialNonDatedTransactionalCache(ObjectSequenceFinder.getPrimaryKeyAttributes(), this, ObjectSequenceFinder.getImmutableAttributes(), config.getCacheTimeToLive(), config.getRelationshipCacheTimeToLive()); } else { result = new PartialNonDatedCache(ObjectSequenceFinder.getPrimaryKeyAttributes(), this, ObjectSequenceFinder.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(ObjectSequenceFinder.getPrimaryKeyAttributes(), this, ObjectSequenceFinder.getImmutableAttributes(), config.getCacheTimeToLive(), config.getRelationshipCacheTimeToLive()); } else { result = new PartialNonDatedCache(ObjectSequenceFinder.getPrimaryKeyAttributes(), this, ObjectSequenceFinder.getImmutableAttributes(), new NonTransactionalUnderlyingObjectGetter(), config.getCacheTimeToLive(), config.getRelationshipCacheTimeToLive()); } initPortal(result, config); return result; }