Coverage Summary for Class: ColumnInfo (net.sf.persism)

Class Class, % Method, % Line, %
ColumnInfo 100% (1/1) 100% (2/2) 100% (2/2)


1 package net.sf.persism; 2  3 /** 4  * Information about columns used for insert, update and delete. 5  * Queries do not use this object. 6  * 7  * @author Dan Howard 8  * @since 5/4/12 6:22 AM 9  */ 10 final class ColumnInfo { 11  12  String columnName; 13  14  // SQLite - Date - comes back as StringType 15  // H2 - BIT - comes back NULL 16  Types columnType; 17  18  // Currently just kept for possible future use 19  int sqlColumnType; 20  String sqlColumnTypeName; 21  22  // indicates this column is generated. Only for Auto-Inc for now 23  boolean autoIncrement; 24  25  // Indicates this is primary key column 26  boolean primary; 27  28  boolean hasDefault; 29  30  int length; // for string to varchar length checking 31  32  @Override 33  public String toString() { 34  return "ColumnInfo{" + 35  "columnName='" + columnName + '\'' + 36  ", columnType=" + columnType + 37  ", sqlColumnType=" + sqlColumnType + 38  ", sqlColumnTypeName=" + sqlColumnTypeName + 39  ", autoIncrement=" + autoIncrement + 40  ", primary=" + primary + 41  ", hasDefault=" + hasDefault + 42  ", length=" + length + 43  '}'; 44  } 45 }