Purpose | Connects to a dbANYWHERE Server. |
---|---|
Hierarchy | java.lang.Object
|
Syntax | public class Session
|
Description | Session connects to a dbANYWHERE Server and provides access to the dbANYWHERE classes. |
Purpose | Creates a Session object. |
---|---|
Syntax | public Session(String serverURL) throws SQLException
|
Parameters | serverURL = The URL string to connect to the dbANYWHERE server. |
Description | Creates a dbANYWHERE connection. |
Purpose | Closes all connections to a dbANYWHERE Server. |
---|---|
Syntax | public void close( ) throws SQLException
|
Parameters | None. |
Description | Closes a connection to a dbANYWHERE Server. |
Purpose | Creates a root RelationView for a new MultiView transaction. |
---|---|
Syntax | public RelationView createView(String sql) throws SQLException
|
Parameters | sql = SQL statement with OUT or IN/OUT parameters specified through '?' characters in the statement.
tablename = Name of a database table. columns = java.util.Vector object that contains Strings which are column names. conn = ConnectionInfo object. requestProps = java.util.Properties object containing Request object properties. |
Description | Creates a root RelationView for a new MultiView transaction.
Since the RelationView class provides methods that access a RelationView's MultiView, you can perform most operations without referring to the MultiView object. |
See also | java.util.Properties (in the Java API Documentation)
java.util.Vector (in the Java API Documentation) |
Purpose | Returns a SessionMetaData object. |
---|---|
Syntax | public SessionMetaData getMetaData(ConnectionInfo conn) throws SQLException
|
Parameters | conn = ConnectionInfo object. |
Description | Retrieve a SessionMetaData object. The SessionMetaData class is designed to answer requests for information of a generic nature about a specific database connection through the current Session. SessionMetaData is an expansion of the JDBC DatabaseMetaData class.
Returns a SessionMetaData object. It may be used to obtain information specific to the database connection that was specified. |
See also | SessionMetaData, Properties |
Purpose | Creates a Request object. |
---|---|
Syntax | public Request getRequest( ) throws SQLException
|
Parameters | sql = SQL statement. |
Description | Creates a Request object that can be used to create a root RelationView for a new MultiView. The Request object is initialized with the default ConnectionInfo object, an empty SQL string, and default Request properties. |
See also | ConnectionInfo
Request |
Purpose | Returns a dbANYWHERE Server's URL. |
---|---|
Syntax | public String getServerURL( ) throws SQLException
|
Parameters | None. |
Description | Retrieves the URL used to connect to the server. |
Purpose | Returns a list of a dbANYWHERE Server's databases (DSNs). |
---|---|
Syntax | public RelationView inquireDSN( ) throws SQLException
|
Parameters | None. |
Description | Returns a list of a dbANYWHERE Server's databases (DSNs). The method will return a RelationView object that may be used to get DSN name, description, engine, server, and database information. The RelationView returned is a read only object, and will not support modifications to data.
Returns a RelationView object whose rows describe the data sources. |
Purpose | Sets default database connection information. |
---|---|
Syntax | public void setDefaultConnection(ConnectionInfo conn) throws SQLException
|
Parameters | conn = ConnectionInfo object. |
Description | Installs a ConnectionInfo object containing the default database connection information used to retrieve Request objects when calling getRequest. |
Purpose | Sets the Logon Failure Handler. |
---|---|
Syntax | public void setLogonObject(Logon logonObj) throws SQLException
|
Parameters | logonObj = Handler for LogonFailure. |
Description | Installs an object implementing the Logon interface as the new LogonFailure Handler. |
Copyright © 1996 Symantec Corporation. All rights reserved.