code: public ContactType getContactType(Record record)
      {
          String strType = record.getTableNames(false);
          this.setKeyArea(ContactType.CODE_KEY);
          this.getField(ContactType.CODE).setString(strType);
          try {
              if (this.seek(null))
              {   // Success
                  return this;
              }
          } catch (DBException ex)    {
              ex.printStackTrace();
          }
          return null;    // Not found
      }
docs: Get the contact type for this record.
  (The code is the record table name).
  @param The record.
  @return The Contact Type record (or null if not found).