dea.beans
Class Hc_vars

java.lang.Object
  extended bydea.beans.Hc_vars
All Implemented Interfaces:
IDebugLevels, java.io.Serializable

public class Hc_vars
extends java.lang.Object
implements java.io.Serializable, IDebugLevels

Title: hc_vars Helper
Description: Class for holding data from the hc_vars table.
Copyright: Copyright (c) 2001-2004
Company: RMRR

Version:
1.0
Primary key is on column:HC_VAR_ID
Create statment: CREATE TABLE `hc_vars` ( `hc_var_id` int(11) NOT NULL auto_increment, `hc_var_name` varchar(100) default '', `hc_var_value` int(11) default '0', `hc_code` char(1) default '', `hc_unit` int(11) default '0', `last_updated` datetime NOT NULL default '0000-00-00 00:00:00', `hc_var_multiplier` double NOT NULL default '0', `hc_var_offset` double NOT NULL default '0', `hc_var_units` varchar(20) NOT NULL default '', PRIMARY KEY (`hc_var_id`) ) TYPE=MyISAM
Author:
David Abigt via GenBean
See Also:
Serialized Form

Field Summary
protected static Display display
           
static java.lang.String GETALL
           
protected  java.lang.String hc_code
           
static java.lang.String HC_CODE
           
static int HC_CODE_LEN
           
protected  java.lang.Integer hc_unit
           
static java.lang.String HC_UNIT
           
static int HC_UNIT_LEN
           
protected  java.lang.Integer hc_var_id
           
static java.lang.String HC_VAR_ID
           
static int HC_VAR_ID_LEN
           
protected  java.lang.Double hc_var_multiplier
           
static java.lang.String HC_VAR_MULTIPLIER
           
static int HC_VAR_MULTIPLIER_LEN
           
protected  java.lang.String hc_var_name
           
static java.lang.String HC_VAR_NAME
           
static int HC_VAR_NAME_LEN
           
protected  java.lang.Double hc_var_offset
           
static java.lang.String HC_VAR_OFFSET
           
static int HC_VAR_OFFSET_LEN
           
protected  java.lang.String hc_var_units
           
static java.lang.String HC_VAR_UNITS
           
static int HC_VAR_UNITS_LEN
           
protected  java.lang.Integer hc_var_value
           
static java.lang.String HC_VAR_VALUE
           
static int HC_VAR_VALUE_LEN
           
protected  java.sql.Timestamp last_updated
           
static java.lang.String LAST_UPDATED
           
static int LAST_UPDATED_LEN
           
static java.lang.String TABLE_NAME
           
 
Fields inherited from interface dea.common.IDebugLevels
BASIC, DEBUG_ALL, ERROR, METH_DETAIL, METH_ENTER, METH_EXIT, METH_EXT, METH_GET, METH_SET, METH_VARS, SHOW_PASS
 
Constructor Summary
Hc_vars()
          Basic constructor
Hc_vars(int pk)
          load record from the DB by primary key.
 
Method Summary
 java.lang.Object clone()
           
 java.lang.String getHc_code()
          returns value of the HC_CODE column of this row of data
 int getHc_unit()
          returns value of the HC_UNIT column of this row of data
 int getHc_var_id()
          returns value of the HC_VAR_ID column of this row of data
 double getHc_var_multiplier()
          returns value of the HC_VAR_MULTIPLIER column of this row of data
 java.lang.String getHc_var_name()
          returns value of the HC_VAR_NAME column of this row of data
 double getHc_var_offset()
          returns value of the HC_VAR_OFFSET column of this row of data
 java.lang.String getHc_var_units()
          returns value of the HC_VAR_UNITS column of this row of data
 int getHc_var_value()
          returns value of the HC_VAR_VALUE column of this row of data
 java.sql.Timestamp getLast_updated()
          returns value of the LAST_UPDATED column of this row of data
 java.lang.String getObjHc_code()
          returns value of the HC_CODE column of this row of data
 java.lang.Integer getObjHc_unit()
          returns value of the HC_UNIT column of this row of data
 java.lang.Integer getObjHc_var_id()
          returns value of the HC_VAR_ID column of this row of data
 java.lang.Double getObjHc_var_multiplier()
          returns value of the HC_VAR_MULTIPLIER column of this row of data
 java.lang.String getObjHc_var_name()
          returns value of the HC_VAR_NAME column of this row of data
 java.lang.Double getObjHc_var_offset()
          returns value of the HC_VAR_OFFSET column of this row of data
 java.lang.String getObjHc_var_units()
          returns value of the HC_VAR_UNITS column of this row of data
 java.lang.Integer getObjHc_var_value()
          returns value of the HC_VAR_VALUE column of this row of data
 java.sql.Timestamp getObjLast_updated()
          returns value of the LAST_UPDATED column of this row of data
 void load(Db db)
          load record from the DB by primary key
