com.ontotext.ordi.tripleset
Class DataSourceImpl

java.lang.Object
  extended by com.ontotext.ordi.tripleset.WarningAwareImpl
      extended by com.ontotext.ordi.tripleset.DataSourceImpl
All Implemented Interfaces:
DataSource, WarningAware, Wrapper
Direct Known Subclasses:
TSourceImpl, WsmoSourceImpl

public abstract class DataSourceImpl
extends WarningAwareImpl
implements DataSource


Field Summary
protected  Map<Object,Object> properties
           
 
Fields inherited from class com.ontotext.ordi.tripleset.WarningAwareImpl
warning
 
Constructor Summary
DataSourceImpl(Map<Object,Object> properties)
           
 
Method Summary
 Map<Object,Object> getMetaData()
          Retrieves the meta-data properties used to create this DataSource.
 boolean isWrapperFor(Class<?> iface)
          Returns true if this either implements the interface argument or is directly or indirectly a wrapper for an object that does.
<T> T
unwrap(Class<T> iface)
          Returns an object that implements the given interface to allow access to non-standard methods, or standard methods not exposed by the proxy.
 
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
getConnection, getConnection, isShutdown, shutdown
 
Methods inherited from interface com.ontotext.ordi.WarningAware
clearWarnings, getWarning
 

Field Detail

properties

protected final Map<Object,Object> properties
Constructor Detail

DataSourceImpl

public DataSourceImpl(Map<Object,Object> properties)
Method Detail

getMetaData

public Map<Object,Object> getMetaData()
Description copied from interface: DataSource
Retrieves the meta-data properties used to create this DataSource.

Specified by:
getMetaData in interface DataSource
Returns:
collection of key/values

isWrapperFor

public boolean isWrapperFor(Class<?> iface)
                     throws ORDIException
Description copied from interface: Wrapper
Returns true if this either implements the interface argument or is directly or indirectly a wrapper for an object that does.

Specified by:
isWrapperFor in interface Wrapper
Parameters:
iface - A Class defining an interface that the result must implement.
Returns:
an object that implements the interface. May be a proxy for the actual implementing object.
Throws:
ORDIException

unwrap

public <T> T unwrap(Class<T> iface)
         throws ORDIException
Description copied from interface: Wrapper
Returns an object that implements the given interface to allow access to non-standard methods, or standard methods not exposed by the proxy.

Specified by:
unwrap in interface Wrapper
Parameters:
iface - a Class defining an interface.
Returns:
true if this implements the interface or directly or indirectly wraps an object that does.
Throws:
ORDIException


Copyright © 2008. All Rights Reserved.