public interface DatabaseFetchStatsCache extends Invalidable
Bundle,
EntityProperty| Modifier and Type | Method and Description |
|---|---|
void |
add(long bundleId,
int revision,
Set<String> entityTypes)
Adds given
entityTypes to cache for bundleId and revision. |
boolean |
containsEntityType(long bundleId,
int revision,
String entityType)
checks whether cache contains given
entityId |
int |
entityTypesCount(long bundleId)
Returns number of entities types associated with given
bundleId |
void |
removeBundle(long bundleId)
Removes all entries from cache connected to given
bundleId |
int |
size() |
clearvoid add(long bundleId,
int revision,
Set<String> entityTypes)
entityTypes to cache for bundleId and revision.
Entity types are case-sensitive. If set of entityTypes is empty, then nothing will be stored in cache.bundleId - bundle idrevision - revision of bundleentityTypes - unique tuple names with case-sensitiveboolean containsEntityType(long bundleId,
int revision,
String entityType)
entityIdbundleId - bundle Idrevision - revision of bundle, starts with 0entityType - name of entity typevoid removeBundle(long bundleId)
bundleIdbundleId - bundle id that should be deleted from cache with its entitiesint size()
int entityTypesCount(long bundleId)
bundleIdbundleId - bundle idbundleId or 0 if bundle has no entity typesCopyright © 2021. All rights reserved.