dea.beans
Class Hc_rain

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

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

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

Version:
1.0
Primary key is on column:RAIN_ID
Create statment: CREATE TABLE `hc_rain` ( `rain_id` int(11) NOT NULL auto_increment, `rain_total` double default '0', `rain_rate_hr` double NOT NULL default '0', `rain_time` datetime NOT NULL default '0000-00-00 00:00:00', `rain_toggle` int(11) NOT NULL default '0', PRIMARY KEY (`rain_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.Integer rain_id
           
static java.lang.String RAIN_ID
           
static int RAIN_ID_LEN
           
protected  java.lang.Double rain_rate_hr
           
static java.lang.String RAIN_RATE_HR
           
static int RAIN_RATE_HR_LEN
           
protected  java.sql.Timestamp rain_time
           
static java.lang.String RAIN_TIME
           
static int RAIN_TIME_LEN
           
protected  java.lang.Integer rain_toggle
           
static java.lang.String RAIN_TOGGLE
           
static int RAIN_TOGGLE_LEN
           
protected  java.lang.Double rain_total
           
static java.lang.String RAIN_TOTAL
           
static int RAIN_TOTAL_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_rain()
          Basic constructor
Hc_rain(int pk)
          load record from the DB by primary key.
 
Method Summary
 java.lang.Object clone()
           
 java.lang.Integer getObjRain_id()
          returns value of the RAIN_ID column of this row of data
 java.lang.Double getObjRain_rate_hr()
          returns value of the RAIN_RATE_HR column of this row of data
 java.sql.Timestamp getObjRain_time()
          returns value of the RAIN_TIME column of this row of data
 java.lang.Integer getObjRain_toggle()
          returns value of the RAIN_TOGGLE column of this row of data
 java.lang.Double getObjRain_total()
          returns value of the RAIN_TOTAL column of this row of data
 int getRain_id()
          returns value of the RAIN_ID column of this row of data
 double getRain_rate_hr()
          returns value of the RAIN_RATE_HR column of this row of data
 java.sql.Timestamp getRain_time()
          returns value of the RAIN_TIME column of this row of data
 int getRain_toggle()
          returns value of the RAIN_TOGGLE column of this row of data
 double getRain_total()
          returns value of the RAIN_TOTAL column of this row of data
 void load(Db db)
          load record from the DB by primary key
static Hc_rain load(java.sql.ResultSet results)
           
static Hc_rain load(java.sql.ResultSet results, Hc_rain newObj)
           
 void setRain_id(int newVal)
          sets value of the RAIN_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 setRain_id(java.lang.Integer newVal)
          sets value of the RAIN_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 setRain_rate_hr(double newVal)
          sets value of the RAIN_RATE_HR column of this row of data default value for this field set by the DB is null
 void setRain_rate_hr(java.lang.Double newVal)
          sets value of the RAIN_RATE_HR column of this row of data default value for this field set by the DB is null
 void setRain_time(java.sql.Timestamp newVal)
          sets value of the RAIN_TIME column of this row of data default value for this field set by the DB is null
 void setRain_toggle(int newVal)
          sets value of the RAIN_TOGGLE column of this row of data default value for this field set by the DB is null
 void setRain_toggle(java.lang.Integer newVal)
          sets value of the RAIN_TOGGLE column of this row of data default value for this field set by the DB is null
 void setRain_total(double newVal)
          sets value of the RAIN_TOTAL column of this row of data default value for this field set by the DB is null
 void setRain_total(java.lang.Double newVal)
          sets value of the RAIN_TOTAL 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

rain_id

protected java.lang.Integer rain_id

rain_rate_hr

protected java.lang.Double rain_rate_hr

rain_time

protected java.sql.Timestamp rain_time

rain_toggle

protected java.lang.Integer rain_toggle

rain_total

protected java.lang.Double rain_total

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

RAIN_ID

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

RAIN_ID_LEN

public static final int RAIN_ID_LEN
See Also:
Constant Field Values

RAIN_RATE_HR

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

RAIN_RATE_HR_LEN

public static final int RAIN_RATE_HR_LEN
See Also:
Constant Field Values

RAIN_TIME

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

RAIN_TIME_LEN

public static final int RAIN_TIME_LEN
See Also:
Constant Field Values

RAIN_TOGGLE

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

RAIN_TOGGLE_LEN

public static final int RAIN_TOGGLE_LEN
See Also:
Constant Field Values

RAIN_TOTAL

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

RAIN_TOTAL_LEN

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

Hc_rain

public Hc_rain()
Basic constructor


Hc_rain

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

Method Detail

getObjRain_id

public java.lang.Integer getObjRain_id()
returns value of the RAIN_ID column of this row of data

Returns:
value of this column in this row

getRain_id

public int getRain_id()
returns value of the RAIN_ID column of this row of data

Returns:
value of this column in this row

setRain_id

public void setRain_id(java.lang.Integer newVal)
sets value of the RAIN_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


setRain_id

public void setRain_id(int newVal)
sets value of the RAIN_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


getObjRain_rate_hr

public java.lang.Double getObjRain_rate_hr()
returns value of the RAIN_RATE_HR column of this row of data

Returns:
value of this column in this row

getRain_rate_hr

public double getRain_rate_hr()
returns value of the RAIN_RATE_HR column of this row of data

Returns:
value of this column in this row

setRain_rate_hr

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


setRain_rate_hr

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


getObjRain_time

public java.sql.Timestamp getObjRain_time()
returns value of the RAIN_TIME column of this row of data

Returns:
value of this column in this row

getRain_time

public java.sql.Timestamp getRain_time()
returns value of the RAIN_TIME column of this row of data

Returns:
value of this column in this row

setRain_time

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


getObjRain_toggle

public java.lang.Integer getObjRain_toggle()
returns value of the RAIN_TOGGLE column of this row of data

Returns:
value of this column in this row

getRain_toggle

public int getRain_toggle()
returns value of the RAIN_TOGGLE column of this row of data

Returns:
value of this column in this row

setRain_toggle

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


setRain_toggle

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


getObjRain_total

public java.lang.Double getObjRain_total()
returns value of the RAIN_TOTAL column of this row of data

Returns:
value of this column in this row

getRain_total

public double getRain_total()
returns value of the RAIN_TOTAL column of this row of data

Returns:
value of this column in this row

setRain_total

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


setRain_total

public void setRain_total(double newVal)
sets value of the RAIN_TOTAL 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_rain load(java.sql.ResultSet results)
                    throws java.sql.SQLException
Returns:
an object created from the resultSet
Throws:
java.sql.SQLException

load

public static Hc_rain load(java.sql.ResultSet results,
                           Hc_rain 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.