dea.beans
Class Hc_log

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

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

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

Version:
1.0
Primary key is on column:HC_LOG_ID
Create statment: CREATE TABLE `hc_log` ( `hc_log_id` int(11) NOT NULL auto_increment, `hc_dev_id` int(11) NOT NULL default '0', `new_value` int(11) NOT NULL default '0', `entered` datetime NOT NULL default '0000-00-00 00:00:00', `done` char(1) default '0', `processed` datetime default '0000-00-00 00:00:00', `action` varchar(100) default '', PRIMARY KEY (`hc_log_id`) ) TYPE=MyISAM
Author:
David Abigt via GenBean
See Also:
Serialized Form

Field Summary
protected  java.lang.String action
           
static java.lang.String ACTION
           
static int ACTION_LEN
           
protected static Display display
           
protected  java.lang.String done
           
static java.lang.String DONE
           
static int DONE_LEN
           
protected  java.sql.Timestamp entered
           
static java.lang.String ENTERED
           
static int ENTERED_LEN
           
static java.lang.String GETALL
           
protected  java.lang.Integer hc_dev_id
           
static java.lang.String HC_DEV_ID
           
static int HC_DEV_ID_LEN
           
protected  java.lang.Integer hc_log_id
           
static java.lang.String HC_LOG_ID
           
static int HC_LOG_ID_LEN
           
protected  java.lang.Integer new_value
           
static java.lang.String NEW_VALUE
           
static int NEW_VALUE_LEN
           
protected  java.sql.Timestamp processed
           
static java.lang.String PROCESSED
           
static int PROCESSED_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_log()
          Basic constructor
Hc_log(int pk)
          load record from the DB by primary key.
 
Method Summary
 java.lang.Object clone()
           
 java.lang.String getAction()
          returns value of the ACTION column of this row of data
 java.lang.String getDone()
          returns value of the DONE column of this row of data
 java.sql.Timestamp getEntered()
          returns value of the ENTERED column of this row of data
 int getHc_dev_id()
          returns value of the HC_DEV_ID column of this row of data
 int getHc_log_id()
          returns value of the HC_LOG_ID column of this row of data
 int getNew_value()
          returns value of the NEW_VALUE column of this row of data
 java.lang.String getObjAction()
          returns value of the ACTION column of this row of data
 java.lang.String getObjDone()
          returns value of the DONE column of this row of data
 java.sql.Timestamp getObjEntered()
          returns value of the ENTERED column of this row of data
 java.lang.Integer getObjHc_dev_id()
          returns value of the HC_DEV_ID column of this row of data
 java.lang.Integer getObjHc_log_id()
          returns value of the HC_LOG_ID column of this row of data
 java.lang.Integer getObjNew_value()
          returns value of the NEW_VALUE column of this row of data
 java.sql.Timestamp getObjProcessed()
          returns value of the PROCESSED column of this row of data
 java.sql.Timestamp getProcessed()
          returns value of the PROCESSED column of this row of data
 void load(Db db)
          load record from the DB by primary key
static Hc_log load(java.sql.ResultSet results)
           
static Hc_log load(java.sql.ResultSet results, Hc_log newObj)
           
 void setAction(java.lang.String newVal)
          sets value of the ACTION 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 setDone(java.lang.String newVal)
          sets value of the DONE 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 setEntered(java.sql.Timestamp newVal)
          sets value of the ENTERED column of this row of data default value for this field set by the DB is null
 void setHc_dev_id(int newVal)
          sets value of the HC_DEV_ID column of this row of data default value for this field set by the DB is null
 void setHc_dev_id(java.lang.Integer newVal)
          sets value of the HC_DEV_ID column of this row of data default value for this field set by the DB is null
 void setHc_log_id(int newVal)
          sets value of the HC_LOG_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_log_id(java.lang.Integer newVal)
          sets value of the HC_LOG_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 setNew_value(int newVal)
          sets value of the NEW_VALUE column of this row of data default value for this field set by the DB is null
 void setNew_value(java.lang.Integer newVal)
          sets value of the NEW_VALUE column of this row of data default value for this field set by the DB is null
 void setProcessed(java.sql.Timestamp newVal)
          sets value of the PROCESSED 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

action

protected java.lang.String action

done

protected java.lang.String done

entered

protected java.sql.Timestamp entered

hc_dev_id

protected java.lang.Integer hc_dev_id

hc_log_id

protected java.lang.Integer hc_log_id

new_value

protected java.lang.Integer new_value

processed

protected java.sql.Timestamp processed

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

ACTION

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

ACTION_LEN

public static final int ACTION_LEN
See Also:
Constant Field Values

DONE

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

DONE_LEN

public static final int DONE_LEN
See Also:
Constant Field Values

ENTERED

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

ENTERED_LEN

public static final int ENTERED_LEN
See Also:
Constant Field Values

HC_DEV_ID

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

HC_DEV_ID_LEN

public static final int HC_DEV_ID_LEN
See Also:
Constant Field Values

HC_LOG_ID

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

HC_LOG_ID_LEN

public static final int HC_LOG_ID_LEN
See Also:
Constant Field Values

NEW_VALUE

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

NEW_VALUE_LEN

public static final int NEW_VALUE_LEN
See Also:
Constant Field Values

PROCESSED

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

PROCESSED_LEN

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

Hc_log

public Hc_log()
Basic constructor


Hc_log

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

Method Detail

getObjAction

public java.lang.String getObjAction()
returns value of the ACTION column of this row of data

Returns:
value of this column in this row

getAction

public java.lang.String getAction()
returns value of the ACTION column of this row of data

Returns:
value of this column in this row

setAction

public void setAction(java.lang.String newVal)
sets value of the ACTION 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


getObjDone

public java.lang.String getObjDone()
returns value of the DONE column of this row of data

Returns:
value of this column in this row

getDone

public java.lang.String getDone()
returns value of the DONE column of this row of data

Returns:
value of this column in this row

setDone

public void setDone(java.lang.String newVal)
sets value of the DONE 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


getObjEntered

public java.sql.Timestamp getObjEntered()
returns value of the ENTERED column of this row of data

Returns:
value of this column in this row

getEntered

public java.sql.Timestamp getEntered()
returns value of the ENTERED column of this row of data

Returns:
value of this column in this row

setEntered

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


getObjHc_dev_id

public java.lang.Integer getObjHc_dev_id()
returns value of the HC_DEV_ID column of this row of data

Returns:
value of this column in this row

getHc_dev_id

public int getHc_dev_id()
returns value of the HC_DEV_ID column of this row of data

Returns:
value of this column in this row

setHc_dev_id

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


setHc_dev_id

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


getObjHc_log_id

public java.lang.Integer getObjHc_log_id()
returns value of the HC_LOG_ID column of this row of data

Returns:
value of this column in this row

getHc_log_id

public int getHc_log_id()
returns value of the HC_LOG_ID column of this row of data

Returns:
value of this column in this row

setHc_log_id

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

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


getObjNew_value

public java.lang.Integer getObjNew_value()
returns value of the NEW_VALUE column of this row of data

Returns:
value of this column in this row

getNew_value

public int getNew_value()
returns value of the NEW_VALUE column of this row of data

Returns:
value of this column in this row

setNew_value

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


setNew_value

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


getObjProcessed

public java.sql.Timestamp getObjProcessed()
returns value of the PROCESSED column of this row of data

Returns:
value of this column in this row

getProcessed

public java.sql.Timestamp getProcessed()
returns value of the PROCESSED column of this row of data

Returns:
value of this column in this row

setProcessed

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

load

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