public class Connection
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
ApplidName |
int |
Cap_1 |
int |
Cap_2 |
int |
Cap_3 |
java.lang.String |
SerialNumber |
java.lang.String |
sqliFile |
SqliDbg |
sqliTrace |
java.lang.String |
VersionNumber |
short |
Warnings |
| Constructor and Description |
|---|
Connection(java.lang.String username,
java.lang.String password,
java.lang.String addr,
java.lang.String servername,
java.lang.String dbname,
java.util.Properties envlist,
java.lang.String versionnumber,
int capabilities,
java.lang.String serialnumber,
int retryCount,
java.util.Properties optProps,
Trace trace)
Connection:
Creates a socket connection to the server.
|
| Modifier and Type | Method and Description |
|---|---|
void |
disconnectAbortive()
disconnectAbortive(): This is an abortive disconnect.
|
void |
disconnectOrderly()
disconnectOrderly (): This is an orderly disconnect.
|
protected void |
finalize() |
IfxDataInputStream |
getIfxDataInputStream() |
IfxDataOutputStream |
getIfxDataOutputStream() |
int |
getNetworkTimeout() |
java.lang.String |
getUserName() |
void |
setNetworkTimeout(int timeout) |
void |
sOOBSocket()
sOOBSocket (): This is an out-of-band data Sends a one byte of out-of-band data to the server
|
public java.lang.String sqliFile
public SqliDbg sqliTrace
public java.lang.String VersionNumber
public java.lang.String SerialNumber
public java.lang.String ApplidName
public int Cap_1
public int Cap_2
public int Cap_3
public short Warnings
public Connection(java.lang.String username,
java.lang.String password,
java.lang.String addr,
java.lang.String servername,
java.lang.String dbname,
java.util.Properties envlist,
java.lang.String versionnumber,
int capabilities,
java.lang.String serialnumber,
int retryCount,
java.util.Properties optProps,
Trace trace)
throws IfxASFException
username: - The username to log on to the server. It can be null.password: - The password to log on to the server. It cannot be null.addr: - For the pharse I release, The addr conatains the IP address
and port number in the following format that will be used to establish
a socket connection to a server.
ip1.ip2.ip3.ip4,PortNumber where ip1 is the first decimal number
of the ip dotted_decimal address, ip2 is the second decimal number
of the ip dotted_decimal address, and etc.servername: - Informix servername.dbname: - Database name.envlist: - environment-variable list represented as a Java Properties object.versionnumber - capabilities: - Application capabilities, opaque to ASFserialnumber - retryCount: - Number of times to retry the socket connection.optProps: - Property list that contains security, sqlhosts information or LDAP info.IfxASFException: - If an error has occured.IfxASFExceptionpublic void sOOBSocket()
throws IfxASFException
IfxASFException - : if I/O error has occured.public void disconnectOrderly()
throws IfxASFException
IfxASFException - : if reply is found to be other than SQ_EXIT or I/O error has occured.public void disconnectAbortive()
throws IfxASFException
IfxASFException - If an I/O Error has occured.public IfxDataInputStream getIfxDataInputStream() throws IfxASFException
IfxASFExceptionpublic IfxDataOutputStream getIfxDataOutputStream() throws IfxASFException
IfxASFExceptionpublic java.lang.String getUserName()
protected void finalize()
finalize in class java.lang.Objectpublic void setNetworkTimeout(int timeout)
throws java.net.SocketException
java.net.SocketExceptionpublic int getNetworkTimeout()
throws java.net.SocketException
java.net.SocketException