DataConnection

Inheritance: java.lang.Object

public class DataConnection

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

Constructors

ConstructorDescription
DataConnection()Constructor.

Methods

MethodDescription
equals(Object arg0)
getAlwaysUseConnectionFile()The default value is false.
getClass()
getCommand()The command string used to query the data source.
getConnectionString()The connection string that defines the parameters necessary to connect to a data source.
getFileName()The name of the connection file.
getID()The ID assigned by Visio for a given connection, unique within the document.
getTimeout()wait time in minutes while trying to establish a connection before terminating the attempt.
hashCode()
notify()
notifyAll()
setAlwaysUseConnectionFile(int value)For the description of this property, please see getAlwaysUseConnectionFile()
setCommand(String value)For the description of this property, please see getCommand()
setConnectionString(String value)For the description of this property, please see getConnectionString()
setFileName(String value)For the description of this property, please see getFileName()
setID(long value)For the description of this property, please see {@link DataConnection#(getID() & 0xFFFFFFFFL)}
setTimeout(long value)For the description of this property, please see getTimeout()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

DataConnection()

public DataConnection()

Constructor.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getAlwaysUseConnectionFile()

public int getAlwaysUseConnectionFile()

The default value is false. See Remarks for more information.

Returns: int

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getCommand()

public String getCommand()

The command string used to query the data source.

Returns: java.lang.String

getConnectionString()

public String getConnectionString()

The connection string that defines the parameters necessary to connect to a data source.

Returns: java.lang.String

getFileName()

public String getFileName()

The name of the connection file. See Remarks for more information.

Returns: java.lang.String

getID()

public long getID()

The ID assigned by Visio for a given connection, unique within the document.

Returns: long

getTimeout()

public long getTimeout()

wait time in minutes while trying to establish a connection before terminating the attempt.

Returns: long

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setAlwaysUseConnectionFile(int value)

public void setAlwaysUseConnectionFile(int value)

For the description of this property, please see getAlwaysUseConnectionFile()

Parameters:

ParameterTypeDescription
valueint

setCommand(String value)

public void setCommand(String value)

For the description of this property, please see getCommand()

Parameters:

ParameterTypeDescription
valuejava.lang.String

setConnectionString(String value)

public void setConnectionString(String value)

For the description of this property, please see getConnectionString()

Parameters:

ParameterTypeDescription
valuejava.lang.String

setFileName(String value)

public void setFileName(String value)

For the description of this property, please see getFileName()

Parameters:

ParameterTypeDescription
valuejava.lang.String

setID(long value)

public void setID(long value)

For the description of this property, please see {@link DataConnection#(getID() & 0xFFFFFFFFL)}

Parameters:

ParameterTypeDescription
valuelong

setTimeout(long value)

public void setTimeout(long value)

For the description of this property, please see getTimeout()

Parameters:

ParameterTypeDescription
valuelong

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int