com.ontotext.ordi
Interface DataSource

All Superinterfaces:
WarningAware, Wrapper
All Known Subinterfaces:
TSource, WsmoSource
All Known Implementing Classes:
DataSourceImpl, RDBMSAdapter, RemoteWsmoSource, TRREEAdapter, TSourceImpl, WsmoSourceImpl

public interface DataSource
extends Wrapper, WarningAware

A factory for connections to the physical data source that this DataSource represents. An object that implements the DataSource interface will typically be registered with a naming service based on the JavaTM Naming and Directory (JNDI) API.

Author:
vassil

Method Summary
 Connection getConnection()
          Creates new connection with default values.
 Connection getConnection(String user, String pass)
          Creates a new connection with specified user name and password.
 Map<Object,Object> getMetaData()
          Retrieves the meta-data properties used to create this DataSource.
 boolean isShutdown()
          Verifies whether the server instance is shutdown.
 void shutdown()
          Sends a signal to the server for shutdown.
 
Methods inherited from interface com.ontotext.ordi.Wrapper
isWrapperFor, unwrap
 
Methods inherited from interface com.ontotext.ordi.WarningAware
clearWarnings, getWarning
 

Method Detail

getMetaData

Map<Object,Object> getMetaData()
Retrieves the meta-data properties used to create this DataSource.

Returns:
collection of key/values

getConnection

Connection getConnection()
                         throws ORDIException
Creates new connection with default values.

Returns:
connection to the physical data source.
Throws:
ORDIException

getConnection

Connection getConnection(String user,
                         String pass)
                         throws ORDIException
Creates a new connection with specified user name and password.

Parameters:
user - name to be used.
pass - of the specified user.
Returns:
connection to the physical data source.
Throws:
ORDIException

shutdown

void shutdown()
Sends a signal to the server for shutdown. There is no strict definition how the different implementation have to process it.


isShutdown

boolean isShutdown()
Verifies whether the server instance is shutdown.

Returns:


Copyright © 2008. All Rights Reserved.