dea.beans
Class Objects

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

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

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

Version:
1.0
Primary key is on column:OBJ_KEY
Create statment: CREATE TABLE `objects` ( `obj_key` int(11) NOT NULL auto_increment, `obj_name` varchar(50) default '', `detail` mediumtext, `cat` int(11) default NULL, `updated` datetime default '0000-00-00 00:00:00', PRIMARY KEY (`obj_key`) ) TYPE=MyISAM
Author:
David Abigt via GenBean
See Also:
Serialized Form

Field Summary
protected  java.lang.Integer cat
           
static java.lang.String CAT
           
static int CAT_LEN
           
protected  java.lang.String detail
           
static java.lang.String DETAIL
           
static int DETAIL_LEN
           
protected static Display display
           
static java.lang.String GETALL
           
protected  java.lang.Integer obj_key
           
static java.lang.String OBJ_KEY
           
static int OBJ_KEY_LEN
           
protected  java.lang.String obj_name
           
static java.lang.String OBJ_NAME
           
static int OBJ_NAME_LEN
           
static java.lang.String TABLE_NAME
           
protected  java.sql.Timestamp updated
           
static java.lang.String UPDATED
           
static int UPDATED_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
Objects()
          Basic constructor
Objects(int pk)
          load record from the DB by primary key.
 
Method Summary
 java.lang.Object clone()
           
 int getCat()
          returns value of the CAT column of this row of data
 java.lang.String getDetail()
          returns value of the DETAIL column of this row of data
 int getObj_key()
          returns value of the OBJ_KEY column of this row of data
 java.lang.String getObj_name()
          returns value of the OBJ_NAME column of this row of data
 java.lang.Integer getObjCat()
          returns value of the CAT column of this row of data
 java.lang.String getObjDetail()
          returns value of the DETAIL column of this row of data
 java.lang.Integer getObjObj_key()
          returns value of the OBJ_KEY column of this row of data
 java.lang.String getObjObj_name()
          returns value of the OBJ_NAME column of this row of data
 java.sql.Timestamp getObjUpdated()
          returns value of the UPDATED column of this row of data
 java.sql.Timestamp getUpdated()
          returns value of the UPDATED column of this row of data
 void load(Db db)
          load record from the DB by primary key
static Objects load(java.sql.ResultSet results)
           
static Objects load(java.sql.ResultSet results, Objects newObj)
           
 void setCat(int newVal)
          sets value of the CAT column of this row of data default value for this field set by the DB is null
 void setCat(java.lang.Integer newVal)
          sets value of the CAT column of this row of data default value for this field set by the DB is null
 void setDetail(java.lang.String newVal)
          sets value of the DETAIL 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_key(int newVal)
          sets value of the OBJ_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 setObj_key(java.lang.Integer newVal)
          sets value of the OBJ_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 setObj_name(java.lang.String newVal)
          sets value of the OBJ_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 setUpdated(java.sql.Timestamp newVal)
          sets value of the UPDATED 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

cat

protected java.lang.Integer cat

detail

protected java.lang.String detail

obj_key

protected java.lang.Integer obj_key

obj_name

protected java.lang.String obj_name

updated

protected java.sql.Timestamp updated

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

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

CAT_LEN

public static final int CAT_LEN
See Also:
Constant Field Values

DETAIL

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

DETAIL_LEN

public static final int DETAIL_LEN
See Also:
Constant Field Values

OBJ_KEY

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

OBJ_KEY_LEN

public static final int OBJ_KEY_LEN
See Also:
Constant Field Values

OBJ_NAME

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

OBJ_NAME_LEN

public static final int OBJ_NAME_LEN
See Also:
Constant Field Values

UPDATED

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

UPDATED_LEN

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

Objects

public Objects()
Basic constructor


Objects

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

Method Detail

getObjCat

public java.lang.Integer getObjCat()
returns value of the CAT column of this row of data

Returns:
value of this column in this row

getCat

public int getCat()
returns value of the CAT column of this row of data

Returns:
value of this column in this row

setCat

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


setCat

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


getObjDetail

public java.lang.String getObjDetail()
returns value of the DETAIL column of this row of data

Returns:
value of this column in this row

getDetail

public java.lang.String getDetail()
returns value of the DETAIL column of this row of data

Returns:
value of this column in this row

setDetail

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

public java.lang.Integer getObjObj_key()
returns value of the OBJ_KEY column of this row of data

Returns:
value of this column in this row

getObj_key

public int getObj_key()
returns value of the OBJ_KEY column of this row of data

Returns:
value of this column in this row

setObj_key

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


setObj_key

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


getObjObj_name

public java.lang.String getObjObj_name()
returns value of the OBJ_NAME column of this row of data

Returns:
value of this column in this row

getObj_name

public java.lang.String getObj_name()
returns value of the OBJ_NAME column of this row of data

Returns:
value of this column in this row

setObj_name

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


getObjUpdated

public java.sql.Timestamp getObjUpdated()
returns value of the UPDATED column of this row of data

Returns:
value of this column in this row

getUpdated

public java.sql.Timestamp getUpdated()
returns value of the UPDATED column of this row of data

Returns:
value of this column in this row

setUpdated

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

load

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