Code example for CallableStatement

Methods: setNull

0
		if (value != null) {
			logger.debug("setTimestamp(" + pos + ", " + value + ")");
			stmt.setTimestamp(pos, value);
		} else { 
			logger.debug("setNull(" + pos + ", Types.TIMESTAMP)");
			stmt.setNull(pos, Types.TIMESTAMP);
		} 
	} 
 
	protected void setTimestamp(CallableStatement stmt, int pos, Calendar value)
			throws SQLException { 
		if (value != null) {
			logger.debug("setTimestamp(" + pos + ", " + value + ")");
			stmt.setTimestamp(pos, new Timestamp(value.getTimeInMillis()));
		} else { 
			logger.debug("setNull(" + pos + ", Types.TIMESTAMP)");
			stmt.setNull(pos, Types.TIMESTAMP);
		} 
	} 
 
	protected void setTimestamp(CallableStatement stmt, int pos,