android 读取excel表格数据,并存入数据库

最近策划提了个需求,但是已有的数据不能满足需要,于是内容资源部制作了份excel表格补充。So,任务来了,读取并使用excel数据。由于感觉excel表格里的数据使用频率较高,那么就不能等到需要了才去读取excel,所以决定采用先把excel读取出来写进数据库然后再读取数据库的方式。Just do it !
首先,根据excel表格创建对象:

package com.eebbk.englishpointread.extravoice;

public class ExtraVoiceInfo {
   
    private int id;
    /**
     * 单词内容
     */
    private String content;
    /**
     * 音标
     */
    private String phonetic;
    /**
     * 词性
     */
    private String property;
    /**
     * 释义
     */
    private String paraphrase;
    /**
     * 美式发音名称
     */
    private String usVoiceName;
    /**
     * 英式发音名称
     */
    private String ukVoiceName;

    public ExtraVoiceInfo() {
    }

    public ExtraVoiceInfo(int id, String content, String phonetic, String property, String paraphrase,
            String usVoiceName, String ukVoiceName) {
        super();
        this.id = id;
        this.content = content;
        this.phonetic = phonetic;
        this.property = property;
        this.paraphrase = paraphrase;
        this.usVoiceName = usVoiceName;
        this.ukVoiceName = ukVoiceName;
    }

    public ExtraVoiceInfo(String content, String phonetic, String property, String paraphrase, String usVoiceName,
            String ukVoiceName) {
        super();
        this.content = content;
        this.phonetic = phonetic;
        this.property = property;
        this.paraphrase = paraphrase;
        this.usVoiceName = usVoiceName;
        this.ukVoiceName = ukVoiceName;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getPhonetic() {
        return phonetic;
    }

    public void setPhonetic(String phonetic) {
        this.phonetic = phonetic;
    }

    public String getProperty() {
        return property;
    }

    public void setProperty(String property) {
        this.property = property;
    }

    
评论 15
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值