| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ontotext.ordi.wsmo4rdf.remote.client.RemoteWsmoConnection
public class RemoteWsmoConnection
| Constructor Summary | |
|---|---|
RemoteWsmoConnection(int conId,
                     RemoteWsmo4rdfGate gate)
 | 
|
| Method Summary | ||
|---|---|---|
 void | 
addGoal(Goal goal)
 | 
|
 void | 
addMediator(Mediator med)
 | 
|
 void | 
addOntology(Ontology ont)
 | 
|
 void | 
addWebService(WebService ws)
 | 
|
 void | 
clearWarnings()
Clears all reported warnings by the object.  | 
|
 void | 
close()
Releases all resources hold by this instance.  | 
|
 void | 
commit()
Commits all operations part of the current transaction.  | 
|
 void | 
deleteGoal(IRI id)
 | 
|
 void | 
deleteMediator(IRI id)
 | 
|
 void | 
deleteOntology(IRI id)
 | 
|
 void | 
deleteWebService(IRI id)
 | 
|
 void | 
evaluate(String query,
         QueryResultListener listener)
Invoke a query against this repository and read the results through a call-back interface.  | 
|
 void | 
finalize()
 | 
|
 DataSource | 
getDataSource()
Gets the DataSource this session is using. | 
|
 String | 
getDescription()
 | 
|
 Goal | 
getGoal(IRI id)
 | 
|
 Mediator | 
getMediator(IRI id)
 | 
|
 Ontology | 
getOntology(IRI id)
 | 
|
 IsolationLevel | 
getTransactionIsolationLevel()
Gets the isolation level of the current transaction.  | 
|
 String | 
getVersion()
 | 
|
 ORDIWarning | 
getWarning()
Retrieves the first warning reported by the object  | 
|
 WebService | 
getWebService(IRI id)
 | 
|
 boolean | 
isAutoCommit()
Checks if the the current session is in auto-commit mode.  | 
|
 boolean | 
isOpen()
Checks if this session is opened.  | 
|
 boolean | 
isReadOnly()
Checks if the current session to data provider is read-only.  | 
|
 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.  | 
|
 List<IRI> | 
listGoals()
 | 
|
 List<IRI> | 
listMediators()
 | 
|
 List<IRI> | 
listOntologies()
 | 
|
 List<IRI> | 
listWebServices()
 | 
|
 Set<Entity> | 
load(Identifier id)
 | 
|
 Entity | 
load(Identifier id,
     Class clazz)
 | 
|
 void | 
remove(Identifier id)
 | 
|
 void | 
remove(Identifier id,
       Class clazz)
 | 
|
 void | 
rollback()
Rollbacks all operations part of the current transaction.  | 
|
 void | 
save(Entity item)
 | 
|
 void | 
saveGoal(Goal goal)
 | 
|
 void | 
saveMediator(Mediator med)
 | 
|
 void | 
saveOntology(Ontology ont)
 | 
|
 void | 
saveWebService(WebService ws)
 | 
|
 void | 
setAutoCommit(boolean mode)
Sets the commit mode of the current transaction.  | 
|
 void | 
setDescription(String desc)
 | 
|
 void | 
setTransactionIsolationLevel(IsolationLevel isolationLevel)
Sets the isolation level of the current transaction.  | 
|
 | 
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 java.lang.Object | 
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public RemoteWsmoConnection(int conId,
                            RemoteWsmo4rdfGate gate)
| Method Detail | 
|---|
public void finalize()
finalize in class Object
public void evaluate(String query,
                     QueryResultListener listener)
              throws MalformedQueryException
WsmoConnection
evaluate in interface WsmoConnectionquery - to be evaluatedlistener - is call-back interface to be used
MalformedQueryExceptionpublic String getDescription()
getDescription in interface WsmoRepositorypublic void setDescription(String desc)
setDescription in interface WsmoRepository
public String getVersion()
                  throws SynchronisationException
getVersion in interface WsmoRepositorySynchronisationException
public void addOntology(Ontology ont)
                 throws SynchronisationException
addOntology in interface WsmoRepositorySynchronisationException
public void deleteOntology(IRI id)
                    throws SynchronisationException
deleteOntology in interface WsmoRepositorySynchronisationException
public Ontology getOntology(IRI id)
                     throws SynchronisationException
