while (rs.next()) {
int radicalNumber = rs.getInt ("radical_number");
RadicalEntity radical = (RadicalEntity)allRadicals.get (new Integer (radicalNumber));
radical.variants.set (
new Integer (rs.getInt ("radical_variant")),
new Variant (
rs.getString ("position"),
rs.getInt ("stroke_count"),
rs.getInt ("element_id")
)
);
}
// radical_variant_names
rs = statement.executeQuery ("SELECT * FROM radical_variant_names");
while (rs.next()) {
int radicalNumber = rs.getInt ("radical_number");
RadicalEntity radical = (RadicalEntity)allRadicals.get (new Integer (radicalNumber));
Variant variant = radical.variants.get (new Integer (rs.getInt ("radical_variant")));
variant.names.set (
rs.getString("source_language_code"),
new Variant.Name (
rs.getString("source_name")
)
);
}
// radical_variant_mnemonics
rs = statement.executeQuery ("SELECT * FROM radical_variant_mnemonics");
while (rs.next()) {
int radicalNumber = rs.getInt ("radical_number");
RadicalEntity radical = (RadicalEntity)allRadicals.get (new Integer (radicalNumber));
Variant variant = radical.variants.get (new Integer (rs.getInt ("radical_variant")));
variant.mnemonics.set (
rs.getString("dest_language_code"),
new Variant.Mnemonic (
rs.getString("dest_mnemonic")
)