public void setCode(int code) {
        this.code = code;
    }
Set the primary type of event.

@param code the code indicating the event's type.
xmppserver/src/main/java/org/jivesoftware/openfire/audit/AuditEvent.java