static Hc_vars load(java.sql.ResultSet results)
           
static Hc_vars load(java.sql.ResultSet results, Hc_vars newObj)
           
 void setHc_code(java.lang.String newVal)
          sets value of the HC_CODE column of this row of data default value for this field set by the DB is null This field has a max length of 1, longer strings will be truncated
 void setHc_unit(int newVal)
          sets value of the HC_UNIT column of this row of data default value for this field set by the DB is null
 void setHc_unit(java.lang.Integer newVal)
          sets value of the HC_UNIT column of this row of data default value for this field set by the DB is null
 void setHc_var_id(int newVal)
          sets value of the HC_VAR_ID column of this row of data default value for this field set by the DB is null This is the primary key for this table
 void setHc_var_id(java.lang.Integer newVal)
          sets value of the HC_VAR_ID column of this row of data default value for this field set by the DB is null This is the primary key for this table
 void setHc_var_multiplier(double newVal)
          sets value of the HC_VAR_MULTIPLIER column of this row of data default value for this field set by the DB is null
 void setHc_var_multiplier(java.lang.Double newVal)
          sets value of the HC_VAR_MULTIPLIER column of this row of data default value for this field set by the DB is null
 void setHc_var_name(java.lang.String newVal)
          sets value of the HC_VAR_NAME column of this row of data default value for this field set by the DB is null This field has a max length of 100, longer strings will be truncated
 void setHc_var_offset(double newVal)
          sets value of the HC_VAR_OFFSET column of this row of data default value for this field set by the DB is null
 void setHc_var_offset(java.lang.Double newVal)
          sets value of the HC_VAR_OFFSET column of this row of data default value for this field set by the DB is null
 void setHc_var_units(java.lang.String newVal)
          sets value of the HC_VAR_UNITS column of this row of data default value for this field set by the DB is null This field has a max length of 20, longer strings will be truncated
 void setHc_var_value(int newVal)
          sets value of the HC_VAR_VALUE column of this row of data default value for this field set by the DB is null
 void setHc_var_value(java.lang.Integer newVal)
          sets value of the HC_VAR_VALUE column of this row of data default value for this field set by the DB is null
 void setLast_updated(java.sql.Timestamp newVal)
          sets value of the LAST_UPDATED column of this row of data default value for this field set by the DB is null
 void store()
          Deprecated. Should use store(Db db) to limit connections to DB
 void store(Db db)
          Store this object in the DB
 java.lang.String toString()
          Returns a String showing the values of this bean - mainly for debuging
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

display

protected static final Display display

hc_code

protected java.lang.String hc_code

hc_unit

protected java.lang.Integer hc_unit

hc_var_id

protected java.lang.Integer hc_var_id

hc_var_multiplier

protected java.lang.Double hc_var_multiplier

hc_var_name

protected java.lang.String hc_var_name

hc_var_offset

protected java.lang.Double hc_var_offset

hc_var_units

protected java.lang.String hc_var_units

hc_var_value

protected java.lang.Integer hc_var_value

last_updated

protected java.sql.Timestamp last_updated

TABLE_NAME

public static final java.lang.String TABLE_NAME
See Also:
Constant Field Values

GETALL

public static final java.lang.String GETALL
See Also:
Constant Field Values

HC_CODE

public static final java.lang.String HC_CODE
See Also:
Constant Field Values

HC_CODE_LEN

public static final int HC_CODE_LEN
See Also:
Constant Field Values

HC_UNIT

public static final java.lang.String HC_UNIT
See Also:
Constant Field Values

