dea.beans
Class Attribs

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

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

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

Version:
1.0
Primary key is on column:OBJ_ATTR_ID
Create statment: CREATE TABLE `attribs` ( `obj_attr_id` int(11) NOT NULL auto_increment, `obj_num` int(11) default NULL, `attr_num` int(11) default NULL, `attr_val` mediumtext, PRIMARY KEY (`obj_attr_id`) ) TYPE=MyISAM
Author:
David Abigt via GenBean
See Also:
Serialized Form

Field Summary
protected  java.lang.Integer attr_num
           
static java.lang.String ATTR_NUM
           
static int ATTR_NUM_LEN
           
protected  java.lang.String attr_val
           
static java.lang.String ATTR_VAL
           
static int ATTR_VAL_LEN
           
protected static Display display
           
static java.lang.String GETALL
           
protected  java.lang.Integer obj_attr_id
           
static java.lang.String OBJ_ATTR_ID
           
static int OBJ_ATTR_ID_LEN
           
protected  java.lang.Integer obj_num
           
static java.lang.String OBJ_NUM
           
static int OBJ_NUM_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
Attribs()
          Basic constructor
Attribs(int pk)
          load record from the DB by primary key.
 
Method Summary
 java.lang.Object clone()
           
 int getAttr_num()
          returns value of the ATTR_NUM column of this row of data
 java.lang.String getAttr_val()
          returns value of the ATTR_VAL column of this row of data
 int getObj_attr_id()
          returns value of the OBJ_ATTR_ID column of this row of data
 int getObj_num()
          returns value of the OBJ_NUM column of this row of data
 java.lang.Integer getObjAttr_num()
          returns value of the ATTR_NUM column of this row of data
 java.lang.String getObjAttr_val()
          returns value of the ATTR_VAL column of this row of data
 java.lang.Integer getObjObj_attr_id()
          returns value of the OBJ_ATTR_ID column of this row of data
 java.lang.Integer getObjObj_num()
          returns value of the OBJ_NUM column of this row of data
 void load(Db db)
          load record from the DB by primary key
static Attribs load(java.sql.ResultSet results)
           
static Attribs load(java.sql.ResultSet results, Attribs newObj)
           
 void setAttr_num(int newVal)
          sets value of the ATTR_NUM column of this row of data default value for this field set by the DB is null
 void setAttr_num(java.lang.Integer newVal)
          sets value of the ATTR_NUM column of this row of data default value for this field set by the DB is null
 void setAttr_val(java.lang.String newVal)
          sets value of the ATTR_VAL column of this row of data default value for this field set by the DB is null This field has a max length of 16777215, longer strings will be truncated
 void setObj_attr_id(int newVal)
          sets value of the OBJ_ATTR_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 setObj_attr_id(java.lang.Integer newVal)
          sets value of the OBJ_ATTR_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 setObj_num(int newVal)
          sets value of the OBJ_NUM column of this row of data default value for this field set by the DB is null
 void setObj_num(java.lang.Integer newVal)
          sets value of the OBJ_NUM 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

attr_num

protected java.lang.Integer attr_num

attr_val

protected java.lang.String attr_val

obj_attr_id

protected java.lang.Integer obj_attr_id

obj_num

protected java.lang.Integer obj_num

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_NUM

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

ATTR_NUM_LEN

public static final int ATTR_NUM_LEN
See Also:
Constant Field Values

ATTR_VAL

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

ATTR_VAL_LEN

public static final int ATTR_VAL_LEN
See Also:
Constant Field Values

OBJ_ATTR_ID

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

OBJ_ATTR_ID_LEN

public static final int OBJ_ATTR_ID_LEN
See Also:
Constant Field Values

OBJ_NUM

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

OBJ_NUM_LEN

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

Attribs

public Attribs()
Basic constructor


Attribs

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

Method Detail

getObjAttr_num

public java.lang.Integer getObjAttr_num()
returns value of the ATTR_NUM column of this row of data

Returns:
value of this column in this row

getAttr_num

public int getAttr_num()
returns value of the ATTR_NUM column of this row of data

Returns:
value of this column in this row

setAttr_num

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


setAttr_num

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


getObjAttr_val

public java.lang.String getObjAttr_val()
returns value of the ATTR_VAL column of this row of data

Returns:
value of this column in this row

getAttr_val

public java.lang.String getAttr_val()
returns value of the ATTR_VAL column of this row of data

Returns:
value of this column in this row

setAttr_val

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


getObjObj_attr_id

public java.lang.Integer getObjObj_attr_id()
returns value of the OBJ_ATTR_ID column of this row of data

Returns:
value of this column in this row

getObj_attr_id

public int getObj_attr_id()
returns value of the OBJ_ATTR_ID column of this row of data

Returns:
value of this column in this row

setObj_attr_id

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


setObj_attr_id

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


getObjObj_num

public java.lang.Integer getObjObj_num()
returns value of the OBJ_NUM column of this row of data

Returns:
value of this column in this row

getObj_num

public int getObj_num()
returns value of the OBJ_NUM column of this row of data

Returns:
value of this column in this row

setObj_num

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


setObj_num

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

load

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