| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Object | |
| public Map | |
| public int | |
| public void | |
| public void | |
| public void |
| cache | back to summary |
|---|---|
| protected Map<K, V> cache | |
| maxSize | back to summary |
|---|---|
| protected int maxSize | |
| ConcurrentFixedCache | back to summary |
|---|---|
| public ConcurrentFixedCache() Create a new concurrent cache, with a fixed size of 100. | |
| ConcurrentFixedCache | back to summary |
|---|---|
| public ConcurrentFixedCache(int maxSize) Create a new concurrent cache, with the max size. | |
| clear | back to summary |
|---|---|
| public void clear() | |
| get | back to summary |
|---|---|
| public Object get(Object key) Return the pre-parsed query that represents the EJBQL string. If the EJBQL has not been cached, null is returned. | |
| getCache | back to summary |
|---|---|
| public Map Return the cache. | |
| getMaxSize | back to summary |
|---|---|
| public int getMaxSize() Return the fixed size of the parse cache. | |
| put | back to summary |
|---|---|
| public void put(Object key, Object value) Add the value to the cache. Remove the | |
| remove | back to summary |
|---|---|
| public void remove(Object key) Remove from cache. | |
| setMaxSize | back to summary |
|---|---|
| public void setMaxSize(int maxSize) Set the fixed size of the parse cache. When the size is exceeded, subsequent EJBQL will not be cached. The default size is 100; | |