HC_UNIT_LEN

public static final int HC_UNIT_LEN
See Also:
Constant Field Values

HC_VAR_ID

public static final java.lang.String HC_VAR_ID
See Also:
Constant Field Values

HC_VAR_ID_LEN

public static final int HC_VAR_ID_LEN
See Also:
Constant Field Values

HC_VAR_MULTIPLIER

public static final java.lang.String HC_VAR_MULTIPLIER
See Also:
Constant Field Values

HC_VAR_MULTIPLIER_LEN

public static final int HC_VAR_MULTIPLIER_LEN
See Also:
Constant Field Values

HC_VAR_NAME

public static final java.lang.String HC_VAR_NAME
See Also:
Constant Field Values

HC_VAR_NAME_LEN

public static final int HC_VAR_NAME_LEN
See Also:
Constant Field Values

HC_VAR_OFFSET

public static final java.lang.String HC_VAR_OFFSET
See Also:
Constant Field Values

HC_VAR_OFFSET_LEN

public static final int HC_VAR_OFFSET_LEN
See Also:
Constant Field Values

HC_VAR_UNITS

public static final java.lang.String HC_VAR_UNITS
See Also:
Constant Field Values

HC_VAR_UNITS_LEN

public static final int HC_VAR_UNITS_LEN
See Also:
Constant Field Values

HC_VAR_VALUE

public static final java.lang.String HC_VAR_VALUE
See Also:
Constant Field Values

HC_VAR_VALUE_LEN

public static final int HC_VAR_VALUE_LEN
See Also:
Constant Field Values

LAST_UPDATED

public static final java.lang.String LAST_UPDATED
See Also:
Constant Field Values

LAST_UPDATED_LEN

public static final int LAST_UPDATED_LEN
See Also:
Constant Field Values
Constructor Detail

Hc_vars

public Hc_vars()
Basic constructor


Hc_vars

public Hc_vars(int pk)
load record from the DB by primary key.

Method Detail

getObjHc_code

public java.lang.String getObjHc_code()
returns value of the HC_CODE column of this row of data

Returns:
value of this column in this row

getHc_code

public java.lang.String getHc_code()
returns value of the HC_CODE column of this row of data

Returns:
value of this column in this row

setHc_code

public void setHc_code(java.lang.String newVal)
sets value of the HC_CODE column of this row of data default value for this field set by the DB is null This field has a max length of 1, longer strings will be truncated


getObjHc_unit

public java.lang.Integer getObjHc_unit()
returns value of the HC_UNIT column of this row of data

Returns:
value of this column in this row

getHc_unit

public int getHc_unit()
returns value of the HC_UNIT column of this row of data

Returns:
value of this column in this row

setHc_unit

public void setHc_unit(java.lang.Integer newVal)
sets value of the HC_UNIT column of this row of data default value for this field set by the DB is null


setHc_unit

public void setHc_unit(int newVal)
sets value of the HC_UNIT column of this row of data default value for this field set by the DB is null


getObjHc_var_id

public java.lang.Integer getObjHc_var_id()
returns value of the HC_VAR_ID column of this row of data

Returns:
value of this column in this row

getHc_var_id

public int getHc_var_id()
returns value of the HC_VAR_ID column of this row of data

Returns:
value of this column in this row

setHc_var_id

public void setHc_var_id(java.lang.Integer newVal)
sets value of the HC_VAR_ID column of this row of data default value for this field set by the DB is null This is the primary key for this table


setHc_var_id

public void setHc_var_id(int newVal)
sets value of the HC_VAR_ID column of this row of data default value for this field set by the DB is null This is the primary key for this table


getObjHc_var_multiplier

public java.lang.Double getObjHc_var_multiplier()
returns value of the HC_VAR_MULTIPLIER column of this row of data

Returns:
value of this column in this row

getHc_var_multiplier

public double getHc_var_multiplier()
returns value of the HC_VAR_MULTIPLIER column of this row of data

Returns:
value of this column in this row

setHc_var_multiplier

public void setHc_var_multiplier(java.lang.Double newVal)
sets value of the HC_VAR_MULTIPLIER column of this row of data default value for this field set by the DB is null


setHc_var_multiplier

