@Component(value="cuba_PersistenceManagerClient") @Primary public class PersistenceManagerClient extends java.lang.Object implements PersistenceManagerService
PersistenceManagerService
.
Caches the PersistenceManager information for the whole life time of the client application.
The web-client's Caching
MBean contains a method to clear this cache.
Modifier and Type | Class and Description |
---|---|
protected static class |
PersistenceManagerClient.CacheEntry |
protected static class |
PersistenceManagerClient.DbmsCacheEntry |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,PersistenceManagerClient.CacheEntry> |
cache |
protected java.util.Map<java.lang.String,PersistenceManagerClient.DbmsCacheEntry> |
dbmsCache |
protected java.lang.String |
dbmsType |
protected java.lang.String |
dbmsVersion |
protected java.lang.Boolean |
defaultNullSorting |
static java.lang.String |
NAME |
protected PersistenceManagerService |
service |
protected java.lang.String |
uniqueConstraintViolationPattern |
Constructor and Description |
---|
PersistenceManagerClient() |
Modifier and Type | Method and Description |
---|---|
void |
clearCache() |
boolean |
emulateEqualsByLike(java.lang.String storeName) |
protected PersistenceManagerClient.CacheEntry |
getCacheEntry(java.lang.String entityName) |
protected PersistenceManagerClient.DbmsCacheEntry |
getDbmsCacheEntry(java.lang.String storeName) |
java.lang.String |
getDbmsType() |
java.lang.String |
getDbmsVersion() |
int |
getFetchUI(java.lang.String entityName) |
int |
getMaxFetchUI(java.lang.String entityName) |
java.lang.String |
getUniqueConstraintViolationPattern() |
boolean |
isNullsLastSorting() |
boolean |
supportsLobSortingAndFiltering(java.lang.String storeName) |
boolean |
useLazyCollection(java.lang.String entityName) |
boolean |
useLookupScreen(java.lang.String entityName) |
public static final java.lang.String NAME
protected java.util.Map<java.lang.String,PersistenceManagerClient.CacheEntry> cache
protected java.util.Map<java.lang.String,PersistenceManagerClient.DbmsCacheEntry> dbmsCache
protected volatile java.lang.String dbmsType
protected volatile java.lang.String dbmsVersion
protected volatile java.lang.String uniqueConstraintViolationPattern
protected volatile java.lang.Boolean defaultNullSorting
@Inject protected PersistenceManagerService service
protected PersistenceManagerClient.CacheEntry getCacheEntry(java.lang.String entityName)
public boolean useLazyCollection(java.lang.String entityName)
useLazyCollection
in interface PersistenceManagerService
public boolean useLookupScreen(java.lang.String entityName)
useLookupScreen
in interface PersistenceManagerService
public int getFetchUI(java.lang.String entityName)
getFetchUI
in interface PersistenceManagerService
public int getMaxFetchUI(java.lang.String entityName)
getMaxFetchUI
in interface PersistenceManagerService
public java.lang.String getDbmsType()
getDbmsType
in interface PersistenceManagerService
cuba.dbmsType
app property on Middlewarepublic java.lang.String getDbmsVersion()
getDbmsVersion
in interface PersistenceManagerService
cuba.dbmsVersion
app property on Middlewarepublic java.lang.String getUniqueConstraintViolationPattern()
getUniqueConstraintViolationPattern
in interface PersistenceManagerService
See DbmsFeatures.getUniqueConstraintViolationPattern()
public boolean isNullsLastSorting()
isNullsLastSorting
in interface PersistenceManagerService
public boolean supportsLobSortingAndFiltering(java.lang.String storeName)
supportsLobSortingAndFiltering
in interface PersistenceManagerService
storeName
- - data store namepublic boolean emulateEqualsByLike(java.lang.String storeName)
emulateEqualsByLike
in interface PersistenceManagerService
storeName
- - data store nameprotected PersistenceManagerClient.DbmsCacheEntry getDbmsCacheEntry(java.lang.String storeName)
public void clearCache()