com.aspose.diagram
Class DataConnection

java.lang.Object
    extended by com.aspose.diagram.DataConnection

public class DataConnection 
extends java.lang.Object

Abstracts communication between one or more DataRecordset elements and a non-XML data source.


Constructor Summary
DataConnection()
           Constructor.
 
Property Getters/Setters Summary
intgetAlwaysUseConnectionFile()
voidsetAlwaysUseConnectionFile(int)
           The default value is false. See Remarks for more information. The value of the property is BOOL integer constant.
java.lang.StringgetCommand()
voidsetCommand(java.lang.String)
           The command string used to query the data source.
java.lang.StringgetConnectionString()
voidsetConnectionString(java.lang.String)
           The connection string that defines the parameters necessary to connect to a data source.
java.lang.StringgetFileName()
voidsetFileName(java.lang.String)
           The name of the connection file. See Remarks for more information.
longgetID()
voidsetID(long)
           The ID assigned by Visio for a given connection, unique within the document.
longgetTimeout()
voidsetTimeout(long)
           wait time in minutes while trying to establish a connection before terminating the attempt.
 

Constructor Detail

DataConnection

public DataConnection()
Constructor.

Property Getters/Setters Detail

getID/setID

public long getID() / public void setID(long value)
The ID assigned by Visio for a given connection, unique within the document.

getFileName/setFileName

public java.lang.String getFileName() / public void setFileName(java.lang.String value)
The name of the connection file. See Remarks for more information.

getConnectionString/setConnectionString

public java.lang.String getConnectionString() / public void setConnectionString(java.lang.String value)
The connection string that defines the parameters necessary to connect to a data source.

getCommand/setCommand

public java.lang.String getCommand() / public void setCommand(java.lang.String value)
The command string used to query the data source.

getTimeout/setTimeout

public long getTimeout() / public void setTimeout(long value)
wait time in minutes while trying to establish a connection before terminating the attempt.

getAlwaysUseConnectionFile/setAlwaysUseConnectionFile

public int getAlwaysUseConnectionFile() / public void setAlwaysUseConnectionFile(int value)
The default value is false. See Remarks for more information. The value of the property is BOOL integer constant.

See Also:
          Aspose.Diagram Documentation - the home page for the Aspose.Diagram Product Documentation.
          Aspose.Diagram Support Forum - our preferred method of support.