java.lang.Object
org.apache.jena.jdbc.results.metadata.columns.ColumnInfo
Direct Known Subclasses:
SparqlColumnInfo

public abstract class ColumnInfo extends Object
Abstract class for representing column information
  • Constructor Details

    • ColumnInfo

      public ColumnInfo(String label, int type) throws SQLException
      Creates new column information
      Parameters:
      label - Column Label
      type - JDBC Type
      Throws:
      SQLException
  • Method Details

    • getLabel

      public final String getLabel()
      Gets the column label
      Returns:
      Label
    • getClassName

      public final String 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

      public final String 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