org.openrdf.sail.rdbms.algebra
Class SqlCase
java.lang.Object
org.openrdf.query.algebra.QueryModelNodeBase
org.openrdf.sail.rdbms.algebra.base.RdbmsQueryModelNodeBase
org.openrdf.sail.rdbms.algebra.SqlCase
- All Implemented Interfaces:
- Cloneable, QueryModelNode, SqlExpr
public class SqlCase
- extends RdbmsQueryModelNodeBase
- implements SqlExpr
The SQL CASE WHEN THEN END expression.
- Author:
- James Leigh
SqlCase
public SqlCase()
when
public void when(SqlExpr condition,
SqlExpr expr)
getEntries
public List<SqlCase.Entry> getEntries()
visitChildren
public <X extends Exception> void visitChildren(QueryModelVisitor<X> visitor)
throws X extends Exception
- Description copied from class:
QueryModelNodeBase
- Dummy implementation of
QueryModelNode.visitChildren(org.openrdf.query.algebra.QueryModelVisitor) that does
nothing. Subclasses should override this method when they have child
nodes.
- Specified by:
visitChildren in interface QueryModelNode- Overrides:
visitChildren in class QueryModelNodeBase
- Throws:
X extends Exception
replaceChildNode
public void replaceChildNode(QueryModelNode current,
QueryModelNode replacement)
- Description copied from class:
QueryModelNodeBase
- Default implementation of
QueryModelNode.replaceChildNode(QueryModelNode, QueryModelNode)
that throws an IllegalArgumentException indicating that
current is not a child node of this node.
- Specified by:
replaceChildNode in interface QueryModelNode- Overrides:
replaceChildNode in class QueryModelNodeBase
- Parameters:
current - The current child node.replacement - The new child node.
clone
public SqlCase clone()
- Description copied from interface:
QueryModelNode
- Returns a (deep) clone of this query model node. This method recursively
clones the entire node tree, starting from this nodes.
- Specified by:
clone in interface QueryModelNode- Specified by:
clone in interface SqlExpr- Overrides:
clone in class QueryModelNodeBase
- Returns:
- A deep clone of this query model node.
visit
public <X extends Exception> void visit(RdbmsQueryModelVisitorBase<X> visitor)
throws X extends Exception
- Specified by:
visit in class RdbmsQueryModelNodeBase
- Throws:
X extends Exception
removeEntry
public void removeEntry(SqlCase.Entry e)
truncateEntries
public void truncateEntries(SqlCase.Entry e)
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
Copyright © 2001-2009 Aduna. All Rights Reserved.