de.fuberlin.wiwiss.d2rq.expr
Class BooleanToIntegerCaseExpression

java.lang.Object
  extended by de.fuberlin.wiwiss.d2rq.expr.Expression
      extended by de.fuberlin.wiwiss.d2rq.expr.BooleanToIntegerCaseExpression

public class BooleanToIntegerCaseExpression
extends Expression

A CASE statement that turns a BOOLEAN (TRUE, FALSE) into an INT (1, 0)

Author:
Richard Cyganiak (richard@cyganiak.de)

Field Summary
 
Fields inherited from class de.fuberlin.wiwiss.d2rq.expr.Expression
FALSE, TRUE
 
Constructor Summary
BooleanToIntegerCaseExpression(Expression base)
           
 
Method Summary
 Set<Attribute> attributes()
           
 boolean equals(Object other)
           
 Expression getBase()
           
 int hashCode()
           
 boolean isFalse()
           
 boolean isTrue()
           
 Expression renameAttributes(ColumnRenamer columnRenamer)
           
 String toSQL(ConnectedDB database, AliasMap aliases)
           
 String toString()
           
 
Methods inherited from class de.fuberlin.wiwiss.d2rq.expr.Expression
and, or
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BooleanToIntegerCaseExpression

public BooleanToIntegerCaseExpression(Expression base)
Method Detail

getBase

public Expression getBase()

attributes

public Set<Attribute> attributes()
Specified by:
attributes in class Expression

isFalse

public boolean isFalse()
Specified by:
isFalse in class Expression

isTrue

public boolean isTrue()
Specified by:
isTrue in class Expression

renameAttributes

public Expression renameAttributes(ColumnRenamer columnRenamer)
Specified by:
renameAttributes in class Expression

toSQL

public String toSQL(ConnectedDB database,
                    AliasMap aliases)
Specified by:
toSQL in class Expression

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object