Skip to content
Snippets Groups Projects
Verified Commit 912ec77e authored by Timm Fitschen's avatar Timm Fitschen
Browse files

Handle unsupported versioned subproperties

parent a7e692f5
No related branches found
No related tags found
No related merge requests found
......@@ -103,9 +103,12 @@ public class Backreference implements EntityFilterInterface, QueryInterface {
return "@(" + getEntity() + "," + getProperty() + ")";
}
/** */
@Override
public void apply(final QueryInterface query) throws QueryException {
if (query.isVersioned() && hasSubProperty()) {
throw new UnsupportedOperationException(
"Versioned queries are not supported for subqueries yet. Please file a feature request.");
}
final long t1 = System.currentTimeMillis();
this.query = query;
this.targetSet = query.getTargetSet();
......
......@@ -155,7 +155,7 @@ public class POV implements EntityFilterInterface {
this.unit = getUnit(unitStr);
} catch (final ParserException e) {
e.printStackTrace();
throw new UnsupportedOperationException();
throw new UnsupportedOperationException("Could not parse the unit.");
}
this.stdUnitSig = this.unit.normalize().getSignature();
......@@ -214,6 +214,10 @@ public class POV implements EntityFilterInterface {
@Override
public void apply(final QueryInterface query) throws QueryException {
if (query.isVersioned() && hasSubProperty()) {
throw new UnsupportedOperationException(
"Versioned queries are not supported for subqueries yet. Please file a feature request.");
}
final long t1 = System.currentTimeMillis();
try {
this.connection = query.getConnection();
......
......@@ -165,11 +165,6 @@ public class SubProperty implements QueryInterface, EntityFilterInterface {
@Override
public boolean isVersioned() {
boolean is_versioned = this.query.isVersioned();
if (is_versioned) {
throw new QueryException(
"Versioned queries are not supported for subqueries yet. Please file a feature request.");
}
return is_versioned;
return this.query.isVersioned();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment