modify adapter, condition and stmt type enumeration.