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 JavaType columnType;
17
18 // 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 // Only set by annotation
31 boolean readOnly;
32
33 int length; // for string to varchar length checking
34
35 @Override
36 public String toString() {
37 return "ColumnInfo{" +
38 "columnName='" + columnName + '\'' +
39 ", columnType=" + columnType +
40 ", sqlColumnType=" + sqlColumnType +
41 ", sqlColumnTypeName=" + sqlColumnTypeName +
42 ", autoIncrement=" + autoIncrement +
43 ", primary=" + primary +
44 ", hasDefault=" + hasDefault +
45 ", readOnly=" + readOnly +
46 ", length=" + length +
47 '}';
48 }
49 }