dea.beans
Class Objx

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

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

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

Version:
1.0
Primary key is on column:OBJX_ID
Create statment: CREATE TABLE `objx` ( `objx_id` int(11) NOT NULL auto_increment, `obj_num` int(11) default NULL, `pic_num` int(11) default '0', PRIMARY KEY (`objx_id`) ) TYPE=MyISAM
Author:
David Abigt via GenBean
See Also:
Serialized Form

Field Summary
protected static Display display
           
static java.lang.String GETALL
           
protected  java.lang.Integer obj_num
           
static java.lang.String OBJ_NUM
           
static int OBJ_NUM_LEN
           
protected  java.lang.Integer objx_id
           
static java.lang.String OBJX_ID
           
static int OBJX_ID_LEN
           
protected  java.lang.Integer pic_num
           
static java.lang.String PIC_NUM
           
static int PIC_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
Objx()
          Basic constructor
Objx(int pk)
          load record from the DB by primary key.
 
Method Summary
 java.lang.Object clone()
           
 int getObj_num()
          returns value of the OBJ_NUM column of this row of data
 java.lang.Integer getObjObj_num()
          returns value of the OBJ_NUM column of this row of data
 java.lang.Integer getObjObjx_id()
          returns value of the OBJX_ID column of this row of data
 java.lang.Integer getObjPic_num()
          returns value of the PIC_NUM column of this row of data
 int getObjx_id()
          returns value of the OBJX_ID column of this row of data
 int getPic_num()
          returns value of the PIC_NUM column of this row of data
 void load(Db db)
          load record from the DB by primary key
static Objx load(java.sql.ResultSet results)
           
static Objx load(java.sql.ResultSet results, Objx newObj)
           
 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 setObjx_id(int newVal)
          sets value of the OBJX_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 setObjx_id(java.lang.Integer newVal)
          sets value of the OBJX_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 setPic_num(int newVal)
          sets value of the PIC_NUM column of this row of data default value for this field set by the DB is null
 void setPic_num(java.lang.Integer newVal)
          sets value of the PIC_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

obj_num

protected java.lang.Integer obj_num

objx_id

protected java.lang.Integer objx_id

pic_num

protected java.lang.Integer pic_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

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

OBJX_ID

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

OBJX_ID_LEN

public static final int OBJX_ID_LEN
See Also:
Constant Field Values

PIC_NUM

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

PIC_NUM_LEN

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

Objx

public Objx()
Basic constructor


Objx

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

Method Detail

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


getObjObjx_id

public java.lang.Integer getObjObjx_id()
returns value of the OBJX_ID column of this row of data

Returns:
value of this column in this row

getObjx_id

public int getObjx_id()
returns value of the OBJX_ID column of this row of data

Returns:
value of this column in this row

setObjx_id

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


setObjx_id

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


getObjPic_num

public java.lang.Integer getObjPic_num()
returns value of the PIC_NUM column of this row of data

Returns:
value of this column in this row

getPic_num

public int getPic_num()
returns value of the PIC_NUM column of this row of data

Returns:
value of this column in this row

setPic_num

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


setPic_num

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

load

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