|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.torque.generator.source.SourceProvider
org.apache.torque.generator.source.jdbc.JdbcMetadataSourceProvider
public class JdbcMetadataSourceProvider
Creates a source from JDBC metadata.
Constructor Summary | |
---|---|
JdbcMetadataSourceProvider(String urlOption,
String driverOption,
String usernameOption,
String passwordOption,
String schemaOption)
|
Method Summary | |
---|---|
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)
Generates an XML database schema from JDBC metadata. |
Source |
next()
|
void |
remove()
|
protected void |
resetInternal(ConfigurationHandlers configurationHandlers,
ControllerState controllerState)
Resets the sources provided by this SourceProvider. |
Methods inherited from class org.apache.torque.generator.source.SourceProvider |
---|
init, isInit, reset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JdbcMetadataSourceProvider(String urlOption, String driverOption, String usernameOption, String passwordOption, String schemaOption) throws ConfigurationException
ConfigurationException
Method Detail |
---|
public void initInternal(ConfigurationHandlers configurationHandlers, ControllerState controllerState) throws ConfigurationException
initInternal
in class SourceProvider
configurationHandlers
- the configuration handlers, not null.controllerState
- the current controller state, not null.
Exception
- a generic exception.
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |