TableTexture.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 TableTexture extends Table {
public static final String TEXTURE_CL = "texcl";
public static final String LIEUTEX = "lieutex";
public static final String CHTGKEY = "chtgkey";
public static final String CHTKEY = "chtkey";
static final String[] CHTGKEY_DATA = {CHTGKEY, "A non-connotative string of characters used to uniquely identify a record in the Horizon Texture Group table"};
static final String[] CHTKEY_DATA = {CHTKEY, "A non-connotative string of characters used to uniquely identify a record in the Horizon Texture table"};
static final String[] TEXTURE_CL_DATA = {TEXTURE_CL, "An expression, based on the USDA system of particle sizes, for the relative portions of the various size groups of individual mineral grains less than 2mm equivalent diameter in a mass of soil"};
static final String[] LIEUTEX_DATA = {LIEUTEX, "Substitute terms applied to materials that do not fit into a textural class because of organic matter content, size, rupture resistance, solubility, or another reason"};
public TableTexture() {
tableName = "chtexture";
addDataColumn(CHTGKEY, new TableColumnInteger(CHTGKEY_DATA));
addDataColumn(CHTKEY, new TableColumnInteger(CHTKEY_DATA));
addDataColumn(TEXTURE_CL, new TableColumnString(TEXTURE_CL_DATA));
addDataColumn(LIEUTEX, new TableColumnString(LIEUTEX_DATA));
}
public String chtgkey() {
return ((Integer) columns.get(CHTGKEY).getValue()).toString();
}
public void chtgkey(String value) {
columns.get(CHTGKEY).setValue(Integer.parseInt(value));
}
public String chtkey() {
return ((Integer) columns.get(CHTKEY).getValue()).toString();
}
public void chtkey(String value) {
columns.get(CHTKEY).setValue(Integer.parseInt(value));
}
public String texcl() {
return ((String) columns.get(TEXTURE_CL).getValue());
}
public void texcl(String value) {
columns.get(TEXTURE_CL).setValue(value);
}
public String lieutex() {
return ((String) columns.get(LIEUTEX).getValue());
}
public void lieutex(String value) {
columns.get(LIEUTEX).setValue(value);
}
}