public class ScriptedSQLConfiguration
extends net.tirasa.connid.commons.scripted.AbstractScriptedConfiguration
AbstractConfiguration class to provide all the necessary parameters to initialize the
ScriptedJDBC Connector.| Modifier and Type | Field and Description |
|---|---|
boolean |
allNative
Some JDBC drivers (ex: DerbyDB) may need to access all the datatypes with
native types to get correct value.
|
static String |
EMPTY_STR |
boolean |
nativeTimestamps
Some JDBC drivers (ex: Oracle) may not be able to get correct string
representation of TIMESTAMP data type of the column from the database
table.
|
boolean |
rethrowAllSQLExceptions
Some database drivers will throw the SQLError when setting the parameters
to the statement with zero ErrorCode.
|
| Constructor and Description |
|---|
ScriptedSQLConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
String |
formatUrlTemplate()
Format a URL given a template.
|
String |
getDatabase() |
String |
getDatasource()
Return the datasource
|
String |
getHost()
host getter
|
String |
getJdbcDriver() |
String |
getJdbcUrlTemplate()
Return the jdbcUrlTemplate
|
String[] |
getJndiProperties()
Return the jndiFactory
|
String |
getMessage(String key)
Format the connector message
|
org.identityconnectors.common.security.GuardedString |
getPassword() |
String |
getPort()
port getter
|
String |
getQuoting()
NameQuote getter
|
String |
getUser() |
String |
getValidConnectionQuery()
connection validation query getter
|
boolean |
isAllNative()
Accessor for the allNativeproperty
|
boolean |
isAutoCommit()
Accessor for the autoCommit property
|
boolean |
isEnableEmptyString()
Accessor for the enableEmptyString property
|
boolean |
isNativeTimestamps()
Accessor for the nativeTimestamps property
|
boolean |
isRethrowAllSQLExceptions()
Accessor for the rethrowAllSQLExceptions property
|
void |
setAllNative(boolean allNative)
Setter for the allNative property.
|
void |
setAutoCommit(boolean autoCommit)
Setter for the autoCommit property.
|
void |
setDatabase(String value) |
void |
setDatasource(String value) |
void |
setEnableEmptyString(boolean enableEmptyString)
Setter for the enableEmptyString property.
|
void |
setHost(String value)
host Setter
|
void |
setJdbcDriver(String value) |
void |
setJdbcUrlTemplate(String value) |
void |
setJndiProperties(String[] value) |
void |
setNativeTimestamps(boolean nativeTimestamps)
Setter for the nativeTimestamps property.
|
void |
setPassword(org.identityconnectors.common.security.GuardedString value) |
void |
setPort(String value)
port Setter
|
void |
setQuoting(String value)
NameQuote Setter
|
void |
setRethrowAllSQLExceptions(boolean rethrowAllSQLExceptions)
Setter for the rethrowAllSQLExceptions property.
|
void |
setUser(String value) |
void |
setValidConnectionQuery(String value)
Connection validation query setter
|
void |
validate()
Attempt to validate the arguments added to the Configuration.
|
getAuthenticateScript, getAuthenticateScriptFileName, getClearTextPasswordToScript, getCreateScript, getCreateScriptFileName, getDeleteScript, getDeleteScriptFileName, getMessage, getResolveUsernameScript, getResolveUsernameScriptFileName, getSchemaScript, getSchemaScriptFileName, getScriptingLanguage, getSearchScript, getSearchScriptFileName, getSyncScript, getSyncScriptFileName, getTestScript, getTestScriptFileName, getUpdateScript, getUpdateScriptFileName, isReloadScriptOnExecution, setAuthenticateScript, setAuthenticateScriptFileName, setClearTextPasswordToScript, setCreateScript, setCreateScriptFileName, setDeleteScript, setDeleteScriptFileName, setReloadScriptOnExecution, setResolveUsernameScript, setResolveUsernameScriptFileName, setSchemaScript, setSchemaScriptFileName, setScriptingLanguage, setSearchScript, setSearchScriptFileName, setSyncScript, setSyncScriptFileName, setTestScript, setTestScriptFileName, setUpdateScript, setUpdateScriptFileNamepublic static final String EMPTY_STR
public boolean rethrowAllSQLExceptions
public boolean nativeTimestamps
public boolean allNative
public String getQuoting()
public void setQuoting(String value)
value - valuepublic String getHost()
public void setHost(String value)
value - valuepublic String getPort()
public void setPort(String value)
value - valuepublic String getUser()
public void setUser(String value)
public org.identityconnectors.common.security.GuardedString getPassword()
public void setPassword(org.identityconnectors.common.security.GuardedString value)
public String getDatabase()
public void setDatabase(String value)
public String getJdbcDriver()
public void setJdbcDriver(String value)
public String getJdbcUrlTemplate()
public void setJdbcUrlTemplate(String value)
public boolean isAutoCommit()
public void setAutoCommit(boolean autoCommit)
autoCommit - auto commitpublic boolean isEnableEmptyString()
public void setEnableEmptyString(boolean enableEmptyString)
enableEmptyString - the enableEmptyString to setpublic boolean isRethrowAllSQLExceptions()
public void setRethrowAllSQLExceptions(boolean rethrowAllSQLExceptions)
rethrowAllSQLExceptions - the rethrowAllSQLExceptions to setpublic boolean isNativeTimestamps()
public void setNativeTimestamps(boolean nativeTimestamps)
nativeTimestamps - the nativeTimestamps to setpublic boolean isAllNative()
public void setAllNative(boolean allNative)
allNative - the allNative to setpublic String getValidConnectionQuery()
public void setValidConnectionQuery(String value)
value - valuepublic String getDatasource()
public void setDatasource(String value)
public String[] getJndiProperties()
public void setJndiProperties(String[] value)
public void validate()
validate in interface org.identityconnectors.framework.spi.Configurationvalidate in class net.tirasa.connid.commons.scripted.AbstractScriptedConfigurationpublic String formatUrlTemplate()
Copyright © 2023. All rights reserved.