com.ontotext.ordi.tripleset
Interface TSource

All Superinterfaces:
DataSource, WarningAware, Wrapper
All Known Implementing Classes:
RDBMSAdapter, TRREEAdapter, TSourceImpl

public interface TSource
extends DataSource

Factory for connections to tripleset data model.

Author:
vassil

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.
 TFactory getTriplesetFactory()
          Get factory object that can be used to construct URI, Literals and BNodes.
 
Methods inherited from interface com.ontotext.ordi.DataSource
getMetaData, isShutdown, shutdown
 
Methods inherited from interface com.ontotext.ordi.Wrapper
isWrapperFor, unwrap
 
Methods inherited from interface com.ontotext.ordi.WarningAware
clearWarnings, getWarning
 

Method Detail

getConnection

TConnection getConnection()
Create new connection with default values.

Specified by:
getConnection in interface DataSource
Returns:
connection to triplset model.

getConnection

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

Specified by:
getConnection in interface DataSource
Parameters:
user - name to be used.
pass - of the specified user.
Returns:
connection to tripleset data model.
Throws:
ORDIException

getTriplesetFactory

TFactory getTriplesetFactory()
Get factory object that can be used to construct URI, Literals and BNodes.

Returns:
factory object.


Copyright © 2008. All Rights Reserved.