de.fuberlin.wiwiss.d2rq.sql.types
Class UnsupportedDataType
java.lang.Object
de.fuberlin.wiwiss.d2rq.sql.types.DataType
de.fuberlin.wiwiss.d2rq.sql.types.UnsupportedDataType
public class UnsupportedDataType
- extends DataType
Fields inherited from class de.fuberlin.wiwiss.d2rq.sql.types.DataType |
log |
Method Summary |
boolean |
isUnsupported()
|
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 |
toString()
|
String |
value(ResultSet resultSet,
int column)
Retrieves a string value in preferred format (canonical form
of the closest XSD type) from a SQL ResultSet. |
UnsupportedDataType
public UnsupportedDataType(int jdbcType,
String name)
isUnsupported
public boolean isUnsupported()
- Overrides:
isUnsupported
in class DataType
rdfType
public String rdfType()
- Description copied from class:
DataType
- Return the appropriate RDF datatype for a SQL data type.
null
indicates a known SQL type that cannot be mapped to RDF.
- Overrides:
rdfType
in class DataType
- Returns:
- RDF datatype as prefixed name:
xsd:string
etc.
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
value
public String value(ResultSet resultSet,
int column)
throws SQLException
- Description copied from class:
DataType
- Retrieves a string value in preferred format (canonical form
of the closest XSD type) from a SQL ResultSet.
- Overrides:
value
in class DataType
- Parameters:
resultSet
- Result of a SELECT querycolumn
- The column index to retrieve; leftmost columns is 1
- Returns:
- String representation, or
null
if SQL result was null or is not representable in the XSD type
- Throws:
SQLException
toString
public String toString()
- Overrides:
toString
in class DataType