Package com.icc.util
Class DBProperties
java.lang.Object
com.icc.util.DBProperties
This class consists of methods related to retrieve the information regarding DataBaseHost, DataBaseName, DataBaseType, Domain,
DriverName, MaximumConnections, MinimumConnections, Schemas, Partitions etc..
DriverName, MaximumConnections, MinimumConnections, Schemas, Partitions etc..
- Author:
- AnalytiX DS
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumConnection Pool Type to use in the backendstatic enumThese constants are used to specify the DataBaseType from any of the listed types as, ERWIN, CWM, XMI, XSD, DSV, JSON, EXCEL, MSACCESS,HSQLDB,
SQLSERVER, SQLSERVERWINDOWS, ORACLE, GREENPLUM, VERTICA, SYBASE, PERVASIVE, TERADATA, DB2, MYSQL, NETEZZA, SAP,
AMAZON_REDSHIFT("AmazonRedshift"), OTHER, ODBC, BIGQUERY("BigQuery"), BIGDATA_CLOUDERA("Cloudera"), BIGDATA_HORTONWORKS("Hortonworks"), BIGDATA_MAPR("MapR"),SALESFORCE.static enumThese constants are used to specify whether the operation Type is of FRESH_UPLOAD, APPEND, UPDATE_APPEND. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the databaseHost.Returns the databaseName.Returns the databaseType.Returns the domain.Returns the driverName.intReturns the maximumConnectionsPerPartition.intReturns the minimumConnectionsPerPartition.intReturns the partitions.booleanbooleanReturns the schemas.Returns the password.intReturns the testConnectionQuery as specified.getUrl()Returns the URL.Returns the userName.booleanReturns the autoCommit value.booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanReturns the value of testConnectionPeriodically.voidsetAutoCommit(boolean autoCommit) Sets the autoCommit value as specified.voidsetConnectionPoolType(DBProperties.ConnectionPoolType connectionPoolType) voidsetDatabaseHost(String databaseHost) Sets the databaseHost as specified.voidsetDatabaseName(String databaseName) Sets the databaseName as specified.voidsetDatabaseOptions(String databaseOptions) voidSets the databaseType as specified.voidSets the domain as specified.voidsetDriverName(String driverName) Sets the driverName as specified.voidsetDumpFiles(boolean dumpFiles) voidsetERwinModelType(DBHelper.ModelType erwinModelType) voidsetHasAccessToDba(boolean hasAccessToDba) voidsetIsRsaKeyPairFlag(boolean isRsaKeyPairFlag) voidsetKerberosPrincipal(String kerberosPrincipal) voidsetMaximumConnectionsPerPartition(int maximumConnectionsPerPartition) Sets the maximumConnectionsPerPartition as specified.voidsetMinimumConnectionsPerPartition(int minimumConnectionsPerPartition) Sets the minimumConnectionsPerPartition as specified.voidsetOracleEnableSSLConnection(boolean oracleEnableSSLConnection) voidsetOraclePIKProviderPosition(String oraclePIKProviderPosition) voidsetOracleSSLServerDNMatch(boolean oracleSSLServerDNMatch) voidsetOracleWalletLocation(String oracleWalletLocation) voidsetPartitions(int partitions) Sets the partitions as specified.voidsetReadOnly(String readOnly) voidsetRepmPasswordEncrypted(boolean repmPasswordEncrypted) voidsetRepmSecretCode(String repmSecretCode) voidsetRepmUserAvailable(boolean repmUserAvailable) voidsetRepmUserName(String repmUserName) voidsetSchemas(ArrayList<String> schemas) Sets the schemas as specified.voidsetSecretCode(String password) Sets the password as specified.voidsetSnowflakeFetchMetadataBy(String snowflakeFetchMetadataBy) voidsetSnowflakeQueryType(String snowflakeQueryType) voidsetSshPort(int sshPort) voidsetSupportAutoCommit(boolean supportAutoCommit) voidsetTestConnectionOnCheckout(boolean testConnectionOnCheckout) voidsetTestConnectionPeriodically(boolean _testConnectionPeriodically) Sets the testConnectionPeriodically value as specified.voidsetTestConnectionQuery(String _testConnectionQuery) Sets the testConnectionQuery as specified.voidsetTestConnectionQueryOnCheckOut(String _testConnectionQueryOnCheckOut) voidsetTransactionIsolation(String transactionIsolation) voidSets the URL as specified.voidsetUserName(String userName) Sets the userName as specified.
-
Constructor Details
-
DBProperties
public DBProperties()
-
-
Method Details
-
getConnectionPoolType
- Returns:
- the connectionPoolType
-
setConnectionPoolType
- Parameters:
connectionPoolType- the connectionPoolType to set
-
getERwinModelType
- Returns:
- the erwinModelType
-
setERwinModelType
- Parameters:
erwinModelType- the erwinModelType to set
-
getSnowflakeFetchMetadataBy
-
setSnowflakeFetchMetadataBy
-
setSnowflakeQueryType
-
getSnowflakeQueryType
-
isDumpFiles
public boolean isDumpFiles() -
setDumpFiles
public void setDumpFiles(boolean dumpFiles) -
getRepmPasswordEncrypted
public boolean getRepmPasswordEncrypted() -
setRepmPasswordEncrypted
public void setRepmPasswordEncrypted(boolean repmPasswordEncrypted) -
getRepmUserAvailable
public boolean getRepmUserAvailable() -
setRepmUserAvailable
public void setRepmUserAvailable(boolean repmUserAvailable) -
getRepmUserName
-
setRepmUserName
-
getRepmSecretCode
-
setRepmSecretCode
-
isIsRsaKeyPairFlag
public boolean isIsRsaKeyPairFlag() -
setIsRsaKeyPairFlag
public void setIsRsaKeyPairFlag(boolean isRsaKeyPairFlag) -
isTestConnectionOnCheckout
public boolean isTestConnectionOnCheckout() -
setTestConnectionOnCheckout
public void setTestConnectionOnCheckout(boolean testConnectionOnCheckout) -
getTestConnectionQueryOnCheckOut
-
setTestConnectionQueryOnCheckOut
-
getDomain
Returns the domain.- Returns:
- domain String
-
setDomain
Sets the domain as specified.- Parameters:
domain- String
-
getDatabaseName
Returns the databaseName.- Returns:
- databaseName String
-
setDatabaseName
Sets the databaseName as specified.- Parameters:
databaseName- String
-
getSchemas
Returns the schemas.- Returns:
- schemas - ArrayList
-
setSchemas
Sets the schemas as specified.- Parameters:
schemas- - ArrayList
-
getUrl
Returns the URL.- Returns:
- URL String
-
getUserName
Returns the userName.- Returns:
- userName String
-
getSecretCode
Returns the password.- Returns:
- password String
-
getDriverName
Returns the driverName.- Returns:
- driverName String
-
getDatabaseType
Returns the databaseType.- Returns:
- dbType DatabaseType
-
setDriverName
Sets the driverName as specified.- Parameters:
driverName- String
-
setUrl
Sets the URL as specified.- Parameters:
url- String
-
setUserName
Sets the userName as specified.- Parameters:
userName- String
-
setSecretCode
Sets the password as specified.- Parameters:
password- String
-
setDatabaseType
Sets the databaseType as specified.- Parameters:
dbType- String
-
getPartitions
public int getPartitions()Returns the partitions.- Returns:
- partitions int
-
setPartitions
public void setPartitions(int partitions) Sets the partitions as specified.- Parameters:
partitions- int
-
getMinimumConnectionsPerPartition
public int getMinimumConnectionsPerPartition()Returns the minimumConnectionsPerPartition.- Returns:
- minimumConnectionsPerPartition - int
-
setMinimumConnectionsPerPartition
public void setMinimumConnectionsPerPartition(int minimumConnectionsPerPartition) Sets the minimumConnectionsPerPartition as specified.- Parameters:
minimumConnectionsPerPartition- int
-
getMaximumConnectionsPerPartition
public int getMaximumConnectionsPerPartition()Returns the maximumConnectionsPerPartition.- Returns:
- maximumConnectionsPerPartition int
-
setMaximumConnectionsPerPartition
public void setMaximumConnectionsPerPartition(int maximumConnectionsPerPartition) Sets the maximumConnectionsPerPartition as specified.- Parameters:
maximumConnectionsPerPartition- int
-
isTestConnectionPeriodically
public boolean isTestConnectionPeriodically()Returns the value of testConnectionPeriodically.- Returns:
- testConnectionPeriodically - boolean
-
setTestConnectionPeriodically
public void setTestConnectionPeriodically(boolean _testConnectionPeriodically) Sets the testConnectionPeriodically value as specified.- Parameters:
_testConnectionPeriodically- boolean
-
getTestConnectionQuery
Returns the testConnectionQuery as specified.- Returns:
- testConnectionQuery String
-
setTestConnectionQuery
Sets the testConnectionQuery as specified.- Parameters:
_testConnectionQuery- String
-
isAutoCommit
public boolean isAutoCommit()Returns the autoCommit value.- Returns:
- autoCommit boolean
-
setAutoCommit
public void setAutoCommit(boolean autoCommit) Sets the autoCommit value as specified.- Parameters:
autoCommit- boolean
-
getDatabaseHost
Returns the databaseHost.- Returns:
- databaseHost String
-
setDatabaseHost
Sets the databaseHost as specified.- Parameters:
databaseHost- String
-
getTransactionIsolation
- Returns:
-
setTransactionIsolation
- Parameters:
transactionIsolation-
-
isReadOnly
- Returns:
-
setReadOnly
- Parameters:
readOnly-
-
getKerberosPrincipal
- Returns:
-
setKerberosPrincipal
- Parameters:
kerberosPrincipal-
-
getSshPort
public int getSshPort()- Returns:
-
setSshPort
public void setSshPort(int sshPort) - Parameters:
sshPort-
-
isOracleEnableSSLConnection
public boolean isOracleEnableSSLConnection() -
setOracleEnableSSLConnection
public void setOracleEnableSSLConnection(boolean oracleEnableSSLConnection) -
getOracleWalletLocation
-
setOracleWalletLocation
-
getOraclePIKProviderPosition
-
setOraclePIKProviderPosition
-
isOracleSSLServerDNMatch
public boolean isOracleSSLServerDNMatch() -
setOracleSSLServerDNMatch
public void setOracleSSLServerDNMatch(boolean oracleSSLServerDNMatch) -
getDatabaseOptions
-
setDatabaseOptions
-
isSupportAutoCommit
public boolean isSupportAutoCommit() -
setSupportAutoCommit
public void setSupportAutoCommit(boolean supportAutoCommit) -
isHasAccessToDba
public boolean isHasAccessToDba() -
setHasAccessToDba
public void setHasAccessToDba(boolean hasAccessToDba)
-