com.aspose.diagram

Class DataConnection

  • java.lang.Object
    • 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()
void
           The default value is false. See Remarks for more information. The value of the property is BOOL integer constant.
java.lang.StringgetCommand()
void
setCommand(java.lang.Stringvalue)
           The command string used to query the data source.
java.lang.StringgetConnectionString()
void
setConnectionString(java.lang.Stringvalue)
           The connection string that defines the parameters necessary to connect to a data source.
java.lang.StringgetFileName()
void
setFileName(java.lang.Stringvalue)
           The name of the connection file. See Remarks for more information.
longgetID()
void
setID(longvalue)
           The ID assigned by Visio for a given connection, unique within the document.
longgetTimeout()
void
setTimeout(longvalue)
           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.