/** * INTERNAL: * Returns the collection of cached expression queries. */ private ConcurrentFixedCache getCachedExpressionQueries() { if (cachedExpressionQueries == null) { this.cachedExpressionQueries = new ConcurrentFixedCache(20); } return this.cachedExpressionQueries; }
/** * ADVANCED: * Set the max size of the expression query cache for avoiding regenerated dynamic query SQL. */ public void setExpressionQueryCacheMaxSize(int maxSize) { this.cachedExpressionQueries = new ConcurrentFixedCache(maxSize); }
/** * INTERNAL: * Return the JPQL parse cache. * This is used to optimize dynamic JPQL. */ public ConcurrentFixedCache getJPQLParseCache() { if (jpqlParseCache==null) { jpqlParseCache = new ConcurrentFixedCache(200); } return jpqlParseCache; }
/** * INTERNAL: * Returns the collection of cached Update calls. */ private ConcurrentFixedCache getCachedUpdateCalls() { if (cachedUpdateCalls == null) { this.cachedUpdateCalls = new ConcurrentFixedCache(10); } return this.cachedUpdateCalls; }
/** * INTERNAL: * Return the JPQL parse cache. * This is used to optimize dynamic JPQL. */ public ConcurrentFixedCache getJPQLParseCache() { if (jpqlParseCache==null) { jpqlParseCache = new ConcurrentFixedCache(200); } return jpqlParseCache; }
/** * ADVANCED: * Set the max size of the expression query cache for avoiding regenerated dynamic query SQL. */ public void setExpressionQueryCacheMaxSize(int maxSize) { this.cachedExpressionQueries = new ConcurrentFixedCache(maxSize); }
/** * INTERNAL: * Returns the collection of cached Update calls. */ private ConcurrentFixedCache getCachedUpdateCalls() { if (cachedUpdateCalls == null) { this.cachedUpdateCalls = new ConcurrentFixedCache(10); } return this.cachedUpdateCalls; }
/** * INTERNAL: * Returns the collection of cached expression queries. */ private ConcurrentFixedCache getCachedExpressionQueries() { if (cachedExpressionQueries == null) { this.cachedExpressionQueries = new ConcurrentFixedCache(20); } return this.cachedExpressionQueries; }
/** * ADVANCED: * Set the max size of the expression query cache for avoiding regenerated dynamic query SQL. */ public void setExpressionQueryCacheMaxSize(int maxSize) { this.cachedExpressionQueries = new ConcurrentFixedCache(maxSize); }
/** * ADVANCED: * Set the JPQL parse cache max size. * This is used to optimize dynamic JPQL. */ public void setJPQLParseCacheMaxSize(int maxSize) { setJPQLParseCache(new ConcurrentFixedCache(maxSize)); }
/** * ADVANCED: * Set the JPQL parse cache max size. * This is used to optimize dynamic JPQL. */ public void setJPQLParseCacheMaxSize(int maxSize) { setJPQLParseCache(new ConcurrentFixedCache(maxSize)); }
/** * ADVANCED: * Set the JPQL parse cache max size. * This is used to optimize dynamic JPQL. */ public void setJPQLParseCacheMaxSize(int maxSize) { setJPQLParseCache(new ConcurrentFixedCache(maxSize)); }
/** * PUBLIC: * Create a new project. */ public Project() { this.name = ""; this.descriptors = new HashMap(); this.defaultReadOnlyClasses = NonSynchronizedVector.newInstance(); this.orderedDescriptors = new ArrayList<ClassDescriptor>(); this.hasIsolatedClasses = false; this.hasGenericHistorySupport = false; this.hasProxyIndirection = false; this.jpqlParseCache = new ConcurrentFixedCache(200); this.queries = new ArrayList<DatabaseQuery>(); this.mappedSuperclassDescriptors = new HashMap<String, ClassDescriptor>(2); this.metamodelIdClassMap = new HashMap<String, List<String>>(); this.attributeGroups = new HashMap<String, AttributeGroup>(); }
/** * INTERNAL: * Initialize the state of the descriptor query manager */ public DescriptorQueryManager() { this.queries = new LinkedHashMap(5); this.cachedUpdateCalls = new ConcurrentFixedCache(10); this.cachedExpressionQueries = new ConcurrentFixedCache(20); setDoesExistQuery(new DoesExistQuery());// Always has a does exist. this.setQueryTimeout(DefaultTimeout); }
/** * PUBLIC: * Create a new project. */ public Project() { this.name = ""; this.descriptors = new HashMap(); this.defaultReadOnlyClasses = NonSynchronizedVector.newInstance(); this.orderedDescriptors = new ArrayList<ClassDescriptor>(); this.hasIsolatedClasses = false; this.hasGenericHistorySupport = false; this.hasProxyIndirection = false; this.jpqlParseCache = new ConcurrentFixedCache(200); this.queries = new ArrayList<DatabaseQuery>(); this.mappedSuperclassDescriptors = new HashMap<String, ClassDescriptor>(2); this.metamodelIdClassMap = new HashMap<String, List<String>>(); this.attributeGroups = new HashMap<String, AttributeGroup>(); }
/** * PUBLIC: * Create a new project. */ public Project() { this.name = ""; this.descriptors = new HashMap(); this.defaultReadOnlyClasses = NonSynchronizedVector.newInstance(); this.orderedDescriptors = NonSynchronizedVector.newInstance(); this.hasIsolatedClasses = false; this.hasGenericHistorySupport = false; this.hasProxyIndirection = false; this.jpqlParseCache = new ConcurrentFixedCache(200); this.queries = new ArrayList<DatabaseQuery>(); this.mappedSuperclassDescriptors = new HashMap<Object, RelationalDescriptor>(2); this.metamodelIdClassMap = new HashMap<String, List<String>>(); }