public class ValidatedTransaction extends Transaction
owl:minCardinality, owl:maxCardinality, owl:cardinality.| Modifier and Type | Class and Description |
|---|---|
static class |
ValidatedTransaction.ValidationFailedException
Signalizes that the state that results from a
ValidatedTransaction
is invalid. |
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Validates the schema compliance of the state resulting from the transaction.
|
begin, clearContext, clearContext, close, createObject, createObject, createQueryService, findAll, findByID, findByID, getConnection, getInsertContext, getReadContexts, getRemoveContexts, isActive, persist, rollback, setAllContexts, setInsertContext, setReadContexts, setRemoveContextspublic void commit()
throws org.openrdf.repository.RepositoryException
ValidatedTransaction.ValidationFailedException is thrown and the transaction is rolled back.
Note that the validation operates under the assumption that the RDF data was valid at the time when
Transaction.begin() was called.commit in class TransactionValidatedTransaction.ValidationFailedException - Thrown if the state the transaction resulted in is not compliant to the schema.
Call Throwable.getMessage() for information about the reason.org.openrdf.repository.RepositoryException - Thrown if an errors occurs while querying the connected triplestore.Copyright © 2017 Chair of Distributed Information Systems - University of Passau. All rights reserved.