List of usage examples for javax.sql DataSource hashCode
@HotSpotIntrinsicCandidate public native int hashCode();
From source file:org.seasar.dbflute.logic.jdbc.metadata.basic.DfProcedureExtractor.java
protected DfProcedureSupplementExtractorOracle getSupplementExtractorOracle(DataSource dataSource) { final int key = dataSource.hashCode(); DfProcedureSupplementExtractorOracle extractorOracle = _supplementExtractorOracleMap.get(key); if (extractorOracle == null) { _supplementExtractorOracleMap.put(key, new DfProcedureSupplementExtractorOracle(dataSource)); }/* w w w . j av a 2 s . co m*/ extractorOracle = _supplementExtractorOracleMap.get(key); if (_suppressLogging) { extractorOracle.suppressLogging(); } return extractorOracle; }
From source file:org.springframework.jdbc.support.SQLErrorCodesFactory.java
/** * Build an identification String for the given {@link DataSource}, * primarily for logging purposes.//from w ww .j a va 2s . co m * @param dataSource the {@code DataSource} to introspect * @return the identification String */ private String identify(DataSource dataSource) { return dataSource.getClass().getName() + '@' + Integer.toHexString(dataSource.hashCode()); }