de.fuberlin.wiwiss.d2rq.sql.types
Class SQLBit

java.lang.Object
  extended by de.fuberlin.wiwiss.d2rq.sql.types.DataType
      extended by de.fuberlin.wiwiss.d2rq.sql.types.SQLBit
Direct Known Subclasses:
MySQL.MySQLCompatibilityBitDataType

public class SQLBit
extends DataType


Nested Class Summary
 
Nested classes/interfaces inherited from class de.fuberlin.wiwiss.d2rq.sql.types.DataType
DataType.GenericType
 
Field Summary
 
Fields inherited from class de.fuberlin.wiwiss.d2rq.sql.types.DataType
log
 
Constructor Summary
SQLBit(Vendor syntax, String name)
           
 
Method Summary
 boolean isIRISafe()
           
 String toSQLLiteral(String value)
          Creates a SQL literal for the given value, suitable for comparison to a column of this indicated type.
 String valueRegex()
          A regular expression that covers the lexical form of all values of this datatype (in their RDF representation).
 
Methods inherited from class de.fuberlin.wiwiss.d2rq.sql.types.DataType
isUnsupported, name, rdfType, supportsDistinct, syntax, toString, value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SQLBit

public SQLBit(Vendor syntax,
              String name)
Method Detail

isIRISafe

public boolean isIRISafe()
Overrides:
isIRISafe in class DataType

toSQLLiteral

public String toSQLLiteral(String value)
Description copied from class: DataType
Creates a SQL literal for the given value, suitable for comparison to a column of this indicated type. If the value is not suitable for the column type (e.g., not a number for a SQLExactNumeric), NULL is returned.

Overrides:
toSQLLiteral in class DataType
Parameters:
value - A value
Returns:
A quoted and escaped SQL literal, suitable for comparison to a column

valueRegex

public String valueRegex()
Description copied from class: DataType
A regular expression that covers the lexical form of all values of this datatype (in their RDF representation). This is especially important for types that are not mapped to a typed literal but to plain/xsd:string literals.

Overrides:
valueRegex in class DataType
Returns:
A regular expression covering the lexical forms of all values of this datatype