|
||||||||||
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 WsmoConnection
query
- to be evaluatedlistener
- is call-back interface to be used
MalformedQueryException
public String getDescription()
getDescription
in interface WsmoRepository
public void setDescription(String desc)
setDescription
in interface WsmoRepository
public String getVersion() throws SynchronisationException
getVersion
in interface WsmoRepository
SynchronisationException
public void addOntology(Ontology ont) throws SynchronisationException
addOntology
in interface WsmoRepository
SynchronisationException
public void deleteOntology(IRI id) throws SynchronisationException
deleteOntology
in interface WsmoRepository
SynchronisationException
public Ontology getOntology(IRI id) throws SynchronisationException
getOntology
in interface WsmoRepository
SynchronisationException
public void saveOntology(Ontology ont) throws SynchronisationException
saveOntology
in interface WsmoRepository
SynchronisationException
public List<IRI> listOntologies() throws SynchronisationException
listOntologies
in interface WsmoRepository
SynchronisationException
public void addGoal(Goal goal) throws SynchronisationException
addGoal
in interface WsmoRepository
SynchronisationException
public void saveGoal(Goal goal) throws SynchronisationException
saveGoal
in interface WsmoRepository
SynchronisationException
public Goal getGoal(IRI id) throws SynchronisationException
getGoal
in interface WsmoRepository
SynchronisationException
public void deleteGoal(IRI id) throws SynchronisationException
deleteGoal
in interface WsmoRepository
SynchronisationException
public List<IRI> listGoals() throws SynchronisationException
listGoals
in interface WsmoRepository
SynchronisationException
public void addMediator(Mediator med) throws SynchronisationException
addMediator
in interface WsmoRepository
SynchronisationException
public void addWebService(WebService ws) throws SynchronisationException
addWebService
in interface WsmoRepository
SynchronisationException
public void deleteMediator(IRI id) throws SynchronisationException
deleteMediator
in interface WsmoRepository
SynchronisationException
public void deleteWebService(IRI id) throws SynchronisationException
deleteWebService
in interface WsmoRepository
SynchronisationException
public Mediator getMediator(IRI id) throws SynchronisationException
getMediator
in interface WsmoRepository
SynchronisationException
public WebService getWebService(IRI id) throws SynchronisationException
getWebService
in interface WsmoRepository
SynchronisationException
public List<IRI> listMediators() throws SynchronisationException
listMediators
in interface WsmoRepository
SynchronisationException
public List<IRI> listWebServices() throws SynchronisationException
listWebServices
in interface WsmoRepository
SynchronisationException
public void saveMediator(Mediator med) throws SynchronisationException
saveMediator
in interface WsmoRepository
SynchronisationException
public void saveWebService(WebService ws) throws SynchronisationException
saveWebService
in interface WsmoRepository
SynchronisationException
public Set<Entity> load(Identifier id)
load
in interface DataStore
public Entity load(Identifier id, Class clazz)
load
in interface DataStore
public void remove(Identifier id)
remove
in interface DataStore
public void remove(Identifier id, Class clazz)
remove
in interface DataStore
public void save(Entity item)
save
in interface DataStore
public void close() throws ORDIException
Connection
close
in interface Connection
ORDIException
public void commit() throws ORDIException
Connection
commit
in interface Connection
ORDIException
public DataSource getDataSource()
Connection
DataSource
this session is using.
getDataSource
in interface Connection
public IsolationLevel getTransactionIsolationLevel()
Connection
getTransactionIsolationLevel
in interface Connection
public boolean isAutoCommit()
Connection
isAutoCommit
in interface Connection
public boolean isOpen()
Connection
isOpen
in interface Connection
public boolean isReadOnly()
Connection
isReadOnly
in interface Connection
public void rollback() throws ORDIException
Connection
rollback
in interface Connection
ORDIException
public void setAutoCommit(boolean mode) throws ORDIException
Connection
setAutoCommit
in interface Connection
mode
- true for auto-commit, otherwise false
ORDIException
public void setTransactionIsolationLevel(IsolationLevel isolationLevel) throws ORDIException
Connection
setTransactionIsolationLevel
in interface Connection
isolationLevel
- to be used
ORDIException
public boolean isWrapperFor(Class<?> iface) throws ORDIException
Wrapper
isWrapperFor
in interface Wrapper
iface
- A Class defining an interface that the result must implement.
ORDIException
public <T> T unwrap(Class<T> iface) throws ORDIException
Wrapper
unwrap
in interface Wrapper
iface
- a Class defining an interface.
ORDIException
public void clearWarnings()
WarningAware
clearWarnings
in interface WarningAware
public ORDIWarning getWarning()
WarningAware
getWarning
in interface WarningAware
ORDIWarning
or null if there are none.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |