Class AbstractDatabaseCollector
java.lang.Object
de.hybris.datasupplier.collectors.impl.AbstractDatabaseCollector
- All Implemented Interfaces:
DatabaseCollector
- Direct Known Subclasses:
HanaCollector,HsqlCollector,MySQLCollector,OracleCollector,SqlServerCollector
Provides a base implementation for database collecting strategies (DatabaseCollectingStrategy)
-
Constructor Details
-
AbstractDatabaseCollector
public AbstractDatabaseCollector()
-
-
Method Details
-
getHost
Description copied from interface:DatabaseCollectorExtracts host as a URI from the jdbc connection string.- Specified by:
getHostin interfaceDatabaseCollector- Parameters:
url- jdbc connection string- Returns:
- host of the database as a URI
- Throws:
URISyntaxException- in case of being unable to parse the connection string to a URI
-
matchAndReturn
Matches a pattern to the provided regex and returns it. The matching is case insensitive.- Parameters:
regex- regular expressionurl- text that needs to be searched for the pattern- Returns:
- matched string or null if none
-