Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: d2f370e1b31206f1df4cd50991db1586a01f57d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/*******************************************************************************
* Copyright (c) 2008 Oracle. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0, which accompanies this distribution
* and is available at http://www.eclipse.org/legal/epl-v10.html.
* 
* Contributors:
*     Oracle - initial API and implementation
*******************************************************************************/
package org.eclipse.jpt.eclipselink.core.internal.context.caching;

import java.util.ListIterator;

import org.eclipse.jpt.eclipselink.core.internal.context.PersistenceUnitProperties;

/**
 *  Caching
 */
public interface Caching extends PersistenceUnitProperties
{
	CacheType getDefaultCacheTypeDefault();
	CacheType getCacheTypeDefault();
	void setCacheTypeDefault(CacheType cacheTypeDefault);
			static final String CACHE_TYPE_DEFAULT_PROPERTY = "cacheTypeDefaultProperty";
			// EclipseLink key string
			static final String ECLIPSELINK_CACHE_TYPE_DEFAULT = "eclipselink.cache.type.default";
			static final CacheType DEFAULT_CACHE_TYPE_DEFAULT = CacheType.soft_weak;

	Integer getDefaultCacheSizeDefault();
	Integer getCacheSizeDefault();
	void setCacheSizeDefault(Integer cacheSizeDefault);
			static final String CACHE_SIZE_DEFAULT_PROPERTY = "cacheSizeDefaultProperty";
			// EclipseLink key string
			static final String ECLIPSELINK_CACHE_SIZE_DEFAULT = "eclipselink.cache.size.default";
			static final Integer DEFAULT_CACHE_SIZE_DEFAULT = 100;

	Boolean getDefaultSharedCacheDefault();
	Boolean getSharedCacheDefault();
	void setSharedCacheDefault(Boolean sharedCacheDefault);
		static final String SHARED_CACHE_DEFAULT_PROPERTY = "sharedCacheDefaultProperty";
		// EclipseLink key string
		static final String ECLIPSELINK_CACHE_SHARED_DEFAULT = "eclipselink.cache.shared.default";
		static final Boolean DEFAULT_SHARED_CACHE_DEFAULT = Boolean.TRUE;


	CacheType getDefaultCacheType();
	CacheType getCacheType(String entityName);
	void setCacheType(CacheType cacheType, String entityName);
			static final String CACHE_TYPE_PROPERTY = "cacheTypeProperty";
			// EclipseLink key string
			static final String ECLIPSELINK_CACHE_TYPE = "eclipselink.cache.type.";
			static final CacheType DEFAULT_CACHE_TYPE = CacheType.soft_weak;

	Integer getDefaultCacheSize();
	Integer getCacheSize(String entityName);
	void setCacheSize(Integer cacheSize, String entityName);
			static final String CACHE_SIZE_PROPERTY = "cacheSizeProperty";
			// EclipseLink key string
			static final String ECLIPSELINK_CACHE_SIZE = "eclipselink.cache.size.";
			static final Integer DEFAULT_CACHE_SIZE = 1000;

	Boolean getDefaultSharedCache();
	Boolean getSharedCache(String entityName);
	void setSharedCache(Boolean sharedCache, String entityName);
			static final String SHARED_CACHE_PROPERTY = "sharedCacheProperty";
			// EclipseLink key string
			static final String ECLIPSELINK_SHARED_CACHE = "eclipselink.cache.shared.";
			static final Boolean DEFAULT_SHARED_CACHE = true;


	ListIterator<String> entities();
	int entitiesSize();
	String addEntity(String entity);
	void removeEntity(String entity);
		String ENTITIES_LIST_PROPERTY = "entitiesList";

}

Back to the top