|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.core.node.port.database.DatabaseConnectionSettings
org.knime.core.node.port.database.DatabaseQueryConnectionSettings
public final class DatabaseQueryConnectionSettings
| Field Summary | |
|---|---|
static String |
TABLE_PLACEHOLDER
Table place holder #table#. |
| Fields inherited from class org.knime.core.node.port.database.DatabaseConnectionSettings |
|---|
CFG_STATEMENT, DATABASE_URLS, DRIVER_ORDER, FETCH_SIZE |
| Constructor Summary | |
|---|---|
DatabaseQueryConnectionSettings(ConfigRO settings,
CredentialsProvider cp)
Create a new connection with an empty query object. |
|
DatabaseQueryConnectionSettings(DatabaseConnectionSettings conn,
String query)
Creates a new connection based in the given connection and the query string. |
|
| Method Summary | |
|---|---|
ModelContentRO |
createConnectionModel()
Create connection model with all settings used to create a database connection. |
String |
getQuery()
|
void |
saveConnection(ConfigWO settings)
Save settings. |
void |
validateConnection(ConfigRO settings,
CredentialsProvider cp)
Validate settings. |
| Methods inherited from class org.knime.core.node.port.database.DatabaseConnectionSettings |
|---|
createConnection, createConnection, execute, getDBName, getDriver, getPassword, getPassword, getUserName, getUserName, loadValidatedConnection, setDBName, setDriver, setPassword, setUserName, syncConnection |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TABLE_PLACEHOLDER
#table#.
| Constructor Detail |
|---|
public DatabaseQueryConnectionSettings(ConfigRO settings,
CredentialsProvider cp)
throws InvalidSettingsException
settings - settings to load fromcp - credentials provider used to get user name and password
InvalidSettingsException - if settings could not be loaded
public DatabaseQueryConnectionSettings(DatabaseConnectionSettings conn,
String query)
conn - connection to copyquery - the SQL query| Method Detail |
|---|
public void validateConnection(ConfigRO settings,
CredentialsProvider cp)
throws InvalidSettingsException
validateConnection in class DatabaseConnectionSettingssettings - to validatecp - CredentialProvider used to get user name/password
InvalidSettingsException - if the settings are not validpublic void saveConnection(ConfigWO settings)
saveConnection in class DatabaseConnectionSettingssettings - connection settingspublic String getQuery()
public ModelContentRO createConnectionModel()
createConnectionModel in class DatabaseConnectionSettings
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||