Class TableMetaData


  • public class TableMetaData
    extends java.lang.Object
    Structure containing meta data (column names, column types, etc.) about a certain database table.
    Author:
    Joram Barrez
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.List<java.lang.String> columnNames  
      protected java.util.List<java.lang.String> columnTypes  
      protected java.lang.String tableName  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addColumnMetaData​(java.lang.String columnName, java.lang.String columnType)  
      java.util.List<java.lang.String> getColumnNames()  
      java.util.List<java.lang.String> getColumnTypes()  
      java.lang.String getTableName()  
      void setColumnNames​(java.util.List<java.lang.String> columnNames)  
      void setColumnTypes​(java.util.List<java.lang.String> columnTypes)  
      void setTableName​(java.lang.String tableName)  
      • Methods inherited from class java.lang.Object

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

      • tableName

        protected java.lang.String tableName
      • columnNames

        protected java.util.List<java.lang.String> columnNames
      • columnTypes

        protected java.util.List<java.lang.String> columnTypes
    • Constructor Detail

      • TableMetaData

        public TableMetaData()
      • TableMetaData

        public TableMetaData​(java.lang.String tableName)
    • Method Detail

      • addColumnMetaData

        public void addColumnMetaData​(java.lang.String columnName,
                                      java.lang.String columnType)
      • getTableName

        public java.lang.String getTableName()
      • setTableName

        public void setTableName​(java.lang.String tableName)
      • getColumnNames

        public java.util.List<java.lang.String> getColumnNames()
      • setColumnNames

        public void setColumnNames​(java.util.List<java.lang.String> columnNames)
      • getColumnTypes

        public java.util.List<java.lang.String> getColumnTypes()
      • setColumnTypes

        public void setColumnTypes​(java.util.List<java.lang.String> columnTypes)