public interface PersistenceManagerAPI
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
Modifier and Type | Method and Description |
---|---|
void |
deleteStatistics(java.lang.String name) |
EntityStatistics |
enterStatistics(java.lang.String name,
java.lang.Long instanceCount,
java.lang.Integer fetchUI,
java.lang.Integer maxFetchUI,
java.lang.Integer lazyCollectionThreshold,
java.lang.Integer lookupScreenThreshold) |
void |
flushStatisticsCache() |
java.util.SortedMap<java.lang.String,EntityStatistics> |
getEntityStatistics() |
int |
getFetchUI(java.lang.String entityName)
Return a limit of rows fetched for UI components in 'normal' conditions
|
int |
getMaxFetchUI(java.lang.String entityName)
Return the absolute maximum number of rows that can be fetched for UI components
|
void |
refreshStatisticsForEntity(java.lang.String name) |
boolean |
useLazyCollection(java.lang.String entityName)
Whether to use a lazy collection datasource for this entity, based on current statistics.
|
boolean |
useLookupScreen(java.lang.String entityName)
Whether to use a lookup screen or a dropdown for this entity, based on current statistics.
|
static final java.lang.String NAME
boolean useLazyCollection(java.lang.String entityName)
entityName
- entity nameboolean useLookupScreen(java.lang.String entityName)
entityName
- entity nameint getFetchUI(java.lang.String entityName)
entityName
- entity nameint getMaxFetchUI(java.lang.String entityName)
entityName
- entity namevoid flushStatisticsCache()
void refreshStatisticsForEntity(java.lang.String name)
void deleteStatistics(java.lang.String name)
EntityStatistics enterStatistics(java.lang.String name, java.lang.Long instanceCount, java.lang.Integer fetchUI, java.lang.Integer maxFetchUI, java.lang.Integer lazyCollectionThreshold, java.lang.Integer lookupScreenThreshold)
java.util.SortedMap<java.lang.String,EntityStatistics> getEntityStatistics()