Class OracleCollector
- java.lang.Object
-
- de.hybris.datasupplier.collectors.impl.AbstractDatabaseCollector
-
- de.hybris.datasupplier.collectors.impl.OracleCollector
-
- All Implemented Interfaces:
DatabaseCollector
public class OracleCollector extends AbstractDatabaseCollector
-
-
Constructor Summary
Constructors Constructor Description OracleCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.URIgetHost(java.lang.String url)Extracts host as a URI from the jdbc connection string.java.lang.StringgetName(java.lang.String url)Extracts the database name from a jdbc connection string.booleanisApplicable(java.lang.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
-
-
-
-
Method Detail
-
isApplicable
public boolean isApplicable(java.lang.String url)
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
public java.net.URI getHost(java.lang.String url) throws java.net.URISyntaxExceptionDescription 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:
java.net.URISyntaxException- in case of being unable to parse the connection string to a URI
-
getName
public java.lang.String getName(java.lang.String url)
Description copied from interface:DatabaseCollectorExtracts the database name from a jdbc connection string.- Parameters:
url- jdbc connection string- Returns:
- name of the database
-
-