The following only requires a primitive boolean (true or false).
psmt.setBoolean(5, boolean) ; //wants primitive
What if I want to set the bit to null?
Sql server =
[bit] NULL
You can use setNull
setNull
preparedStatement.setNull(5, Types.BOOLEAN);