TableComonth.java [src/soils/db/tables] Revision: default Date:
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package soils.db.tables;
/**
*
* @author <a href="mailto:shaun.case@colostate.edu">Shaun Case</a>
*/
public class TableComonth extends Table {
public static final String TABLE_NAME = "comonth";
public static final String COKEY = "cokey";
public static final String COMONTH_KEY = "comonthkey";
public static final String FLOOD_FREQ_CL = "flodfreqcl";
public static final String POND_FREQ_CL = "pondfreqcl";
public static final String MONTH_SEQ = "monthseq";
public static final String MONTH = "month";
static final String[] COKEY_DATA = {COKEY, "A non-connotative string of characters used to uniquely identify a record in the Component table"};
static final String[] COMONTH_KEY_DATA = {COMONTH_KEY, "A non-connotative string of characters used to uniquely identify a record in the Component Month table"};
static final String[] FLOOD_FREQ_CL_DATA = {FLOOD_FREQ_CL, "The annual probability of a flood event expressed as a class. (SSM)"};
static final String[] POND_FREQ_CL_DATA = {POND_FREQ_CL, "The number of times ponding occurs over a period of time. (SSM)"};
static final String[] MONTH_SEQ_DATA = {MONTH_SEQ, "An interger number used to sequence the months of the year in their proper order"};
static final String[] MONTH_DATA = {MONTH, "One of the twelve months of the year"};
public TableComonth() {
addDataColumn(COKEY, new TableColumnInteger(COKEY_DATA));
addDataColumn(COMONTH_KEY, new TableColumnString(COMONTH_KEY_DATA));
addDataColumn(FLOOD_FREQ_CL, new TableColumnString(FLOOD_FREQ_CL_DATA));
addDataColumn(POND_FREQ_CL, new TableColumnString(POND_FREQ_CL_DATA));
addDataColumn(MONTH_SEQ, new TableColumnInteger(MONTH_SEQ_DATA));
addDataColumn(MONTH, new TableColumnString(MONTH_DATA));
this.tableName = TABLE_NAME;
}
public int cokey() {
return ((int) columns.get(COKEY).getValue());
}
public void cokey(int value) {
columns.get(COKEY).setValue(value);
}
public String comonthkey() {
return ((String) columns.get(COMONTH_KEY).getValue());
}
public void comonthkey(String value) {
columns.get(COMONTH_KEY).setValue(value);
}
public String flodfreqcl() {
return ((String) columns.get(FLOOD_FREQ_CL).getValue());
}
public void flodfreqcl(String value) {
columns.get(FLOOD_FREQ_CL).setValue(value);
}
public String pondfreqcl() {
return ((String) columns.get(POND_FREQ_CL).getValue());
}
public void pondfreqcl(String value) {
columns.get(POND_FREQ_CL).setValue(value);
}
public int monthseq() {
return ((int) columns.get(MONTH_SEQ).getValue());
}
public void monthseq(int value) {
columns.get(MONTH_SEQ).setValue(value);
}
public String month() {
return ((String) columns.get(MONTH).getValue());
}
public void month(String value) {
columns.get(MONTH).setValue(value);
}
}