Purpose | Contains database connection information. |
---|---|
Hierarchy | java.lang.Object
|
Syntax | public class ConnectionInfo
|
Description | ConnectionInfo contains database connection information. This information includes the database name. The information may also include the user name and password. |
See also | Session |
Purpose | Creates a ConnectionInfo object. |
---|---|
Syntax | public ConnectionInfo(String database)
|
Parameters | database = Name of the database to connect to. This value may be in one of the following formats: "engine/server/database" or "DSN".
user = User name for logging on to the database. password = Password for logging on to the database. autoDisconnect = Flag indicating whether or not to disconnect the database after each transaction. |
Description | Creates a ConnectionInfo object. |
Purpose | Returns a database's autoDisconnect property. |
---|---|
Syntax | public boolean getAutoDisconnect( )
|
Parameters | None. |
Description | Returns the autoDisconnect property indicating whether to automatically disconnect the database when a RelationView (that was created with this ConnectionInfo object) is closed. |
Purpose | Returns a database's name. |
---|---|
Syntax | public String getDBString( )
|
Parameters | None. |
Description | Returns the database name. This value may be in one of the following formats: "engine/server/database" or "DSN". |
Purpose | Returns a password for logging onto a database. |
---|---|
Syntax | public String getPassword( )
|
Parameters | None. |
Description | Returns the password for logging on to a database. |
Purpose | Returns a user name for logging onto a database. |
---|---|
Syntax | public String getUser( )
|
Parameters | None. |
Description | Returns the user name for logging on to a database. |
Purpose | Sets a database's autoDisconnect property. |
---|---|
Syntax | public void setAutoDisconnect(boolean autoDisconnect)
|
Parameters | autoDisconnect = Indicates whether to automatically disconnect the database or remain connected to the database. True = Automatically disconnect. False = Remain connected. |
Description | Sets a ConnectionInfo object's autoDisconnect property. The autoDisconnect property specifies whether or not to automatically disconnect the database when a RelationView (that was created with this ConnectionInfo object) is closed. |
Purpose | Sets a database's name. |
---|---|
Syntax | public void setDBString(String database)
|
Parameters | database = Name of the database to connect to. This value may be in one of the following formats: "engine/server/database" or "DSN". |
Description | Set the name of the database. |
Purpose | Sets a password for logging onto a database. |
---|---|
Syntax | public void setPassword(String password)
|
Parameters | password = Password for logging on to a database. |
Description | Sets the password for logging on to a database. |
Purpose | Sets a user name for logging onto a database. |
---|---|
Syntax | public void setUser(String user)
|
Parameters | user = User name for logging on to a database. |
Description | Sets the user name for logging on to a database. |
Copyright © 1996 Symantec Corporation. All rights reserved.