public void setHc_var_multiplier(double newVal)
sets value of the HC_VAR_MULTIPLIER column of this row of data default value for this field set by the DB is null


getObjHc_var_name

public java.lang.String getObjHc_var_name()
returns value of the HC_VAR_NAME column of this row of data

Returns:
value of this column in this row

getHc_var_name

public java.lang.String getHc_var_name()
returns value of the HC_VAR_NAME column of this row of data

Returns:
value of this column in this row

setHc_var_name

public void setHc_var_name(java.lang.String newVal)
sets value of the HC_VAR_NAME column of this row of data default value for this field set by the DB is null This field has a max length of 100, longer strings will be truncated


getObjHc_var_offset

public java.lang.Double getObjHc_var_offset()
returns value of the HC_VAR_OFFSET column of this row of data

Returns:
value of this column in this row

getHc_var_offset

public double getHc_var_offset()
returns value of the HC_VAR_OFFSET column of this row of data

Returns:
value of this column in this row

setHc_var_offset

public void setHc_var_offset(java.lang.Double newVal)
sets value of the HC_VAR_OFFSET column of this row of data default value for this field set by the DB is null


setHc_var_offset

public void setHc_var_offset(double newVal)
sets value of the HC_VAR_OFFSET column of this row of data default value for this field set by the DB is null


getObjHc_var_units

public java.lang.String getObjHc_var_units()
returns value of the HC_VAR_UNITS column of this row of data

Returns:
value of this column in this row

getHc_var_units

public java.lang.String getHc_var_units()
returns value of the HC_VAR_UNITS column of this row of data

Returns:
value of this column in this row

setHc_var_units

public void setHc_var_units(java.lang.String newVal)
sets value of the HC_VAR_UNITS column of this row of data default value for this field set by the DB is null This field has a max length of 20, longer strings will be truncated


getObjHc_var_value

public java.lang.Integer getObjHc_var_value()
returns value of the HC_VAR_VALUE column of this row of data

Returns:
value of this column in this row

getHc_var_value

public int getHc_var_value()
returns value of the HC_VAR_VALUE column of this row of data

Returns:
value of this column in this row

setHc_var_value

public void setHc_var_value(java.lang.Integer newVal)
sets value of the HC_VAR_VALUE column of this row of data default value for this field set by the DB is null


setHc_var_value

public void setHc_var_value(int newVal)
sets value of the HC_VAR_VALUE column of this row of data default value for this field set by the DB is null


getObjLast_updated

public java.sql.Timestamp getObjLast_updated()
returns value of the LAST_UPDATED column of this row of data

Returns:
value of this column in this row

getLast_updated

public java.sql.Timestamp getLast_updated()
returns value of the LAST_UPDATED column of this row of data

Returns:
value of this column in this row

setLast_updated

public void setLast_updated(java.sql.Timestamp newVal)
sets value of the LAST_UPDATED column of this row of data default value for this field set by the DB is null


clone

public java.lang.Object clone()
Returns:
a copy of this object

load

public static Hc_vars load(java.sql.ResultSet results)
                    throws java.sql.SQLException
Returns:
an object created from the resultSet
Throws:
java.sql.SQLException

load

public static Hc_vars load(java.sql.ResultSet results,
                           Hc_vars newObj)
                    throws java.sql.SQLException
Returns:
object loaded from the resultSet. If newObj is null a new object is created otherwise newObj is returned.
Throws:
java.sql.SQLException

load

public void load(Db db)
load record from the DB by primary key

Parameters:
db -

store

public void store()
           throws java.sql.SQLException,
                  java.lang.ClassNotFoundException
Deprecated. Should use store(Db db) to limit connections to DB

Store this object in the DB

Throws:
java.sql.SQLException
java.lang.ClassNotFoundException

store

public void store(Db db)
           throws java.sql.SQLException,
                  java.lang.ClassNotFoundException
Store this object in the DB

Parameters:
db - holds connection to DB
Throws:
java.sql.SQLException
java.lang.ClassNotFoundException

toString

public java.lang.String toString()
Returns a String showing the values of this bean - mainly for debuging

Returns:
String


Copyright © 2001-2005 Round Mountain Rescue Ranch. All Rights Reserved.