void declareOntologyDefined() { if (isOntologyDefined) { throw new InvalidOntopConfigurationException("Ontology already defined!"); } isOntologyDefined = true; }
/** * Incompatibility detected in an expression */ public IncompatibleTermException(Expression expression, IncompatibleTermException caughtException) { super("In " + expression + ": " + caughtException.getMessage()); }
public InvalidPredicateDeclarationException(List<Indicator> indicators) { super(buildMessage(indicators)); }
@Override public void setAutoCommit(boolean autocommit) throws OntopConnectionException { try { conn.setAutoCommit(autocommit); } catch (Exception e) { throw new OntopConnectionException(e); } }
/** * Can be overloaded */ protected void checkTypes(TermType expectedBaseType, TermType argumentType) { if (argumentType.isAbstract()) throw new AbstractTermTypeException(argumentType); if (!argumentType.isA(expectedBaseType)) { throw new IncompatibleTermException(expectedBaseType, argumentType); } }
protected void cancelExecution() throws OntopQueryEvaluationException { try { sqlStatement.cancel(); } catch (SQLException e) { throw new OntopQueryEvaluationException(e); } }
public InvalidMappingExceptionWithIndicator(List<Indicator> indicators) { super(buildMessage(indicators)); }
void declareOntologyDefined() { if (isOntologyDefined) { throw new InvalidOntopConfigurationException("Ontology already defined!"); } isOntologyDefined = true; }
@Override public void rollBack() throws OntopConnectionException { try { conn.rollback(); } catch (Exception e) { throw new OntopConnectionException(e); } }
/** * Incompatibility detected in an expression */ public IncompatibleTermException(ImmutableExpression expression, IncompatibleTermException caughtException) { super("In " + expression + ": " + caughtException.getMessage()); }
public InvalidMappingExceptionWithIndicator(List<Indicator> indicators) { super(buildMessage(indicators)); }
void declareImplicitConstraintSetDefined() { if (isImplicitConstraintSetDefined) throw new InvalidOntopConfigurationException("The implicit constraint file is already defined"); isImplicitConstraintSetDefined = true; }
Object getRawObject(int column) throws OntopConnectionException { try { Object realValue = rs.getObject(column); return realValue; } catch (Exception e) { throw new OntopConnectionException(e); } } }
/** * Incompatibility detected in an expression */ public IncompatibleTermException(Expression expression, IncompatibleTermException caughtException) { super("In " + expression + ": " + caughtException.getMessage()); } }
void declareImplicitConstraintSetDefined() { if (isImplicitConstraintSetDefined) throw new InvalidOntopConfigurationException("The implicit constraint file is already defined"); isImplicitConstraintSetDefined = true; }
@Override public boolean isClosed() throws OntopConnectionException { try { isClosed = conn.isClosed(); return isClosed; } catch (Exception e) { throw new OntopConnectionException(e); } }
void declareOntologyDefined() { if (isOBDASpecificationAssigned()) throw new InvalidOntopConfigurationException("The OBDA specification has already been assigned"); if (isOntologyDefined) { throw new InvalidOntopConfigurationException("Ontology already defined!"); } isOntologyDefined = true; }
@Override public void close() throws OntopConnectionException { try { rs.close(); } catch (Exception e) { throw new OntopConnectionException(e); } }
@Override public int getQueryTimeout() throws OntopConnectionException { try { return sqlStatement.getQueryTimeout(); } catch (SQLException e) { throw new OntopConnectionException(e); } }
@Override public void getMoreResults() throws OntopConnectionException { try { sqlStatement.getMoreResults(); } catch (SQLException e) { throw new OntopConnectionException(e); } }