com.ontotext.ordi.rdbms
Class RDBMSAdapter

java.lang.Object
  extended by com.ontotext.ordi.tripleset.WarningAwareImpl
      extended by com.ontotext.ordi.tripleset.DataSourceImpl
          extended by com.ontotext.ordi.tripleset.impl.TSourceImpl
              extended by com.ontotext.ordi.rdbms.RDBMSAdapter
All Implemented Interfaces:
DataSource, TSource, WarningAware, Wrapper

public class RDBMSAdapter
extends TSourceImpl


Field Summary
static String MAPPER_DESCRIPTOR
           
 
Fields inherited from class com.ontotext.ordi.tripleset.DataSourceImpl
properties
 
Fields inherited from class com.ontotext.ordi.tripleset.WarningAwareImpl
warning
 
Constructor Summary
RDBMSAdapter(Map<Object,Object> props)
           
 
Method Summary
 TConnection getConnection()
          Create new connection with default values.
 TConnection getConnection(String user, String pass)
          Creates a new connection with specified user name and password.
 Processor getProcessor()
           
 TFactory getTriplesetFactory()
          Get factory object that can be used to construct URI, Literals and BNodes.
 boolean isShutdown()
          Verifies whether the server instance is shutdown.
 void shutdown()
          Sends a signal to the server for shutdown.
 
Methods inherited from class com.ontotext.ordi.tripleset.DataSourceImpl
getMetaData, isWrapperFor, unwrap
 
Methods inherited from class com.ontotext.ordi.tripleset.WarningAwareImpl
clearWarnings, getWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ontotext.ordi.DataSource
getMetaData
 
Methods inherited from interface com.ontotext.ordi.Wrapper
isWrapperFor, unwrap
 
Methods inherited from interface com.ontotext.ordi.WarningAware
clearWarnings, getWarning
 

Field Detail

MAPPER_DESCRIPTOR

public static final String MAPPER_DESCRIPTOR
See Also:
Constant Field Values
Constructor Detail

RDBMSAdapter

public RDBMSAdapter(Map<Object,Object> props)
Method Detail

getConnection

public TConnection getConnection()
Description copied from interface: TSource
Create new connection with default values.

Returns:
connection to triplset model.

getConnection

public TConnection getConnection(String user,
                                 String pass)
Description copied from interface: TSource
Creates a new connection with specified user name and password.

Parameters:
user - name to be used.
pass - of the specified user.
Returns:
connection to tripleset data model.

shutdown

public void shutdown()
Description copied from interface: DataSource
Sends a signal to the server for shutdown. There is no strict definition how the different implementation have to process it.


isShutdown

public boolean isShutdown()
Description copied from interface: DataSource
Verifies whether the server instance is shutdown.

Returns:

getTriplesetFactory

public TFactory getTriplesetFactory()
Description copied from interface: TSource
Get factory object that can be used to construct URI, Literals and BNodes.

Specified by:
getTriplesetFactory in interface TSource
Overrides:
getTriplesetFactory in class TSourceImpl
Returns:
factory object.

getProcessor

public Processor getProcessor()


Copyright © 2008. All Rights Reserved.