|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ontotext.ordi.wsmo4rdf.impl.WsmoConnectionImpl
public class WsmoConnectionImpl
Constructor Summary | |
---|---|
WsmoConnectionImpl(WsmoSource source,
TConnection ordiConnection,
WsmoFactory wsmoFactory,
LogicalExpressionFactory leFactory)
|
Method Summary | ||
---|---|---|
void |
addGoal(Goal arg0)
|
|
void |
addMediator(Mediator arg0)
|
|
void |
addOntology(Ontology arg0)
|
|
void |
addWebService(WebService arg0)
|
|
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 arg0)
|
|
void |
deleteMediator(IRI arg0)
|
|
void |
deleteOntology(IRI arg0)
|
|
void |
deleteWebService(IRI arg0)
|
|
void |
evaluate(String query,
QueryResultListener listener)
Invoke a query against this repository and read the results through a call-back interface. |
|
WsmoSource |
getDataSource()
Gets the DataSource this session is using. |
|
String |
getDescription()
|
|
Goal |
getGoal(IRI arg0)
|
|
Mediator |
getMediator(IRI arg0)
|
|
Ontology |
getOntology(IRI arg0)
|
|
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 arg0)
|
|
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 arg0)
|
|
Entity |
load(Identifier arg0,
Class arg1)
|
|
void |
remove(Identifier arg0)
Removes all associated statements to a specific identifier. |
|
void |
remove(Identifier arg0,
Class arg1)
|
|
void |
rollback()
Rollbacks all operations part of the current transaction. |
|
void |
save(Entity arg0)
|
|
void |
saveGoal(Goal arg0)
|
|
void |
saveMediator(Mediator arg0)
|
|
void |
saveOntology(Ontology arg0)
|
|
void |
saveWebService(WebService arg0)
|
|
void |
setAutoCommit(boolean mode)
Sets the commit mode of the current transaction. |
|
void |
setDescription(String arg0)
|
|
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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WsmoConnectionImpl(WsmoSource source, TConnection ordiConnection, WsmoFactory wsmoFactory, LogicalExpressionFactory leFactory)
Method Detail |
---|
public WsmoSource 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 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 boolean isOpen()
Connection
isOpen
in interface Connection
public void rollback() throws ORDIException
Connection
rollback
in interface Connection
ORDIException
public void commit() throws ORDIException
Connection
commit
in interface Connection
ORDIException
public void close() throws ORDIException
Connection
close
in interface Connection
ORDIException
public boolean isReadOnly()
Connection
isReadOnly
in interface Connection
public ORDIWarning getWarning()
WarningAware
getWarning
in interface WarningAware
ORDIWarning
or null if there are none.public void clearWarnings()
WarningAware
clearWarnings
in interface WarningAware
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 void addGoal(Goal arg0) throws SynchronisationException
addGoal
in interface WsmoRepository
SynchronisationException
public void addMediator(Mediator arg0) throws SynchronisationException
addMediator
in interface WsmoRepository
SynchronisationException
public void addOntology(Ontology arg0) throws SynchronisationException
addOntology
in interface WsmoRepository
SynchronisationException
public void addWebService(WebService arg0) throws SynchronisationException
addWebService
in interface WsmoRepository
SynchronisationException
public void deleteGoal(IRI arg0) throws SynchronisationException
deleteGoal
in interface WsmoRepository
SynchronisationException
public void deleteMediator(IRI arg0) throws SynchronisationException
deleteMediator
in interface WsmoRepository
SynchronisationException
public void deleteOntology(IRI arg0) throws SynchronisationException
deleteOntology
in interface WsmoRepository
SynchronisationException
public void deleteWebService(IRI arg0) throws SynchronisationException
deleteWebService
in interface WsmoRepository
SynchronisationException
public String getDescription()
getDescription
in interface WsmoRepository
public Goal getGoal(IRI arg0) throws SynchronisationException
getGoal
in interface WsmoRepository
SynchronisationException
public Mediator getMediator(IRI arg0) throws SynchronisationException
getMediator
in interface WsmoRepository
SynchronisationException
public Ontology getOntology(IRI arg0) throws SynchronisationException
getOntology
in interface WsmoRepository
SynchronisationException
public String getVersion() throws SynchronisationException
getVersion
in interface WsmoRepository
SynchronisationException
public WebService getWebService(IRI arg0) throws SynchronisationException
getWebService
in interface WsmoRepository
SynchronisationException
public List<IRI> listGoals() throws SynchronisationException
listGoals
in interface WsmoRepository
SynchronisationException
public List<IRI> listMediators() throws SynchronisationException
listMediators
in interface WsmoRepository
SynchronisationException
public List<IRI> listOntologies() throws SynchronisationException
listOntologies
in interface WsmoRepository
SynchronisationException
public List<IRI> listWebServices() throws SynchronisationException
listWebServices
in interface WsmoRepository
SynchronisationException
public void saveGoal(Goal arg0) throws SynchronisationException
saveGoal
in interface WsmoRepository
SynchronisationException
public void saveMediator(Mediator arg0) throws SynchronisationException
saveMediator
in interface WsmoRepository
SynchronisationException
public void saveOntology(Ontology arg0) throws SynchronisationException
saveOntology
in interface WsmoRepository
SynchronisationException
public void saveWebService(WebService arg0) throws SynchronisationException
saveWebService
in interface WsmoRepository
SynchronisationException
public void setDescription(String arg0)
setDescription
in interface WsmoRepository
public Set<Entity> load(Identifier arg0)
load
in interface DataStore
public Entity load(Identifier arg0, Class arg1)
load
in interface DataStore
public void remove(Identifier arg0)
remove
in interface DataStore
arg0
- identifier to be deleted (anonymous identifiers are ignored)public void remove(Identifier arg0, Class arg1)
remove
in interface DataStore
public void save(Entity arg0)
save
in interface DataStore
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |