|
||||||||||
| 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()
ConnectionDataSource this session is using.
getDataSource in interface Connectionpublic IsolationLevel getTransactionIsolationLevel()
Connection
getTransactionIsolationLevel in interface Connectionpublic boolean isAutoCommit()
Connection
isAutoCommit in interface Connection
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 boolean isOpen()
Connection
isOpen in interface Connection
public void rollback()
throws ORDIException
Connection
rollback in interface ConnectionORDIException
public void commit()
throws ORDIException
Connection
commit in interface ConnectionORDIException
public void close()
throws ORDIException
Connection
close in interface ConnectionORDIExceptionpublic boolean isReadOnly()
Connection
isReadOnly in interface Connectionpublic ORDIWarning getWarning()
WarningAware
getWarning in interface WarningAwareORDIWarning 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 WsmoConnectionquery - to be evaluatedlistener - is call-back interface to be used
MalformedQueryException
public void addGoal(Goal arg0)
throws SynchronisationException
addGoal in interface WsmoRepositorySynchronisationException
public void addMediator(Mediator arg0)
throws SynchronisationException
addMediator in interface WsmoRepositorySynchronisationException
public void addOntology(Ontology arg0)
throws SynchronisationException
addOntology in interface WsmoRepositorySynchronisationException
public void addWebService(WebService arg0)
throws SynchronisationException
addWebService in interface WsmoRepositorySynchronisationException
public void deleteGoal(IRI arg0)
throws SynchronisationException
deleteGoal in interface WsmoRepositorySynchronisationException
public void deleteMediator(IRI arg0)
throws SynchronisationException
deleteMediator in interface WsmoRepositorySynchronisationException
public void deleteOntology(IRI arg0)
throws SynchronisationException
deleteOntology in interface WsmoRepositorySynchronisationException
public void deleteWebService(IRI arg0)
throws SynchronisationException
deleteWebService in interface WsmoRepositorySynchronisationExceptionpublic String getDescription()
getDescription in interface WsmoRepository
public Goal getGoal(IRI arg0)
throws SynchronisationException
getGoal in interface WsmoRepositorySynchronisationException
public Mediator getMediator(IRI arg0)
throws SynchronisationException
getMediator in interface WsmoRepositorySynchronisationException
public Ontology getOntology(IRI arg0)
throws SynchronisationException
getOntology in interface WsmoRepositorySynchronisationException
public String getVersion()
throws SynchronisationException
getVersion in interface WsmoRepositorySynchronisationException
public WebService getWebService(IRI arg0)
throws SynchronisationException
getWebService in interface WsmoRepositorySynchronisationException
public List<IRI> listGoals()
throws SynchronisationException
listGoals in interface WsmoRepositorySynchronisationException
public List<IRI> listMediators()
throws SynchronisationException
listMediators in interface WsmoRepositorySynchronisationException
public List<IRI> listOntologies()
throws SynchronisationException
listOntologies in interface WsmoRepositorySynchronisationException
public List<IRI> listWebServices()
throws SynchronisationException
listWebServices in interface WsmoRepositorySynchronisationException
public void saveGoal(Goal arg0)
throws SynchronisationException
saveGoal in interface WsmoRepositorySynchronisationException
public void saveMediator(Mediator arg0)
throws SynchronisationException
saveMediator in interface WsmoRepositorySynchronisationException
public void saveOntology(Ontology arg0)
throws SynchronisationException
saveOntology in interface WsmoRepositorySynchronisationException
public void saveWebService(WebService arg0)
throws SynchronisationException
saveWebService in interface WsmoRepositorySynchronisationExceptionpublic void setDescription(String arg0)
setDescription in interface WsmoRepositorypublic Set<Entity> load(Identifier arg0)
load in interface DataStore
public Entity load(Identifier arg0,
Class arg1)
load in interface DataStorepublic void remove(Identifier arg0)
remove in interface DataStorearg0 - identifier to be deleted (anonymous identifiers are ignored)
public void remove(Identifier arg0,
Class arg1)
remove in interface DataStorepublic void save(Entity arg0)
save in interface DataStore
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||