dea.beans
Class Hc_devbak

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

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

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

Version:
1.0
Primary key is on column:HC_DEV_ID
Create statment: CREATE TABLE `hc_devbak` ( `hc_dev_id` int(11) NOT NULL auto_increment, `code` char(1) NOT NULL default '', `number` int(11) NOT NULL default '0', `value` int(11) default '0', `name` varchar(100) default '', `last_updated` datetime NOT NULL default '0000-00-00 00:00:00', `type` int(11) NOT NULL default '0', `action` varchar(255) NOT NULL default 'dea.hc.jds.actions.JustLog', PRIMARY KEY (`hc_dev_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  java.lang.String code
           
static java.lang.String CODE
           
static int CODE_LEN
           
protected static Display display
           
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.sql.Timestamp last_updated
           
static java.lang.String LAST_UPDATED
           
static int LAST_UPDATED_LEN
           
protected  java.lang.String name
           
static java.lang.String NAME
           
static int NAME_LEN
           
protected  java.lang.Integer number
           
static java.lang.String NUMBER
           
static int NUMBER_LEN
           
static java.lang.String TABLE_NAME
           
protected  java.lang.Integer type
           
static java.lang.String TYPE
           
static int TYPE_LEN
           
protected  java.lang.Integer value
           
static java.lang.String VALUE
           
static int VALUE_LEN
           
 
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_devbak()
          Basic constructor
Hc_devbak(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 getCode()
          returns value of the CODE column of this row of data
 int getHc_dev_id()
          returns value of the HC_DEV_ID 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 getName()
          returns value of the NAME column of this row of data
 int getNumber()
          returns value of the NUMBER column of this row of data
 java.lang.String getObjAction()
          returns value of the ACTION column of this row of data
 java.lang.String getObjCode()
          returns value of the CODE 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.sql.Timestamp getObjLast_updated()
          returns value of the LAST_UPDATED column of this row of data
 java.lang.String getObjName()
          returns value of the NAME column of this row of data
 java.lang.Integer getObjNumber()
          returns value of the NUMBER column of this row of data
 java.lang.Integer getObjType()
          returns value of the TYPE column of this row of data
 java.lang.Integer getObjValue()
          returns value of the VALUE column of this row of data
 int getType()
          returns value of the TYPE column of this row of data
 int getValue()
          returns value of the VALUE column of this row of data
 void load(Db db)
          load record from the DB by primary key
static Hc_devbak load(java.sql.ResultSet results)
           
static Hc_devbak load(java.sql.ResultSet results, Hc_devbak 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 255, longer strings will be truncated
 void setCode(java.lang.String newVal)
          sets value of the 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_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 This is the primary key for this table
 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 This is the primary key for this table
 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 setName(java.lang.String newVal)
          sets value of the 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 setNumber(int newVal)
          sets value of the NUMBER column of this row of data default value for this field set by the DB is null
 void setNumber(java.lang.Integer newVal)
          sets value of the NUMBER column of this row of data default value for this field set by the DB is null
 void setType(int newVal)
          sets value of the TYPE column of this row of data default value for this field set by the DB is null
 void setType(java.lang.Integer newVal)
          sets value of the TYPE column of this row of data default value for this field set by the DB is null
 void setValue(int newVal)
          sets value of the VALUE column of this row of data default value for this field set by the DB is null
 void setValue(java.lang.Integer newVal)
          sets value of the VALUE 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

code

protected java.lang.String code

hc_dev_id

protected java.lang.Integer hc_dev_id

last_updated

protected java.sql.Timestamp last_updated

name

protected java.lang.String name

number

protected java.lang.Integer number

type

protected java.lang.Integer type

value

protected java.lang.Integer value

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

CODE

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

CODE_LEN

public static final int CODE_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

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

NAME

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

NAME_LEN

public static final int NAME_LEN
See Also:
Constant Field Values

NUMBER

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

NUMBER_LEN

public static final int NUMBER_LEN
See Also:
Constant Field Values

TYPE

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

TYPE_LEN

public static final int TYPE_LEN
See Also:
Constant Field Values

VALUE

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

VALUE_LEN

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

Hc_devbak

public Hc_devbak()
Basic constructor


Hc_devbak

public Hc_devbak(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 255, longer strings will be truncated


getObjCode

public java.lang.String getObjCode()
returns value of the CODE column of this row of data

Returns:
value of this column in this row

getCode

public java.lang.String getCode()
returns value of the CODE column of this row of data

Returns:
value of this column in this row

setCode

public void setCode(java.lang.String newVal)
sets value of the 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_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 This is the primary key for this table


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 This is the primary key for this table


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


getObjName

public java.lang.String getObjName()
returns value of the NAME column of this row of data

Returns:
value of this column in this row

getName

public java.lang.String getName()
returns value of the NAME column of this row of data

Returns:
value of this column in this row

setName

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


getObjNumber

public java.lang.Integer getObjNumber()
returns value of the NUMBER column of this row of data

Returns:
value of this column in this row

getNumber

public int getNumber()
returns value of the NUMBER column of this row of data

Returns:
value of this column in this row

setNumber

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


setNumber

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


getObjType

public java.lang.Integer getObjType()
returns value of the TYPE column of this row of data

Returns:
value of this column in this row

getType

public int getType()
returns value of the TYPE column of this row of data

Returns:
value of this column in this row

setType

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


setType

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


getObjValue

public java.lang.Integer getObjValue()
returns value of the VALUE column of this row of data

Returns:
value of this column in this row

getValue

public int getValue()
returns value of the VALUE column of this row of data

Returns:
value of this column in this row

setValue

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


setValue

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

load

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