com.ontotext.ordi.rdbms
Class RDBMSConnection
java.lang.Object
com.ontotext.ordi.tripleset.WarningAwareImpl
com.ontotext.ordi.tripleset.ConnectionImpl
com.ontotext.ordi.tripleset.impl.TConnectionImpl
com.ontotext.ordi.tripleset.impl.TQueryConnectionImpl
com.ontotext.ordi.rdbms.RDBMSConnection
- All Implemented Interfaces:
- Connection, TConnection, WarningAware, Wrapper
public class RDBMSConnection
- extends TQueryConnectionImpl
Method Summary |
TStatement |
addStatement(Resource subj,
URI pred,
Value obj,
URI namedGraph)
Adds a new statement. |
TStatement |
addStatement(Resource subj,
URI pred,
Value obj,
URI namedGraph,
URI... ts)
Adds a new statement and associated it with a collection of tripleses. |
int |
associateTripleset(Resource subj,
URI pred,
Value obj,
URI namedGraph,
URI... ts)
Associates one or multiple statements. |
int |
deassociateTripleset(Resource subj,
URI pred,
Value obj,
URI namedGraph,
URI... ts)
Deassociates one or multiple statements. |
CloseableIterator<? extends Value> |
getValuesOfType(URI uri)
Gets iterator to specific type of values. |
boolean |
isOpen()
Checks if this session is opened. |
boolean |
isReadOnly()
Checks if the current session to data provider is read-only. |
int |
removeStatement(Resource subj,
URI pred,
Value obj,
URI namedGraph)
Removes one or multiple statements. |
CloseableIterator<? extends TStatement> |
search(Resource subj,
URI pred,
Value obj,
URI namedGraph,
URI ts)
Gets all statements based on a pattern match. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RDBMSConnection
public RDBMSConnection(RDBMSAdapter source,
Processor processor)
addStatement
public TStatement addStatement(Resource subj,
URI pred,
Value obj,
URI namedGraph)
throws ORDIException
- Description copied from interface:
TConnection
- Adds a new statement.
- Returns:
- the newly added statement to the store
- Throws:
ORDIException
addStatement
public TStatement addStatement(Resource subj,
URI pred,
Value obj,
URI namedGraph,
URI... ts)
throws ORDIException
- Description copied from interface:
TConnection
- Adds a new statement and associated it with a collection of tripleses.
- Returns:
- the newly added statement to the store
- Throws:
ORDIException
associateTripleset
public int associateTripleset(Resource subj,
URI pred,
Value obj,
URI namedGraph,
URI... ts)
- Description copied from interface:
TConnection
- Associates one or multiple statements.
- Returns:
- the number of newly associated statements
deassociateTripleset
public int deassociateTripleset(Resource subj,
URI pred,
Value obj,
URI namedGraph,
URI... ts)
- Description copied from interface:
TConnection
- Deassociates one or multiple statements.
- Returns:
- the number of modified statements
getValuesOfType
public CloseableIterator<? extends Value> getValuesOfType(URI uri)
throws ORDIException
- Description copied from interface:
TConnection
- Gets iterator to specific type of values.
- Parameters:
uri
- of the value types
- Returns:
- iterators to all values of the specified type
- Throws:
ORDIException
removeStatement
public int removeStatement(Resource subj,
URI pred,
Value obj,
URI namedGraph)
throws ORDIException
- Description copied from interface:
TConnection
- Removes one or multiple statements.
- Returns:
- the number of deleted statements
- Throws:
ORDIException
search
public CloseableIterator<? extends TStatement> search(Resource subj,
URI pred,
Value obj,
URI namedGraph,
URI ts)
throws ORDIException
- Description copied from interface:
TConnection
- Gets all statements based on a pattern match.
- Returns:
- iterator to the matched statements
- Throws:
ORDIException
isOpen
public boolean isOpen()
- Description copied from interface:
Connection
- Checks if this session is opened.
- Returns:
- true if closed, false otherwise.
isReadOnly
public boolean isReadOnly()
- Description copied from interface:
Connection
- Checks if the current session to data provider is read-only.
- Returns:
- true if read-only
Copyright © 2008. All Rights Reserved.