/** * Return the cache policy. * The cache policy allows for the configuration of caching options. */ public CachePolicy getCachePolicy() { if (this.cachePolicy == null) { this.cachePolicy = new CachePolicy(); } return cachePolicy; }
/** * Return the cache policy. * The cache policy allows for the configuration of caching options. */ public CachePolicy getCachePolicy() { if (this.cachePolicy == null) { this.cachePolicy = new CachePolicy(); } return cachePolicy; }
/** * PUBLIC: * Return a new descriptor. */ public ClassDescriptor() { // Properties this.tables = NonSynchronizedVector.newInstance(3); this.mappings = NonSynchronizedVector.newInstance(); this.primaryKeyFields = new ArrayList(2); this.fields = NonSynchronizedVector.newInstance(); this.allFields = NonSynchronizedVector.newInstance(); this.constraintDependencies = NonSynchronizedVector.newInstance(2); this.multipleTableForeignKeys = new HashMap(5); this.queryKeys = new HashMap(5); this.initializationStage = UNINITIALIZED; this.interfaceInitializationStage = UNINITIALIZED; this.descriptorType = NORMAL; this.shouldOrderMappings = true; this.shouldBeReadOnly = false; this.shouldAlwaysConformResultsInUnitOfWork = false; this.shouldAcquireCascadedLocks = false; this.hasSimplePrimaryKey = false; this.derivesIdMappings = new HashMap(5); this.referencingClasses = new HashSet<>(); // Policies this.objectBuilder = new ObjectBuilder(this); this.cachePolicy = new CachePolicy(); this.additionalWritableMapKeyFields = new ArrayList(2); this.foreignKeyValuesForCaching = new HashSet<DatabaseField>(); }
this.cachePolicy = new CachePolicy();