de.fuberlin.wiwiss.d2rq.sql.types
Class SQLInterval
java.lang.Object
de.fuberlin.wiwiss.d2rq.sql.types.DataType
de.fuberlin.wiwiss.d2rq.sql.types.SQLInterval
public class SQLInterval
- extends DataType
Fields inherited from class de.fuberlin.wiwiss.d2rq.sql.types.DataType |
log |
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. |
SQLInterval
public SQLInterval(Vendor syntax,
String name)
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