Class GoldenPath
java.lang.Object
ubic.gemma.core.goldenpath.GoldenPath
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
GoldenPathQuery, GoldenPathSequenceAnalysis
Perform useful queries against GoldenPath (UCSC) databases.
- Author:
- pavlidis
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected DataSourceprotected org.springframework.jdbc.core.JdbcTemplateprotected ExternalDatabasegetTaxon()
-
Field Details
-
log
protected static final org.apache.commons.logging.Log log
-
-
Constructor Details
-
GoldenPath
Create a GoldenPath database for a given taxon.If any post-
createDataSource(Taxon)step throws (typically the probe insidecreateJdbcTemplateFromConfig(HikariDataSource, Taxon)when the configured goldenpath host is unreachable or the per-taxon schema does not exist), the partially-allocatedHikariDataSourceis closed before the exception propagates. Without this cleanup the Hikari pool leaks on every failed construction — try-with-resources at the call site does NOT cover constructor failure, sinceclose()only fires for resources that were fully bound to the try-resource variable.
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
getDataSource
-
getJdbcTemplate
protected org.springframework.jdbc.core.JdbcTemplate getJdbcTemplate() -
getSearchedDatabase
-
getDatabaseName
- Returns:
- the name of the GoldenPath database being read, which is the genome assembly: hg38, mm39, rn8
-
getTaxon
-