getOntology in interface WsmoRepositorySynchronisationException
public void saveOntology(Ontology ont)
                  throws SynchronisationException
saveOntology in interface WsmoRepositorySynchronisationException
public List<IRI> listOntologies()
                         throws SynchronisationException
listOntologies in interface WsmoRepositorySynchronisationException
public void addGoal(Goal goal)
             throws SynchronisationException
addGoal in interface WsmoRepositorySynchronisationException
public void saveGoal(Goal goal)
              throws SynchronisationException
saveGoal in interface WsmoRepositorySynchronisationException
public Goal getGoal(IRI id)
             throws SynchronisationException
getGoal in interface WsmoRepositorySynchronisationException
public void deleteGoal(IRI id)
                throws SynchronisationException
deleteGoal in interface WsmoRepositorySynchronisationException
public List<IRI> listGoals()
                    throws SynchronisationException
listGoals in interface WsmoRepositorySynchronisationException
public void addMediator(Mediator med)
                 throws SynchronisationException
addMediator in interface WsmoRepositorySynchronisationException
public void addWebService(WebService ws)
                   throws SynchronisationException
addWebService in interface WsmoRepositorySynchronisationException
public void deleteMediator(IRI id)
                    throws SynchronisationException
deleteMediator in interface WsmoRepositorySynchronisationException
public void deleteWebService(IRI id)
                      throws SynchronisationException
deleteWebService in interface WsmoRepositorySynchronisationException
public Mediator getMediator(IRI id)
                     throws SynchronisationException
getMediator in interface WsmoRepositorySynchronisationException
public WebService getWebService(IRI id)
                         throws SynchronisationException
getWebService in interface WsmoRepositorySynchronisationException
public List<IRI> listMediators()
                        throws SynchronisationException
listMediators in interface WsmoRepositorySynchronisationException
public List<IRI> listWebServices()
                          throws SynchronisationException
listWebServices in interface WsmoRepositorySynchronisationException
public void saveMediator(Mediator med)
                  throws SynchronisationException
saveMediator in interface WsmoRepositorySynchronisationException
public void saveWebService(WebService ws)
                    throws SynchronisationException
saveWebService in interface WsmoRepositorySynchronisationExceptionpublic Set<Entity> load(Identifier id)
load in interface DataStore
public Entity load(Identifier id,
                   Class clazz)
load in interface DataStorepublic void remove(Identifier id)
remove in interface DataStore
public void remove(Identifier id,
                   Class clazz)
remove in interface DataStorepublic void save(Entity item)
save in interface DataStore
public void close()
           throws ORDIException
Connection
close in interface ConnectionORDIException
public void commit()
            throws ORDIException
Connection
commit in interface ConnectionORDIExceptionpublic DataSource getDataSource()
ConnectionDataSource this session is using.
getDataSource in interface Connectionpublic IsolationLevel getTransactionIsolationLevel()
Connection
getTransactionIsolationLevel in interface Connectionpublic boolean isAutoCommit()
Connection
isAutoCommit in interface Connectionpublic boolean isOpen()
Connection
isOpen in interface Connectionpublic boolean isReadOnly()
Connection
isReadOnly in interface Connection
public void rollback()
              throws ORDIException
Connection
rollback in interface ConnectionORDIException
public void setAutoCommit(boolean mode)
                   throws ORDIException
Connection
setAutoCommit in interface Connectionmode - true for auto-commit, otherwise false
ORDIException
public void setTransactionIsolationLevel(IsolationLevel isolationLevel)
                                  throws ORDIException
Connection
setTransactionIsolationLevel in interface ConnectionisolationLevel - to be used
ORDIException
public boolean isWrapperFor(Class<?> iface)
                     throws ORDIException
Wrapper
isWrapperFor in interface Wrapperiface - A Class defining an interface that the result must implement.
ORDIException
public <T> T unwrap(Class<T> iface)
         throws ORDIException
Wrapper
unwrap in interface Wrapperiface - a Class defining an interface.
ORDIExceptionpublic void clearWarnings()
WarningAware
clearWarnings in interface WarningAwarepublic ORDIWarning getWarning()
WarningAware
getWarning in interface WarningAwareORDIWarning or null if there are none.
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||