Hi,
are there any recommendations, which return type
of a CMP field should be preferred:
- a primitave type (long, int, etc), or
- primitive wrappers (java.lang.Long, java.lang.Integer, etc) ?
Are there severe performance drawbacks when using
the wrapper class ?
Use a wrapper if the field in question can be null, primitive if it can't. Other than support for null values there is no advantage to using the wrapper classes.