dea.beans
Class Attr_types

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

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

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

Version:
1.0
Primary key is on column:ATTR_TYPE_ID
Create statment: CREATE TABLE `attr_types` ( `attr_type_id` int(11) NOT NULL auto_increment, `type_name` varchar(50) NOT NULL default '', PRIMARY KEY (`attr_type_id`), UNIQUE KEY `type_name_unique` (`type_name`) ) TYPE=MyISAM
Author:
David Abigt via GenBean
See Also:
Serialized Form

Field Summary
protected  java.lang.Integer attr_type_id
           
static java.lang.String ATTR_TYPE_ID
           
static int ATTR_TYPE_ID_LEN
           
protected static Display display
           
static java.lang.String GETALL
           
static java.lang.String TABLE_NAME
           
protected  java.lang.String type_name
           
static java.lang.String TYPE_NAME
           
static int TYPE_NAME_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
Attr_types()
          Basic constructor
Attr_types(int pk)
          load record from the DB by primary key.
 
Method Summary
 java.lang.Object clone()
           
 int getAttr_type_id()
          returns value of the ATTR_TYPE_ID column of this row of data
 java.lang.Integer getObjAttr_type_id()
          returns value of the ATTR_TYPE_ID column of this row of data
 java.lang.String getObjType_name()
          returns value of the TYPE_NAME column of this row of data
 java.lang.String getType_name()
          returns value of the TYPE_NAME column of this row of data
 void load(Db db)
          load record from the DB by primary key
static Attr_types load(java.sql.ResultSet results)
           
static Attr_types load(java.sql.ResultSet results, Attr_types newObj)
           
 void setAttr_type_id(int newVal)
          sets value of the ATTR_TYPE_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 setAttr_type_id(java.lang.Integer newVal)
          sets value of the ATTR_TYPE_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 setType_name(java.lang.String newVal)
          sets value of the TYPE_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 50, 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

attr_type_id

protected java.lang.Integer attr_type_id

type_name

protected java.lang.String type_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

ATTR_TYPE_ID

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

ATTR_TYPE_ID_LEN

public static final int ATTR_TYPE_ID_LEN
See Also:
Constant Field Values

TYPE_NAME

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

TYPE_NAME_LEN

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

Attr_types

public Attr_types()
Basic constructor


Attr_types

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

Method Detail

getObjAttr_type_id

public java.lang.Integer getObjAttr_type_id()
returns value of the ATTR_TYPE_ID column of this row of data

Returns:
value of this column in this row

getAttr_type_id

public int getAttr_type_id()
returns value of the ATTR_TYPE_ID column of this row of data

Returns:
value of this column in this row

setAttr_type_id

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


setAttr_type_id

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


getObjType_name

public java.lang.String getObjType_name()
returns value of the TYPE_NAME column of this row of data

Returns:
value of this column in this row

getType_name

public java.lang.String getType_name()
returns value of the TYPE_NAME column of this row of data

Returns:
value of this column in this row

setType_name

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


clone

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

load

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

load

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