@Component(value="cuba_PersistenceManagerMBean") public class PersistenceManager extends java.lang.Object implements PersistenceManagerMBean
Constructor and Description |
---|
PersistenceManager() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
deleteStatistics(java.lang.String name) |
java.lang.String |
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)
Manually update statistics for an entity.
|
java.lang.String |
findUpdateDatabaseScripts()
Show database update scripts that will be executed on next update.
|
java.lang.String |
flushStatisticsCache()
Flush statistics cache.
|
java.lang.String |
getDbmsType() |
java.lang.String |
getDbmsVersion() |
int |
getDefaultFetchUI() |
int |
getDefaultLazyCollectionThreshold() |
int |
getDefaultLookupScreenThreshold() |
int |
getDefaultMaxFetchUI() |
java.lang.String |
jpqlExecuteUpdate(java.lang.String queryString,
boolean softDeletion)
Execute a JPQL update statement.
|
java.lang.String |
jpqlLoadList(java.lang.String queryString)
Execute a JPQL query.
|
java.lang.String |
printSoftDeleteTables()
Show list of tables supporting soft deletion.
|
java.lang.String |
printViewRepositoryDump() |
java.lang.String |
printViewRepositoryDumpHtml() |
java.lang.String |
refreshStatistics(java.lang.String entityName)
Calculate and refresh statistics for the specified entity.
|
void |
setConfiguration(Configuration configuration) |
void |
setDefaultFetchUI(int value) |
void |
setDefaultLazyCollectionThreshold(int value) |
void |
setDefaultLookupScreenThreshold(int value) |
void |
setDefaultMaxFetchUI(int value) |
java.lang.String |
showStatistics(java.lang.String entityName)
Show current statistics for the specified entity.
|
java.lang.String |
updateDatabase(java.lang.String token)
Start the database update.
|
@Inject public void setConfiguration(Configuration configuration)
public java.lang.String getDbmsType()
getDbmsType
in interface PersistenceManagerMBean
public java.lang.String getDbmsVersion()
getDbmsVersion
in interface PersistenceManagerMBean
public int getDefaultLookupScreenThreshold()
getDefaultLookupScreenThreshold
in interface PersistenceManagerMBean
public void setDefaultLookupScreenThreshold(int value)
setDefaultLookupScreenThreshold
in interface PersistenceManagerMBean
public int getDefaultLazyCollectionThreshold()
getDefaultLazyCollectionThreshold
in interface PersistenceManagerMBean
public void setDefaultLazyCollectionThreshold(int value)
setDefaultLazyCollectionThreshold
in interface PersistenceManagerMBean
public int getDefaultFetchUI()
getDefaultFetchUI
in interface PersistenceManagerMBean
public void setDefaultFetchUI(int value)
setDefaultFetchUI
in interface PersistenceManagerMBean
public int getDefaultMaxFetchUI()
getDefaultMaxFetchUI
in interface PersistenceManagerMBean
public void setDefaultMaxFetchUI(int value)
setDefaultMaxFetchUI
in interface PersistenceManagerMBean
public java.lang.String printSoftDeleteTables()
PersistenceManagerMBean
printSoftDeleteTables
in interface PersistenceManagerMBean
public java.lang.String printViewRepositoryDump()
printViewRepositoryDump
in interface PersistenceManagerMBean
public java.lang.String printViewRepositoryDumpHtml()
printViewRepositoryDumpHtml
in interface PersistenceManagerMBean
public java.lang.String updateDatabase(java.lang.String token)
PersistenceManagerMBean
updateDatabase
in interface PersistenceManagerMBean
token
- 'update' string must be passed to avoid accidental invocationpublic java.lang.String findUpdateDatabaseScripts()
PersistenceManagerMBean
findUpdateDatabaseScripts
in interface PersistenceManagerMBean
public java.lang.String jpqlLoadList(java.lang.String queryString)
PersistenceManagerMBean
The query may contain security-related parameters specified in
PersistenceSecurity
. This is a way to test some JPQL code in the real server
environment
jpqlLoadList
in interface PersistenceManagerMBean
queryString
- JPQL query stringpublic java.lang.String jpqlExecuteUpdate(java.lang.String queryString, boolean softDeletion)
PersistenceManagerMBean
jpqlExecuteUpdate
in interface PersistenceManagerMBean
queryString
- JPQL update statementsoftDeletion
- soft deletion signpublic java.lang.String flushStatisticsCache()
PersistenceManagerMBean
flushStatisticsCache
in interface PersistenceManagerMBean
public java.lang.String refreshStatistics(java.lang.String entityName)
PersistenceManagerMBean
refreshStatistics
in interface PersistenceManagerMBean
entityName
- entity name or 'all' to refresh for all entitiespublic java.lang.String showStatistics(java.lang.String entityName)
PersistenceManagerMBean
showStatistics
in interface PersistenceManagerMBean
entityName
- entity name or blank to show all entitiespublic java.lang.String 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)
PersistenceManagerMBean
enterStatistics
in interface PersistenceManagerMBean
public java.lang.String deleteStatistics(java.lang.String name)
deleteStatistics
in interface PersistenceManagerMBean