public class JdbcMetadataSourceProvider extends SourceProvider
Constructor and Description |
---|
JdbcMetadataSourceProvider(String urlOption,
String driverOption,
String usernameOption,
String passwordOption,
String schemaOption) |
Modifier and Type | Method and Description |
---|---|
SourceProvider |
copy()
Returns a copy of this source provider in its initial state.
|
void |
copyNotSetSettingsFrom(SourceProvider sourceProvider)
Copies settings which are not set in this source provider from another
source provider.
|
String |
getDriver() |
String |
getDriverOption() |
String |
getPassword() |
String |
getPasswordOption() |
String |
getSchema() |
String |
getSchemaOption() |
String |
getUrl() |
String |
getUrlOption() |
String |
getUsername() |
String |
getUsernameOption() |
boolean |
hasNext() |
void |
initInternal(ConfigurationHandlers configurationHandlers,
ControllerState controllerState)
Initializes the sources provided by this SourceProvider.
|
Source |
next() |
void |
remove() |
protected void |
resetInternal(ConfigurationHandlers configurationHandlers,
ControllerState controllerState)
Resets the sources provided by this SourceProvider.
|
init, isInit, reset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public JdbcMetadataSourceProvider(String urlOption, String driverOption, String usernameOption, String passwordOption, String schemaOption) throws ConfigurationException
ConfigurationException
public void initInternal(ConfigurationHandlers configurationHandlers, ControllerState controllerState) throws ConfigurationException
SourceProvider
initInternal
in class SourceProvider
configurationHandlers
- the configuration handlers, not null.controllerState
- the current controller state, not null.ConfigurationException
- if initializing fails.public boolean hasNext()
public Source next()
protected void resetInternal(ConfigurationHandlers configurationHandlers, ControllerState controllerState) throws ConfigurationException
SourceProvider
resetInternal
in class SourceProvider
configurationHandlers
- the configuration handlers, not null.controllerState
- the current controller state, not null.ConfigurationException
- if resetting fails.public void remove()
public String getUrlOption()
public String getDriverOption()
public String getUsernameOption()
public String getPasswordOption()
public String getSchemaOption()
public String getUrl()
public String getDriver()
public String getUsername()
public String getPassword()
public String getSchema()
public SourceProvider copy() throws ConfigurationException
SourceProvider.init(ConfigurationHandlers, ControllerState)
method of the new source provider must be called before it can be used.copy
in class SourceProvider
ConfigurationException
- if the new SourceProvider cannot
be initialized.public void copyNotSetSettingsFrom(SourceProvider sourceProvider)
copyNotSetSettingsFrom
in class SourceProvider
sourceProvider
- the source provoder to copy the settings from.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.