Class JDBC3DatabaseMetaData.PrimaryKeyFinder

  • Enclosing class:
    JDBC3DatabaseMetaData

    class JDBC3DatabaseMetaData.PrimaryKeyFinder
    extends java.lang.Object
    Parses the sqlite_schema table for a table's primary key
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.String[] pkColumns
      The column(s) for the primary key.
      (package private) java.lang.String pkName
      The primary key name.
      (package private) java.lang.String table
      The table name.
    • Constructor Summary

      Constructors 
      Constructor Description
      PrimaryKeyFinder​(java.lang.String table)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String[] getColumns()  
      java.lang.String getName()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • table

        java.lang.String table
        The table name.
      • pkName

        java.lang.String pkName
        The primary key name.
      • pkColumns

        java.lang.String[] pkColumns
        The column(s) for the primary key.
    • Constructor Detail

      • PrimaryKeyFinder

        public PrimaryKeyFinder​(java.lang.String table)
                         throws java.sql.SQLException
        Constructor.
        Parameters:
        table - The table for which to get find a primary key.
        Throws:
        java.sql.SQLException
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns:
        The primary key name if any.
      • getColumns

        public java.lang.String[] getColumns()
        Returns:
        Array of primary key column(s) if any.