public static int convertReferenceTypeToInt(final ReferenceType referenceType) {
    return referenceType.ordinal();
  }
Turns a reference type into a numerical value that can be stored in the database.

@param referenceType The reference type.
@return The numerical value of the reference type.
java/zylib/src/main/java/com/google/security/zynamics/zylib/disassembly/ReferenceType.java