org.axiondb
Class DatabaseLink

java.lang.Object
  extended by org.axiondb.DatabaseLink

public class DatabaseLink
extends Object

A Database Link that holds connection spec for a external Database CREATE DATABASE LINK (DRIVER=' ' URL=' ' USERNAME=' ' PASSWORD=' ');

Version:
$Revision: 1.1 $ $Date: 2004/09/02 01:52:08 $

Field Summary
static String PROP_CATALOG
          Property key name for Catalog Name
static String PROP_DRIVERCLASS
          Property key name for JDBC driver class
static String PROP_JDBCURL
          Property key name for JDBC URL string
static String PROP_PASSWORD
          Property key name for user password
static String PROP_SCHEMA
          Property key name for SchemaName
static String PROP_USERNAME
          Property key name for user name
 
Constructor Summary
DatabaseLink(String name, Properties spec)
          Create an External Server
 
Method Summary
 String getCatalogName()
           
 Connection getConnection()
           
 String getJdbcUrl()
           
 String getName()
          Get the name of this database link.
 String getSchemaName()
           
 String getUserName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_DRIVERCLASS

public static final String PROP_DRIVERCLASS
Property key name for JDBC driver class

See Also:
Constant Field Values

PROP_JDBCURL

public static final String PROP_JDBCURL
Property key name for JDBC URL string

See Also:
Constant Field Values

PROP_USERNAME

public static final String PROP_USERNAME
Property key name for user name

See Also:
Constant Field Values

PROP_PASSWORD

public static final String PROP_PASSWORD
Property key name for user password

See Also:
Constant Field Values

PROP_CATALOG

public static final String PROP_CATALOG
Property key name for Catalog Name

See Also:
Constant Field Values

PROP_SCHEMA

public static final String PROP_SCHEMA
Property key name for SchemaName

See Also:
Constant Field Values
Constructor Detail

DatabaseLink

public DatabaseLink(String name,
                    Properties spec)
Create an External Server

Method Detail

getConnection

public Connection getConnection()
                         throws AxionException
Throws:
AxionException

getName

public String getName()
Get the name of this database link.


getCatalogName

public String getCatalogName()
Returns:
Returns the _catalogName.

getSchemaName

public String getSchemaName()
Returns:
Returns the _schemaName.

getJdbcUrl

public String getJdbcUrl()
Returns:
JDBC URL to use in connecting to the associated server

getUserName

public String getUserName()
Returns:
user name to authenticate against in connecting to associated server