com.ontotext.ordi.wsmo4rdf.impl
Class WsmoSourceImpl

java.lang.Object
  extended by com.ontotext.ordi.tripleset.WarningAwareImpl
      extended by com.ontotext.ordi.tripleset.DataSourceImpl
          extended by com.ontotext.ordi.wsmo4rdf.impl.WsmoSourceImpl
All Implemented Interfaces:
DataSource, WarningAware, Wrapper, WsmoSource

public class WsmoSourceImpl
extends DataSourceImpl
implements WsmoSource


Field Summary
 
Fields inherited from class com.ontotext.ordi.tripleset.DataSourceImpl
properties
 
Fields inherited from class com.ontotext.ordi.tripleset.WarningAwareImpl
warning
 
Fields inherited from interface com.ontotext.ordi.wsmo4rdf.WsmoSource
ORDI_SOURCE
 
Constructor Summary
WsmoSourceImpl(Map<Object,Object> params)
           
 
Method Summary
 void clearWarnings()
          Clears all reported warnings by the object.
protected  void finalize()
           
 WsmoConnection getConnection()
          Create new connection with default values.
 WsmoConnection getConnection(String user, String pass)
          Creates a new connection with specified user name and password.
 ORDIWarning getWarning()
          Retrieves the first warning reported by the object
 boolean isShutdown()
          Verifies whether the server instance is shutdown.
 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.
 void shutdown()
          Sends a signal to the server for shutdown.
<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.DataSourceImpl
getMetaData
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ontotext.ordi.DataSource
getMetaData
 

Constructor Detail

WsmoSourceImpl

public WsmoSourceImpl(Map<Object,Object> params)
Method Detail

getConnection

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

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

getConnection

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

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

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
Overrides:
isWrapperFor in class DataSourceImpl
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
Overrides:
unwrap in class DataSourceImpl
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

clearWarnings

public void clearWarnings()
Description copied from interface: WarningAware
Clears all reported warnings by the object.

Specified by:
clearWarnings in interface WarningAware
Overrides:
clearWarnings in class WarningAwareImpl

getWarning

public ORDIWarning getWarning()
Description copied from interface: WarningAware
Retrieves the first warning reported by the object

Specified by:
getWarning in interface WarningAware
Overrides:
getWarning in class WarningAwareImpl
Returns:
the first ORDIWarning or null if there are none.

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.

Specified by:
shutdown in interface DataSource

isShutdown

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

Specified by:
isShutdown in interface DataSource
Returns:

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable


Copyright © 2008. All Rights Reserved.