Coverage Summary for Class: ColumnInfo (net.sf.persism)
| Class |
Class, %
|
Method, %
|
Line, %
|
| ColumnInfo |
100%
(1/1)
|
100%
(2/2)
|
100%
(2/2)
|
package net.sf.persism;
/**
* Information about columns used for insert, update and delete.
* Queries do not use this object.
*
* @author Dan Howard
* @since 5/4/12 6:22 AM
*/
final class ColumnInfo {
String columnName;
// SQLite - Date - comes back as StringType
// H2 - BIT - comes back NULL
JavaType columnType;
// kept for possible future use
int sqlColumnType;
String sqlColumnTypeName;
// indicates this column is generated. Only for Auto-Inc for now
boolean autoIncrement;
// Indicates this is primary key column
boolean primary;
boolean hasDefault;
// Only set by annotation
boolean readOnly;
int length; // for string to varchar length checking
@Override
public String toString() {
return "ColumnInfo{" +
"columnName='" + columnName + '\'' +
", columnType=" + columnType +
", sqlColumnType=" + sqlColumnType +
", sqlColumnTypeName=" + sqlColumnTypeName +
", autoIncrement=" + autoIncrement +
", primary=" + primary +
", hasDefault=" + hasDefault +
", readOnly=" + readOnly +
", length=" + length +
'}';
}
}