Class Connection
java.lang.Object
com.independentsoft.office.spreadsheet.connections.Connection
The Class Connection.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()intGets the automatic refresh interval.Gets the connection file.Gets the credentials.Gets the database properties.Gets the database source type.Gets the description.intgetID()Gets the id.intGets the minimum refreshable version.getName()Gets the name.Gets the olap properties.Gets the query parameters.Gets the reconnection method.intGets the refreshed version.Gets the single sign on id.Gets the source file.Gets the text import settings.Gets the web query properties.booleanChecks if is background refresh.booleanChecks if is deleted.booleanChecks if is keep alive.booleanisNew()Checks if is new.booleanChecks if is only use connection file.booleanChecks if is refresh on load.booleanChecks if is save data.booleanChecks if is save password.voidsetAutomaticRefreshInterval(int automaticRefreshInterval)Sets the automatic refresh interval.voidsetBackgroundRefresh(boolean backgroundRefresh)Sets the background refresh.voidsetConnectionFile(String connectionFile)Sets the connection file.voidsetCredentials(CredentialsMethod credentials)Sets the credentials.voidsetDatabaseSourceType(DatabaseSourceType databaseSourceType)Sets the database source type.voidsetDeleted(boolean isDeleted)Sets the deleted.voidsetDescription(String description)Sets the description.voidsetID(int id)Sets the id.voidsetKeepAlive(boolean keepAlive)Sets the keep alive.voidsetMinimumRefreshableVersion(int minimumRefreshableVersion)Sets the minimum refreshable version.voidSets the name.voidsetNew(boolean isNew)Sets the new.voidsetOnlyUseConnectionFile(boolean onlyUseConnectionFile)Sets the only use connection file.voidsetReconnectionMethod(ReconnectionMethod reconnectionMethod)Sets the reconnection method.voidsetRefreshedVersion(int refreshedVersion)Sets the refreshed version.voidsetRefreshOnLoad(boolean refreshOnLoad)Sets the refresh on load.voidsetSaveData(boolean saveData)Sets the save data.voidsetSavePassword(boolean savePassword)Sets the save password.voidsetSingleSignOnID(String singleSignOnID)Sets the single sign on id.voidsetSourceFile(String sourceFile)Sets the source file.toString()
-
Constructor Details
-
Connection
public Connection()Instantiates a new connection.
-
-
Method Details
-
clone
-
toString
-
getDatabaseProperties
Gets the database properties.- Returns:
- the database properties
-
getOlapProperties
Gets the olap properties.- Returns:
- the olap properties
-
getQueryParameters
Gets the query parameters.- Returns:
- the query parameters
-
getTextImportSettings
Gets the text import settings.- Returns:
- the text import settings
-
getWebQueryProperties
Gets the web query properties.- Returns:
- the web query properties
-
isBackgroundRefresh
public boolean isBackgroundRefresh()Checks if is background refresh.- Returns:
- true, if is background refresh
-
setBackgroundRefresh
public void setBackgroundRefresh(boolean backgroundRefresh)Sets the background refresh.- Parameters:
backgroundRefresh- the new background refresh
-
getCredentials
Gets the credentials.- Returns:
- the credentials
-
setCredentials
Sets the credentials.- Parameters:
credentials- the new credentials
-
isDeleted
public boolean isDeleted()Checks if is deleted.- Returns:
- true, if is deleted
-
setDeleted
public void setDeleted(boolean isDeleted)Sets the deleted.- Parameters:
isDeleted- the new deleted
-
getDescription
Gets the description.- Returns:
- the description
-
setDescription
Sets the description.- Parameters:
description- the new description
-
getID
public int getID()Gets the id.- Returns:
- the id
-
setID
public void setID(int id)Sets the id.- Parameters:
id- the new id
-
getAutomaticRefreshInterval
public int getAutomaticRefreshInterval()Gets the automatic refresh interval.- Returns:
- the automatic refresh interval
-
setAutomaticRefreshInterval
public void setAutomaticRefreshInterval(int automaticRefreshInterval)Sets the automatic refresh interval.- Parameters:
automaticRefreshInterval- the new automatic refresh interval
-
isKeepAlive
public boolean isKeepAlive()Checks if is keep alive.- Returns:
- true, if is keep alive
-
setKeepAlive
public void setKeepAlive(boolean keepAlive)Sets the keep alive.- Parameters:
keepAlive- the new keep alive
-
getMinimumRefreshableVersion
public int getMinimumRefreshableVersion()Gets the minimum refreshable version.- Returns:
- the minimum refreshable version
-
setMinimumRefreshableVersion
public void setMinimumRefreshableVersion(int minimumRefreshableVersion)Sets the minimum refreshable version.- Parameters:
minimumRefreshableVersion- the new minimum refreshable version
-
getName
Gets the name.- Returns:
- the name
-
setName
Sets the name.- Parameters:
name- the new name
-
isNew
public boolean isNew()Checks if is new.- Returns:
- true, if is new
-
setNew
public void setNew(boolean isNew)Sets the new.- Parameters:
isNew- the new new
-
getConnectionFile
Gets the connection file.- Returns:
- the connection file
-
setConnectionFile
Sets the connection file.- Parameters:
connectionFile- the new connection file
-
isOnlyUseConnectionFile
public boolean isOnlyUseConnectionFile()Checks if is only use connection file.- Returns:
- true, if is only use connection file
-
setOnlyUseConnectionFile
public void setOnlyUseConnectionFile(boolean onlyUseConnectionFile)Sets the only use connection file.- Parameters:
onlyUseConnectionFile- the new only use connection file
-
getReconnectionMethod
Gets the reconnection method.- Returns:
- the reconnection method
-
setReconnectionMethod
Sets the reconnection method.- Parameters:
reconnectionMethod- the new reconnection method
-
getRefreshedVersion
public int getRefreshedVersion()Gets the refreshed version.- Returns:
- the refreshed version
-
setRefreshedVersion
public void setRefreshedVersion(int refreshedVersion)Sets the refreshed version.- Parameters:
refreshedVersion- the new refreshed version
-
isRefreshOnLoad
public boolean isRefreshOnLoad()Checks if is refresh on load.- Returns:
- true, if is refresh on load
-
setRefreshOnLoad
public void setRefreshOnLoad(boolean refreshOnLoad)Sets the refresh on load.- Parameters:
refreshOnLoad- the new refresh on load
-
isSaveData
public boolean isSaveData()Checks if is save data.- Returns:
- true, if is save data
-
setSaveData
public void setSaveData(boolean saveData)Sets the save data.- Parameters:
saveData- the new save data
-
isSavePassword
public boolean isSavePassword()Checks if is save password.- Returns:
- true, if is save password
-
setSavePassword
public void setSavePassword(boolean savePassword)Sets the save password.- Parameters:
savePassword- the new save password
-
getSingleSignOnID
Gets the single sign on id.- Returns:
- the single sign on id
-
setSingleSignOnID
Sets the single sign on id.- Parameters:
singleSignOnID- the new single sign on id
-
getSourceFile
Gets the source file.- Returns:
- the source file
-
setSourceFile
Sets the source file.- Parameters:
sourceFile- the new source file
-
getDatabaseSourceType
Gets the database source type.- Returns:
- the database source type
-
setDatabaseSourceType
Sets the database source type.- Parameters:
databaseSourceType- the new database source type
-