dea.beans
Class Cats

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

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

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

Version:
1.0
Primary key is on column:CAT_KEY
Create statment: CREATE TABLE `cats` ( `cat_key` int(11) NOT NULL default '0', `cat_name` text, `description` text, PRIMARY KEY (`cat_key`) ) TYPE=MyISAM
Author:
David Abigt via GenBean
See Also:
Serialized Form

Field Summary
protected  java.lang.Integer cat_key
           
static java.lang.String CAT_KEY
           
static int CAT_KEY_LEN
           
protected  java.lang.String cat_name
           
static java.lang.String CAT_NAME
           
static int CAT_NAME_LEN
           
protected  java.lang.String description
           
static java.lang.String DESCRIPTION
           
static int DESCRIPTION_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
Cats()
          Basic constructor
Cats(int pk)
          load record from the DB by primary key.
 
Method Summary
 java.lang.Object clone()
           
 int getCat_key()
          returns value of the CAT_KEY column of this row of data
 java.lang.String getCat_name()
          returns value of the CAT_NAME column of this row of data
 java.lang.String getDescription()
          returns value of the DESCRIPTION column of this row of data
 java.lang.Integer getObjCat_key()
          returns value of the CAT_KEY column of this row of data
 java.lang.String getObjCat_name()
          returns value of the CAT_NAME column of this row of data
 java.lang.String getObjDescription()
          returns value of the DESCRIPTION column of this row of data
 void load(Db db)
          load record from the DB by primary key
static Cats load(java.sql.ResultSet results)
           
static Cats load(java.sql.ResultSet results, Cats newObj)
           
 void setCat_key(int newVal)
          sets value of the CAT_KEY 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 setCat_key(java.lang.Integer newVal)
          sets value of the CAT_KEY 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 setCat_name(java.lang.String newVal)
          sets value of the CAT_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 65535, longer strings will be truncated
 void setDescription(java.lang.String newVal)
          sets value of the DESCRIPTION column of this row of data default value for this field set by the DB is null This field has a max length of 65535, longer strings will be truncated
 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

cat_key

protected java.lang.Integer cat_key

cat_name

protected java.lang.String cat_name

description

protected java.lang.String description

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

CAT_KEY

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

CAT_KEY_LEN

public static final int CAT_KEY_LEN
See Also:
Constant Field Values

CAT_NAME

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

CAT_NAME_LEN

public static final int CAT_NAME_LEN
See Also:
Constant Field Values

DESCRIPTION

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

DESCRIPTION_LEN

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

Cats

public Cats()
Basic constructor


Cats

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

Method Detail

getObjCat_key

public java.lang.Integer getObjCat_key()
returns value of the CAT_KEY column of this row of data

Returns:
value of this column in this row

getCat_key

public int getCat_key()
returns value of the CAT_KEY column of this row of data

Returns:
value of this column in this row

setCat_key

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


setCat_key

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


getObjCat_name

public java.lang.String getObjCat_name()
returns value of the CAT_NAME column of this row of data

Returns:
value of this column in this row

getCat_name

public java.lang.String getCat_name()
returns value of the CAT_NAME column of this row of data

Returns:
value of this column in this row

setCat_name

public void setCat_name(java.lang.String newVal)
sets value of the CAT_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 65535, longer strings will be truncated


getObjDescription

public java.lang.String getObjDescription()
returns value of the DESCRIPTION column of this row of data

Returns:
value of this column in this row

getDescription

public java.lang.String getDescription()
returns value of the DESCRIPTION column of this row of data

Returns:
value of this column in this row

setDescription

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


clone

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

load

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

load

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