Class TableMaintenanceUtilImpl
java.lang.Object
ubic.gemma.persistence.service.maintenance.TableMaintenanceUtilImpl
- All Implemented Interfaces:
TableMaintenanceUtil
@Service("tableMaintenanceUtil")
public class TableMaintenanceUtilImpl
extends Object
implements 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 TypeMethodDescriptionvoid
For use in tests.void
Evict the query cache for theEXPRESSION_EXPERIMENT2_ARRAY_DESIGN
table.void
Evict the query cache for theEXPRESSION_EXPERIMENT2CHARACTERISTIC
table.void
Evict the query cache for theGENE2CS
table.int
updateExpressionExperiment2ArrayDesignEntries
(Date sinceLastUpdate, boolean truncate) Update theEXPRESSION_EXPERIMENT2_ARRAY_DESIGN
table.int
updateExpressionExperiment2CharacteristicEntries
(Class<?> level, Date sinceLastUpdate, boolean truncate) Update a specific level of theEXPRESSION_EXPERIMENT2CHARACTERISTIC
table.int
updateExpressionExperiment2CharacteristicEntries
(Date sinceLastUpdate, boolean truncate) Update theEXPRESSION_EXPERIMENT2CHARACTERISTIC
table.int
If necessary, update the GENE2CS table.int
updateGene2CsEntries
(Date sinceLastUpdate, boolean truncate, boolean force) Update the GENE2CS table.int
updateGene2CsEntries
(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:TableMaintenanceUtil
If necessary, update the GENE2CS table.- Specified by:
updateGene2CsEntries
in interfaceTableMaintenanceUtil
-
updateGene2CsEntries
Description copied from interface:TableMaintenanceUtil
Update the GENE2CS table for a specificArrayDesign
.- Specified by:
updateGene2CsEntries
in 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:TableMaintenanceUtil
Update the GENE2CS table.- Specified by:
updateGene2CsEntries
in interfaceTableMaintenanceUtil
- Parameters:
sinceLastUpdate
- if not null, only update entries whose correspondingArrayDesign
hsa 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:TableMaintenanceUtil
Update theEXPRESSION_EXPERIMENT2CHARACTERISTIC
table.- Specified by:
updateExpressionExperiment2CharacteristicEntries
in 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:TableMaintenanceUtil
Update a specific level of theEXPRESSION_EXPERIMENT2CHARACTERISTIC
table.- Specified by:
updateExpressionExperiment2CharacteristicEntries
in interfaceTableMaintenanceUtil
- Parameters:
level
- the level to update which is eitherExpressionExperiment
,BioMaterial
orExperimentalDesign
- Returns:
- the number of records that were created or updated
-
updateExpressionExperiment2ArrayDesignEntries
@Transactional public int updateExpressionExperiment2ArrayDesignEntries(@Nullable Date sinceLastUpdate, boolean truncate) Description copied from interface:TableMaintenanceUtil
Update theEXPRESSION_EXPERIMENT2_ARRAY_DESIGN
table.- Specified by:
updateExpressionExperiment2ArrayDesignEntries
in 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
-
evictGene2CsQueryCache
public void evictGene2CsQueryCache()Description copied from interface:TableMaintenanceUtil
Evict the query cache for theGENE2CS
table.- Specified by:
evictGene2CsQueryCache
in interfaceTableMaintenanceUtil
-
evictEe2CQueryCache
public void evictEe2CQueryCache()Description copied from interface:TableMaintenanceUtil
Evict the query cache for theEXPRESSION_EXPERIMENT2CHARACTERISTIC
table.- Specified by:
evictEe2CQueryCache
in interfaceTableMaintenanceUtil
-
evictEe2AdQueryCache
public void evictEe2AdQueryCache()Description copied from interface:TableMaintenanceUtil
Evict the query cache for theEXPRESSION_EXPERIMENT2_ARRAY_DESIGN
table.- Specified by:
evictEe2AdQueryCache
in interfaceTableMaintenanceUtil
-
disableEmail
public void disableEmail()For use in tests.- Specified by:
disableEmail
in interfaceTableMaintenanceUtil
-