Class TableMaintenanceUtilImpl
java.lang.Object
ubic.gemma.persistence.service.maintenance.TableMaintenanceUtilImpl
- All Implemented Interfaces:
TableMaintenanceUtil
Functions for maintaining the database. This is intended for denormalized tables and statistics tables that need to
be generated periodically.
- Author:
- jsantos, paul
-
Field Summary
Fields inherited from interface ubic.gemma.persistence.service.maintenance.TableMaintenanceUtil
EE2AD_QUERY_SPACE, EE2C_QUERY_SPACE, GENE2CS_BATCH_SIZE, GENE2CS_QUERY_SPACE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidFor use in tests.voidEvict the query cache for theEXPRESSION_EXPERIMENT2_ARRAY_DESIGNtable.voidEvict the query cache for theEXPRESSION_EXPERIMENT2CHARACTERISTICtable.voidEvict the query cache for theGENE2CStable.intupdateExpressionExperiment2ArrayDesignEntries(Date sinceLastUpdate, boolean truncate) Update theEXPRESSION_EXPERIMENT2_ARRAY_DESIGNtable.intintupdateExpressionExperiment2CharacteristicEntries(Class<?> level, Date sinceLastUpdate, boolean truncate) Update a specific level of theEXPRESSION_EXPERIMENT2CHARACTERISTICtable.intupdateExpressionExperiment2CharacteristicEntries(Date sinceLastUpdate, boolean truncate) Update theEXPRESSION_EXPERIMENT2CHARACTERISTICtable.intUpdate theEXPRESSION_EXPERIMENT2CHARACTERISTICtable for a specific experiment.intIf necessary, update the GENE2CS table.intupdateGene2CsEntries(Date sinceLastUpdate, boolean truncate, boolean force) Update the GENE2CS table.intupdateGene2CsEntries(ArrayDesign arrayDesign, boolean force) Update the GENE2CS table for a specificArrayDesign.
-
Constructor Details
-
TableMaintenanceUtilImpl
public TableMaintenanceUtilImpl()
-
-
Method Details
-
updateGene2CsEntries
@Transactional public int updateGene2CsEntries()Description copied from interface:TableMaintenanceUtilIf necessary, update the GENE2CS table.- Specified by:
updateGene2CsEntriesin interfaceTableMaintenanceUtil
-
updateGene2CsEntries
Description copied from interface:TableMaintenanceUtilUpdate the GENE2CS table for a specificArrayDesign.- Specified by:
updateGene2CsEntriesin interfaceTableMaintenanceUtil- Parameters:
arrayDesign- the platform for which to update the GENE2CS entriesforce- update the table even if no platforms has been modified since the last update
-
updateGene2CsEntries
@Transactional public int updateGene2CsEntries(@Nullable Date sinceLastUpdate, boolean truncate, boolean force) Description copied from interface:TableMaintenanceUtilUpdate the GENE2CS table.- Specified by:
updateGene2CsEntriesin interfaceTableMaintenanceUtil- Parameters:
sinceLastUpdate- if not null, only update entries whose correspondingArrayDesignhsa been updated after the given datetruncate- if true, the GENE2CS table will be truncated before the updateforce- update the table even if no platforms has been modified since the last update
-
updateExpressionExperiment2CharacteristicEntries
@Transactional public int updateExpressionExperiment2CharacteristicEntries(@Nullable Date sinceLastUpdate, boolean truncate) Description copied from interface:TableMaintenanceUtilUpdate theEXPRESSION_EXPERIMENT2CHARACTERISTICtable.- Specified by:
updateExpressionExperiment2CharacteristicEntriesin interfaceTableMaintenanceUtil- Returns:
- the number of records that were created or updated
-
updateExpressionExperiment2CharacteristicEntries
@Transactional public int updateExpressionExperiment2CharacteristicEntries(Class<?> level, @Nullable Date sinceLastUpdate, boolean truncate) Description copied from interface:TableMaintenanceUtilUpdate a specific level of theEXPRESSION_EXPERIMENT2CHARACTERISTICtable.- Specified by:
updateExpressionExperiment2CharacteristicEntriesin interfaceTableMaintenanceUtil- Parameters:
level- the level to update which is eitherExpressionExperiment,BioMaterialorExperimentalDesign- Returns:
- the number of records that were created or updated
-
updateExpressionExperiment2CharacteristicEntries
@Transactional public int updateExpressionExperiment2CharacteristicEntries(ExpressionExperiment ee, @Nullable Class<?> level) Description copied from interface:TableMaintenanceUtilUpdate theEXPRESSION_EXPERIMENT2CHARACTERISTICtable for a specific experiment.- Specified by:
updateExpressionExperiment2CharacteristicEntriesin interfaceTableMaintenanceUtil
-
updateExpressionExperiment2ArrayDesignEntries
@Transactional public int updateExpressionExperiment2ArrayDesignEntries(@Nullable Date sinceLastUpdate, boolean truncate) Description copied from interface:TableMaintenanceUtilUpdate theEXPRESSION_EXPERIMENT2_ARRAY_DESIGNtable.- Specified by:
updateExpressionExperiment2ArrayDesignEntriesin interfaceTableMaintenanceUtil- Parameters:
sinceLastUpdate- only update entries for platforms updated since this datetruncate- if true, the table will be truncated before the update- Returns:
- the number of records that were created or updated
-
updateExpressionExperiment2ArrayDesignEntries
- Specified by:
updateExpressionExperiment2ArrayDesignEntriesin interfaceTableMaintenanceUtil
-
evictGene2CsQueryCache
public void evictGene2CsQueryCache()Description copied from interface:TableMaintenanceUtilEvict the query cache for theGENE2CStable.- Specified by:
evictGene2CsQueryCachein interfaceTableMaintenanceUtil
-
evictEe2CQueryCache
public void evictEe2CQueryCache()Description copied from interface:TableMaintenanceUtilEvict the query cache for theEXPRESSION_EXPERIMENT2CHARACTERISTICtable.- Specified by:
evictEe2CQueryCachein interfaceTableMaintenanceUtil
-
evictEe2AdQueryCache
public void evictEe2AdQueryCache()Description copied from interface:TableMaintenanceUtilEvict the query cache for theEXPRESSION_EXPERIMENT2_ARRAY_DESIGNtable.- Specified by:
evictEe2AdQueryCachein interfaceTableMaintenanceUtil
-
disableEmail
public void disableEmail()For use in tests.- Specified by:
disableEmailin interfaceTableMaintenanceUtil
-