Class AskResultsMetadata
java.lang.Object
org.apache.jena.jdbc.results.metadata.AbstractResultsMetadata
org.apache.jena.jdbc.results.metadata.JenaResultsMetadata
org.apache.jena.jdbc.results.metadata.AskResultsMetadata
- All Implemented Interfaces:
ResultSetMetaData
,Wrapper
Meta data for
AskResults
Note that ASK results are something of a special case because they contain
only a single column and we know exactly what the type of the column is, with
other forms of results we don't have this luxury and so the
JdbcCompatibility
levels are used to determine how we report types.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Constant for the only column index for ASK queriesstatic final String
Constant for the default ASK results column labelFields inherited from interface java.sql.ResultSetMetaData
columnNoNulls, columnNullable, columnNullableUnknown
-
Constructor Summary
ConstructorsConstructorDescriptionAskResultsMetadata
(JenaResultSet results) Creates new ASK results metadataAskResultsMetadata
(AskResultsMetadata metadata, String label) Creates new ASK results metadata -
Method Summary
Methods inherited from class org.apache.jena.jdbc.results.metadata.AbstractResultsMetadata
getCatalogName, getColumnClassName, getColumnCount, getColumnDisplaySize, getColumnLabel, getColumnName, getColumnType, getColumnTypeName, getJenaColumnInfo, getPrecision, getScale, getSchemaName, getTableName, isAutoIncrement, isCaseSensitive, isCurrency, isDefinitelyWritable, isNullable, isReadOnly, isSearchable, isSigned, isWrapperFor, isWritable, unwrap
-
Field Details
-
COLUMN_LABEL_ASK
Constant for the default ASK results column label- See Also:
-
COLUMN_INDEX_ASK
public static final int COLUMN_INDEX_ASKConstant for the only column index for ASK queries- See Also:
-
-
Constructor Details
-
AskResultsMetadata
Creates new ASK results metadata- Parameters:
results
- Results- Throws:
SQLException
- Thrown if the metadata cannot be created
-
AskResultsMetadata
Creates new ASK results metadata- Parameters:
metadata
- Metadatalabel
- Label to give the single column- Throws:
SQLException
- Thrown if the metadata cannot be created
-