Code example for PreparedStatement

Methods: setNull

0
    public void bindNull(int index) {
		checkDatabaseIsOpen(); 
		try { 
			// SQLite ignores typecode 
			// typecode is also ignored in H2 when using the two parameter setNUll() 
			actualDBstatement.setNull(index,java.sql.Types.NULL); 
		} catch (SQLException e) {
			throw new RuntimeException(e);
		} 
    } 
 
    /** 
     * Bind a long value to this statement. The value remains bound until 
     * {@link #clearBindings} is called. 
     * 
     * @param index The 1-based index to the parameter to bind 
     * @param value The value to bind 
     */ 
    @Implementation 
    public void bindLong(int index, long value) {
    	checkDatabaseIsOpen();