Class HsqlCollector
java.lang.Object
de.hybris.datasupplier.collectors.impl.AbstractDatabaseCollector
de.hybris.datasupplier.collectors.impl.HsqlCollector
- All Implemented Interfaces:
DatabaseCollector
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExtracts host as a URI from the jdbc connection string.Extracts the database name from a jdbc connection string.booleanisApplicable(String url) Checks whether this strategy should be applied to a given connection string.Methods inherited from class de.hybris.datasupplier.collectors.impl.AbstractDatabaseCollector
matchAndReturn
-
Constructor Details
-
HsqlCollector
public HsqlCollector()
-
-
Method Details
-
isApplicable
Description copied from interface:DatabaseCollectorChecks whether this strategy should be applied to a given connection string.- Parameters:
url- jdbc connection string- Returns:
- true if this strategy should be used
-
getHost
Description copied from interface:DatabaseCollectorExtracts host as a URI from the jdbc connection string.- Specified by:
getHostin interfaceDatabaseCollector- Overrides:
getHostin classAbstractDatabaseCollector- 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
-
getName
Description copied from interface:DatabaseCollectorExtracts the database name from a jdbc connection string.- Parameters:
url- jdbc connection string- Returns:
- name of the database
-