Package org.takadb.editor.database.entities.CharacterEntity

Examples of org.takadb.editor.database.entities.CharacterEntity.Reading


      String sourceLanguageCode = (String)iter.next();
      HashMap readingIndexMap = (HashMap)character.readings.SLCMap.get (sourceLanguageCode);
      iter2 = readingIndexMap.keySet().iterator();
      while (iter2.hasNext()) {
        Integer readingIndex = (Integer)iter2.next();
        Reading reading = (Reading)readingIndexMap.get (readingIndex);
        sqlSaveCharacterReading (conn, character, sourceLanguageCode, readingIndex, reading);
        // character_reading_meanings
        iter3 = reading.meanings.DLCMap.keySet().iterator();
        while (iter3.hasNext()) {
          String destLanguageCode = (String)iter3.next();
View Full Code Here


        int characterId = rs.getInt("character_id");
        CharacterEntity character = (CharacterEntity)allCharacters.get (new Integer (characterId));
        character.readings.set (
            rs.getString("source_language_code"),
            new Integer (rs.getInt("reading_index")),
            new Reading (
                rs.getString("source_reading"),
                rs.getString("jp_reading_type")
            )
        );
      }

      // character_reading_meanings
      rs = statement.executeQuery ("SELECT * FROM character_reading_meanings");
      while (rs.next()) {
        int characterId = rs.getInt("character_id");
        CharacterEntity character = (CharacterEntity)allCharacters.get (new Integer (characterId));
        Reading reading = character.readings.get (rs.getString("source_language_code"), new Integer (rs.getInt("reading_index")));
        reading.meanings.set (
            rs.getString("dest_language_code"),
            new Reading.Meaning (
                rs.getString("dest_reading_meaning")
            )
View Full Code Here

TOP

Related Classes of org.takadb.editor.database.entities.CharacterEntity.Reading

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.