[1110277] RHQ_EVENT table's detail field limit of 4000 character will break when a log message contains multibyte characters (UTF-8)
This is a problem in a few places, not just events.  We're not
properly protecting against the 4000 byte limit on oracle, just
the 4000 character limit declared on the varchar2 field.
- Add DatabaseType.getString() which can truncate as needed in
  a vendor-specific way.
- Use the new getString() to store safe versions of event detail,
  alert notification log message, and calltime dataset destination.

Conflicts:
	modules/core/dbutils/src/main/java/org/rhq/core/db/DatabaseType.java
	modules/core/dbutils/src/main/java/org/rhq/core/db/OracleDatabaseType.java
	modules/core/domain/src/main/java/org/rhq/core/domain/resource/Resource.java
	modules/enterprise/server/jar/src/main/java/org/rhq/enterprise/server/event/EventManagerBean.java
	modules/enterprise/server/jar/src/main/java/org/rhq/enterprise/server/measurement/CallTimeDataManagerBean.java

Cherry-Pick master 1d836a790f8e8d2da79a31e8c796324e85ae7851

(cherry picked from relese/jon3.2.x commit 6a5f14b4089dfe2e17cbc926b22685baec2de206)

Conflicts:
	modules/core/dbutils/src/main/java/org/rhq/core/db/DatabaseType.java
	modules/core/dbutils/src/main/java/org/rhq/core/db/OracleDatabaseType.java
	modules/enterprise/server/jar/src/main/java/org/rhq/enterprise/server/alert/AlertManagerBean.java