dea.beans
Class Counts

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

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

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

Version:
1.0
Primary key is on column:COUNT_ID
Create statment: CREATE TABLE `counts` ( `count_id` int(11) NOT NULL auto_increment, `count_name` varchar(100) NOT NULL default '', `count` int(11) NOT NULL default '0', PRIMARY KEY (`count_id`) ) TYPE=MyISAM
Author:
David Abigt via GenBean
See Also:
Serialized Form

Field Summary
protected  java.lang.Integer count
           
static java.lang.String COUNT
           
protected  java.lang.Integer count_id
           
static java.lang.String COUNT_ID
           
static int COUNT_ID_LEN
           
static int COUNT_LEN
           
protected  java.lang.String count_name
           
static java.lang.String COUNT_NAME
           
static int COUNT_NAME_LEN
           
protected static Display display
           
static java.lang.String GETALL
           
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
Counts()
          Basic constructor
Counts(int pk)
          load record from the DB by primary key.
 
Method Summary
 java.lang.Object clone()
           
 int getCount_id()
          returns value of the COUNT_ID column of this row of data
 java.lang.String getCount_name()
          returns value of the COUNT_NAME column of this row of data
 int getCount()
          returns value of the COUNT column of this row of data
 java.lang.Integer getObjCount_id()
          returns value of the COUNT_ID column of this row of data
 java.lang.String getObjCount_name()
          returns value of the COUNT_NAME column of this row of data
 java.lang.Integer getObjCount()
          returns value of the COUNT column of this row of data
 void load(Db db)
          load record from the DB by primary key
static Counts load(java.sql.ResultSet results)
           
static Counts load(java.sql.ResultSet results, Counts newObj)
           
 void setCount_id(int newVal)
          sets value of the COUNT_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 setCount_id(java.lang.Integer newVal)
          sets value of the COUNT_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 setCount_name(java.lang.String newVal)
          sets value of the COUNT_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 setCount(int newVal)
          sets value of the COUNT column of this row of data default value for this field set by the DB is null
 void setCount(java.lang.Integer newVal)
          sets value of the COUNT 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

count

protected java.lang.Integer count

count_id

protected java.lang.Integer count_id

count_name

protected java.lang.String count_name

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

COUNT

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

COUNT_LEN

public static final int COUNT_LEN
See Also:
Constant Field Values

COUNT_ID

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

COUNT_ID_LEN

public static final int COUNT_ID_LEN
See Also:
Constant Field Values

COUNT_NAME

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

COUNT_NAME_LEN

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

Counts

public Counts()
Basic constructor


Counts

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

Method Detail

getObjCount

public java.lang.Integer getObjCount()
returns value of the COUNT column of this row of data

Returns:
value of this column in this row

getCount

public int getCount()
returns value of the COUNT column of this row of data

Returns:
value of this column in this row

setCount

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


setCount

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


getObjCount_id

public java.lang.Integer getObjCount_id()
returns value of the COUNT_ID column of this row of data

Returns:
value of this column in this row

getCount_id

public int getCount_id()
returns value of the COUNT_ID column of this row of data

Returns:
value of this column in this row

setCount_id

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


setCount_id

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


getObjCount_name

public java.lang.String getObjCount_name()
returns value of the COUNT_NAME column of this row of data

Returns:
value of this column in this row

getCount_name

public java.lang.String getCount_name()
returns value of the COUNT_NAME column of this row of data

Returns:
value of this column in this row

setCount_name

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


clone

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

load

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

load

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