Class ColumnInfo
java.lang.Object
org.apache.jena.jdbc.results.metadata.columns.ColumnInfo
- Direct Known Subclasses:
SparqlColumnInfo
Abstract class for representing column information
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal String
Gets the class name for the columnfinal int
Gets the display size for the columnfinal String
getLabel()
Gets the column labelfinal int
Gets whether the column is nullablefinal int
Gets the precisionfinal int
getScale()
Gets the scalefinal int
getType()
Gets the JDBC type for the columnfinal String
Gets the underlying database type nameboolean
Gets whether the column is an auto-increment typeboolean
Gets whether the column is case sensitiveboolean
Gets whether the column represents a currency typeboolean
Gets whether the column is read-onlyboolean
Gets whether the column is searchablefinal boolean
isSigned()
Gets whether the column is signedboolean
Gets whether the column is writable
-
Constructor Details
-
ColumnInfo
Creates new column information- Parameters:
label
- Column Labeltype
- JDBC Type- Throws:
SQLException
-
-
Method Details
-
getLabel
Gets the column label- Returns:
- Label
-
getClassName
Gets the class name for the column- Returns:
- Class name
-
getDisplaySize
public final int getDisplaySize()Gets the display size for the column- Returns:
- Display size
-
getType
public final int getType()Gets the JDBC type for the column- Returns:
- JDBC type, a value from the constants in
Types
-
getTypeName
Gets the underlying database type name- Returns:
- Type name
-
getPrecision
public final int getPrecision()Gets the precision- Returns:
- Precision
-
getScale
public final int getScale()Gets the scale- Returns:
- Scale
-
getNullability
public final int getNullability()Gets whether the column is nullable- Returns:
- Nullability of the column
-
isCaseSensitive
public boolean isCaseSensitive()Gets whether the column is case sensitive- Returns:
- True if case sensitive, false otherwise
-
isCurrency
public boolean isCurrency()Gets whether the column represents a currency type- Returns:
- True if a currency type, false otherwise
-
isAutoIncrement
public boolean isAutoIncrement()Gets whether the column is an auto-increment type- Returns:
- True if auto-increment, false otherwise
-
isWritable
public boolean isWritable()Gets whether the column is writable- Returns:
- True if writable, false otherwise
-
isReadOnly
public boolean isReadOnly()Gets whether the column is read-only- Returns:
- True if read-only, false otherwise
-
isSearchable
public boolean isSearchable()Gets whether the column is searchable- Returns:
- True if searchable, false otherwise
-
isSigned
public final boolean isSigned()Gets whether the column is signed- Returns:
- True if signed, false otherwise
-