cn.loveapple.client.android.database.entity.TemperatureEntity.java Source code

Java tutorial

Introduction

Here is the source code for cn.loveapple.client.android.database.entity.TemperatureEntity.java

Source

/*
 * $HeadURL$
 * $Author$
 * $Revision$
 * $Date$
 *
 * ====================================================================
 *
 * Copyright (C) 2008 by loveapple.cn
 *
 * All copyright notices regarding loveapple and loveapple CoreLib
 * MUST remain intact in the scripts, documents and source code.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public 
 * License as published by the Free Software Foundation; either
 * version 3 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 *
 * Correspondence and Marketing Questions can be sent to:
 * info at loveapple
 *
 * @author: loveapple
 */
package cn.loveapple.client.android.database.entity;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;

/**
 * 
 * 
 * @date $Date$
 * @id $Id$
 *
 */
public class TemperatureEntity implements Entity {
    public static String TABLE_NAME = "temperature";
    public static String COLUMN_DATE = "date";
    public static String COLUMN_TIMESTAMP = "timestamp";
    public static String COLUMN_TEMPERATURE = "temperature";
    public static String COLUMN_COITUS_FLG = "coitus_flg";
    public static String COLUMN_MENSTRUATION_FLG = "menstruation_flg";
    public static String COLUMN_DYSMENORRHEA_FLG = "dysmenorrhea_flg";
    public static String COLUMN_LEUKORRHEA = "leukorrhea";
    public static String COLUMN_MENSTRUATION_LEVEL = "menstruation_level";
    public static String COLUMN_MENSTRUATION_CYCLE = "menstruation_cycle";

    /**
     * 
     */
    private String date;
    /**
     * 
     */
    private String timestamp;
    /**
     * 
     */
    private Double temperature;
    /**
     * 
     */
    private String coitusFlg;
    /**
     * ?
     */
    private String menstruationFlg;
    /**
     * ?
     */
    private String dysmenorrheaFlg;
    /**
     * 
     */
    private String leukorrhea;
    /**
     * ??
     */
    private String menstruationLevel;
    /**
     * 
     */
    private Integer menstruationCycle;

    /**
     * ????
     * @return 
     */
    public String getDate() {
        return date;
    }

    /**
     * ???
     * @param date 
     */
    public void setDate(String date) {
        this.date = date;
    }

    /**
     * ????
     * @return 
     */
    public String getTimestamp() {
        return timestamp;
    }

    /**
     * ???
     * @param timestamp 
     */
    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    /**
     * ????
     * @return 
     */
    public Double getTemperature() {
        return temperature;
    }

    /**
     * ???
     * @param temperature 
     */
    public void setTemperature(Double temperature) {
        this.temperature = temperature;
    }

    /**
     * ????
     * @return 
     */
    public String getCoitusFlg() {
        return coitusFlg;
    }

    /**
     * ???
     * @param coitusFlg 
     */
    public void setCoitusFlg(String coitusFlg) {
        this.coitusFlg = coitusFlg;
    }

    /**
     * ?????
     * @return ?
     */
    public String getMenstruationFlg() {
        return menstruationFlg;
    }

    /**
     * ????
     * @param menstruationFlg ?
     */
    public void setMenstruationFlg(String menstruationFlg) {
        this.menstruationFlg = menstruationFlg;
    }

    /**
     * ?????
     * @return ?
     */
    public String getDysmenorrheaFlg() {
        return dysmenorrheaFlg;
    }

    /**
     * ????
     * @param dysmenorrheaFlg ?
     */
    public void setDysmenorrheaFlg(String dysmenorrheaFlg) {
        this.dysmenorrheaFlg = dysmenorrheaFlg;
    }

    /**
     * ????
     * @return 
     */
    public String getLeukorrhea() {
        return leukorrhea;
    }

    /**
     * ???
     * @param leukorrhea 
     */
    public void setLeukorrhea(String leukorrhea) {
        this.leukorrhea = leukorrhea;
    }

    /**
     * 
     * {@inheritDoc}
     */
    @Override
    public String toString() {
        return ReflectionToStringBuilder.toString(this);
    }

    /**
     * ??????
     * @return ??
     */
    public String getMenstruationLevel() {
        return menstruationLevel;
    }

    /**
     * ?????
     * @param menstruationLevel ??
     */
    public void setMenstruationLevel(String menstruationLevel) {
        this.menstruationLevel = menstruationLevel;
    }

    /**
     * ????
     * @return 
     */
    public Integer getMenstruationCycle() {
        return menstruationCycle;
    }

    /**
     * ???
     * @param menstruationCycle 
     */
    public void setMenstruationCycle(Integer menstruationCycle) {
        this.menstruationCycle = menstruationCycle;
    }
}