public boolean isAutoIncrement ( ) { return "serial" . equals ( type . toLowerCase ( Locale . US ) ) || "bigserial" . equals ( type . toLowerCase ( Locale . US ) ) || "smallserial" . equals ( type . toLowerCase ( Locale . US ) ) ; }
Mainly for postgres check if the column is a serial data type .