public class SQLBinary extends DataType
DataType.GenericType
Constructor and Description |
---|
SQLBinary(Vendor syntax,
String name,
boolean supportsDistinct) |
Modifier and Type | Method and Description |
---|---|
boolean |
isIRISafe() |
String |
rdfType()
Return the appropriate RDF datatype for a SQL data type.
|
boolean |
supportsDistinct() |
String |
toSQLLiteral(String value)
Creates a SQL literal for the given value, suitable
for comparison to a column of this indicated type.
|
String |
value(ResultSet resultSet,
int column)
Retrieves a string value in preferred format (canonical form
of the closest XSD type) from a SQL ResultSet.
|
isUnsupported, name, syntax, toString, valueRegex
public boolean supportsDistinct()
supportsDistinct
in class DataType
true
if this column can be used in SELECT DISTINCT
queriespublic String rdfType()
DataType
null
indicates a known SQL type that cannot be mapped to RDF.public String value(ResultSet resultSet, int column) throws SQLException
DataType
value
in class DataType
resultSet
- Result of a SELECT querycolumn
- The column index to retrieve; leftmost columns is 1null
if SQL result was null or is not representable in the XSD typeSQLException
public String toSQLLiteral(String value)
DataType
NULL
is returned.toSQLLiteral
in class DataType
value
- A value