TableTextureGroup.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 TableTextureGroup extends Table {
public static final String CHTGKEY = "chtgkey";
public static final String TEXTURE = "texture";
public static final String STRATEXTSFLAG = "stratextsflag";
public static final String RVINDICATOR = "rvindicator";
public static final String DESCRIPTION = "texdesc";
public static final String CHKEY="chkey";
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[] TEXTURE_DATA = {TEXTURE, "Name for the concatenation of TEXTURE_MODIFIER and TEXTURE_CLASS"};
static final String[] STRATEXTSFLAG_DATA = {STRATEXTSFLAG, "A Boolean flag that when set (Y) indicates that the textures that comprise a particular texture group, are stratified", "Boolean"};
static final String[] RVINDICATOR_DATA = {RVINDICATOR, "A yes/no field that indicates if a value or row (set of values) is representative for the component", "Boolean"};
static final String[] DESCRIPTION_DATA = {DESCRIPTION, "The full texture description for a horizon, using full texture class and in lieu of names rather than abbreviations."};
public TableTextureGroup() {
tableName="chtexturegrp";
addDataColumn(CHTGKEY, new TableColumnString(CHTGKEY_DATA));
addDataColumn(TEXTURE, new TableColumnString(TEXTURE_DATA));
addDataColumn(DESCRIPTION, new TableColumnString(DESCRIPTION_DATA));
addDataColumn(STRATEXTSFLAG, new TableColumnBoolean(STRATEXTSFLAG_DATA));
addDataColumn(RVINDICATOR, new TableColumnBoolean(RVINDICATOR_DATA));
}
public String chtgkey() {
return ((String) columns.get(TableTextureGroup.CHTGKEY).getValue());
}
public void chtgkey(String value) {
columns.get(TableTextureGroup.CHTGKEY).setValue(value);
}
public String description(){
return ((String) columns.get(TableTextureGroup.DESCRIPTION).getValue());
}
public void description(String value){
columns.get(TableTextureGroup.DESCRIPTION).setValue(value);
}
public String texture() {
return ((String) columns.get(TableTextureGroup.TEXTURE).getValue());
}
public void texture(String value) {
columns.get(TableTextureGroup.TEXTURE).setValue(value);
}
public Boolean stratextsflag() {
return ((Boolean) columns.get(TableTextureGroup.STRATEXTSFLAG).getValue());
}
public void stratextsflag(Boolean value) {
columns.get(TableTextureGroup.STRATEXTSFLAG).setValue(value);
}
public Boolean rvindicator() {
return ((Boolean) columns.get(TableTextureGroup.RVINDICATOR).getValue());
}
public void rvindicator(Boolean value) {
columns.get(TableTextureGroup.RVINDICATOR).setValue(value);
}
}