org.eclipse.datatools.connectivity.sqm.core.connection
Interface ConnectionInfo


public interface ConnectionInfo

Public ConnectionInfo interface - extended internally


Method Summary
 Database getCachedDatabase()
          Load a database from workspace cache.
 long getCachedDatabaseTimestamp()
           
 IConnectionProfile getConnectionProfile()
          return the profile from the connection
 DatabaseDefinition getDatabaseDefinition()
           
 java.lang.String getDatabaseName()
           
 java.lang.String getDriverClassName()
           
 java.util.Iterator getFilters()
          return all the connection filters
 java.lang.String getIdentifierQuoteString()
           
 java.lang.String getName()
          A user friendly name of the connection info.
 java.lang.String getPassword()
          Helper function for property "password".
 java.util.Properties getProperties()
           
 java.sql.Connection getSharedConnection()
          Retrive the shared connection.
 Database getSharedDatabase()
          retrieve the shared database
 java.lang.String getURL()
           
 java.lang.String getUserName()
          Helper function for property "user".
 

Method Detail

getName

java.lang.String getName()
A user friendly name of the connection info.

Returns:
the connection info name - null means it is not named.

getDatabaseDefinition

DatabaseDefinition getDatabaseDefinition()
Returns:
the database definition associated to this connection info

getDriverClassName

java.lang.String getDriverClassName()
Returns:
the JDBC driver class full name.

getURL

java.lang.String getURL()
Returns:
JDBC connection URL

getUserName

java.lang.String getUserName()
Helper function for property "user". The value can be accessed directly using Properties

Returns:
value of property "user"

getPassword

java.lang.String getPassword()
Helper function for property "password". The value can be accessed directly using Properties

Returns:
value of property "password"

getDatabaseName

java.lang.String getDatabaseName()

getIdentifierQuoteString

java.lang.String getIdentifierQuoteString()

getProperties

java.util.Properties getProperties()
Returns:
the properties for JDBC connection

getSharedConnection

java.sql.Connection getSharedConnection()
Retrive the shared connection.

Returns:
if no shared connection set, return null.

getSharedDatabase

Database getSharedDatabase()
retrieve the shared database

Returns:
if no shared databsae set, return null

getCachedDatabase

Database getCachedDatabase()
Load a database from workspace cache.

Returns:

getCachedDatabaseTimestamp

long getCachedDatabaseTimestamp()

getFilters

java.util.Iterator getFilters()
return all the connection filters


getConnectionProfile

IConnectionProfile getConnectionProfile()
return the profile from the connection

Returns:
IConnectionProfile


Copyright © 2006 -- 2008 Actuate, IBM Corporation, Sybase, Inc. and others. All rights reserved.