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

java.lang.Object
  extended by de.fuberlin.wiwiss.d2rq.sql.types.DataType
      extended by de.fuberlin.wiwiss.d2rq.sql.types.SQLInterval

public class SQLInterval
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
SQLInterval(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.
 
Methods inherited from class de.fuberlin.wiwiss.d2rq.sql.types.DataType
isUnsupported, name, rdfType, supportsDistinct, syntax, toString, value, valueRegex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SQLInterval

public SQLInterval(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