WebQueryConnection
Inheritance: java.lang.Object, com.aspose.cells.ExternalConnection
public class WebQueryConnection extends ExternalConnection
Specifies the properties for a web query source. A web query will retrieve data from HTML tables, and can also supply HTTP “Get” parameters to be processed by the web server in generating the HTML by including the parameters and parameter elements.
Methods
Method | Description |
---|---|
equals(Object arg0) | |
getBackgroundRefresh() | Indicates whether the connection can be refreshed in the background (asynchronously). |
getClass() | |
getClassType() | Gets the type of this ExternalConnection object. |
getCommand() | The string containing the database command to pass to the data provider API that will interact with the external source in order to retrieve data |
getCommandType() | Specifies the OLE DB command type. 1. |
getConnectionDescription() | Specifies the user description for this connection |
getConnectionFile() | Gets the connection file. |
getConnectionId() | Specifies The unique identifier of this connection. |
getConnectionString() | The connection information string is used to make contact with an OLE DB or ODBC data source. |
getCredentials() | Specifies the authentication method to be used when establishing (or re-establishing) the connection. |
getCredentialsMethodType() | Specifies the authentication method to be used when establishing (or re-establishing) the connection. |
getEditPage() | The URL of the user-facing web page showing the web query data. |
getEditWebPage() | The URL of the user-facing web page showing the web query data. |
getHtmlFormat() | How to handle formatting from the HTML source when bringing web query data into the worksheet. |
getId() | Gets the id of the connection. |
getKeepAlive() | True when the spreadsheet application should make efforts to keep the connection open. |
getName() | Specifies the name of the connection. |
getOdcFile() | Specifies the full path to external connection file from which this connection was created. |
getOnlyUseConnectionFile() | Indicates whether the spreadsheet application should always and only use the connection information in the external connection file indicated by the odcFile attribute when the connection is refreshed. |
getParameters() | Gets ConnectionParameterCollection for an ODBC or web query. |
getPost() | Returns or sets the string used with the post method of inputting data into a web server to return data from a web query. |
getPowerQueryFormula() | Gets the definition of power query formula. |
getReconnectionMethod() | Specifies what the spreadsheet application should do when a connection fails. |
getReconnectionMethodType() | Specifies what the spreadsheet application should do when a connection fails. |
getRefreshInternal() | Specifies the number of minutes between automatic refreshes of the connection. |
getRefreshOnLoad() | True if this connection should be refreshed when opening the file; otherwise, false. |
getSSOId() | Identifier for Single Sign On (SSO) used for authentication between an intermediate spreadsheetML server and the external data source. |
getSaveData() | True if the external data fetched over the connection to populate a table is to be saved with the workbook; otherwise, false. |
getSavePassword() | True if the password is to be saved as part of the connection string; otherwise, False. |
getSecondCommand() | Specifies a second command text string that is persisted when PivotTable server-based page fields are in use. |
getSourceFile() | Used when the external data source is file-based. |
getSourceType() | Gets the external connection DataSource type. |
getType() | Gets the external connection DataSource type. |
getUrl() | URL to use to refresh external data. |
hashCode() | |
isConsecutive() | Flag indicating whether consecutive delimiters should be treated as just one delimiter. |
isDeleted() | Indicates whether the associated workbook connection has been deleted. |
isHtmlTables() | Flag indicating whether web queries should only work on HTML tables. |
isNew() | True if the connection has not been refreshed for the first time; otherwise, false. |
isParsePre() | Flag indicating whether data contained within HTML PRE tags in the web page is parsed into columns when you import the page into a query table. |
isSameSettings() | Flag indicating whether to parse all tables inside a PRE block with the same width settings as the first row. |
isTextDates() | Flag indicating whether dates should be imported into cells in the worksheet as text rather than dates. |
isXl2000() | This flag exists for backward compatibility with older existing spreadsheet files, and is set to true if this web query was refreshed in a spreadsheet application newer than or equal to Microsoft Excel 2000. |
isXl97() | This flag exists for backward compatibility with older existing spreadsheet files, and is set to true if this web query was created in Microsoft Excel 97. |
isXml() | true if the web query source is XML (versus HTML), otherwise false. |
isXmlSourceData() | Flag indicating that XML source data should be imported instead of the HTML table itself. |
notify() | |
notifyAll() | |
setBackgroundRefresh(boolean value) | Indicates whether the connection can be refreshed in the background (asynchronously). |
setCommand(String value) | The string containing the database command to pass to the data provider API that will interact with the external source in order to retrieve data |
setCommandType(int value) | Specifies the OLE DB command type. 1. |
setConnectionDescription(String value) | Specifies the user description for this connection |
setConnectionString(String value) | The connection information string is used to make contact with an OLE DB or ODBC data source. |
setConsecutive(boolean value) | Flag indicating whether consecutive delimiters should be treated as just one delimiter. |
setCredentials(int value) | Specifies the authentication method to be used when establishing (or re-establishing) the connection. |
setCredentialsMethodType(int value) | Specifies the authentication method to be used when establishing (or re-establishing) the connection. |
setDeleted(boolean value) | Indicates whether the associated workbook connection has been deleted. |
setEditPage(String value) | The URL of the user-facing web page showing the web query data. |
setEditWebPage(String value) | The URL of the user-facing web page showing the web query data. |
setHtmlFormat(int value) | How to handle formatting from the HTML source when bringing web query data into the worksheet. |
setHtmlTables(boolean value) | Flag indicating whether web queries should only work on HTML tables. |
setKeepAlive(boolean value) | True when the spreadsheet application should make efforts to keep the connection open. |
setName(String value) | Specifies the name of the connection. |
setNew(boolean value) | True if the connection has not been refreshed for the first time; otherwise, false. |
setOdcFile(String value) | Specifies the full path to external connection file from which this connection was created. |
setOnlyUseConnectionFile(boolean value) | Indicates whether the spreadsheet application should always and only use the connection information in the external connection file indicated by the odcFile attribute when the connection is refreshed. |
setParsePre(boolean value) | Flag indicating whether data contained within HTML PRE tags in the web page is parsed into columns when you import the page into a query table. |
setPost(String value) | Returns or sets the string used with the post method of inputting data into a web server to return data from a web query. |
setReconnectionMethod(int value) | Specifies what the spreadsheet application should do when a connection fails. |
setReconnectionMethodType(int value) | Specifies what the spreadsheet application should do when a connection fails. |
setRefreshInternal(int value) | Specifies the number of minutes between automatic refreshes of the connection. |
setRefreshOnLoad(boolean value) | True if this connection should be refreshed when opening the file; otherwise, false. |
setSSOId(String value) | Identifier for Single Sign On (SSO) used for authentication between an intermediate spreadsheetML server and the external data source. |
setSameSettings(boolean value) | Flag indicating whether to parse all tables inside a PRE block with the same width settings as the first row. |
setSaveData(boolean value) | True if the external data fetched over the connection to populate a table is to be saved with the workbook; otherwise, false. |
setSavePassword(boolean value) | True if the password is to be saved as part of the connection string; otherwise, False. |
setSecondCommand(String value) | Specifies a second command text string that is persisted when PivotTable server-based page fields are in use. |
setSourceFile(String value) | Used when the external data source is file-based. |
setSourceType(int value) | Sets the external connection DataSource type. |
setTextDates(boolean value) | Flag indicating whether dates should be imported into cells in the worksheet as text rather than dates. |
setType(int value) | Sets the external connection DataSource type. |
setUrl(String value) | URL to use to refresh external data. |
setXl2000(boolean value) | This flag exists for backward compatibility with older existing spreadsheet files, and is set to true if this web query was refreshed in a spreadsheet application newer than or equal to Microsoft Excel 2000. |
setXl97(boolean value) | This flag exists for backward compatibility with older existing spreadsheet files, and is set to true if this web query was created in Microsoft Excel 97. |
setXml(boolean value) | true if the web query source is XML (versus HTML), otherwise false. |
setXmlSourceData(boolean value) | Flag indicating that XML source data should be imported instead of the HTML table itself. |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
getBackgroundRefresh()
public boolean getBackgroundRefresh()
Indicates whether the connection can be refreshed in the background (asynchronously). true if preferred usage of the connection is to refresh asynchronously in the background; false if preferred usage of the connection is to refresh synchronously in the foreground.
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getClassType()
public int getClassType()
Gets the type of this ExternalConnection object.
See ExternalConnectionClassType.
Returns: int
getCommand()
public String getCommand()
The string containing the database command to pass to the data provider API that will interact with the external source in order to retrieve data
Returns: java.lang.String
getCommandType()
public int getCommandType()
Specifies the OLE DB command type. 1. Query specifies a cube name 2. Query specifies a SQL statement 3. Query specifies a table name 4. Query specifies that default information has been given, and it is up to the provider how to interpret. 5. Query is against a web based List Data Provider.
See OLEDBCommandType.
Returns: int
getConnectionDescription()
public String getConnectionDescription()
Specifies the user description for this connection
Returns: java.lang.String
getConnectionFile()
public String getConnectionFile()
Gets the connection file.
Returns: java.lang.String
getConnectionId()
public int getConnectionId()
Specifies The unique identifier of this connection.
Remarks
NOTE: This property is now obsolete. Instead, please use ExternalConnection.Id property. This property will be removed 12 months later since October 2024. Aspose apologizes for any inconvenience you may have experienced.
Returns: int
getConnectionString()
public String getConnectionString()
The connection information string is used to make contact with an OLE DB or ODBC data source.
Returns: java.lang.String
getCredentials()
public int getCredentials()
Specifies the authentication method to be used when establishing (or re-establishing) the connection.
Remarks
NOTE: This property is now obsolete. Instead, please use ExternalConnection.CredentialsMethodType property. This property will be removed 12 months later since October 2017. Aspose apologizes for any inconvenience you may have experienced.
Returns: int
getCredentialsMethodType()
public int getCredentialsMethodType()
Specifies the authentication method to be used when establishing (or re-establishing) the connection.
Returns: int
getEditPage()
public String getEditPage()
The URL of the user-facing web page showing the web query data. This URL is persisted in the case that sourceData=“true” and url has been redirected to reference an XML file. Then the user-facing page can be shown in the UI, and the XML data can be retrieved behind the scenes.
Remarks
NOTE: This property is now obsolete. Instead, please use WebQueryConnection.EditWebPage property. This property will be removed 12 months later since October 2017. Aspose apologizes for any inconvenience you may have experienced.
Returns: java.lang.String
getEditWebPage()
public String getEditWebPage()
The URL of the user-facing web page showing the web query data. This URL is persisted in the case that sourceData=“true” and url has been redirected to reference an XML file. Then the user-facing page can be shown in the UI, and the XML data can be retrieved behind the scenes.
Returns: java.lang.String
getHtmlFormat()
public int getHtmlFormat()
How to handle formatting from the HTML source when bringing web query data into the worksheet. Relevant when sourceData is True.
Returns: int
getId()
public int getId()
Gets the id of the connection.
Returns: int
getKeepAlive()
public boolean getKeepAlive()
True when the spreadsheet application should make efforts to keep the connection open. When false, the application should close the connection after retrieving the information.
Returns: boolean
getName()
public String getName()
Specifies the name of the connection. Each connection must have a unique name.
Returns: java.lang.String
getOdcFile()
public String getOdcFile()
Specifies the full path to external connection file from which this connection was created. If a connection fails during an attempt to refresh data, and reconnectionMethod=1, then the spreadsheet application will try again using information from the external connection file instead of the connection object embedded within the workbook.
Returns: java.lang.String
getOnlyUseConnectionFile()
public boolean getOnlyUseConnectionFile()
Indicates whether the spreadsheet application should always and only use the connection information in the external connection file indicated by the odcFile attribute when the connection is refreshed. If false, then the spreadsheet application should follow the procedure indicated by the reconnectionMethod attribute
Returns: boolean
getParameters()
public ConnectionParameterCollection getParameters()
Gets ConnectionParameterCollection for an ODBC or web query.
Returns: ConnectionParameterCollection
getPost()
public String getPost()
Returns or sets the string used with the post method of inputting data into a web server to return data from a web query.
Returns: java.lang.String
getPowerQueryFormula()
public PowerQueryFormula getPowerQueryFormula()
Gets the definition of power query formula.
Returns: PowerQueryFormula
getReconnectionMethod()
public int getReconnectionMethod()
Specifies what the spreadsheet application should do when a connection fails. The default value is ReConnectionMethodType.Required.
Remarks
NOTE: This property is now obsolete. Instead, please use ExternalConnection.ReconnectionMethodType property. This property will be removed 12 months later since October 2017. Aspose apologizes for any inconvenience you may have experienced.
Returns: int
getReconnectionMethodType()
public int getReconnectionMethodType()
Specifies what the spreadsheet application should do when a connection fails. The default value is ReConnectionMethodType.Required.
Returns: int
getRefreshInternal()
public int getRefreshInternal()
Specifies the number of minutes between automatic refreshes of the connection.
Returns: int
getRefreshOnLoad()
public boolean getRefreshOnLoad()
True if this connection should be refreshed when opening the file; otherwise, false.
Returns: boolean
getSSOId()
public String getSSOId()
Identifier for Single Sign On (SSO) used for authentication between an intermediate spreadsheetML server and the external data source.
Returns: java.lang.String
getSaveData()
public boolean getSaveData()
True if the external data fetched over the connection to populate a table is to be saved with the workbook; otherwise, false.
Returns: boolean
getSavePassword()
public boolean getSavePassword()
True if the password is to be saved as part of the connection string; otherwise, False.
Returns: boolean
getSecondCommand()
public String getSecondCommand()
Specifies a second command text string that is persisted when PivotTable server-based page fields are in use. For ODBC connections, serverCommand is usually a broader query than command (no WHERE clause is present in the former). Based on these 2 commands(Command and ServerCommand), parameter UI can be populated and parameterized queries can be constructed
Returns: java.lang.String
getSourceFile()
public String getSourceFile()
Used when the external data source is file-based. When a connection to such a data source fails, the spreadsheet application attempts to connect directly to this file. May be expressed in URI or system-specific file path notation.
Returns: java.lang.String
getSourceType()
public int getSourceType()
Gets the external connection DataSource type.
Returns: int
getType()
public int getType()
Gets the external connection DataSource type.
Remarks
NOTE: This property is now obsolete. Instead, please use ExternalConnection.SourceType property. This property will be removed 12 months later since October 2024. Aspose apologizes for any inconvenience you may have experienced.
Returns: int
getUrl()
public String getUrl()
URL to use to refresh external data.
Returns: java.lang.String
hashCode()
public native int hashCode()
Returns: int
isConsecutive()
public boolean isConsecutive()
Flag indicating whether consecutive delimiters should be treated as just one delimiter.
Returns: boolean
isDeleted()
public boolean isDeleted()
Indicates whether the associated workbook connection has been deleted. true if the connection has been deleted; otherwise, false.
Returns: boolean
isHtmlTables()
public boolean isHtmlTables()
Flag indicating whether web queries should only work on HTML tables.
Returns: boolean
isNew()
public boolean isNew()
True if the connection has not been refreshed for the first time; otherwise, false. This state can happen when the user saves the file before a query has finished returning.
Returns: boolean
isParsePre()
public boolean isParsePre()
Flag indicating whether data contained within HTML PRE tags in the web page is parsed into columns when you import the page into a query table.
Returns: boolean
isSameSettings()
public boolean isSameSettings()
Flag indicating whether to parse all tables inside a PRE block with the same width settings as the first row.
Returns: boolean
isTextDates()
public boolean isTextDates()
Flag indicating whether dates should be imported into cells in the worksheet as text rather than dates.
Returns: boolean
isXl2000()
public boolean isXl2000()
This flag exists for backward compatibility with older existing spreadsheet files, and is set to true if this web query was refreshed in a spreadsheet application newer than or equal to Microsoft Excel 2000. This is an optional attribute that can be ignored.
Returns: boolean
isXl97()
public boolean isXl97()
This flag exists for backward compatibility with older existing spreadsheet files, and is set to true if this web query was created in Microsoft Excel 97. This is an optional attribute that can be ignored.
Returns: boolean
isXml()
public boolean isXml()
true if the web query source is XML (versus HTML), otherwise false.
Returns: boolean
isXmlSourceData()
public boolean isXmlSourceData()
Flag indicating that XML source data should be imported instead of the HTML table itself.
Returns: boolean
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
setBackgroundRefresh(boolean value)
public void setBackgroundRefresh(boolean value)
Indicates whether the connection can be refreshed in the background (asynchronously). true if preferred usage of the connection is to refresh asynchronously in the background; false if preferred usage of the connection is to refresh synchronously in the foreground.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setCommand(String value)
public void setCommand(String value)
The string containing the database command to pass to the data provider API that will interact with the external source in order to retrieve data
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setCommandType(int value)
public void setCommandType(int value)
Specifies the OLE DB command type. 1. Query specifies a cube name 2. Query specifies a SQL statement 3. Query specifies a table name 4. Query specifies that default information has been given, and it is up to the provider how to interpret. 5. Query is against a web based List Data Provider.
See OLEDBCommandType.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setConnectionDescription(String value)
public void setConnectionDescription(String value)
Specifies the user description for this connection
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setConnectionString(String value)
public void setConnectionString(String value)
The connection information string is used to make contact with an OLE DB or ODBC data source.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setConsecutive(boolean value)
public void setConsecutive(boolean value)
Flag indicating whether consecutive delimiters should be treated as just one delimiter.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setCredentials(int value)
public void setCredentials(int value)
Specifies the authentication method to be used when establishing (or re-establishing) the connection.
Remarks
NOTE: This property is now obsolete. Instead, please use ExternalConnection.CredentialsMethodType property. This property will be removed 12 months later since October 2017. Aspose apologizes for any inconvenience you may have experienced.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setCredentialsMethodType(int value)
public void setCredentialsMethodType(int value)
Specifies the authentication method to be used when establishing (or re-establishing) the connection.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setDeleted(boolean value)
public void setDeleted(boolean value)
Indicates whether the associated workbook connection has been deleted. true if the connection has been deleted; otherwise, false.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setEditPage(String value)
public void setEditPage(String value)
The URL of the user-facing web page showing the web query data. This URL is persisted in the case that sourceData=“true” and url has been redirected to reference an XML file. Then the user-facing page can be shown in the UI, and the XML data can be retrieved behind the scenes.
Remarks
NOTE: This property is now obsolete. Instead, please use WebQueryConnection.EditWebPage property. This property will be removed 12 months later since October 2017. Aspose apologizes for any inconvenience you may have experienced.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setEditWebPage(String value)
public void setEditWebPage(String value)
The URL of the user-facing web page showing the web query data. This URL is persisted in the case that sourceData=“true” and url has been redirected to reference an XML file. Then the user-facing page can be shown in the UI, and the XML data can be retrieved behind the scenes.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setHtmlFormat(int value)
public void setHtmlFormat(int value)
How to handle formatting from the HTML source when bringing web query data into the worksheet. Relevant when sourceData is True.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setHtmlTables(boolean value)
public void setHtmlTables(boolean value)
Flag indicating whether web queries should only work on HTML tables.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setKeepAlive(boolean value)
public void setKeepAlive(boolean value)
True when the spreadsheet application should make efforts to keep the connection open. When false, the application should close the connection after retrieving the information.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setName(String value)
public void setName(String value)
Specifies the name of the connection. Each connection must have a unique name.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setNew(boolean value)
public void setNew(boolean value)
True if the connection has not been refreshed for the first time; otherwise, false. This state can happen when the user saves the file before a query has finished returning.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setOdcFile(String value)
public void setOdcFile(String value)
Specifies the full path to external connection file from which this connection was created. If a connection fails during an attempt to refresh data, and reconnectionMethod=1, then the spreadsheet application will try again using information from the external connection file instead of the connection object embedded within the workbook.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setOnlyUseConnectionFile(boolean value)
public void setOnlyUseConnectionFile(boolean value)
Indicates whether the spreadsheet application should always and only use the connection information in the external connection file indicated by the odcFile attribute when the connection is refreshed. If false, then the spreadsheet application should follow the procedure indicated by the reconnectionMethod attribute
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setParsePre(boolean value)
public void setParsePre(boolean value)
Flag indicating whether data contained within HTML PRE tags in the web page is parsed into columns when you import the page into a query table.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setPost(String value)
public void setPost(String value)
Returns or sets the string used with the post method of inputting data into a web server to return data from a web query.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setReconnectionMethod(int value)
public void setReconnectionMethod(int value)
Specifies what the spreadsheet application should do when a connection fails. The default value is ReConnectionMethodType.Required.
Remarks
NOTE: This property is now obsolete. Instead, please use ExternalConnection.ReconnectionMethodType property. This property will be removed 12 months later since October 2017. Aspose apologizes for any inconvenience you may have experienced.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setReconnectionMethodType(int value)
public void setReconnectionMethodType(int value)
Specifies what the spreadsheet application should do when a connection fails. The default value is ReConnectionMethodType.Required.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setRefreshInternal(int value)
public void setRefreshInternal(int value)
Specifies the number of minutes between automatic refreshes of the connection.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setRefreshOnLoad(boolean value)
public void setRefreshOnLoad(boolean value)
True if this connection should be refreshed when opening the file; otherwise, false.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setSSOId(String value)
public void setSSOId(String value)
Identifier for Single Sign On (SSO) used for authentication between an intermediate spreadsheetML server and the external data source.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setSameSettings(boolean value)
public void setSameSettings(boolean value)
Flag indicating whether to parse all tables inside a PRE block with the same width settings as the first row.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setSaveData(boolean value)
public void setSaveData(boolean value)
True if the external data fetched over the connection to populate a table is to be saved with the workbook; otherwise, false.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setSavePassword(boolean value)
public void setSavePassword(boolean value)
True if the password is to be saved as part of the connection string; otherwise, False.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setSecondCommand(String value)
public void setSecondCommand(String value)
Specifies a second command text string that is persisted when PivotTable server-based page fields are in use. For ODBC connections, serverCommand is usually a broader query than command (no WHERE clause is present in the former). Based on these 2 commands(Command and ServerCommand), parameter UI can be populated and parameterized queries can be constructed
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setSourceFile(String value)
public void setSourceFile(String value)
Used when the external data source is file-based. When a connection to such a data source fails, the spreadsheet application attempts to connect directly to this file. May be expressed in URI or system-specific file path notation.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setSourceType(int value)
public void setSourceType(int value)
Sets the external connection DataSource type.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setTextDates(boolean value)
public void setTextDates(boolean value)
Flag indicating whether dates should be imported into cells in the worksheet as text rather than dates.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setType(int value)
public void setType(int value)
Sets the external connection DataSource type.
Remarks
NOTE: This property is now obsolete. Instead, please use ExternalConnection.SourceType property. This property will be removed 12 months later since October 2024. Aspose apologizes for any inconvenience you may have experienced.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setUrl(String value)
public void setUrl(String value)
URL to use to refresh external data.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setXl2000(boolean value)
public void setXl2000(boolean value)
This flag exists for backward compatibility with older existing spreadsheet files, and is set to true if this web query was refreshed in a spreadsheet application newer than or equal to Microsoft Excel 2000. This is an optional attribute that can be ignored.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setXl97(boolean value)
public void setXl97(boolean value)
This flag exists for backward compatibility with older existing spreadsheet files, and is set to true if this web query was created in Microsoft Excel 97. This is an optional attribute that can be ignored.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setXml(boolean value)
public void setXml(boolean value)
true if the web query source is XML (versus HTML), otherwise false.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setXmlSourceData(boolean value)
public void setXmlSourceData(boolean value)
Flag indicating that XML source data should be imported instead of the HTML table itself.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |