public class SQLExactNumeric extends DataType
DataType.GenericType
Constructor and Description |
---|
SQLExactNumeric(Vendor syntax,
String name,
int jdbcType,
boolean unsigned) |
Modifier and Type | Method and Description |
---|---|
boolean |
isIRISafe() |
String |
rdfType()
Return the appropriate RDF datatype for a SQL data type.
|
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, supportsDistinct, syntax, toString, valueRegex
public 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