Package | Description |
---|---|
com.gentics.api.lib.datasource |
Package for datasource related classes and interfaces.
|
Modifier and Type | Class and Description |
---|---|
static class |
AbstractCacheableDatasource.DatasourceCountCacheKey
Datasource cache key for count statements.
|
static class |
AbstractCacheableDatasource.DatasourceResultCacheKey
A simple cache key used for caching datasource results.
|
Modifier and Type | Method and Description |
---|---|
protected AbstractCacheableDatasource.DatasourceResultCacheKeyBase |
AbstractCacheableDatasource.getCacheKey(java.lang.String query,
java.lang.Object[] objects,
int start,
int count,
Datasource.Sorting[] sortedColumns,
java.util.Map specificParameters)
Creates and returns the cache key for the given parameters.
|
protected AbstractCacheableDatasource.DatasourceResultCacheKeyBase |
AbstractCacheableDatasource.getCacheKeyForCount(java.lang.String query,
java.lang.Object[] objects,
java.util.Map specificParameters)
Creates and returns a new cache key for a count statement.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Integer |
AbstractCacheableDatasource.getCachedCount(AbstractCacheableDatasource.DatasourceResultCacheKeyBase cacheKey)
Returns the cached count for the given cache key or null if none was cached.
|
protected java.util.Collection |
AbstractCacheableDatasource.getCachedResult(AbstractCacheableDatasource.DatasourceResultCacheKeyBase cacheKey)
Returns the cached results of a query.
|
protected boolean |
AbstractCacheableDatasource.putCachedCount(AbstractCacheableDatasource.DatasourceResultCacheKeyBase cacheKey,
java.lang.Integer count)
Put a result of a getCount() method into the cache
|
protected boolean |
AbstractCacheableDatasource.putCachedResult(AbstractCacheableDatasource.DatasourceResultCacheKeyBase cacheKey,
java.util.Collection result)
Stores the given result collection into the cache for later retrieval.
|
Copyright © 2022 Gentics Software. All Rights Reserved.