Package org.openrdf.sail.rdbms.algebra

Examples of org.openrdf.sail.rdbms.algebra.ColumnVar


  @Override
  public void meet(DatatypeColumn node)
    throws RuntimeException
  {
    ColumnVar var = replaceVar(node);
    if (var == null)
      return;
    if (!var.getTypes().isTyped()) {
      node.replaceWith(new SqlNull());
    }
  }
View Full Code Here


  @Override
  public void meet(DateTimeColumn node)
    throws RuntimeException
  {
    ColumnVar var = replaceVar(node);
    if (var == null)
      return;
    if (!var.getTypes().isCalendar()) {
      node.replaceWith(new SqlNull());
    }
  }
View Full Code Here

  @Override
  public void meet(LabelColumn node)
    throws RuntimeException
  {
    ColumnVar var = replaceVar(node);
    if (var == null)
      return;
    if (!var.getTypes().isLiterals()) {
      node.replaceWith(new SqlNull());
    }
  }
View Full Code Here

  @Override
  public void meet(LongLabelColumn node)
    throws RuntimeException
  {
    ColumnVar var = replaceVar(node);
    if (var == null)
      return;
    if (!var.getTypes().isLong() || !var.getTypes().isLiterals()) {
      node.replaceWith(new SqlNull());
    }
  }
View Full Code Here

  @Override
  public void meet(LanguageColumn node)
    throws RuntimeException
  {
    ColumnVar var = replaceVar(node);
    if (var == null)
      return;
    if (!var.getTypes().isLanguages()) {
      node.replaceWith(new SqlNull());
    }
  }
View Full Code Here

  @Override
  public void meet(NumericColumn node)
    throws RuntimeException
  {
    ColumnVar var = replaceVar(node);
    if (var == null)
      return;
    if (!var.getTypes().isNumeric()) {
      node.replaceWith(new SqlNull());
    }
  }
View Full Code Here

  @Override
  public void meet(LongURIColumn node)
    throws RuntimeException
  {
    ColumnVar var = replaceVar(node);
    if (var == null)
      return;
    if (!var.getTypes().isLong() || !var.getTypes().isURIs()) {
      node.replaceWith(new SqlNull());
    }
  }
View Full Code Here

  @Override
  public void meet(URIColumn node)
    throws RuntimeException
  {
    ColumnVar var = replaceVar(node);
    if (var == null)
      return;
    if (!var.getTypes().isURIs()) {
      node.replaceWith(new SqlNull());
    }
  }
View Full Code Here

      node.replaceWith(new SqlNull());
    }
  }
 
  public void meet(PointColumn node) throws RuntimeException {
    ColumnVar var = replaceVar(node);
    if (var == null)
      return;
    if (!var.getTypes().isLiterals()) {
      node.replaceWith(new SqlNull());
    }
  } 
View Full Code Here

  {
    replaceVar(node);
  }

  private ColumnVar replaceVar(ValueColumnBase node) {
    ColumnVar var;
    if (gparent == parent || gparent instanceof UnionItem) {
      var = parent.getVar(node.getVarName());
    }
    else {
      var = gparent.getVarForChildren(node.getVarName());
    }
    if (var == null) {
      node.replaceWith(new SqlNull());
    }
    else if (var.isImplied() && node.getParentNode() instanceof SqlIsNull) {
      node.replaceWith(new IdColumn(var.getAlias(), "subj"));
    }
    else {
      node.setRdbmsVar(var);
    }
    return var;
View Full Code Here

TOP

Related Classes of org.openrdf.sail.rdbms.algebra.ColumnVar

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.